Toot

Written by kit πŸŒƒπŸ‘Άβ˜• on 2025-01-04 at 16:46

CSS wonks in my TL: I know you can make "global" CSS variables by defining them in a :root, but can you make-and-then-access namespaced variables?

I'm getting a lot of colours and I want to not have to prefix them with --colour at each definition, but be able to access them with something like var(--colour.body-text) (admitting that that particular syntax is not real, but something that feels like that).

TIA as they say.

[#]CSS #TechHelp

=> More informations about this toot | View the thread | More toots from wlonk@mastodon.transneptune.net

Mentions

Tags

=> View css tag | View techhelp tag

Proxy Information
Original URL
gemini://mastogem.picasoft.net/toot/113771099612923575
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
245.472806 milliseconds
Gemini-to-HTML Time
0.372588 milliseconds

This content has been proxied by September (3851b).