-
-
Notifications
You must be signed in to change notification settings - Fork 20
/
tailwind.config.ts
78 lines (77 loc) · 2.6 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
/** @type {import('tailwindcss').Config} */
const defaultTheme = require("tailwindcss/defaultTheme");
const colors = require("tailwindcss/colors");
module.exports = {
darkMode: "class",
content: ["./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}"],
theme: {
extend: {
typography: {
DEFAULT: {
css: {
"code::before": {
content: '""',
},
"code::after": {
content: '""',
},
code: {
fontFamily: "Fira Code, monospace",
span: {
fontFamily: "Fira Code, monospace",
},
},
"div[data-remark-code-title]": {
backgroundColor: colors.neutral[800],
fontFamily: "Fira Code, monospace",
fontSize: "0.8rem",
padding: "0.5rem 1rem",
borderTopRightRadius: "0.25rem",
borderTopLeftRadius: "0.25rem",
transitionDuration: "150ms",
},
"div[data-remark-code-title] + pre": {
marginTop: "0 !important",
borderTopRightRadius: "0 !important",
borderTopLeftRadius: "0 !important",
transitionDuration: "150ms",
},
"p, li": {
code: {
backgroundColor: "#27272a",
padding: "0.250rem 0.4rem",
borderRadius: "0.250rem",
fontWeight: "300",
color: "white",
transitionProperty: "color, background-color",
transitionTimingFunction: "cubic-bezier(0.4, 0, 0.2, 1)",
transitionDuration: "150ms",
},
},
"html:not(.dark) div[data-remark-code-title]": {
backgroundColor: colors.zinc[200],
color: colors.black,
transitionDuration: "150ms",
},
"html:not(.dark) p, li": {
code: {
backgroundColor: colors.zinc[200],
padding: "0.250rem 0.4rem",
borderRadius: "0.250rem",
fontWeight: "300",
color: "black",
transitionProperty: "color, background-color",
transitionTimingFunction: "cubic-bezier(0.4, 0, 0.2, 1)",
transitionDuration: "150ms",
},
},
},
},
},
fontFamily: {
sans: ["InterVariable", "Inter", ...defaultTheme.fontFamily.sans],
},
},
},
plugins: [require("@tailwindcss/typography"), require("tailwind-scrollbar")],
};