-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.ts
72 lines (65 loc) · 1.49 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
import tailwindTouch from "tailwindcss-touch";
import tailwindTypography from "@tailwindcss/typography";
function radixColor(name: string) {
const scale = Array.from({ length: 12 }, (_, i) => {
const id = i + 1;
return [
[id, `var(--${name}-${id})`],
[`a${id}`, `var(--${name}-a${id})`],
];
}).flat();
return Object.fromEntries(scale);
}
export default {
content: [
`components/**/*.{vue,js}`,
`layouts/**/*.vue`,
`pages/**/*.vue`,
`composables/**/*.{js,ts}`,
`plugins/**/*.{js,ts}`,
`App.{js,ts,vue}`,
`app.{js,ts,vue}`,
"nuxt.config.ts",
],
darkMode: "class",
plugins: [tailwindTouch(), tailwindTypography],
theme: {
extend: {
colors: {
orange: {
100: "#F7DCD8",
200: "#F1B9B0",
300: "#EB9484",
400: "#E66B4D",
500: "#C9502A",
600: "#A03F21",
700: "#783019",
800: "#532111",
900: "#30130A",
},
sand: radixColor("sand"),
violet: {
100: "#E7E0E6",
200: "#D1C1CE",
300: "#BDA3B7",
400: "#AA85A1",
500: "#99668E",
600: "#8A457C",
700: "#7B1E6B",
800: "#55144A",
900: "#320C2B",
},
},
typography: () => ({
DEFAULT: {
css: {
pre: {
backgroundColor: "var(--sand-2)",
color: "var(--sand-11)",
},
},
},
}),
},
},
};