This repository has been archived by the owner on Jul 17, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
tailwind.config.js
79 lines (78 loc) · 2.45 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
/* eslint-disable import/no-extraneous-dependencies */
const defaultTheme = require('tailwindcss/defaultTheme');
/** @type {import('tailwindcss').Config} */
module.exports = {
content: ['./components/**/*.{ts,tsx}', './modules/**/*.{ts,tsx}', './pages/**/*.{ts,tsx}'],
darkMode: 'media', // or 'class'
theme: {
fontSize: {
...defaultTheme.fontSize,
'3xl': ['1.75rem', '2.5rem'],
'4xl': ['2rem', '3rem'],
},
screens: {
sm: `${370 + 20 * 2}px`, // 370px + (40px padding) = 410px
md: `${770 + 32 * 2}px`, // 770px + (64px padding) = 834px
lg: `${1040 + 32 * 2}px`, // 1040px + (64px padding) = 1104px
},
container: (theme) => ({
center: true,
padding: {
DEFAULT: theme('spacing.5'),
md: theme('spacing.8'),
lg: theme('spacing.8'),
},
}),
extend: {
ringWidth: {
3: '3px',
},
colors: {
neutral: {
50: '#F9FAFB',
100: '#F3F4F6',
200: '#E5E7EB',
300: '#D1D5DB',
400: '#9CA3AF',
500: '#6B7280',
600: '#374A63',
700: '#1D344A',
800: '#162A3D',
900: '#111827',
},
primary: {
lightest: '#76A4D5',
lighter: '#5F95CE',
light: '#4885C7',
DEFAULT: '#3977B9',
dark: '#3167A0',
darker: '#2A5888',
darkest: '#234971',
},
success: {
tint: '#51E186',
DEFAULT: '#22C55E',
shade: '#136D34',
},
error: {
tint: '#F58A8A',
DEFAULT: '#EF4444',
shade: '#BC1010',
},
danger: {
shade: '#E11D48',
},
warning: {
tint: '#F9CD44',
DEFAULT: '#EAB308',
shade: '#856605',
bg: '#fef3c7',
},
modalBg: 'rgba(31, 41, 55, 0.92)',
},
},
},
variants: {
extend: {},
},
};