1. 27
  1.  

  2. 4

    There is also https://github.com/yegor256/tacit and https://github.com/kimeiga/bahunya in case you’re looking for something else. :)

    1. 2

      Personally I love Lit css. It’s work of art :)

      1. 2

        While it’s small, it’s not a “classless” CSS framework so it’s not quite in the same ballpark of all these other frameworks. I think the whole point of the other frameworks and OP is that you just add them and you’re done.

        1. 1

          ah, yes you are right. While most stuff will work without classes, you need at least container for good spacing.

      2. 1

        Another alternative is Marx https://mblode.github.io/marx/.

      3. 5

        For a second I thought it supported the new prefers-color-scheme: dark media query. Unfortunately, it does not. The page uses some JS to switch between the dark and light themes instead of letting the browser handle it. :(

        It is only supported on Firefox and Safari right now though, so that’s understandable.

        1. 2

          I think you mean “Chrome and Safari”?

          1. 3

            MDN says Firefox and Safari but it might be out of date? If you know that Chrome supports this, you might want to update that page.

              1. 1

                Did you actually test this in Chrome? Because I did (on MacOS), and neither the latest stable version of Chrome nor the latest nightly Canary build seems to work with prefers-color-scheme. I don’t claim to understand the intricacies of this Chromium bug report or when we can expect the functionality to appear in Chrome, but it doesn’t seem to be there yet.

                My testing shows that the situation is as currently stated on https://caniuse.com/#search=prefers-color-scheme. Stable Firefox doesn’t work, but latest nightly does. Current version of Safari works.

                https://bugs.chromium.org/p/chromium/issues/detail?id=889087 might be a more informative bug, it’s the one caniuse is tracking.

                1. 2

                  You’re absolutely right. The bug I pasted is to do with the theme of Chrome itself. Mistakenly thought it covered prefers-color-scheme as well.

          2. 1

            Open an issue or submit a pull request! :-)

          3. 3

            This vaguely reminds me of the W3C Core Styles which everyone seems to have long forgotten https://www.w3.org/StyleSheets/Core/

            1. 1

              As of August 2002, there are complete implementations of CSS1, but not yet of CSS2.

              heh. Between that and the instructions for use with an xhtml document, I’m not surprised this isn’t anybody’s first choice.

            2. 1

              This is amazing, thanks for posting it. I’ve ported it into my chargen collaborative writing codebase and it works really well. I can now focus on the backend without worrying about CSS and best of all I can keep things javascript-free. Looking forward into building a viewer-manageable dark-mode across all author-controlled themes without needing Javascript.

              With the way things are, Chargen pages are now 7kb plus the page content.

              1. 1

                AWESOME. As someone who has made simple, mostly-text websites for a long time I’ve been looking for something like this.