-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.js
132 lines (130 loc) · 3.64 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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
/* eslint-disable import/no-extraneous-dependencies */
/* eslint-disable global-require */
module.exports = {
darkMode: 'class',
purge: {
content: ['./src/**/*.tsx', './public/index.html'],
},
theme: {
fontFamily: {
sans: [
'Montserrat',
'system-ui',
'-apple-system',
'BlinkMacSystemFont',
'Segoe UI',
'Roboto',
'Helvetica',
'Arial',
'sans-serif',
'Apple Color Emoji',
'Segoe UI Emoji',
'Segoe UI Symbol',
'Noto Color Emoji',
],
serif: ['Merriweather', 'Georgia', 'Cambria', 'Times New Roman'],
mono: ['Menlo', 'Monaco', 'Courier New', 'monospace'],
},
extend: {
fontSize: {
tiny: '0.625rem',
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',
'7xl': '5rem',
},
colors: {
button: 'var(--color-button-text)',
transparent: 'transparent',
primary: {
100: 'var(--color-primary-100)',
200: 'var(--color-primary-200)',
300: 'var(--color-primary-300)',
600: 'var(--color-primary-600)',
700: 'var(--color-primary-700)',
800: 'var(--color-primary-800)',
900: 'var(--color-primary-900)',
},
secondary: {
DEFAULT: 'var(--color-secondary)',
'washed-out': 'var(--color-secondary-washed-out)',
},
accent: {
DEFAULT: 'var(--color-accent)',
hover: 'var(--color-accent-hover)',
disabled: 'var(--color-accent-disabled)',
},
black: '#191414',
// Template
green: {
100: '#c7e6cd',
300: '#9dd2a8',
500: '#388d73',
700: '#043330',
},
pastel: {
blue: '#22acd3',
teal: '#12f8a7',
pear: '#d0e835',
},
},
lineHeight: {
tighter: '1.15',
},
boxShadow: {
outlineLg: '0 0 0 4pt var(--color-primary-800)',
outlineMd: '0 0 0 2pt var(--color-primary-800)',
outlineSm: '0 0 0 1pt var(--color-primary-800)',
},
borderColor: {
'color-800': 'var(--color-primary-800)',
},
transitionTimingFunction: {
'in-out-hard': 'cubic-bezier(.77, 0, .175, 1)',
},
transitionDuration: {
400: '400ms',
},
keyframes: {
breathe: {
'0%, 100%': {
boxShadow: '0 0 20px 2px var(--color-primary-100-translucent)',
borderColor: 'var(--color-primary-300)',
},
'50%': {
boxShadow: '0 0 20px 2px transparent',
borderColor: 'var(--color-primary-700)',
},
},
float: {
'0%, 100%': { transform: 'translateY(0)' },
'50%': { transform: 'translateY(-5%)' },
},
},
animation: {
'breathe-slow': 'breathe 5s infinite ease-in-out',
float: 'float 3s ease-in-out infinite',
},
},
},
variants: {
scrollbar: ['rounded', 'dark'],
extend: {
borderWidth: ['last'],
},
// Template added
backgroundColor: ['responsive', 'hover', 'focus', 'group-hover'],
textColor: ['responsive', 'hover', 'focus', 'group-hover'],
translate: ['responsive', 'hover', 'focus', 'group-hover'],
boxShadow: ['responsive', 'hover', 'focus', 'focus-within'],
opacity: ['responsive', 'hover', 'focus', 'group-hover'],
},
plugins: [require('tailwind-scrollbar'), require('@tailwindcss/line-clamp')],
};