-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathtailwind.config.mjs
More file actions
37 lines (33 loc) · 1016 Bytes
/
tailwind.config.mjs
File metadata and controls
37 lines (33 loc) · 1016 Bytes
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
import plugin from "tailwindcss/plugin";
import typography from "@tailwindcss/typography";
/** @type {import('tailwindcss').Config} */
export default {
content: [
"./app/**/*.{ts,tsx}",
"./components/**/*.{ts,tsx}",
"./src/**/*.{ts,tsx}",
],
darkMode: ["selector", '[data-theme="dark"]'],
theme: {
extend: {
colors: {
background: "oklch(var(--background) / <alpha-value>)",
foreground: "oklch(var(--foreground) / <alpha-value>)",
border: "oklch(var(--border) / <alpha-value>)",
ring: "oklch(var(--ring) / <alpha-value>)",
success: "oklch(var(--success) / <alpha-value>)",
warning: "oklch(var(--warning) / <alpha-value>)",
error: "oklch(var(--error) / <alpha-value>)",
},
},
},
plugins: [
typography,
plugin(({ matchUtilities, theme }) => {
matchUtilities(
{ "animation-delay": (value) => ({ animationDelay: value }) },
{ values: theme("transitionDelay") },
);
}),
],
};