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.

How to Structure Your CSS Better as Components

1 pointsby jehna1over 7 years ago

2 comments

PaulHouleover 7 years ago
The other day I was looking at the output of nbconvert (turns Jupyter notebooks to HTML) and found the default template embeds over 10,000 lines of CSS!<p>I see the point of munging the names of CSS classes and I&#x27;m very interested in the problem of cutting up N HTML documents to produce an N+1 HTML document, which probably requires this.<p>However, I&#x27;m also increasingly concerned about the sheer size of web sites and applications that people are building today and one factor there seems to be more and more stuff that gets added to the stack.
maxharrisover 7 years ago
Neat! If you&#x27;re looking for a more advanced library that&#x27;s easier to use, try <a href="https:&#x2F;&#x2F;www.styled-components.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.styled-components.com&#x2F;</a>
评论 #15572537 未加载