project-utilapp-themetoggler-web
v2.0.1
Published
Used to centralize the style and switch themes between the fractale applications.
Readme
Project-UtilApp-ThemeToggler-Web
Used to centralize the style and switch themes between the fractale applications.
How to implement
- Import the module
@import '[module path here]/Theme.css';- In
tailwind.config.js:
const sharedConfig = require('[module path here]/tailwind.config.js'); // <-- Import the tailwind.config.js from the module
module.exports = {
darkMode: 'class',
content: [...],
theme: {
extend: {
...sharedConfig.theme.extend, // <-- Add this
},
},
plugins: [],
};