-
-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathtailwind.config.ts
85 lines (84 loc) · 2.17 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
73
74
75
76
77
78
79
80
81
82
83
84
85
import type { Config } from "tailwindcss";
import tailwindHeadlessui from "@headlessui/tailwindcss";
import tailwindAspectRatio from "@tailwindcss/aspect-ratio";
import tailwindTypography from "@tailwindcss/typography";
import tailwindGradientMaskImage from "tailwind-gradient-mask-image";
import colors from "tailwindcss/colors";
import { spacing, fontFamily } from "tailwindcss/defaultTheme";
import tailwindTextFill from "tailwindcss-text-fill";
/** @type {import('tailwindcss').Config} */
export default {
darkMode: "class",
content: [
// Prettier
"./app/**/*.{js,ts,jsx,tsx}",
"./components/**/*.{js,ts,jsx,tsx}",
"./config.{js,ts,jsx,tsx}",
"./content/**/*.mdx",
],
theme: {
extend: {
fontFamily: {
mono: ["var(--font-geist-mono)", ...fontFamily.mono],
},
typography: {
DEFAULT: {
css: {
"h1,h2,h3,h4,h5": {
"scroll-margin-top": spacing[28],
},
a: {
color: colors.neutral[500],
"text-decoration-color": colors.neutral[600],
transition: "0.2s",
"text-decoration-thickness": "1.5px",
"text-underline-offset": "2px",
"&:hover": {
color: colors.black,
"text-decoration-color": colors.black,
},
},
},
},
dark: {
css: {
color: colors.neutral[300],
"h1,h2,h3,h4,h5": {
color: colors.neutral[100],
"scroll-margin-top": spacing[28],
},
a: {
color: colors.neutral[100],
"text-decoration-color": colors.neutral[500],
"&:hover": {
color: colors.neutral[100],
"text-decoration-color": colors.neutral[100],
},
},
blockquote: {
borderLeftColor: colors.neutral[700],
color: colors.neutral[300],
},
},
},
},
animation: {
rays: "rotate-hue 20s ease-out infinite",
},
keyframes: {
"rotate-hue": {
"0%": {
filter: "hue-rotate(540deg) saturate(5)",
},
to: {
filter: "hue-rotate(180deg) saturate(5)",
},
},
},
},
},
variants: {
typography: ["dark"],
},
plugins: [tailwindTextFill, tailwindGradientMaskImage, tailwindHeadlessui, tailwindTypography, tailwindAspectRatio],
} satisfies Config;