-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.ts
151 lines (147 loc) · 4.23 KB
/
tailwind.config.ts
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
import { typographyVariant, letterSpacing, fontSize, lineHeight } from './src/system/token/typography';
import type { Config } from 'tailwindcss';
import { fontWeightVariant, fontWeight } from './src/system/token/fontWeight';
const px0To10 = { ...Array.from(Array(11)).reduce((acc, _, i) => ({ ...acc, [i]: `${i}px` }), {}) };
const px0To100 = { ...Array.from(Array(101)).reduce((acc, _, i) => ({ ...acc, [i]: `${i}px` }), {}) };
const px0To2000 = { ...Array.from(Array(2001)).reduce((acc, _, i) => ({ ...acc, [i]: `${i}px` }), {}) };
const typographyToken = typographyVariant.reduce(
(acc, typo) => ({
...acc,
[typo]: [fontSize[typo], { lineHeight: lineHeight[typo], letterSpacing: letterSpacing[typo] }],
}),
{},
);
const fontWeightToken = fontWeightVariant.reduce((acc, token) => ({ ...acc, [token]: fontWeight[token] }), {});
const config: Config = {
darkMode: ['class'],
content: ['./pages/**/*.{ts,tsx}', './components/**/*.{ts,tsx}', './app/**/*.{ts,tsx}', './src/**/*.{ts,tsx}'],
safelist: ['ProseMirror'],
prefix: '',
theme: {
container: {
center: true,
padding: '2rem',
screens: {
'2xl': '1400px',
},
},
extend: {
width: px0To2000,
height: px0To2000,
borderWidth: px0To10,
fontSize: {
...px0To100,
...typographyToken,
},
fontWeight: fontWeightToken,
lineHeight: px0To100,
minWidth: px0To2000,
minHeight: px0To2000,
spacing: px0To2000,
borderRadius: { ...px0To100, button: 6 },
backgroundImage: {
'gradient-radial': 'radial-gradient(var(--tw-gradient-stops))',
'gradient-conic': 'conic-gradient(from 180deg at 50% 50%, var(--tw-gradient-stops))',
},
boxShadow: {
drodpown: '0px 0px 10px 5px rgba(0, 0, 0, 0.08)',
nav: '0px 4px 25px 1px rgba(0,0,0,0.05)',
memo: '0px 1px 5px 0px rgba(249, 249, 250, 0.50), 0px 1px 5px 0px rgba(152, 155, 162, 0.15)',
login: '0px 2px 8px 0px rgba(0, 0, 0, 0.12), 0px 0px 1px 0px rgba(0, 0, 0, 0.08)',
},
colors: {
white: '#FFFFFF',
black: '#000000',
neutral: {
'1': '#F9F9FA',
'3': '#F1F2F3',
'5': '#EAEBEC',
'10': '#DBDCDF',
'20': '#CCCDD1',
'30': '#AEB0B6',
'35': '#989BA2',
'40': '#878A93',
'50': '#70737C',
'60': '#5A5C63',
'70': '#46474C',
'75': '#37383C',
'80': '#27282C',
'90': '#212225',
'95': '#1B1C1E',
},
red: {
'1': '#FFFAF7',
'5': '#FFEBE0',
'10': '#FCAEA9',
'20': '#FF8F87',
'30': '#FE7A70',
'40': '#FF6C62',
'50': '#F1564B',
},
mint: {
'1': '#C6FAE6',
'10': '#98F9D5',
'20': '#29FFB0',
'30': '#08F29B',
'40': '#0DD78C',
'50': '#1BA673',
},
blue: {
bg: {
'1': '#E8F1FF',
},
red: {
'1': '#FFFAF7',
'5': '#FFEBE0',
'10': '#FCAEA9',
'20': '#FF8F87',
'30': '#FE7A70',
'40': '#FF6C62',
'50': '#F1564B',
},
mint: {
'1': '#C6FAE6',
'10': '#98F9D5',
'20': '#29FFB0',
'30': '#08F29B',
'40': '#0DD78C',
'50': '#1BA673',
},
text: {
'1': '#418CC3',
},
},
purple: {
bg: {
'1': '#F1E8FF',
},
text: {
'1': '#9C6BB3',
},
},
yellow: {
'1': '#D77B0F',
bg: {
'1': '#FFF3C2',
},
},
},
},
keyframes: {
'accordion-down': {
from: { height: '0' },
to: { height: 'var(--radix-accordion-content-height)' },
},
'accordion-up': {
from: { height: 'var(--radix-accordion-content-height)' },
to: { height: '0' },
},
},
animation: {
'accordion-down': 'accordion-down 0.2s ease-out',
'accordion-up': 'accordion-up 0.2s ease-out',
},
},
plugins: [require('tailwindcss-animate')],
} satisfies Config;
export default config;