-
-
Notifications
You must be signed in to change notification settings - Fork 19
/
tailwind.config.cjs
72 lines (72 loc) · 1.79 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
/** @type {import('tailwindcss').Config} */
module.exports = {
content: ["./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}"],
theme: {
extend: {
colors: {
blue: {
50: "#73dafe",
100: "#73dafe",
200: "#50d1fd",
300: "#2dc7fd",
400: "#0abefd",
500: "#02a8e2",
600: "#0293c6",
650: "#027ba7",
700: "#01698d",
800: "#015471",
900: "#013f55",
},
navy: {
50: "#62b9ff",
100: "#2da2ff",
200: "#0089f8",
300: "#006cc3",
400: "#004f8f",
500: "#00325a",
600: "#002c4f",
700: "#002544",
800: "#001f38",
900: "#00192d",
},
code: {
light: "#818b981f",
dark: "#2e3440ff",
}
},
typography: {
DEFAULT: {
css: {
// remove automatic quote marks from blockquotes
"blockquote p:first-of-type::before": null,
"blockquote p:last-of-type::after": null,
// remove automatic backticks that surround inline code blocks
"code::before": null,
"code::after": null,
},
code: {},
},
},
},
},
plugins: [
require("@tailwindcss/typography"),
function ({ addBase, theme }) {
addBase({
// GitHub style for inline code blocks
'code': {
padding: '.2em .4em',
margin: '0',
borderRadius: '6px',
fontWeight: '500 !important',
backgroundColor: theme('colors.code.light'),
},
'@media (prefers-color-scheme: dark)': {
'code': {
backgroundColor: theme('colors.code.dark'),
}
},
});
},
],
}