-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.ts
91 lines (88 loc) · 2.36 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
86
87
88
89
90
91
import type { Config } from "tailwindcss";
import { PluginUtils, PluginAPI } from "tailwindcss/types/config";
const plugin = require("tailwindcss/plugin");
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: [
"variant",
[
"@media (prefers-color-scheme: dark) { &:not(.light *) }",
"&:is(.dark *)",
],
],
theme: {
container: {
center: true,
},
colors: {
background: "rgba(var(--background-rgba))",
foreground: "rgba(var(--foreground-rgba))",
"muted-100": "rgba(var(--muted-100-rgba))",
"muted-200": "rgba(var(--muted-200-rgba))",
},
// spacing: {},
// fontSize: {},
fontFamily: {
normal: ["var(--font-authentic-sans)", "sans-serif"],
name: ["var(--font-that-that-new-pixel)", "serif"],
heading: ["var(--font-authentic-sans-condensed)", "sans-serif"],
code: ["var(--font-monaco)"],
},
extend: {
keyframes: {
marquee: {
"0%": { transform: "translateX(50%)" },
"100%": { transform: "translateX(-100%)" },
},
},
animation: {
marquee: "marquee 20s linear infinite",
},
zoom: {
large: { transform: "scale(1.2)" },
},
typography: {
DEFAULT: {
css: {
pre: {
fontFamily: "var(--font-monaco), monospace !important",
},
code: {
fontFamily: "var(--font-monaco), monospace !important",
},
},
},
},
},
},
variants: { extend: {} },
plugins: [
require("@tailwindcss/typography"),
require("@tailwindcss/forms"),
require("@designbycode/tailwindcss-text-stroke"),
plugin(function ({ addBase, theme }: PluginAPI & PluginUtils) {
addBase({
h1: {
fontSize: theme("fontSize.3xl"),
fontFamily: theme("fontFamily.heading"),
fontWeight: "700",
},
h2: {
fontSize: theme("fontSize.2xl"),
fontFamily: theme("fontFamily.heading"),
fontWeight: "700",
},
h3: {
fontSize: theme("fontSize.xl"),
fontFamily: theme("fontFamily.heading"),
fontWeight: "700",
},
});
}),
],
};
export default config;