-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.cjs
73 lines (72 loc) · 2.09 KB
/
tailwind.config.cjs
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
import { transform } from "typescript";
/** @type {import('tailwindcss').Config} */
const defaultTheme = require("tailwindcss/defaultTheme");
module.exports = {
content: ["./src/**/*.{js,ts,jsx,tsx,astro}"],
darkMode: "class",
theme: {
extend: {
fontFamily: {
sans: [
"geistSansVariable",
"sans-serif",
...defaultTheme.fontFamily.sans,
],
geistMonoVariable: ["geistMonoVariable", "serif"],
newsreader: ["Newsreader Variable", "serif"],
},
typography: (theme) => ({
DEFAULT: {
css: {
".anchor-link": {
marginRight: "0.25rem",
opacity: "0.3",
textDecoration: "none !important",
transitionProperty: "opacity !important",
transitionTimingFunction: "cubic-bezier(0.4, 0, 0.2, 1);",
transitionDuration: "150ms",
"&:hover": {
opacity: "1",
},
},
"code::before": {
content: '""',
},
"code::after": {
content: '""',
},
"pre code": {
fontFamily: ["geistMonoVariable"],
},
":not(pre) > code": {
fontFamily: ["geistMonoVariable"],
backgroundColor: theme("colors.zinc.200"),
borderColor: theme("colors.zinc.200"),
padding: "0.0.5rem 0.0.5rem",
borderRadius: "0.250rem",
border: '2px solid',
fontWeight: "400",
},
},
},
invert: {
css: {
"pre code": {
fontFamily: ["geistMonoVariable"],
},
":not(pre) > code": {
fontFamily: ["geistMonoVariable"],
backgroundColor: theme("colors.zinc.900"),
borderColor: theme("colors.zinc.800"),
},
},
},
}),
},
},
plugins: [
require("@tailwindcss/typography"),
require("@tailwindcss/aspect-ratio"),
require("tailwindcss-animated"),
],
};