Repository navigation
Expand file tree
/
Copy pathtailwind.config.ts
More file actions
52 lines (52 loc) · 1.93 KB
/
Copy pathtailwind.config.ts
File metadata and controls
52 lines (52 loc) · 1.93 KB
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
/** @type {import('tailwindcss').Config} */
module.exports = {
content: [
"./app/**/*.{js,ts,jsx,tsx}",
"./pages/**/*.{js,ts,jsx,tsx}",
"./components/**/*.{js,ts,jsx,tsx}"
],
theme: {
extend: {
colors: {
border: "hsl(var(--border))",
background: "hsl(var(--background))",
foreground: "hsl(var(--foreground))",
card: "hsl(var(--card))",
"card-foreground": "hsl(var(--card-foreground))",
popover: "hsl(var(--popover))",
"popover-foreground": "hsl(var(--popover-foreground))",
primary: "hsl(var(--primary))",
"primary-foreground": "hsl(var(--primary-foreground))",
secondary: "hsl(var(--secondary))",
"secondary-foreground": "hsl(var(--secondary-foreground))",
muted: "hsl(var(--muted))",
"muted-foreground": "hsl(var(--muted-foreground))",
accent: "hsl(var(--accent))",
"accent-foreground": "hsl(var(--accent-foreground))",
destructive: "hsl(var(--destructive))",
"destructive-foreground": "hsl(var(--destructive-foreground))",
input: "hsl(var(--input))",
ring: "hsl(var(--ring))",
// Only defined inside DWOSI pages (app/dwosi/dwosi.css)
brand: {
DEFAULT: "hsl(var(--brand) / <alpha-value>)",
foreground: "hsl(var(--brand-foreground) / <alpha-value>)",
},
cta: {
DEFAULT: "hsl(var(--cta) / <alpha-value>)",
foreground: "hsl(var(--cta-foreground) / <alpha-value>)",
},
},
borderRadius: {
DEFAULT: "var(--radius)",
},
},
},
plugins: [
// `can-hover:` applies hover styles only on devices with a precise pointer,
// so taps on touch screens don't leave elements stuck in a hover state.
function ({ addVariant }: { addVariant: (name: string, definition: string) => void }) {
addVariant("can-hover", "@media (hover: hover) and (pointer: fine) { &:hover }");
},
],
};