generated from sonofmagic/monorepo-template
-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathtailwind.config.js
54 lines (53 loc) · 1.39 KB
/
tailwind.config.js
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
const path = require('node:path')
const { iconsPlugin, getIconCollections } = require('@egoist/tailwindcss-icons')
const { createTailwindcssContent } = require('@icestack/cva')
const { icestackPlugin } = require('@icestack/tailwindcss')
// const plugin = require('tailwindcss/plugin')
// const plugin = require('tailwindcss/plugin')
/** @type {import('tailwindcss').Config} */
module.exports = {
content: [
'./pages/**/*.{js,ts,jsx,tsx,mdx,md}',
'./components/**/*.{js,ts,jsx,tsx,mdx,md}',
'./theme.config.jsx',
{
// https://github.com/tailwindlabs/tailwindcss/issues/11134
raw: 'dark',
},
createTailwindcssContent(),
],
theme: {},
plugins: [
// plugin(({ addBase }) => {
// addBase({
// '.dark': {
// '--xxxxx': 'xxxxxxx'
// },
// ':root': {
// '--rrr': 'rrr'
// },
// html: {
// '--xx': 'yyyy'
// },
// 'html.dark': {
// '--ccc': 'cccc'
// },
// '[data-theme=dark]': {
// '--dsad': 'fds'
// }
// })
// }),
icestackPlugin({
loadDirectory: path.resolve(__dirname, './my-ui'),
loadConfig: true,
}),
iconsPlugin({
collections: getIconCollections(['mdi']),
}),
// plugin.withOptions(() => {
// const a = require('lodash')
// a.add(1, 2)
// return () => {}
// })
],
}