Mia on Nostr: - I like CSS partials - I like layering partials on import - I like avoiding build ...
- I like CSS partials
- I like layering partials on import
- I like avoiding build steps
The simplest option is:
<style>
@layer reset, config, etc;
@import url('reset.css') layer(reset);
@import url('config/colors.css') layer(config);
@import url('config/sizes.css') layer(config);
@import url('config/fonts.css') layer(config);
@import url('default/type.css') layer(default);
/* etc… */
</style>
But I have a decades-old fear of 'too many' imports. Is that a real, modern concern?
Published at
2024-07-06 21:22:05Event JSON
{
"id": "e128edbd43724724c42ff386ca8c71e4529c43907ff20d596783c1ad4ce1d4cd",
"pubkey": "809bdab64c679def5ac784669c3b7169a965e655dd8ba004de17a688d49d36a7",
"created_at": 1720300925,
"kind": 1,
"tags": [
[
"proxy",
"https://front-end.social/@mia/112741641485635928",
"web"
],
[
"proxy",
"https://front-end.social/users/mia/statuses/112741641485635928",
"activitypub"
],
[
"L",
"pink.momostr"
],
[
"l",
"pink.momostr.activitypub:https://front-end.social/users/mia/statuses/112741641485635928",
"pink.momostr"
],
[
"expiration",
"1722974384"
]
],
"content": "- I like CSS partials\n- I like layering partials on import\n- I like avoiding build steps\n\nThe simplest option is:\n\n\u003cstyle\u003e\n @layer reset, config, etc;\n @import url('reset.css') layer(reset);\n @import url('config/colors.css') layer(config);\n @import url('config/sizes.css') layer(config);\n @import url('config/fonts.css') layer(config);\n @import url('default/type.css') layer(default);\n /* etc… */\n\u003c/style\u003e\n\nBut I have a decades-old fear of 'too many' imports. Is that a real, modern concern?",
"sig": "eb695c16b9334cd0f7fa066203080bb483a30b2846ced7861e601e420b16bfdf9d5577c81a163e304db5a3dc4602f5463e55b3c8cd29b6a008e33a496e89ba06"
}