-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtailwind.config.ts
77 lines (67 loc) · 2.13 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
import type { Config } from "tailwindcss";
import colors from "tailwindcss/colors";
const denseShadow = `rgba(0, 0, 0, 0.07) 0px -1px 1px,
rgba(0, 0, 0, 0.14) 0px 1px 1px,
rgba(0, 0, 0, 0.07) 0px 2px 2px,
rgba(0, 0, 0, 0.07) 0px 4px 4px,
rgba(0, 0, 0, 0.07) 0px 8px 8px`;
const sharpShadow = `rgba(0, 0, 0, 0.07) 0px -1px 1px,
rgba(0, 0, 0, 0.14) 0px 1px 1px,
rgba(0, 0, 0, 0.07) 0px 2px 2px,
rgba(0, 0, 0, 0.07) 0px 4px 4px`;
// credit to uilabs.dev
const innerShineShadow = `0px 1px 0px 0px hsla(0,0%,100%,.03) inset,
0px 0px 0px 1px hsla(0,0%,100%,.03) inset,
0px 0px 0px 1px rgba(0,0,0,.1),
0px 2px 2px 0px rgba(0,0,0,.1),
0px 4px 4px 0px rgba(0,0,0,.1),
0px 8px 8px 0px rgba(0,0,0,.1), ${denseShadow}`;
// not sure why the /.5 works here, that should send it out of bounds, src: joebell.studio
const sheenShadow = `0 -1px 0 rgb(180, 197, 202),
0 0 0 1px rgba(180, 197, 202, 0.5),
${denseShadow}`;
const config: Config = {
darkMode: ["class"],
content: [
"./src/views/**/*.{js,ts,jsx,tsx,mdx}",
"./src/components/**/*.{js,ts,jsx,tsx,mdx}",
"./src/app/**/*.{js,ts,jsx,tsx,mdx}",
],
theme: {
colors: {
transparent: "transparent",
current: "currentColor",
black: colors.black,
white: colors.white,
purple: colors.purple,
slate: colors.slate,
gray: {
...colors["gray"],
"900": "#1A1A1A",
"950": "#0F0F0F",
},
},
extend: {
colors: {
background: {
DEFAULT: "rgb(var(--background))",
surface: "rgb(var(--background-surface))",
},
foreground: {
DEFAULT: "rgb(var(--foreground))",
muted: "rgb(var(--foreground-muted))",
highlight: "rgb(var(--foreground-highlight))",
},
action: "rgb(var(--action))",
"callout-info": "rgb(var(--callout-info))",
},
boxShadow: {
dense: "var(--shadow-dense)",
"inner-shine": "var(--shadow-inner-shine)",
sheen: "var(--shadow-sheen)",
sharp: "var(--shadow-sharp)",
},
},
},
};
export default config;