-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtailwind.config.js
85 lines (83 loc) · 2.93 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
import defaultTheme from "tailwindcss/defaultTheme";
import tailwindTypography from "@tailwindcss/typography";
import plugin from "tailwindcss/plugin";
/** @type {import('tailwindcss').Config} */
const tailwindConfig = {
darkMode: ["class", "[data-theme='dark']"],
content: [
"./app/**/*.{js,ts,jsx,tsx,mdx}",
"./components/**/*.{js,ts,jsx,tsx,mdx}",
],
theme: {
extend: {
colors: {
accent: "hsl(var(--color-accent) / <alpha-value>)",
background: {
DEFAULT: "hsl(var(--color-background-primary) / <alpha-value>)",
secondary: "hsl(var(--color-background-secondary) / <alpha-value>)",
tertiary: "hsl(var(--color-background-tertiary) / <alpha-value>)",
},
foreground: {
primary: "var(--color-text-primary)",
secondary: "var(--color-text-secondary)",
tertiary: "var(--color-text-tertiary)",
},
borders: "var(--color-borders)",
},
borderRadius: {
global: "var(--border-radius)",
inherit: "inherit",
},
fontFamily: {
sans: ["var(--font-sans)", ...defaultTheme.fontFamily.sans],
},
aspectRatio: {
"5/3": "5/3",
},
keyframes: {
"slide-up-fade": {
from: { opacity: 0, transform: "translateY(10px)" },
to: { opacity: 1, transform: "translateY(0)" },
},
"slide-down-fade": {
from: { opacity: 1, transform: "translateY(0px)" },
to: { opacity: 0, transform: "translateY(10px)" },
},
},
animation: {
"slide-up-fade": "slide-up-fade 300ms cubic-bezier(0.16, 1, 0.3, 1)",
"slide-down-fade":
"slide-down-fade 300ms cubic-bezier(0.16, 1, 0.3, 1)",
},
typography: () => ({
custom: {
css: {
"--tw-prose-body": "var(--color-body)",
"--tw-prose-headings": "var(--color-headings)",
"--tw-prose-lead": "var(--color-lead)",
"--tw-prose-links": "var(--color-links)",
"--tw-prose-bold": "var(--color-bold)",
"--tw-prose-counters": "var(--color-counters)",
"--tw-prose-bullets": "var(--color-bullets)",
"--tw-prose-hr": "var(--color-hr)",
"--tw-prose-quotes": "var(--color-quotes)",
"--tw-prose-quote-borders": "var(--color-quote-borders)",
"--tw-prose-captions": "var(--color-captions)",
"--tw-prose-code": "var(--color-code-fg)",
"--tw-prose-pre-bg": "var(--color-pre-code-bg)",
"--tw-prose-pre-code": "var(--color-pre-code-fg)",
"--tw-prose-th-borders": "var(--color-th-borders)",
"--tw-prose-td-borders": "var(--color-td-borders)",
},
},
}),
},
},
plugins: [
tailwindTypography,
plugin(({ addVariant }) => {
addVariant("hover-none", "@media (hover: none) and (pointer: coarse)");
}),
],
};
export default tailwindConfig;