4 ms·
See this is the thing that gets me though. bg:white is exactly the problem. What if I want to change all my white backgrounds to #FCFCFC? I've got the option o
by _AzMoo 6y ago
See this is the thing that gets me though.
bg:white is exactly the problem. What if I want to change all my white backgrounds to #FCFCFC? I've got the option of going through and updating all my components individually or updating bg:white to be a non-white value.
- jasim 6y agoIf you were building a themeable website, then you'd not be using bg:white; instead you'd use something like bg:main or something similar with a semantic meaning. This kind of customization is one of Tailwind's core workflow.
- kangabru 6y agoEverything is generated through a config file which you can completely customise. So you could literally change the colour of bg-white if you wanted to. It's part of the selling point, that config file becomes your design system. They provide a decent one but you are free to overhaul it as you see fit. It works really well.
- PKop 6y agoThis is a trivial, supported use case with Tailwind. Read the docs for a few minutes and try it out, you may come to different conclusions than your current assumptions.