The Future of CSS: Target Multiple Classes with the Class Prefix Selector

2 months ago by codeinabox to c/css

To target multiple classes that share the same prefix, you'd typically have to resort to adding an extra base classes to your markup or to using badly performing attribute selectors. To make things easier, CSS is getting a new selector: The Class Prefix Selector (.prefix-*).
Marthirial 6 points 2 months ago

Oh come on. It is 2026. Add a dark mode to your blog. You literally write about CSS.

path: 0 25426954, hotness: undefined, score: 6, children: 1
turbowafflz 2 points 2 months ago

you have to earn dark mode by reading the blog enough to write a nice dark mode userstyle

path: 0 25426954 25427446, hotness: undefined, score: 2, children: 0
css
css

@programming.dev

login for more options
840
358
77

go to feed...