forked from solana-foundation/explorer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtailwind.config.ts
More file actions
129 lines (125 loc) · 5.31 KB
/
tailwind.config.ts
File metadata and controls
129 lines (125 loc) · 5.31 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
import type { Config } from 'tailwindcss';
const breakpoints = new Map([
['xxs', 320],
['xs', 375],
['sm', 576],
['md', 768],
['lg', 992],
['xl', 1200],
['xxl', 1400],
]);
const config: Config = {
content: ['./app/**/*.{ts,tsx}'],
plugins: [],
prefix: 'e-',
theme: {
extend: {
boxShadow: {
// border for active states from Dashkit
active: '0 0 0 0.15rem #33a382',
},
colors: {
// TODO: replace with e-text-neutral-400
muted: 'oklch(0.6406 0.0038 174.41)', // #8a8d8c
'heavy-metal': {
DEFAULT: 'oklch(21.275% 0.00721 164.22)',
50: 'oklch(83.058% 0.01201 161.99)',
100: 'oklch(80.062% 0.01471 162.38)',
200: 'oklch(73.7% 0.0195 166.17)',
300: 'oklch(67.255% 0.0243 164.16)',
400: 'oklch(61.003% 0.02932 162.63)',
500: 'oklch(53.552% 0.02379 165.43)',
600: 'oklch(46.048% 0.0207 163.91)',
700: 'oklch(38.258% 0.0166 166.31)',
800: 'oklch(30.098% 0.01205 160.58)',
900: 'oklch(21.275% 0.00721 164.22)',
950: 'oklch(14.676% 0.004 164.84)',
},
'outer-space': {
DEFAULT: 'oklch(24.975% 0.0089 184.49)',
50: 'oklch(85.627% 0.01017 181.36)',
100: 'oklch(82.682% 0.01236 184.01)',
200: 'oklch(76.402% 0.01689 187.2)',
300: 'oklch(70.297% 0.0218 185.24)',
400: 'oklch(63.845% 0.02549 186.53)',
500: 'oklch(56.852% 0.02498 185.95)',
600: 'oklch(49.437% 0.02229 184.23)',
700: 'oklch(41.81% 0.01838 180.95)',
800: 'oklch(33.501% 0.01351 189.14)',
900: 'oklch(24.975% 0.0089 184.49)',
950: 'oklch(18.651% 0.00656 178.83)',
},
success: {
DEFAULT: 'oklch(81.199% 0.21286 150.43)',
50: 'oklch(94.241% 0.06038 158.29)',
100: 'oklch(92.351% 0.0819 157.87)',
200: 'oklch(88.995% 0.1209 156.56)',
300: 'oklch(85.751% 0.15657 154.88)',
400: 'oklch(83.255% 0.18729 152.88)',
500: 'oklch(81.199% 0.21286 150.43)',
600: 'oklch(70.211% 0.18984 149.72)',
700: 'oklch(56.135% 0.14911 150.19)',
800: 'oklch(40.792% 0.10476 150.91)',
900: 'oklch(24.184% 0.05582 152.49)',
950: 'oklch(14.75% 0.02671 160.13)',
},
accent: {
DEFAULT: 'oklch(78.205% 0.16457 163.86)',
50: 'oklch(95.434% 0.04741 174.98)',
100: 'oklch(93.711% 0.06435 174.15)',
200: 'oklch(90.641% 0.09895 172.33)',
300: 'oklch(88.039% 0.12838 170.21)',
400: 'oklch(85.607% 0.1515 168.18)',
500: 'oklch(83.887% 0.16905 165.28)',
600: 'oklch(78.205% 0.16457 163.86)',
700: 'oklch(63.757% 0.13274 164.38)',
800: 'oklch(48.731% 0.09993 164.76)',
900: 'oklch(32.092% 0.06281 166.71)',
950: 'oklch(23.271% 0.04416 166.83)',
},
destructive: {
DEFAULT: 'oklch(73.321% 0.26321 327.1)',
50: 'oklch(100% 0 none)',
100: 'oklch(98.649% 0.01179 325.67)',
200: 'oklch(91.008% 0.07816 325.51)',
300: 'oklch(84.08% 0.14565 326.37)',
400: 'oklch(78.019% 0.20967 326.45)',
500: 'oklch(73.321% 0.26321 327.1)',
600: 'oklch(69.433% 0.30783 327.38)',
700: 'oklch(63.075% 0.29011 327.38)',
800: 'oklch(51.151% 0.23484 327.4)',
900: 'oklch(38.481% 0.17603 327.43)',
950: 'oklch(31.567% 0.1435 327.16)',
},
},
gridTemplateColumns: {
// Grid template for TokenExtensions
'12-ext': 'repeat(12, minmax(0, 1fr))',
},
},
/* eslint-disable sort-keys-fix/sort-keys-fix */
screens: {
'max-sm': getScreenDim('sm', -1),
'max-md': getScreenDim('md', -1),
xxs: getScreenDim('xxs'),
xs: getScreenDim('xs'),
sm: getScreenDim('sm'),
md: getScreenDim('md'),
lg: getScreenDim('lg'),
xl: getScreenDim('xl'),
xxl: getScreenDim('xxl'),
mobile: getScreenDim('sm'),
tablet: getScreenDim('md'),
laptop: getScreenDim('lg'),
desktop: getScreenDim('xl'),
},
/* eslint-enable sort-keys-fix/sort-keys-fix */
},
};
export default config;
// adjust breakpoint 1px up see previous layout on the "edge"
function getScreenDim(label: string, shift = 1) {
const a = breakpoints.get(label);
if (!a) throw new Error(`Unknown breakpoint: ${label}`);
return `${a + shift}px`;
}