-
Notifications
You must be signed in to change notification settings - Fork 5
/
tailwind.config.ts
53 lines (51 loc) · 1.48 KB
/
tailwind.config.ts
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
/** @type {import('tailwindcss').Config} */
// import { readFileSync } from 'node:fs'
// import postcss from 'postcss'
// import postcssJs from 'postcss-js'
import headlessPlugin from '@headlessui/tailwindcss'
module.exports = {
content: ['components/**/*.{vue,js}', 'layouts/**/*.vue', 'pages/**/*.vue', 'assets/css/*.{scss,css}'],
darkMode: 'class',
future: {
hoverOnlyWhenSupported: true,
},
theme: {
extend: {
zIndex: {
belowNav: '100',
nav: '150',
aboveNav: '200',
notification: '300',
},
boxShadow: {
all: '0 0 0 1600px rgba(0,0,0,0.65)',
rounded: 'rgb(101 119 134 / 20%) 0px 0px 15px, rgb(101 119 134 / 15%) 0px 0px 3px 1px',
},
colors: {
'dark-2': '#1e2124',
'dark-1': '#282b30',
'dark-3': '#36393e',
'dark-4': '#424549',
'second-1': '#7289da',
'second-2': '#4698eb',
},
},
},
plugins: [
headlessPlugin,
// ({ addBase, addComponents, addUtilities }: any) => {
// const css = readFileSync('./assets/css/tailwindcss.css', 'utf8')
// const root = postcss.parse(css)
// const jss = postcssJs.objectify(root)
// if ('@layer base' in jss) {
// addBase(jss['@layer base'])
// }
// if ('@layer components' in jss) {
// addComponents(jss['@layer components'])
// }
// if ('@layer utilities' in jss) {
// addUtilities(jss['@layer utilities'])
// }
// },
],
}