rippleui icon indicating copy to clipboard operation
rippleui copied to clipboard

tailwindcss `darkMode` configuration is not being respected.

Open eslym opened this issue 2 years ago • 3 comments

Is your feature request related to a problem? Please describe. tailwindcss darkMode configuration is not being respected.

module.exports = {
	darkMode: 'class' // this has no effect for ripple ui
}

Describe the solution you'd like please add a way to change the theme programmatically

eslym avatar Apr 28 '24 00:04 eslym

That's the tailwindcss configuration you need to pass the right config from ripple ui in to the tailwind config check here

https://www.ripple-ui.com/docs/get-started/customization#how-to-customize-default-themes

Siumauricio avatar Apr 28 '24 01:04 Siumauricio

i read through the code and realize i can use data-theme="x" to achieve what i need, but there is no mention of this in documentation

eslym avatar Apr 28 '24 01:04 eslym

That's correct, that's the way to force a theme

Siumauricio avatar Apr 28 '24 03:04 Siumauricio