-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtailwind.config.ts
More file actions
119 lines (117 loc) · 3.53 KB
/
Copy pathtailwind.config.ts
File metadata and controls
119 lines (117 loc) · 3.53 KB
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
import type { Config } from "tailwindcss";
import typography from "@tailwindcss/typography";
const config: Config = {
content: [
"./src/pages/**/*.{js,ts,jsx,tsx,mdx}",
"./src/components/**/*.{js,ts,jsx,tsx,mdx}",
"./src/app/**/*.{js,ts,jsx,tsx,mdx}",
],
darkMode: "class",
theme: {
extend: {
fontFamily: {
sans: ["var(--font-sans)"],
mono: ["var(--font-mono)"],
},
colors: {
theme: {
base: "rgb(var(--color-base) / <alpha-value>)",
surface: "rgb(var(--color-surface) / <alpha-value>)",
overlay: "rgb(var(--color-overlay) / <alpha-value>)",
muted: "rgb(var(--color-muted) / <alpha-value>)",
subtle: "rgb(var(--color-subtle) / <alpha-value>)",
text: "rgb(var(--color-text) / <alpha-value>)",
highlight: "rgb(var(--color-highlight) / <alpha-value>)",
},
// Rose Pine colors for accents (dark mode)
"rose-pine": {
love: "#eb6f92",
gold: "#f6c177",
rose: "#ebbcba",
pine: "#31748f",
foam: "#9ccfd8",
iris: "#c4a7e7",
},
// Rose Pine Dawn colors for accents (light mode)
"rose-pine-dawn": {
love: "#b4637a",
gold: "#ea9d34",
rose: "#d7827e",
pine: "#286983",
foam: "#56949f",
iris: "#907aa9",
},
},
backgroundImage: {
"gradient-radial": "radial-gradient(var(--tw-gradient-stops))",
"gradient-conic":
"conic-gradient(from 180deg at 50% 50%, var(--tw-gradient-stops))",
},
animation: {
"fade-in": "fadeIn 0.5s ease-in-out",
"slide-up": "slideUp 0.5s ease-out",
"slide-down": "slideDown 0.3s ease-out",
},
keyframes: {
fadeIn: {
"0%": { opacity: "0" },
"100%": { opacity: "1" },
},
slideUp: {
"0%": { transform: "translateY(20px)", opacity: "0" },
"100%": { transform: "translateY(0)", opacity: "1" },
},
slideDown: {
"0%": { transform: "translateY(-20px)", opacity: "0" },
"100%": { transform: "translateY(0)", opacity: "1" },
},
},
typography: {
DEFAULT: {
css: {
color: "rgb(var(--color-text))",
fontFamily: "var(--font-sans)",
h1: {
color: "rgb(var(--color-text))",
fontFamily: "var(--font-sans)",
},
h2: {
color: "rgb(var(--color-text))",
fontFamily: "var(--font-sans)",
},
h3: {
color: "rgb(var(--color-text))",
fontFamily: "var(--font-sans)",
},
h4: {
color: "rgb(var(--color-text))",
fontFamily: "var(--font-sans)",
},
a: {
color: "rgb(var(--color-text))",
"&:hover": {
color: "rgb(var(--color-subtle))",
},
},
strong: {
color: "rgb(var(--color-text))",
},
code: {
color: "rgb(var(--color-text))",
},
pre: {
backgroundColor: "rgb(var(--color-surface))",
color: "rgb(var(--color-text))",
},
blockquote: {
color: "rgb(var(--color-subtle))",
borderLeftColor: "rgb(var(--color-highlight))",
},
},
},
},
},
},
plugins: [typography],
};
export default config;