-
Notifications
You must be signed in to change notification settings - Fork 9
/
tailwind.config.js
79 lines (78 loc) · 1.9 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
const colors = require('tailwindcss/colors');
//See here: https://tailwindcss.nuxtjs.org/tailwind-config/
module.exports = {
mode: 'jit',
purge: [
'./components/**/*.{vue,js}',
'./layouts/**/*.vue',
'./pages/**/*.vue',
'./plugins/**/*.{js,ts}',
'./nuxt.config.{js,ts}',
],
important: true,
// prefix: 'tw-',
darkMode: false, // or 'media' or 'class'
theme: {
colors: {
transparent: 'transparent',
current: 'currentColor',
white: '#fff',
teal: colors.teal,
orange: colors.orange,
gray: colors.trueGray,
red: colors.red,
yellow: colors.yellow,
green: colors.green,
black: colors.black,
bg: '#F7F7FA', //Background color
},
fontFamily: {
inter: ['Inter', 'sans-serif'],
},
extend: {
boxShadow: {
base: '0 5px 20px 0 rgba(0, 0, 0, 0.05)', //Card shadow
},
fontSize: {
xxs: '0.6rem',
},
},
},
variants: {
extend: {},
},
plugins: [
//tailwindcss-aspect-ratio https://github.com/tailwindlabs/tailwindcss-aspect-ratio
require('@tailwindcss/aspect-ratio'),
//tailwind-css-variables https://github.com/omarkhatibco/tailwind-css-variables
require('tailwind-css-variables')(
{
//Disable others as we only need to leak the colors to css vars
colors: 'color',
screens: false,
fontFamily: false,
fontSize: false,
fontWeight: false,
lineHeight: false,
letterSpacing: false,
backgroundSize: false,
borderWidth: false,
borderRadius: false,
width: false,
height: false,
minWidth: false,
minHeight: false,
maxWidth: false,
maxHeight: false,
padding: false,
margin: false,
boxShadow: false,
zIndex: false,
opacity: false,
},
{
// options
}
),
],
};