Skip to content

Commit 75d0156

Browse files
committed
Really migrate to esm
1 parent a04edd6 commit 75d0156

File tree

1 file changed

+6
-14
lines changed

1 file changed

+6
-14
lines changed

tailwind.config.js

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
import { addIconSelectors } from '@iconify/tailwind'
2+
import typography from '@tailwindcss/typography'
3+
import daisyui from 'daisyui'
24
import dt from 'tailwindcss/defaultTheme'
5+
import themes from 'daisyui/src/theming/themes'
36

47
/** @type {import('tailwindcss').Config} */
58
export default {
@@ -11,22 +14,11 @@ export default {
1114
}
1215
}
1316
},
14-
plugins: [addIconSelectors(['mdi']), require('@tailwindcss/typography'), require('daisyui')],
17+
plugins: [addIconSelectors(['mdi']), typography, daisyui],
1518
daisyui: {
1619
themes: [
17-
{
18-
light: {
19-
...require('daisyui/src/theming/themes')['light'],
20-
primary: '#1C75BC',
21-
'primary-content': 'white'
22-
}
23-
},
24-
{
25-
dark: {
26-
...require('daisyui/src/theming/themes')['dark'],
27-
primary: '#1C75BC'
28-
}
29-
}
20+
{ light: { ...themes['light'], primary: '#1C75BC', 'primary-content': 'white' } },
21+
{ dark: { ...themes['dark'], primary: '#1C75BC' } }
3022
]
3123
}
3224
}

0 commit comments

Comments
 (0)