-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy paththeme.js
More file actions
168 lines (163 loc) · 5.68 KB
/
theme.js
File metadata and controls
168 lines (163 loc) · 5.68 KB
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
const defaultTheme = require('tailwindcss/defaultTheme')
const colors = require('tailwindcss/colors')
const plugin = require('tailwindcss/plugin')
const spacing = [
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 14, 15, 16, 18, 20, 22, 24, 25, 26, 28,
30, 32, 34, 35, 36, 38, 40, 45, 50, 55, 60, 64, 65, 70, 72, 75, 80, 84, 85,
90, 95, 96, 100
]
// https://uicolors.app/edit?sv1=primary:50-ecebff/100-dedbff/200-c7c2ff/300-a899ff/400-937aff/500-7e61ff/600-6a4ce1/700-5b33c7/800-3e238b/900-251452/950-11082b;slate:50-f4f4fb/100-e7e7f4/200-d9d9ed/300-c4c4e3/400-aeaed6/500-9692c4/600-8178b0/700-655b95/800-4b4276/900-332b5a/950-1d1641;red:50-fff1f3/100-ffe3e6/200-ffccd4/300-ffa1b1/400-ff708a/500-f93a63/600-e7174e/700-c30d41/800-a30e3d/900-8b103b/950-4e031b;yellow:50-fff9eb/100-fef0c8/200-fddd8b/300-fccb4f/400-fbbd23/500-f5af00/600-f1a200/700-e58e00/800-c87200/900-9c4f00/950-7a3700;green:50-edfcf5/100-d4f7e4/200-abedcd/300-78ddb3/400-3dd198/500-1bc58a/600-0eb47d/700-0d9c71/800-0f805e/900-0c644b/950-085441;blue:50-f0f8fe/100-deeefb/200-c4e2f8/300-9bd0f3/400-6db6ed/500-549ee7/600-4687dd/700-3778d2/800-2c5ca5/900-213e6e/950-192e4d
module.exports = {
// ⚠️ CAUTION ⚠️ Any code placed directly under `theme` will REPLACE all
// built-in Tailwind utilities for that property. To add custom utilities
// while keeping the default ones, add them to the `extend` property instead
theme: {
colors: {
none: colors.none,
inherit: colors.inherit,
current: colors.current,
transparent: colors.transparent,
black: colors.black,
cyan: colors.cyan,
fuchsia: colors.fuchsia,
orange: colors.orange,
white: colors.white,
primary: {
50: '#ecebff',
100: '#dedbff',
200: '#c7c2ff',
300: '#a899ff',
400: '#937aff',
500: '#7e61ff',
600: '#6a4ce1',
700: '#5b33c7',
800: '#3e238b',
900: '#251452',
950: '#11082b'
},
slate: {
50: '#f4f4fb',
100: '#e7e7f4',
200: '#d9d9ed',
300: '#c4c4e3',
400: '#aeaed6',
500: '#9692c4',
600: '#8178b0',
700: '#655b95',
800: '#4b4276',
900: '#332b5a',
950: '#1d1641'
},
blue: {
50: '#f0f8fe',
100: '#deeefb',
200: '#c4e2f8',
300: '#9bd0f3',
400: '#6db6ed',
500: '#549ee7',
600: '#4687dd',
700: '#3778d2',
800: '#2c5ca5',
900: '#213e6e',
950: '#192e4d'
},
red: {
50: '#fff1f3',
100: '#ffe3e6',
200: '#ffccd4',
300: '#ffa1b1',
400: '#ff708a',
500: '#f93a63',
600: '#e7174e',
700: '#c30d41',
800: '#a30e3d',
900: '#8b103b',
950: '#4e031b'
},
yellow: {
50: '#fff9eb',
100: '#fef0c8',
200: '#fddd8b',
300: '#fccb4f',
400: '#fbbd23',
500: '#f5af00',
600: '#f1a200',
700: '#e58e00',
800: '#c87200',
900: '#9c4f00',
950: '#7a3700'
},
green: {
50: '#edfcf5',
100: '#d4f7e4',
200: '#abedcd',
300: '#78ddb3',
400: '#3dd198',
500: '#1bc58a',
600: '#0eb47d',
700: '#0d9c71',
800: '#0f805e',
900: '#0c644b',
950: '#085441'
}
},
fontSize: {
'2xs': ['0.625rem', { lineHeight: '1.3' }], // 10px
xs: ['0.75rem', { lineHeight: '1.4' }], // 12px
sm: ['0.875rem', { lineHeight: '1.5' }], // 14px
base: ['1rem', { lineHeight: '1.6' }], // 16px
lg: ['1.125rem', { lineHeight: '1.6' }], // 18px
xl: ['1.25rem', { lineHeight: '1.5' }], // 20px
'2xl': ['1.5rem', { lineHeight: '1.4' }], // 24px
'3xl': ['1.875rem', { lineHeight: '1.3' }], // 30px
'4xl': ['2.25rem', { lineHeight: '1.2' }], // 36px
'5xl': ['3rem', { lineHeight: '1.2' }], // 48px
'6xl': ['4rem', { lineHeight: '1.2' }], // 64px
'7xl': ['5rem', { lineHeight: '1.1' }], // 80px
'8xl': ['6rem', { lineHeight: '1.1' }] // 96px
},
// Add custom Tailwind utilities here ======================================
extend: {
backgroundImage: ({ theme }) => ({
'gradient-radial-darker': `radial-gradient(circle at 80% 20%, ${theme('colors.primary.900')}, ${theme('colors.primary.950')});`,
'gradient-radial-dark': `radial-gradient(circle at 80% 20%, ${theme('colors.primary.800')}, ${theme('colors.primary.950')});`,
'gradient-radial-purple': `radial-gradient(circle at 80% 20%, ${theme('colors.primary.500')}, ${theme('colors.primary.800')});`
}),
borderColor: ({ theme }) => ({
DEFAULT: theme('colors.slate.100', 'currentColor'),
}),
fontFamily: {
sans: ['Inter', ...defaultTheme.fontFamily.sans],
code: [
'Roboto Mono', 'Consolas', 'Bitstream Vera Sans Mono', 'Andale Mono',
'Monaco', 'DejaVu Sans Mono', 'Lucida Console'
]
},
opacity: {
'15': '.15',
'35': '.35',
'45': '.45',
'55': '.55',
'65': '.65',
'85': '.85'
},
screens: { '2xs': '375px', xs: '414px' },
spacing: {
...Object.fromEntries(
spacing.map((num, index) => [`${num}px`, `${num / 16}rem`])
)
},
transitionTimingFunction: {
'in-out-expo': 'cubic-bezier(0.15, 0, 0, 1)',
'in-squish': 'cubic-bezier(.5, -.3, .1, 1.5)'
},
},
},
plugins: [
plugin(({ addVariant }) => {
addVariant('pseudo', ['&:before', '&:after'])
addVariant('no-hover', '@media (pointer: coarse) and (hover: none)')
addVariant('has-hover', '@media (hover: hover) and (pointer: fine)')
})
]
}