This repository has been archived by the owner on Aug 10, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
/
tailwind.config.js
170 lines (167 loc) · 4.19 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
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
const themeConfig = require('@dvcorg/gatsby-theme-iterative/tailwind.config')
const defaultTheme = require('tailwindcss/defaultTheme')
const plugin = require('tailwindcss/plugin')
// eslint-disable-next-line @typescript-eslint/no-unused-vars
const { lg, xs, xl, ...maxScreens } = themeConfig.theme.extend.screens
module.exports = {
content: [
...themeConfig.content,
'./src/**/*.js',
'./src/**/*.jsx',
'./src/**/*.ts',
'./src/**/*.tsx'
],
darkMode: 'media',
theme: {
colors: {
transparent: 'transparent',
gray: {
100: '#F9F9FA;',
200: '#F1F1F4',
400: '#B1B5BE',
600: '#7A818F',
700: '#6F7685',
750: '#515661',
800: '#484B50',
900: '#2E3137',
bg: '#F5F7F8'
},
teal: {
400: '#26B3CB',
DEFAULT: '#13ADC7',
600: '#1198AF',
800: '#1497B8'
},
orange: {
400: '#F6855D',
DEFAULT: '#F46737',
600: '#1198AF',
800: ' #DD5236'
},
purple: {
400: '#A475DC',
DEFAULT: '#945DD6',
600: '#8C58CA',
800: '#7E51C2'
},
red: {
400: '#FC8181'
},
yellow: {
400: '#FFE999'
},
green: {
400: '#68D391'
},
black: '#000',
white: '#fff'
},
fontSize: {
xxxs: '0.625rem', // 10px
xxs: '0.6875rem', // 11px
xs: '0.75rem', // 12px
sm: '0.8125rem', // 13px
tiny: '0.875rem', // 14px
base: '1rem', // 16px
lg: '1.125rem', // 18px
xl: '1.25rem', // 20px
'2xl': '1.375rem', // 22px
'3xl': '1.5rem', // 24px
'4xl': '1.625rem', // 26px
'5xl': '1.75rem', // 28px
'6xl': '1.875rem', // 30px
'7xl': '2rem', // 32px
'8xl': '2.125', // 34px
'9xl': '2.25rem' // 36px
},
lineHeight: {
1: '0.625rem', // 10px,
2: '0.75rem', // 12px
3: '0.875rem', // 14px
4: '1rem', // 16px
5: '1.125rem', // 18px
6: '1.25rem', // 20px
7: '1.375rem', // 22px
8: '1.5rem', // 24px
9: '1.625rem', // 26px
10: '1.75rem', // 28px
11: '1.875rem', // 30px
12: '2rem', // 32px
13: '2.5rem', // 40px
14: '3rem', // 48px
15: '3.5rem' // 56px
},
fontFamily: {
brandon: '"BrandonGrotesque", "Tahoma", "Arial", sans-serif',
mono: 'ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace'
},
borderRadius: {
full: '50%',
4: '4px',
6: '6px',
8: '8px'
},
screens: {
xs,
...defaultTheme.screens,
...maxScreens
},
extend: {
borderOpacity: {
33: '0.33'
},
borderWidth: {
5: '5px'
},
backgroundOpacity: {
33: '0.33'
},
backgroundImage: {
'teal-purple-gradient':
'linear-gradient(93.14deg, #13ADC7 0%, #945DD6 100%);',
'teal-purple-gradient-light':
'linear-gradient(93.14deg, #26B3CB 0%, #A475DC 100%)',
'teal-purple-gradient-dark':
'linear-gradient(93.14deg, #1198AF 0%, #8C58CA 100%)',
'layout-gradient': 'linear-gradient(180deg, #F5F7F8 0%, #FFFFFF 100%)',
'orange-purple-gradient':
'linear-gradient(270deg, #945DD6 0%, #F46737 100%)',
'orange-gradient': 'linear-gradient(#F46737, #F46737)'
},
keyframes: {
blink: {
'0%, 100%': {
opacity: '1'
},
'50%': {
opacity: '0'
}
}
},
animation: {
blink: 'blink 1s ease-in-out infinite'
}
}
},
variants: {
animation: ['responsive', 'motion-safe', 'motion-reduce'],
extend: {}
},
plugins: [
...themeConfig.plugins,
plugin(function ({ addUtilities }) {
const newUtilities = {
'.text-gradient': {
'-webkit-text-fill-color': 'transparent',
'-moz-text-fill-color': 'transparent',
'background-clip': 'text',
'-webkit-background-clip': 'text',
'-moz-background-clip': 'text',
'background-color': 'black',
'background-size': '100%'
}
}
addUtilities(newUtilities)
})
]
}