-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.ts
48 lines (46 loc) · 1.46 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
import { type Config } from "tailwindcss";
// function withOpacity(variableName: string): string {
// return ({ opacityValue }: { opacityValue: number | undefined }): string => {
// if (opacityValue !== undefined) {
// return `rgba(var(${variableName}), ${opacityValue})`;
// }
// return `rgb(var(${variableName}))`;
// };
// }
export default {
content: ["./src/**/*.tsx"],
theme: {
extend: {
fontFamily: {
// sans: ["var(--font-sans)", ...fontFamily.sans],
barlow: "var(--barlow)",
robotoMono: "var(--roboto-mono)",
monoton: "var(--monoton)",
},
textColor: {
skin: {
primaryColor: "var(--primary-color)",
secondaryColor: "var(--secondary-color)",
accentColor: "var(--accent-color)",
},
},
backgroundColor: {
skin: {
primaryBg: "var(--primary-background-color)",
secondaryBg: "var(--secondary-background-color)",
accentBg: "var(--accent-color)",
// fill: withOpacity("--primary-background-color") as unknown as string,
// 'button-accent': withOpacity('--color-button-accent'),
// 'button-accent-hover': withOpacity('--color-button-accent-hover'),
// 'button-muted': withOpacity('--color-button-muted'),
},
},
gradientColorStops: {
skin: {
// hue: withOpacity('--color-fill'),
},
},
},
},
plugins: [],
} satisfies Config;