-
Notifications
You must be signed in to change notification settings - Fork 168
/
tailwind.config.ts
65 lines (63 loc) · 1.89 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
import type { Config } from "tailwindcss";
import { colors as rawColors } from "@apollo/brand";
import { colors, typography, fontFamily } from "@apollo/tailwind-preset";
import defaultConfig from "tailwindcss/defaultConfig";
import headlessPlugin from "@headlessui/tailwindcss";
function toColorValue(token: { base: string; dark: string }) {
return { ...token, DEFAULT: token.base };
}
export default {
content: [
"./src/extension/devtools/panel.html",
"./src/application/**/*.{html,ts,tsx}",
],
presets: [defaultConfig, colors, typography, fontFamily.openSource],
plugins: [headlessPlugin],
theme: {
data: {
"state-open": 'state="open"',
"state-closed": 'state="closed"',
"state-checked": 'state="checked"',
"state-unchecked": 'state="unchecked"',
"state-active": 'state="active"',
"state-inactive": 'state="inactive"',
"orientation-horizontal": 'orientation="horizontal"',
"orientation-vertical": 'orientation="vertical"',
highlighted: "highlighted",
},
extend: {
colors: {
current: "currentColor",
},
borderColor: {
transparent: "transparent",
arrow: {
primary: toColorValue(rawColors.tokens.bg.primary),
},
},
boxShadow: {
dropdown:
"0 4px 8px 0 rgba(0, 0, 0, 0.08), 0 0 0 0 rgba(18, 21, 26, 0.04)",
modal:
"0px 16px 32px 0px rgba(0, 0, 0, 0.12), 0px 0px 0px 0px rgba(18, 21, 26, 0.04)",
popovers:
"0px 4px 8px 0px rgba(0, 0, 0, 0.08), 0px 0px 0px 0px rgba(18, 21, 26, 0.04)",
},
ringWidth: {
3: "3px",
},
ringOffsetWidth: {
3: "3px",
},
stroke: {
current: "currentColor",
},
width: {
"modal-sm": "336px",
"modal-md": "400px",
"modal-lg": "464px",
"modal-xl": "528px",
},
},
},
} satisfies Config;