Last month the Radix team released Radix Themes. A very great library on top of their already amazing components. If the quality of their headless components tells me anything, this Radix Themes should be amazing!!
Unfortunately, even though their components are amazing, the way they wrote their CSS made me cry a little bit.. The specificity of their CSS selectors is SO high, it becomes impossible to quickly override a single style for a single button. !important hell is already knocking on your door!
But... Remember last week's video?.. This seems like a PERFECT use case for CSS Cascade Layers! In this video we'll explore if CSS Cascade Layers can help is with making it easier to override their styles (spoiler: they do!).
✨ Become a PRO today via www.frontend.f...
💬 Join us on Discord: www.frontend.f...
🔗 Check the code and read the article: www.frontend.f...
🔗 Read more about cascade layers in article form here: www.frontend.f...
🔗 Last week's video about CSS Cascade Layers: • Still using !important...
👀 Timestamps
00:00 - Intro
00:17 - Brief look at Radix Themes
00:45 - Looking at the bad CSS Radix wrote
02:21 - The fix: CSS Cascade Layers!
02:48 - Add the cascade layers
03:53 - The tailwind classes now overrule radix ui
05:23 - Small note on using @ layer with Tailwind
06:00 - Outro
06:53 - Don't forget to check fe.fyi/pro
#css #radixthemes #cascadelayers #frontend #webdevelopment #frontendfyi
16 авг 2024