98.css – A design system for building faithful recreations of old UIs

(jdan.github.io)

Comments

nielssp 6 November 2024
I made something similar as well (that includes both 3.11, 95, 2000, XP, CDE and Mac OS 9, and also all the default color schemes of those): https://nielssp.github.io/classic-stylesheets/?theme=win9x&s...

My focus was not so much on pixel perfect, but instead on creating something that would also work and look aesthetically pleasing on modern systems, like with higher DPI monitors and such. So one of the the things I did was to recreate all the icons and symbols in SVG.

I tried posting it as a Show HN when I added XP and Mac OS 9, but it didn't get much attention. Maybe the title of the project isn't as catchy.

prezjordan 6 November 2024
Author here – happy to see this posted again!

This was my burnout recovery project and I wrote some thoughts on it recently https://notes.jordanscales.com/98-css-reflections

metadat 6 November 2024
98.css is an HN Classic, for all the best reasons.

Previous discussions:

https://news.ycombinator.com/item?id=33310554 - October 2022 (179 comments)

https://news.ycombinator.com/item?id=22940564 - April 2020 (211 comments)

See also:

HyperCard Simulator and Decker.

https://hn.algolia.com/?q=hypercard

sbarre 6 November 2024
I don't know if anyone else remembers this but in the late 90s, Microsoft had built-in CSS named colours that matched the Windows desktop theme/colours.

I have no idea if these still work (my IDE seems to say they do not, because everything is red).

    body {
      font-size : 11px ;
      color : windowtext ;
      background-color : appworkspace ;
    }
    a {
      color: menutext;
    }
    .headerBar {
      border-top    : 1px solid threedlightshadow ;
      border-left   : 1px solid threedlightshadow ;
      border-bottom : 1px solid threedshadow ;
      border-right  : 1px solid threedshadow ;
      background-color : threedface ;
    }

So you could build web UIs that matched the user's Desktop look and feel. We did this for our browser-based Intranet applications in 1998, which made them look a bit more "native".
myfonj 6 November 2024
NB, that style does not play well with non-native DPI (e.g. when you have monitor set to 150% scale); to see it mapped to physical pixels, try running this in the browser's console:

    with(document.documentElement.style){
      transform = `scale(${ 1 / devicePixelRatio })`;
      transformOrigin = 'top left';
    }
(multiply the scale by whole number to get it "crisply zoomed").

Still not 100% perfect, but much closer to intended rendering, I guess.

andrewstuart 6 November 2024
I used a little bit of this I think in crowdwave https://www.crowdwave.com
akx 6 November 2024
By eye alone, I'm pretty sure that is not MS Sans Serif as rendered in Windows 95 and Windows 98.
OuterVale 6 November 2024
Also worth checking out: https://botoxparty.github.io/XP.css and https://khang-nd.github.io/7.css
agluszak 6 November 2024
I'd claim that this is way better than what we've got after years of UX/UI "research" and "improvements".

And it's not that I'm some old boomer. In '98 I was one year old. I just hate buttons which don't look like buttons, tabs which don't look like tabs, text fields that you have to click to discover they're editable etc.

Aardwolf 6 November 2024
This is really cool, the only thing I see is the font rendering looks choppy. An antialiasing issue I think, but it looks worse than some non-antialiazed fonts (like the EGA 8x14 pixels font) too

To be very pedantic: also the dropdown menu, when opened, looks very different than the original 98 style

bwg2000 6 November 2024
Very cool, will need to find a use for this. I briefly had a go at building similar trying to replicate the Club Penguin UI - need to get back to it!

https://github.com/bwgraves/PenguinCSS

smusamashah 6 November 2024
I made this Obsidian theme (now defunct) using lots of source from 98.css

https://github.com/SMUsamaShah/Obsidian-Win98-Edition

soul_grafitti 10 November 2024
Admirable job. Just wondering - was the impetus for this anything to do with movie or TV prop making? It would certainly be terrific for rendering real time screens of '90s era data.
AstroJetson 6 November 2024
This is weirdly compelling. I have some retro info that I've wanted to put in a small website, this may be the thing that pushes it into the active list.

Thanks!

uptownfunk 6 November 2024
I miss this era of life and childhood
klaussilveira 6 November 2024
It sucks that the fonts will never look amazing as they once were in CRT monitors in 800x600.
henning 6 November 2024
This would be an improvement over modern UI design. It's much more clear what is clickable. That is why old Windows versions were designed like that.
lastdong 6 November 2024
Where’s Clippy?

Great job! I think adding Clippy notifications would be a fun touch

sigmonsays 6 November 2024
broken on firefox for me after clicking through a few times...

the left side gets shift over and hidden behind the white navigation box.

Does this happen to anyone else?

ayaros 6 November 2024
This is beautiful. The world needs more of this.
breakfastduck 6 November 2024
I hate and love this at the same time
webprofusion 6 November 2024
Cool but the fonts are all messed up.
distantsounds 6 November 2024
developers will do anything but actually recreate visual basic
croisillon 6 November 2024
i dream of a 16 cga colors css framework with bulky arrows