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
Describe the bug
I'm trying to overwrite the default theme with a custom theme. I can't find any documentation, so I apologize in advance to create an issue.
My code works, but I get some type errors. It will be great if you can provide some examples.
shinokada
changed the title
[Question: ]How to overwrite the default theme with a custom theme
Question: How to overwrite the default theme with a custom theme
Nov 29, 2024
Describe the bug
I'm trying to overwrite the default theme with a custom theme. I can't find any documentation, so I apologize in advance to create an issue.
My code works, but I get some type errors. It will be great if you can provide some examples.
To Reproduce
I have the following default tailwind-variants:
My library has many components and all component has similar theme.
In order to a user can overwrite this, I am making a new component.
types.ts
And merging function in the following code using
deepmerge
package.An example of theme.
Screenshots
N/A
Desktop (please complete the following information):
Smartphone (please complete the following information):
The text was updated successfully, but these errors were encountered: