Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to change one of them's attribute color run time and dynamically #6

Open
saberpooyan opened this issue May 13, 2024 · 0 comments
Open

Comments

@saberpooyan
Copy link

Hi, I need to change for example just my primary color run time. In case I have the below code in tailwind.config.js class, I want to add a feature to the theme manager that could change just the primary variable color to colors.blue[600] or anything else by end-user without changing the current theme.
What do you think I should do?

const themes = {
// Default theme is required for theming system to work correctly!
default: {
primary: {
...colors.slate,
DEFAULT: colors.slate[500],
},
secondary: {
...colors.lime,
DEFAULT: colors.lime[500],
}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant