Adam Fortuna on Nostr: I've started trying out CSS Modules ( ...
I've started trying out CSS Modules (
https://nextjs.org/docs/pages/building-your-application/styling/css-modules ) rather than my usual Tailwind.css for a new Next.js project - and I see why people like this!
Being able to include exactly the styles for a page makes for super-tiny CSS files.
My only concern so far is that it's not inlining critical CSS at the top of the page (but maybe there's a way to do that?).
#css #tailwind #tailwindcss
Published at
2023-11-15 16:38:21Event JSON
{
"id": "f4555d9844bfd949049ef12b0c1f3de4de93d0bd3a2de9aa6a1d2ebe4e2cfcfa",
"pubkey": "5cf7f55d7d3955906288adf648774f6456ca2ef8e2248cfb05cbc86b5715bbd0",
"created_at": 1700066301,
"kind": 1,
"tags": [
[
"t",
"css"
],
[
"t",
"tailwind"
],
[
"t",
"tailwindcss"
],
[
"proxy",
"https://ruby.social/users/adam/statuses/111415545120513259",
"activitypub"
]
],
"content": "I've started trying out CSS Modules ( https://nextjs.org/docs/pages/building-your-application/styling/css-modules ) rather than my usual Tailwind.css for a new Next.js project - and I see why people like this!\n\nBeing able to include exactly the styles for a page makes for super-tiny CSS files.\n\nMy only concern so far is that it's not inlining critical CSS at the top of the page (but maybe there's a way to do that?).\n\n#css #tailwind #tailwindcss",
"sig": "1b5f3d6831c95e752fcff541506290a8b22b444d1c2096c0691fca65a9724aeac08643af98710aeaf552251342a0e8fe80d9e5532688b3017a51204194a02146"
}