You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
won't result in the black color having the value of #000000 in the config viewer since we are displaying backgroundColor, textColor and borderColor and the replacement happens after the config is resolved.
In order for this to work correctly you would need to specify the following:
Given that the most common scenario for themeReplacements is to replace css variables that are used for values in your tailwind.config file, the following would be a better implementation:
see: #17
The current implementation of the themeReplacements option doesn't work unless you specify the expanded key/value pair. For instance:
won't result in the black color having the value of
#000000
in the config viewer since we are displaying backgroundColor, textColor and borderColor and the replacement happens after the config is resolved.In order for this to work correctly you would need to specify the following:
Given that the most common scenario for
themeReplacements
is to replace css variables that are used for values in your tailwind.config file, the following would be a better implementation:Then a simple find/replace on the resolved config JSON string will handle the replacements.
Unfortunately this will be a small breaking change.
The text was updated successfully, but these errors were encountered: