We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Not:
export const gray = { gray1: "#fcfcfc", gray2: "#f9f9f9", gray3: "#f0f0f0", // etc. };
But:
export const gray = { 1: "#fcfcfc", 2: "#f9f9f9", 3: "#f0f0f0", // etc. };
This gives the ability to swap colors dynamically:
function createTheme(palette: Palette) { return { background: palette[1], foreground: palette[12], // etc. } } const blueTheme = createTheme(colors.blue) const redTheme = createTheme(colors.red)
For example, Tailwind does the same.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Not:
But:
This gives the ability to swap colors dynamically:
For example, Tailwind does the same.
The text was updated successfully, but these errors were encountered: