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

Add Option for modifying the CSS variables format #10

Closed
midhunadarvin opened this issue Apr 25, 2023 · 1 comment
Closed

Add Option for modifying the CSS variables format #10

midhunadarvin opened this issue Apr 25, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@midhunadarvin
Copy link

midhunadarvin commented Apr 25, 2023

Currently the format for css variables is : --twc-[color name]

Can we add option to modify the variables as per user needs?

@L-Blondy L-Blondy added the enhancement New feature or request label Apr 25, 2023
@L-Blondy
Copy link
Owner

Added CSS variable customisation in 1.2.5:

module.exports = {
      // ...your tailwind config
      plugins: [
         createThemes({
            'light': { 
               'primary': 'steelblue',
            },
            'dark': { 
               'primary': 'turquoise',
            },
         }, {
            cssVariablePrefix: 'prefix-', 
            cssVariableSuffix: '-suffix' 
         })
      ],
   };

Will generate --prefix-primary-suffix

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

No branches or pull requests

2 participants