[question] why do we "need" a defaultTheme
?
#91
Replies: 1 comment
-
Thanks for your question! I'd be happy to give an answer. TLDR: a limitation of tailwind's plugin api. Upvote tailwindlabs/tailwindcss#6980 if you want to see this go away. You're actually onto something. I agree that it would be cleaner to not even have Does this answer your question? (Also thanks for your patience, things have been crazy on my end and now have gotten better where I can get back to open source) |
Beta Was this translation helpful? Give feedback.
-
So, this is not my first time using this plugin, but now I was left wondering...
Why does the plugin require a
defaultTheme
andthemes
instead of justthemes
?Isn't the
defaultTheme
the exact samething as using Tailwind's owntheme
? If not, how are these merged together?From my point of view we have 3 ways of defining and extending our tailwind APIs, when we should have two? I am sure I am missing something and that's my goal. To understand why we have
theme
,defaultTheme
andthemes
.Beta Was this translation helpful? Give feedback.
All reactions