-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.js
146 lines (140 loc) · 3.11 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
import plugin from 'tailwindcss/plugin';
/** @type {import('tailwindcss').Config} */
export default {
content: ['./src/**/*.tsx'],
theme: {
extend: {
fontSize: {
de: ['0.8125rem', '1.25rem'],
},
zIndex: {
1: '1',
2: '2',
},
spacing: {
0.75: '0.1875rem',
7.5: '1.875rem',
9.5: '2.375rem',
13: '3.25rem',
17: '4.25rem',
18: '4.5rem',
22: '5.5rem',
30: '7.5rem',
84: '21rem',
120: '30rem',
},
borderWidth: {
3: '3px',
},
minWidth: {
14: '3.5rem',
16: '4rem',
},
minHeight: {
16: '4rem',
},
maxHeight: {
141: '35.25rem',
'50vh': '50vh',
},
flexGrow: {
2: '2',
4: '4',
},
aspectRatio: {
banner: '3 / 1',
},
keyframes: {
indeterminate: {
'0%': {
translate: '-100%',
},
'100%': {
translate: '400%',
},
},
},
animation: {
indeterminate: 'indeterminate 1s linear infinite',
},
boxShadow: {
// menu: 'rgba(var(--primary) / 0.2) 0px 0px 15px, rgba(var(--primary) / 0.15) 0px 0px 3px 1px',
},
dropShadow: {
// DEFAULT: ['0 1px 2px rgb(0 0 0 / .3)', '0 1px 1px rgb(0 0 0 / .1)'],
},
opacity: {
sm: 0.03,
'sm-pressed': 0.07,
md: 0.1,
'md-pressed': 0.2,
},
},
fontFamily: {
sans: `"Roboto", ui-sans-serif, sans-serif, "Noto Color Emoji", "Twemoji Mozilla"`,
mono: `"JetBrains Mono NL", ui-monospace, monospace`,
},
colors: ({ colors }) => {
return {
current: 'currentColor',
transparent: `transparent`,
white: `#ffffff`,
black: `#000000`,
background: `rgb(var(--p-background))`,
contrast: {
DEFAULT: `rgb(var(--p-contrast))`,
hinted: `rgb(var(--p-contrast-hinted))`,
muted: `rgb(var(--p-contrast-muted))`,
overlay: `rgb(var(--p-contrast-overlay))`,
},
accent: {
DEFAULT: `rgb(var(--p-accent))`,
hover: `rgb(var(--p-accent-hover))`,
active: `rgb(var(--p-accent-active))`,
fg: `rgb(var(--p-accent-fg))`,
},
repost: `rgb(var(--p-repost))`,
like: `rgb(var(--p-like))`,
error: `rgb(var(--p-error))`,
outline: {
DEFAULT: `rgb(var(--p-outline))`,
md: `rgb(var(--p-outline-md))`,
lg: `rgb(var(--p-outline-lg))`,
},
p: {
neutral: colors.neutral,
green: colors.green,
red: colors.red,
},
};
},
},
corePlugins: {
outlineStyle: false,
},
future: {
hoverOnlyWhenSupported: true,
},
plugins: [
plugin(({ addVariant, addUtilities }) => {
addVariant('modal', '&:modal');
addVariant('focus-within', '&:has(:focus-visible)');
// addVariant('hover', '.is-mouse &:hover');
// addVariant('group-hover', '.is-mouse .group &:hover');
addUtilities({
'.scrollbar-hide': {
'-ms-overflow-style': 'none',
'scrollbar-width': 'none',
'&::-webkit-scrollbar': {
display: 'none',
},
},
'.outline-none': { 'outline-style': 'none' },
'.outline': { 'outline-style': 'solid' },
'.outline-dashed': { 'outline-style': 'dashed' },
'.outline-dotted': { 'outline-style': 'dotted' },
'.outline-double': { 'outline-style': 'double' },
});
}),
],
};