-
Notifications
You must be signed in to change notification settings - Fork 1
/
tailwind.config.js
102 lines (91 loc) · 2.8 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
const defaultTheme = require('tailwindcss/defaultTheme')
module.exports = {
future: {
// https://tailwindcss.com/docs/upcoming-changes#remove-deprecated-gap-utilities
removeDeprecatedGapUtilities: true,
// https://tailwindcss.com/docs/upcoming-changes#purge-layers-by-default
purgeLayersByDefault: true,
},
purge: {
// Learn more on https://tailwindcss.com/docs/controlling-file-size/#removing-unused-css
enabled: process.env.NODE_ENV === 'production',
content: [
'components/**/*.vue',
'layouts/**/*.vue',
'pages/**/*.vue',
'plugins/**/*.js',
'nuxt.config.js',
],
},
theme: {
fontMetrics: {
sans: {
capHeight: 2048,
ascent: 2728,
descent: -680,
lineGap: 0,
unitsPerEm: 2816,
},
},
fontSize: {
xs: '.75rem',
sm: '.875rem',
base: '1rem',
lg: '1.125rem',
xl: '1.25rem',
'2xl': '1.5rem',
'3xl': '1.875rem',
'4xl': '2.25rem',
'5xl': '3rem',
'6xl': '4rem',
},
extend: {
boxShadow: {
a:
'0 2px 10px rgba(0, 0, 0, 0.12), 0 20px 50px 0 rgba(0, 0, 0, 0.14)',
b:
'0 2px 10px rgba(0, 0, 0, 0.12), 0 50px 50px 0 rgba(0, 0, 0, 0.1)',
},
colors: {
grey: {
100: '#f1f2f2',
200: '#e7ebed',
300: '#dee4e8',
400: '#c0c8cd',
500: '#949ca1',
600: '#62696d',
700: '#393e41',
800: '#202326',
900: '#16191b',
},
},
fontFamily: {
sans: ['Inter', ...defaultTheme.fontFamily.sans],
},
inset: {
8: '2rem',
},
letterSpacing: {
mega: '0.25em',
},
typography: {
DEFAULT: {
css: {
code: {
padding: '0.1875rem 0.25rem',
margin: '0 1px',
backgroundColor: 'rgba(0, 0, 0, 0.05)',
borderRadius: '0.125rem',
},
'code::before': { content: 'none' },
'code::after': { content: 'none' },
},
},
},
},
},
plugins: [
require('@tailwindcss/typography'),
require('tailwindcss-capsize').default({}),
],
}