Lurker News

Comments (104) 27 threads

archmaster4 replies#
Why?

I make a bunch of tiny static websites for API demos and such, and always run against the same problem: I hate the browser's default styles but don't want to spend time writing my own stylesheet for such a tiny app.
Now I can just include Water.css in my `` and forget about it. The demo app will still work, it'll look good, and I won't have spent any time making a stylesheet.
Who?
Let me quote the GitHub repository:
> You might want to use Water.css if you're making a simple static or demo website that you don't want to spend time styling.
> You probably don't want to use it for a production app or something that has more than a simple document. Rule of thumb: if your site has a navbar, don't use Water.css. It's just not meant for that kind of content.
Water.css has a dark theme by default, but some users wanted a light theme so I added one. Think it's ugly? Feel free to create a pull request :D

_bxg11 reply#
Great idea (and cute name). Default browser styles are hideous; honestly just this makes a world of difference:

  body {
    font-family: sans-serif;
    max-width: 800px;
    margin: 0 auto;
  }
_bxg11 reply#
Another idea (you have some default transitions in there already, but I like this one):

  * {
    transition: all 0.2s ease-out;
  }
It's bold, but quite effective. Suddenly literally every property change looks natural.
SahAssar2 replies#
It's a pain on the CPU though if you have a lot of non-transform/opacity changes though. It's much better to just animate the elements that you want animated and leave the rest alone.

Continue this thread — 2 replies

tobyhinloopen#
I didn’t know this feature but I love it! I’ll try to use it in all future projects
portroyal#
Also chiming in to say thanks. I hadn't seen this gem in my MDN browsing either.
z3t43 replies#
I investigated this a few months ago and no browser, not even Safari supported it. Hopefully more platforms will start to support it.
stephenr#
Safari supports it as of 12.1 (It was available in the Tech Preview prior to 12.1)
onion2k#
It sounds backwards, but this is why you should use this feature. It sends a message to browser vendors (via Chrome Status eg https://www.chromestatus.com/features/5109758977638400) that developers want to use those features, which helps the Chrome team (and other vendors) prioritize what to work on.

Build sites to be standards compliant and accessible first, and then progressively enhance them using new browser features to give the user a better experience. It's absolutely the best way to build for the web.

felixfbecker#
It's also supported already in Firefox Nightly (macOS and Windows) and WIP in Chrome
zzo38computer#
I happen to prefer the browser's default styles. I only ever need to tamper with them if the browser's default styles are not used.
helloworld3 replies#
I just noticed this biographical detail about the author:

I'm a 13yo developer, wannabe designer, and cellist.
How awesome! Makes me feel hopeful about the future.

skilled#
Yay! Can't wait for developers to fix the future! Right on, brother!
ksahin#
His project list on his personal website is impressive too!
thanatropism#
Oh man. I hope he has a good family situation and great mentors in the programming communities so he can develop to his full potential.
mekoka4 replies#
Thank you for this. There's a bunch of us who, once in a while, think of finally putting up that simple website or blog, with a minimalist touch. But then we have to think of how it'll actually look and we go into analysis paralysis. That's where the weekend project usually goes back to snooze. This kind of initiatives helps to at least get to the next hurdle.
Vicfred#
this is exactly me
enriquto3 replies#
The default style for browsers (if you do not put any css) looks rather good to me. I do not honestly understand what is the problem.
saagarjha1 reply#
It's a bit too brutalist. A small touch of CSS can go a long way to making a website more pleasant to use.
enriquto1 reply#
Maybe, but I have come to like it and find it very pleasant. When I activate full css for some sites, the web looks a bit phony to me.

Continue this thread — 1 reply

albedoa1 reply#
Here is a section of the OP in Chrome on macOS with no CSS applied: https://i.imgur.com/AGzy98D.png

I am not in a position to doubt your stated preference, but certainly "it looks rather good to me" does not block you from understanding why others would would want some basic styles applied to the sites they create and visit.

enriquto1 reply#
The OP demo looks better only because the css adds a linebreak after the widgets. But I actually prefer the cleaner look of the default style. A matter of being used to it, probably.

Continue this thread — 1 reply

dredmorbius3 replies#
Which is to say: the defaults can be improved on, greatly, with very modest styling.

Alternatively: the defaults are poor.

Continue this thread — 3 replies

tomatsu#
Markdown themes are also a great starting point.

You only have to set the margins/width of your document and maybe some sort of header & footer and you're done with the CSS your very basic but also very readable website.

ricardobeat2 replies#
http://getskeleton.com has been around since 2013, plus a dozen others. Sounds more like a discoverability issue?
abathur#
Since you are aware of a dozen others: are you aware of a curated list, or set of keywords for finding the majority?

edit: aside from the new list of "classless CSS frameworks/themes" mentioned in @networked's post.

nemo1993#
There is only one example in the website, do you know if there others elsewhere like Github? Can you also let us know the others?
networked#
This is nice and useful. You have inspired me to start a list of classless themes: https://github.com/dbohdan/classless-css. I used part of your demo page as the basis for the comparison screenshots.

Load more comments