-
-
Notifications
You must be signed in to change notification settings - Fork 28
/
Copy pathtailwind.config.js
60 lines (48 loc) · 1.5 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
55
56
57
58
59
60
const defaultTheme = require('tailwindcss/defaultTheme')
const defaultColors = require('tailwindcss/colors')
const { tailwindcssOriginSafelist } = require('@headlessui-float/vue')
module.exports = {
content: [
'./components/**/*.{js,vue,ts}',
'./layouts/**/*.vue',
'./pages/**/*.vue',
'./plugins/**/*.{js,ts}',
// @see https://github.com/nuxt/nuxt/issues/13278#issuecomment-1397293398
// './nuxt.config.{js,ts}',
'error.vue',
'./app.vue'
],
safelist: [...tailwindcssOriginSafelist],
theme: {
extend: {
colors: {
primary: defaultColors.sky,
accent: defaultColors.violet,
/**
* Used for the background
*/
base: {
// TODO: remember that borders, and backgrounds use 20% opacity: border-base-0/20
// TODO: E.g: border-base-0/20 & bg-base-0/20
// TODO: Maybe create a specific attribute?
0: defaultColors.white,
...defaultColors.gray,
1000: defaultColors.black
},
/**
* Used for text and icons on the background
*/
'base-content': {
hover: defaultColors.white,
highlight: defaultColors.gray[200],
DEFAULT: defaultColors.gray[400]
}
},
fontFamily: {
/* TODO: Change to inter var */
sans: ['Inter', ...defaultTheme.fontFamily.sans]
}
}
},
plugins: [require('@tailwindcss/forms'), require('@tailwindcss/typography'), require('@headlessui/tailwindcss')]
}