Best Practice for reusable partials / components? #2838
Unanswered
MrMacStripe
asked this question in
Help
Replies: 1 comment
-
having a color palette is useful for consistency (and not overuse different colors). ex.
and you can use it like other colors
you can also create a plugin for each component in your config file.
then use the new class in your app
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey everyone,
I've built something similar to TailwindUi for my business to quickly spin up websites for clients. I'm always tinkering with the theming and putting in a lot of work to basically change colors.
What do you think would be best practice with Tailwind to make this more dynamic? Abstract the color names to something like primary / secondary and only use those, which would in turn limit again to a two colored-brand? Another idea I had was to declare descriptive color names like pageBg, containerBg, elementBG and so, but that is also limited as soon as you have a colorful brand.
Maybe I'm overcomplicating things and it's expected to do the color adjustments by hand?
Thanks for your input 👍
Beta Was this translation helpful? Give feedback.
All reactions