-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.js
102 lines (100 loc) · 2.13 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
/*
** TailwindCSS Configuration File
**
** Docs: https://tailwindcss.com/docs/configuration
** Default: https://github.com/tailwindcss/tailwindcss/blob/master/stubs/defaultConfig.stub.js
*/
const colors = require('tailwindcss/colors')
const plugin = require('tailwindcss/plugin')
module.exports = {
content: [
'./components/**/*.{js,vue,ts}',
'./layouts/**/*.vue',
'./pages/**/*.vue',
'./plugins/**/*.{js,ts}',
'./nuxt.config.{js,ts}',
],
theme: {
colors: {
transparent: 'transparent',
current: 'currentColor',
black: {
DEFAULT: '#111',
},
green: {
DEFAULT: '#92C020',
},
white: colors.white,
gray: colors.neutral,
indigo: colors.indigo,
red: colors.rose,
yellow: colors.amber,
},
container: {
center: true,
padding: {
DEFAULT: '1.5rem',
sm: '2rem',
md: '3rem',
lg: '4rem',
xl: '5rem',
},
},
fontFamily: {
sans: ['Heebo', 'Helvetica Neue', 'Helvetica', 'Arial', 'sans-serif'],
serif: ['Kalam', 'Heebo', 'serif'],
},
maxHeight: {
full: '100%',
screen: '100vh',
450: '450px',
650: '650px',
850: '850px',
},
extend: {
fontSize: {
0: 0,
},
spacing: {
'1/3': '33.333333%',
'2/3': '66.666666%',
},
scale: {
'-1': '-1',
},
minHeight: {
32: '8rem',
},
},
},
variants: {
extend: {
scale: ['direction'],
ringColor: ['focus-visible'],
ringOffsetColor: ['focus-visible'],
ringOffsetWidth: ['focus-visible'],
ringOpacity: ['focus-visible'],
ringWidth: ['focus-visible'],
},
},
plugins: [
require('tailwindcss-rtl'),
require('tailwindcss-dir'),
plugin(function ({ addUtilities }) {
const newUtilities = {
'.rtl': {
direction: 'rtl',
},
'.ltr': {
direction: 'ltr',
},
'.dir': {
direction: 'inherit',
},
}
addUtilities(newUtilities, {
variants: ['responsive'],
})
}),
],
}