-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.ts
43 lines (41 loc) · 1.04 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
import type { Config } from "tailwindcss";
import plugin from "tailwindcss/plugin";
import type { KeyValuePair } from "tailwindcss/types/config";
const config: Config = {
content: ["./app/**/*.{ts,tsx,mdx}"],
theme: {
extend: {
fontFamily: {
sans: ["var(--font-geist-sans)"],
mono: ["var(--font-geist-mono)"],
},
screens: {
"2xs": "475px",
xs: "525px",
},
},
},
corePlugins: {
content: false,
},
plugins: [
plugin(({ matchUtilities, theme }) => {
matchUtilities(
{
content: (value) => ({
// Can't use `var(--tw-content)` here because Firefox doesn't discard unsupported alt
// text syntax for `content` when it uses `var`.
content: [value, `${value} / ''`],
}),
},
{
values: theme<KeyValuePair<string, string>>("content"),
},
);
}),
plugin(({ addVariant }) => {
addVariant("tall", "@media (min-height: 500px)");
}),
],
};
export default config;