-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtailwind.config.js
More file actions
29 lines (28 loc) · 837 Bytes
/
tailwind.config.js
File metadata and controls
29 lines (28 loc) · 837 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/** @type {import('tailwindcss').Config} */
export default {
content: [
"./index.html",
"./src/**/*.{js,ts,jsx,tsx}",
],
theme: {
extend: {},
},
plugins: [require('daisyui'),],
daisyui: {
themes: ['light', 'dark'],
},
}
// const [theme, setTheme] = React.useState('light');
// const toggleTheme = () => {
// setTheme(theme === 'dark' ? 'light' : 'dark');
// };
// // initially set the theme and "listen" for changes to apply them to the HTML tag
// React.useEffect(() => {
// document.querySelector('html').setAttribute('data-theme', theme);
// }, [theme]);
// return (
// <label className="swap swap-rotate">
// <input onClick={toggleTheme} type="checkbox" />
// <div className="swap-on">DARKMODE</div>
// <div className="swap-off">LIGHTMODE</div>
// </label>