-
Notifications
You must be signed in to change notification settings - Fork 7
/
tailwind.config.mjs
38 lines (37 loc) · 1.58 KB
/
tailwind.config.mjs
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
import defaultTheme from "tailwindcss/defaultTheme";
/** @type {import('tailwindcss').Config} */
export default {
content: ["./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}"],
theme: {
extend: {
fontFamily: {
sans: ["Noto Sans SC", ...defaultTheme.fontFamily.sans],
code: ["Fira Code", "Noto Sans SC", ...defaultTheme.fontFamily.mono],
},
typography: ({ theme }) => ({
dracula: {
css: {
"--tw-prose-body": theme("colors.dracula-light.DEFAULT"),
"--tw-prose-headings": theme("colors.dracula-pink.DEFAULT"),
"--tw-prose-lead": theme("colors.dracula-pink.DEFAULT"),
"--tw-prose-links": theme("colors.dracula-cyan.DEFAULT"),
"--tw-prose-bold": theme("colors.dracula-purple.DEFAULT"),
"--tw-prose-counters": theme("colors.dracula-pink.DEFAULT"),
"--tw-prose-bullets": theme("colors.dracula-pink.DEFAULT"),
"--tw-prose-hr": theme("colors.dracula-pink.DEFAULT"),
"--tw-prose-quotes": theme("colors.dracula-light.DEFAULT"),
"--tw-prose-quote-borders": theme("colors.dracula-pink.DEFAULT"),
"--tw-prose-captions": theme("colors.dracula-pink.DEFAULT"),
"--tw-prose-code": theme("colors.dracula-purple.DEFAULT"),
"--tw-prose-th-borders": theme("colors.dracula-dark.DEFAULT"),
"--tw-prose-td-borders": theme("colors.dracula-dark.DEFAULT"),
},
},
}),
},
},
plugins: [
require("tailwind-dracula")("dracula"),
require("@tailwindcss/typography"),
],
};