TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Lit: A ridiculously small responsive CSS framework

240 pointsby spkingabout 5 years ago

14 comments

fimdomeioabout 5 years ago
Love to know the current general feeling on css framworks around hn crowd. Personally I'm using them less and less as css evolves. You can have a pretty good responsive grid with just a few lines of css as for the other things I end up styling them a lot to my own needs so frameworks don't provide me that much value.
评论 #23058646 未加载
评论 #23058266 未加载
评论 #23059382 未加载
评论 #23058508 未加载
评论 #23060325 未加载
folkhackabout 5 years ago
Hasn&#x27;t had any updates for two years and looks like it&#x27;s doing something weird with the base font inclusion assuming you have &quot;nunito&quot; already (not a safe assumption).<p>Also I&#x27;d suggest to anyone to potentially avoid using CSS vars if you&#x27;re looking for enterprise browser support due to old IE. Obviously make your own decisions on this one but it I think 10 starts getting really weird with them...<p>All-in-all for the limited benefit this micro-lib brings I&#x27;d say go to something that&#x27;s popular&#x2F;supported vs. a project that hasn&#x27;t seen a commit in 2 years.
评论 #23056136 未加载
评论 #23056047 未加载
评论 #23056339 未加载
评论 #23056191 未加载
评论 #23058353 未加载
评论 #23057301 未加载
colordropsabout 5 years ago
Name will probably be confused with Google&#x27;s web component frameworks Lit HTML and Lit Element.
thrownaway954about 5 years ago
three thing just killed it for me right away<p>1) the grid doesn&#x27;t have gaps between columns. look at the form example, see how the two form field are right next to each other with no gap between them... that will cause a lot of headaches trying to layout even a slightly more complex form.<p>2) the naming of the colors in the util is inconsistent... they follow bootstrap with info, error, success, but then go with black, white, gray??? wtf is that. what about just sticking with the bootstrap naming and using dark, light, and default like they do. why switch when you already copied 80% of bootstrap&#x27;s naming convention? makes no sense.<p>3) back to the grid. there are no viewpoint or reordering classes. do you know how much of a life saver it is to change the column order between devices with a simple order-md-2 in bootstrap. my god... if you ever had to do css trickery to move an element on mobile you see that the reordering in the grid is a god send.<p><a href="https:&#x2F;&#x2F;getbootstrap.com&#x2F;docs&#x2F;4.0&#x2F;layout&#x2F;grid&#x2F;#reordering" rel="nofollow">https:&#x2F;&#x2F;getbootstrap.com&#x2F;docs&#x2F;4.0&#x2F;layout&#x2F;grid&#x2F;#reordering</a><p>i&#x27;m sorry, but i personally see these micro frameworks as traps. bootstrap is very easy to recompile and strip out what you don&#x27;t need to roll your own essentially.
评论 #23058073 未加载
spkingabout 5 years ago
Picnic is another very nice and compact option:<p><a href="https:&#x2F;&#x2F;picnicss.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;picnicss.com&#x2F;</a>
评论 #23056665 未加载
marbanabout 5 years ago
Settled with <a href="https:&#x2F;&#x2F;picturepan2.github.io&#x2F;spectre&#x2F;" rel="nofollow">https:&#x2F;&#x2F;picturepan2.github.io&#x2F;spectre&#x2F;</a> (After having tried close to 50 frameworks)
评论 #23057975 未加载
smlckzabout 5 years ago
<p><pre><code> .\31{width:5%} .\33{width:22%} .\34{width:30%} .\35{width:40%} .\32{width:15%} </code></pre> huh? can you tell me what those \31 \33 etc. mean?
评论 #23056620 未加载
评论 #23056584 未加载
评论 #23056600 未加载
zozbot234about 5 years ago
I&#x27;m a bit confused - is the name of this project &quot;lit&quot; or &quot;lit [U+1F525 FIRE]&quot;? The linked page has the latter as a heading, and the more complete name would also resolve the ambiguity with existing projects that others are pointing out.
zeuslyabout 5 years ago
Whats the reason for using a form with a button instead of a link?<p><pre><code> &lt;form action=&quot;docs&#x2F;lit.html&quot;&gt; &lt;button class=&quot;mt1 btn primary white bold&quot; type=&quot;submit&quot;&gt;Get Started&lt;&#x2F;button&gt; &lt;&#x2F;form&gt;</code></pre>
ateevchopraabout 5 years ago
Thanks for sharing this. 365 bytes gzipped is really amazing ! A lot of times for a simple page, just the basics like grids and all, I use custom trimmed down bootstrap. I would love to give this a try and some feedback on the experience !
hendryabout 5 years ago
Any minimal CSS for prefers-color-scheme: dark?<p>Only aware of <a href="https:&#x2F;&#x2F;kognise.github.io&#x2F;water.css&#x2F;" rel="nofollow">https:&#x2F;&#x2F;kognise.github.io&#x2F;water.css&#x2F;</a>
SeanLukeabout 5 years ago
Because it&#x27;s got a frame around it Lit&#x27;s non-primary button looks like the primary button. To me.
antidailyabout 5 years ago
Looks ok. But make those inputs 16px or higher so they don’t zoom screen on mobile. Select looks crunched.
avallarkabout 5 years ago
Really nice. I was looking for something to use on my blog. I will try this out now.
评论 #23057348 未加载