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
=> View css tag | View techhelp tag This content has been proxied by September (3851b).Proxy Information
text/gemini