-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.mjs
48 lines (47 loc) · 1.52 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
39
40
41
42
43
44
45
46
47
48
/* eslint-disable indent */
/** @type {import('tailwindcss').Config} */
import plugin from "tailwindcss/plugin";
export default {
content: ["./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}"],
darkMode: "selector",
theme: {
extend: {
colors: {
background: "hsl(var(--color-bg) / <alpha-value>)",
text: "hsl(var(--color-text) / <alpha-value>)",
"primary-color": "hsl(var(--color-primary) / <alpha-value>)",
"primary-200": "hsl(var(--color-primary-200) / <alpha-value>)",
"primary-400": "hsl(var(--color-primary-400) / <alpha-value>)",
"secondary-color": "hsl(var(--color-secondary) / <alpha-value>)",
"accent-one": "hsl(var(--color-accent-1) / <alpha-value>)",
"accent-two": "hsl(var(--color-accent-2) / <alpha-value>)",
},
maxWidth: {
128: "60rem",
},
typography: {
DEFAULT: {
css: {
"--tw-prose-bullets": "hsl(var(--color-text))",
},
},
},
},
fontFamily: {
header: ["Karla Variable"],
sans: ["Inconsolata Variable", "Poppins", "Montserrat", "sans-serif"],
serif: ["Merriweather", "serif"],
},
},
plugins: [
require("@tailwindcss/typography"),
//https://aaronfrancis.com/2023/tailwind-typography-inline-code-only
plugin(function ({ addVariant }) {
addVariant(
"prose-inline-code",
// eslint-disable-next-line quotes
'&.prose :where(:not(pre)>code):not(:where([class~="not-prose"] *))'
);
}),
],
};