-
Notifications
You must be signed in to change notification settings - Fork 1
/
tailwind.config.ts
73 lines (68 loc) · 1.8 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
import { createPreset as createDesignTokenPreset } from "@acdh-oeaw/tailwindcss-preset";
import type { Config } from "tailwindcss";
import colors from "tailwindcss/colors";
import createPlugin from "tailwindcss/plugin";
import reactAriaComponentsPlugin from "tailwindcss-react-aria-components";
const designTokensPreset = createDesignTokenPreset();
const config = {
content: [
"./@(app|components|config|lib|styles)/**/*.@(css|ts|tsx)",
"./content/**/*.@(md|mdx)",
"./keystatic.config.tsx",
],
darkMode: [
"variant",
[":where(.kui-theme.kui-scheme--dark) &", ':where([data-ui-color-scheme="dark"]) &'],
],
plugins: [
reactAriaComponentsPlugin,
createPlugin(({ addBase }) => {
addBase({
":root": {
color: "hsl(var(--color-neutral-600))",
backgroundColor: "hsl(var(--color-neutral-0))",
},
':root[data-ui-color-scheme="dark"]': {
color: "hsl(var(--color-neutral-400))",
backgroundColor: "hsl(var(--color-neutral-900))",
},
body: {
backgroundColor: "hsl(var(--color-neutral-100))",
},
'[data-ui-color-scheme="dark"] body': {
backgroundColor: "hsl(var(--color-neutral-950))",
},
"[hidden]": {
display: "none !important",
},
});
}),
],
presets: [designTokensPreset],
theme: {
extend: {
colors: {
informative: colors.sky,
negative: colors.red,
notice: colors.orange,
positive: colors.green,
},
typography: {
DEFAULT: {
css: {
/** Don't add quotes around `blockquote`. */
"blockquote p:first-of-type::before": null,
"blockquote p:last-of-type::after": null,
/** Don't add backticks around inline `code`. */
"code::before": null,
"code::after": null,
strong: {
color: "inherit",
},
},
},
},
},
},
} satisfies Config;
export default config;