98.css

(jdan.github.io)

546 points | by lopespm 2 days ago ago

127 comments

  • jordanscales 2 days ago ago

    Author here! This was my burnout recovery project and holds a place near and dear to my heart. https://notes.jordanscales.com/98-css-reflections

    • rbanffy 29 minutes ago ago

      It’s a job well done. I personally liked 2000’s colour choices, but 98 managed to look modern enough a couple Unix window managers decided to copy it.

      As my GUI look of choice, I’d be between IRIX and OpenWindows. Motif always looked a bit unfinished and CDE was a child of its time - who sets up printers?

    • sphars 2 days ago ago

      Thanks for creating this, it fit perfect for a tiny web site I made[0]. Hits just the right mix of usability and nostalgia and makes me want to use it for more projects.

      [0]: https://www.mathsheets.net/

      • woqe 2 days ago ago

        Off topic, I love your site - it's a perfect homage to a loving family tradition (even if it was only for a couple of vacations). This site is, I think, an example of what a beautiful internet could be (and maybe is, if anyone knows got to find more sites like this-really authentic stories). Now, I hope I'm not being fooled by an AI generated story, but even if I am, I am happy to believe in that illusion.

        Edit: After reflecting on this situation, your creation, your art: the css library paired with your story gave me a modern day Norman Rockwell dopamine hit. This has been an absolute experience, bravo to the collaboration!

        • sphars 2 days ago ago

          I don't have any way to prove it but this was no AI hallucination, a completely true story and human generated site (there is a link to the GitHub on there).

          I do appreciate your thoughts and I too hope I'm not being fooled by an AI :)

      • DigiEggz 21 hours ago ago

        I went straight for the "circles" background. 98 UI and art will never tire me.

    • montag 2 days ago ago

      I used 98.css as starting point for the Winamp theme in https://chiptune.app. It was very easy to modify and extend, thanks!

      • RedShift1 2 days ago ago

        Some car tuners are very jealous of your domain name...

    • vibbix 2 days ago ago

      Thank you so much for your project! I have spent the last few months working on my own retro computing CSS library, but instead inspired by BeOS https://beta.mtechnic.me

      PS: while doing research on my project, I found your portfolio site as well. Was shocked to see we had the exact same taste in music, and genuinely made me curious if everyone whose doing retro throwbacks libraries did as well.

      • rbanffy 28 minutes ago ago

        There was a time I replaced most Windows icons with their BeOS counterparts using a resource editor messing with the MORICONS.DLL (IIRC).

    • Gabrys1 2 days ago ago

      Firefox (Nightly) on Android: tabs don't work: when clicking on a tab, the URL changes, there's a slight jump in content, but the new tab is not selected. Hope this helps

      • jordanscales a day ago ago

        The tabs on the home page aren't wired up because doing so requires JavaScript

        > Tabs should be managed by adding custom javascript code. All you need is to add the [aria-selected=true] attribute to the active tab.

        • efreak a day ago ago

          I have a vague feeling that tabs should be doable in pure CSS/HTML, but I might be thinking of menus (where the menu is a sub element of the button and thus visibility can depend on mouse position)

    • M95D 2 days ago ago

      > I no longer work on 98.css and I haven’t in a really long time. My only contribution to the project is monitoring the repo for high-quality pull requests. If I get one, I briefly scan through the author’s profile to make sure they’re not going to mine cryptocurrency on my user’s machines, and then I give them full commit access. “Looks good, go ahead and merge this yourself.”

      Very nice!

    • maxquinn a day ago ago

      Wow SimGolf was something I spent so much time on as a kid and haven't thought about in years! Thanks for the nostalgia trip.

    • timnetworks 2 days ago ago

      I wrapped many projects in 98.css. And some in Aero and even XP. Thank you!

      • rozap 2 days ago ago

        What are your favorite aero or xp css design systems?

    • dataAI 2 days ago ago

      I've also once experienced burnout, a book called Pedram Shojai: The Urban Monk has kept it away since. It's practical, not religious. Highly recommend it!

    • dsp2 2 days ago ago

      I absolutely love this. Thank you for making it and sharing it!

    • bdickason 2 days ago ago

      Great project. Thanks for making it! Brings back memories

    • mattgerstman 2 days ago ago

      This is even more impressive knowing that its artisanal code, or as we called it back then, code.

    • redbridgerock 2 days ago ago

      You have brought back so many memories of mine through this one website. Thank you

    • titzer 2 days ago ago

      This is awesome. IMHO things like this were the whole point of CSS. Nice job!

    • uproarchat 2 days ago ago

      You nailed it, I'm glad you had a good outlet for it.

  • sodapopcan 2 days ago ago

    Flat design is so ridiculous. Made someone a bunch of money. Now everyone follows like sheep. Sorry for the doomer comment but, like, really. I'd love to say that I'm surprised that we haven't gotten over this, but given it's been... 20 years (?)... I'm not surprised.

    Also, the way multi-row tabs Just Work in the UIs of yesteryear *chef's kiss*

    • acchow 2 days ago ago

      If it takes longer to find stuff on a page, one of the most prized metrics goes up: time on page.

      And here we are.

      • cube00 2 days ago ago

        > one of the most prized metrics goes up: time on page

        It took me way too long to realise those widgets that show stats quickly counting up are only there hoping you'll wait until they finish counting to see the total number. All to increase your time on the page and make the metrics look good for the designer.

    • spankibalt 2 days ago ago

      > Flat design is so ridiculous.

      Flat, or quasi-flat (minimalistic/brutalist), design is fantastic if one makes use of appropriate visual discriminators, e. g. shadows, outlines, contrasts etc. Less is more here. Which makes this design philosophy clash with Apple's, Google's, or their imitators, oversaturated Fisher-Price playdough-UIs.

    • theandrewbailey 2 days ago ago

      We've been getting flatter over time. Win9x (and even 3.x) styles have subtle 3D cues, like the edges of buttons, window borders, tabs, and text boxes. There were gradients. Apparently, these are technologies that we've lost.

      • inigyou 2 days ago ago

        Win3.1 style was completely flat and ugly though.

        • ObscureScience 2 days ago ago
          • sodapopcan 2 days ago ago

            I think they must be? Windows 3.1 had depth. Win95 rammped it up in, what we all thought at the time, was a good way.

            I have this really fond memory of showing my friend (who is still one of my good friends in adulthood) who had installed XP that he could change the theme "back" to look exactly 95/98/2000. His reaction was this very earnest "I love this..." as he clicked around like he was experiencing again for the first time. Anyway, ya, getting a bit off topic into memory lane, but we just had cool UIs back then.

    • spaghettifythis 2 days ago ago

      Multi-row tabs are the primary thing I dislike about old UIs. You never seem to see them anymore, for which I am immensely grateful. Not only do they take up valuable vertical space, but they way the rows jump around always confused more than it really should have - a button shouldn't move after I click it, especially if it is representing state.

      • sodapopcan 2 days ago ago

        My (admittedly spontaneous) thought was that we don't see them anymore because flat design make them almost impossible. Even with dividers, it would just look like a grid.

        I don't think that more-tabs-that-can-fit-on-one-"line" is ideal, but I think the modern equivalent - horizontal scolling tabs - is waaay friggin' worse. I've been confused by those before whereas the first time I encountered multi-row tabs in the "depth style," I had zero confusion about what I was looking at.

      • hdjrudni 2 days ago ago

        As opposed to tabs that either (a) get so small they're illegible, or (b) scroll off the screen so they're no longer accessible?

        The moving tabs issue we can fix but just not moving them.

        And the vertical space issue is much less of an issue now than it was then because we have higher resolutions but the answer to that is to start closing tabs when you can no longer see your content. It's like a quiet little nag that says you have too much stuff open.

        • inigyou 2 days ago ago

          The selected tab has to be on the bottom row for the visual metaphor to work, that's why they move.

    • RedShift1 2 days ago ago

      Not only flat design but also using less color. We have monitors and graphics cards that can display millions of colors now and we refuse to use it... Not that it has to look like a coloring book but sheez Windows 10 and 11 make me feel depressed.

    • dysoco a day ago ago

      Most people crave change and novelty and flat design provided just that. I'm now anti-flat design but I remember vividly thinking Windows Vista looked awesome and then some years after that thinking Windows 8 was pretty cool.

      Now I long for skeuomorphism, but if that becomes the norm for 10 years... after that who knows?

  • akx 2 days ago ago

    Something that always irked me about 98.css and its friends was the ever-so-slightly-incorrect version of MS Sans Serif.

    Finally decided to do something about it: https://github.com/jdan/98.css/pull/230

  • gnabgib 2 days ago ago

    Popular in

    2024 (471 points, 93 comments) https://news.ycombinator.com/item?id=42056918

    2022 (606 points, 182 comments) https://news.ycombinator.com/item?id=33310554

    2020 (838 points, 211 comments) https://news.ycombinator.com/item?id=22940564

  • OsrsNeedsf2P 2 days ago ago

    I really want to make one of my websites use this.. I just can't think of one that would fit.

    Also shout out XFCE-winxp-tc, which makes your Linux look like Windows XP. Lots of people know about Chicago95, but this project is excellent for that 2004 vibe

    [0] https://github.com/rozniak/xfce-winxp-tc

    • dylan604 2 days ago ago

      man, it's the internet. you don't need a fit. you just need to want to.

    • ranger_danger 2 days ago ago

      My gripe has always been that none of these xfce/gtk/etc. themes are ever actually pixel-perfect, even when they claim to be. Not sure if there is a legal concern there or not.

      • Gualdrapo 2 days ago ago

        More than legal concerns is that theming engines on each DE can be a bit limiting trying to do such things. i.e. for KDE Plasma you'd need to do a fair amount of SVG trickery to reach 100% accuracy respect of the originals.

        Plus the icons thing - they're not as easy as people might think.

        But this xfce-winxp-tc seems to be really, really close to the original. In those first two screenshots I thought it was just screenshots of the original WinXP.

        Also the CSS framework subject of this thread looks really identical to the widgets and stuff of Win98.

        But if you want true 100% pixel-perfect windows 98/xp/whatever... Just use them.

  • rbanffy 33 minutes ago ago

    Honestly, I think Windows 2000 was peak coolness. XP was too colourful and it went down from there. Windows 8, 10, and 11 look OK, as they toned down the XP, Vista, and 7 visual noise.

  • zemo 2 days ago ago

    unjokingly I think the fact that we removed grayed out buttons for "the button just doesn't appear" is one of the more confusing UI trends of our day and the sight of a grayed out button warms my heart

    • cube00 2 days ago ago

      Microsoft had some excellent guidance[1] on this:

      > Reconsider disabled controls. Disabled controls can be hard to use because users literally have to deduce why they are disabled. Disable a control when users expect it to apply and they can easily deduce why the control is disabled. Remove the control when there is no way for users to enable it or they don't expect it to apply, or leave it enabled, but provide an error message when it is used incorrectly.

      > Tip: If you aren't sure whether you should disable a control or provide an error message, start by composing the error message that you might provide. If the error message contains helpful information that target users aren't likely to quickly deduce, leave the control enabled and provide the error. Otherwise, disable the control.

      Unfortunately, that nuance has been lost in the modern version of the guidelines with no mention of disabled buttons at all [2]

      [1]: https://learn.microsoft.com/en-us/windows/win32/uxguide/top-...

      [2]: https://learn.microsoft.com/en-us/windows/apps/develop/ui/co...

      • inigyou 2 days ago ago

        Not just this one. It seems like all usability guidelines have been forgotten. The guidelines that remain are not for usability.

      • deathanatos 2 days ago ago

        Excellent? No,

        > Remove the control when there is no way for users to enable it

        That guidance is unhinged, and is exactly the anti-pattern that upthread points to that needs to die.

        Removing the control is like gaslighting the user: they're looking for "how to do X?" and documentation, Internet searchable screenshots, and, god help us, now AI, are pointing them at a button that does not exist. I cannot tell you how many times I've frustratingly circled that mulberry bush as a user, for a wide range of products.

        No, the button (and all other UI elements) should always present/be visible, and if there is a disabled control, there should be a HIG-standardized way to determine why it is disabled. (I.e., a mandatory tool-tip that states what actions would cause the control to enable, though I'd accept that tool-tips themselves are not always discoverable. You could have a small, standardized icon on the disabled control, like an :information-symbol-emoji: that might hit towards the tool-tip, or just put in underneath.)

        • preg_match 2 days ago ago

          I agree, just gray it out and have a little question mark button next to it.

          Also, way more question mark buttons. I don’t care how well named people think things are. They’re not, and there’s always some hidden behavior you just have to know behind every setting. Include the question mark.

          • fodkodrasz 2 days ago ago

            Or even better than question mark (for me): hover text with explanation.

    • nitin7 2 days ago ago

      I think the button shouldn't appear if the user doesn't have the access to do it (eg. not an admin, has view rights only, etc).

      However, if the user can and they expect to do it, but is in a mode/state which doesn't allow them to do it, greyed out buttons absolutely.

      In some cases, greyed out buttons should be clickable (eg. forms) and that should tell the user what is wrong. Looking at you, billion dollar airline, where I couldn't complete my checkin due to this annoyance.

      Also, what happened to hover messages and little (?) marks? Every software behaves like it expects me to know what to do from Day 1.

      • xboxnolifes 2 days ago ago

        I agree for admin stuff, but certain lack of permissions hiding stuff is annoying. It's nice for things to be disabled and have a hover text explaining why it's disabled. Also, yes, (?) and hover text in general is severely underused in popular software.

        I wish every button or menu option that has a shortcut would show me its shortcut on hover or in-place so I didn't have to find it in the manual or buried in the settings menu.

        • efreak a day ago ago

          Worse is when the hotkey is underlined but doesn't actually work (multiple buttons with same hotkey, and instead of switching between them it just doesn't do anything. Admittedly this is rare). Or when the list is an MRU that can be navigated with the first letter of the item names, but some letters are reserved for static functions (looking at classic shell start menu: I can't start certain programs from the MRU or pinned list without the mouse because (A)pps Sh(u)tdown (S)ettings are reserved. Numeric helps with MRU, but can't be used in multiple places for the same reason)

      • inigyou 2 days ago ago

        What if the user is an admin but isn't logged in as one, and that's why he can't press the button?

      • fodkodrasz 2 days ago ago

        > Also, what happened to hover messages and little (?) marks? Every software behaves like it expects me to know what to do from Day 1.

        I truly hate fast-food kiosks for this reason: most expect me to be familiar with their offerings and the menu system of that kios. I relatively rarely visit such places and I was better off with a human asking me 1-3 short questions and paying. I'm not paid to know this shit, I'm the customer. Guess I'm just too old, younger people love this crap for some reason.

        • efreak a day ago ago

          Younger people love not having to wait in line. If I'm really hungry and I'm stopping at McDonald's because it's the only place close enough to the bus stop, then I want to order and pay, not wait for the person ahead of me. If I only have one item at the market/drug store, I want to use a self-checkout machine, and I don't want to be waiting behind someone with a cart full of items who doesn't know they have to actually unload their cart for the cashier, or who decides to go back for "one more thing" that happens to be at the back of the store where they get caught up talking to someone they know.

  • pkage 2 days ago ago

    I used this to build my personal site: https://ka.ge . It's a pixel-perfect (and functional) recreation of the windows 98 desktop environment in under a MB.

  • pxtail 2 days ago ago

    Nitpick: tabs in the multirow tabs example do not change position randomly as they should when clicked

  • hilti 2 days ago ago

    I love this UI, so here is my attempt to re-create this using ImGUI

    https://github.com/marchildmann/BevelDesk

  • zkmon 2 days ago ago

    With every new version of the OS, the UI desigenrs were forced to show some change and call it improvement, even though those changes functionally unnecessary, more resource consuming, less faster, and less reliable.

    • akoboldfrying 2 days ago ago

      > less faster

      I suspect those UI designers have been working on your comment, too

  • bhouston 2 days ago ago

    Very authentic almost down to the pixel. I love it!

    Btw default buttons like OK should have a thick black outline.

    Also windows UIs loved group boxes and radio buttons and checkboxes. I notice those are missing.

    Also it seems that the dropdown is missing.

    • codazoda 2 days ago ago

      You may not have scrolled up. Much of that is included.

  • kushalpandya 2 days ago ago

    While the browser support is not complete, styling the dropdown menu to match with Windows 98 should still be doable https://developer.mozilla.org/en-US/docs/Learn_web_developme...

  • sshworld 2 days ago ago

    Impressie that this is pure CSS with no JavaScript. The border and box-shadow tricks to recreate the beveled Win98 look are really well done!

  • jhoechtl 2 days ago ago

    I do not understand efforts like these. It's not that 98 Windows UI design has been the paramount of UX. Today's technology bloat and layer upon layer of abastractions caused a total bloat.

    Understanding what is required to make a good UX site, and idenifying the minimum neccessary technological components is it.

    • fodkodrasz 2 days ago ago

      You are right, Windows 2000 was the peak of UI design. Since then everything is getting worse, the rounded corners and floating margins being one example. The MacOS and web-designer influences were detrimental to usability.

  • TheAceOfHearts 2 days ago ago

    A few months back I was playing around with win32 UI widgets and found one instance of surprising behavior which diverges from what is implemented here. To be clear this is not a dig on the project, and in particular the way it works on the web feels more correct to me.

    When using the TrackBar widget, equivalent of <input type=range min=0 max=100 value=0>, assuming you have value 0 / 100 if you click on the line bar it will jump to the 20 value regardless of how far or close you click on the line [0]. I found that behavior very surprising, and would've expected it to jump to wherever you clicked.

    [0] https://bsky.app/profile/cesarandreu.bsky.social/post/3mitlr...

    • danielrmay 2 days ago ago

      I remember this behavior. I think it would be more historically accurate to omit pointer cursors on expandable treeview items, too

  • ithadhumor 2 days ago ago

    This is so clean. It reminds me of the good ol’ times.

    • reddalo 2 days ago ago

      I wish modern operating systems were like that: simple, clean, with no wasted space for decorative purposes.

  • lambdaone 2 days ago ago

    Windows XP and MacOS System 7 had pretty good looking GUIs. Since then, modern keyboard-and-mouse UIs have not really improved that much; it's mostly been just evolving and polishing styling. All the real innovation has been on touchscreen devices.

    • pdntspa 2 days ago ago

      XP? What with its Fischer-Price primary color scheme? You have got to be kidding me.

  • fitsumbelay 2 days ago ago

    This is pretty cool plus I love anything that references classics like 980css and 2Advanced. I'm even OK with hearing the word "Flash" now in a way that some day I'll be with hearing "React" ...

  • CM30 a day ago ago

    Looks pretty neat. Definitely brings me back to the olden days of Windows 98, that's for sure.

    However, is there any JavaScript functionality implemented here? I tried clicking on the tabs in the tab component, and nothing happened. There's also no talk about that side of things on the page itself.

    So, would be nice to have some sort of scripting functionality for the more interactive elements here.

  • neya 2 days ago ago

    Is there a version for Windows 7 as well? Because, that was the last good design from anyone from that era and everything just went downhill after that.

  • luciana1u 2 days ago ago

    someday someone will ship 2010s.css to recreate the flat design era and it'll be three lines of CSS that make everything look like nothing

  • Tepix 2 days ago ago

    This is neat for all Windows fans. Has anyone done the same for OSF/MOTIF?

    Edit: Relying on my memory, the CDE style at https://nielssp.github.io/classic-stylesheets/ comes pretty close!

  • wseqyrku 2 days ago ago

    Folks, can we have a css framework for TUIs please?

  • t1234s 2 days ago ago

    I remember the gradient in the title bar was a big thing for apps that pulled it off on windows 95.

  • ghtbircshotbe a day ago ago

    The page references a document Microsoft Windows User Experience. Is this online somewhere? I can only find Amazon links. Are there other good design manuals I can find online?

  • ranger_danger 2 days ago ago
    • sphars 2 days ago ago
    • xbar 2 days ago ago

      Thank you for the library. I was about to ask after 2 of these design spaces.

    • kristopolous 2 days ago ago

      Hey I'm there. Thanks

      • mysterydip 2 days ago ago

        I love your design! I used it in a prototype BBS game playable on the web :)

        • kristopolous 2 days ago ago

          Thanks. It's not a bootstrap theme, it's a proper fork that maintains compatibility.

          It's extremely grueling to do. We're talking hundreds of hours.

          I question how much AI can really help here since it's a matter of careful pixel alignment, image capabilities probably beyond what models can do and taste

          I'm down if I can figure out an attack plan for the newer versions. Right now ai just feels like wheel spinning here. I might have to do this manually still

    • taevirus 2 days ago ago

      Thanks !!!!!

  • cush 2 days ago ago

    Seeing this makes me unreasonably happy. Funny how nostalgia is

    • harry8 2 days ago ago

      Funny how nostalgia differs for different people. I hated all that so much at the time that I installed linux (RH 7.x) from a magazine cd and learned to program in C & perl.

      That multirows tab UI thing was an utter abomination against usability, intelligence, good sense, decency, justice and obviously any and all aesthetics. Why bring it back? To fix it maybe?

      • j16sdiz 2 days ago ago

        What about discoverability?

        Multirow tab ai't pretty, but it allows you to know all your tabs -- unlike the modern scrollable tab bar that move one pixel on each click.

        I guess this depends on you are using mouse clicks or have a touch screen you can swipe

        • harry8 a day ago ago

          The part where the rows switch order based on the last one you clicked so if you're searching you can't be systematic without an amazing memory is POISON for discoverability.

          Start on the top left tab, now it's on the bottom row. Thanks.

  • doitright99 a day ago ago

    Better interface than the current Windows UI.

  • MetroWind a day ago ago

    I have my own version of this. The 98 style is still my favorite.

  • VioletVandal a day ago ago

    Neat. an og OS X library would be a good follow-on idea

  • rienbdj 2 days ago ago

    I’ve always found this style ugly but so much clearer than modern UIs!

  • conductr 2 days ago ago

    The HTML formatting behind the ‘Show Code’ triggered some PTSD when it appeared

    • chrisweekly 2 days ago ago

      huh? it's clean basic HTML, for all the ones I checked...

      • conductr 16 hours ago ago

        IE6 view source vibes

  • olivierestsage 2 days ago ago

    Still waiting desperately on a KDE theme for the win32 aesthetic

  • simonw 2 days ago ago

    The blue gradients on the titlebars are actually very pleasing.

  • armchairhacker a day ago ago

    Why isn’t all the text in the Microsoft font?

  • hwc a day ago ago

    Those fonts make me very sad.

  • jagged-chisel 2 days ago ago

    The link points to the status bar. Was that intentional?

    • zargon 2 days ago ago

      Probably not.

  • RedShift1 2 days ago ago

    Is there a watercolor.css? (XP beta theme).

  • blakeburnette 2 days ago ago

    This is lovely.

  • self_awareness 2 days ago ago

    This one is pretty good, but it has one common flaw that other implementations have: lots of empty space between controls.

    Win95/98 was very efficient in this area. Too much empty space wastes the space.

    • hilti 2 days ago ago

      Totally agree and I think the root cause are today's larger screen sizes, less constraints. Win95 was designed at a time when 800x600 and 1024x768 have been the standards to work with.

  • keane a day ago ago

    Very cool throwback! Of course not to be confused with https://960.gs from 2008

  • anpsmn 2 days ago ago

    I used to hate this because XP felt like such a huge upgrade. Now this is pure nostalgia.

  • pdntspa 2 days ago ago

    Finally, a throwback lib that seems to be mostly pixel-accurate! Some of the element spacing seems to be off but it does actually look like Windows 98.

    The lack of accuracy and attention to detail in a lot of these efforts is incredibly irksome and annoying, just about as obnoxious as pixel-art games with inconsistent pixel sizes (like how hard is it to render to a smaller buffer and do a simple linear upscale?!?)

  • naveed125 2 days ago ago

    This is really cool

  • jagadaga a day ago ago

    Looks terrible on my machine. Something wrong with the font. And button press animation is too slow and annoying.