-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtailwind.config.js
More file actions
41 lines (41 loc) · 1.4 KB
/
tailwind.config.js
File metadata and controls
41 lines (41 loc) · 1.4 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
/** @type {import('tailwindcss').Config} */
export default {
content: ["./index.html", "./src/**/*.{js,ts,jsx,tsx}"],
darkMode: "class",
theme: {
extend: {
colors: {
// Brand palette — driven by CSS custom properties set in useTheme.
// The rgb() wrapper with <alpha-value> enables Tailwind opacity
// modifiers like bg-brand-600/20.
brand: {
300: "rgb(var(--brand-300) / <alpha-value>)",
400: "rgb(var(--brand-400) / <alpha-value>)",
500: "rgb(var(--brand-500) / <alpha-value>)",
600: "rgb(var(--brand-600) / <alpha-value>)",
},
// Severity colours
critical: "#ef4444",
high: "#f97316",
medium: "#eab308",
low: "#22c55e",
info: "#6b7280",
// Surface colours — driven by CSS custom properties for light/dark support
surface: {
900: "rgb(var(--surface-900) / <alpha-value>)",
800: "rgb(var(--surface-800) / <alpha-value>)",
700: "rgb(var(--surface-700) / <alpha-value>)",
600: "rgb(var(--surface-600) / <alpha-value>)",
500: "rgb(var(--surface-500) / <alpha-value>)",
},
},
fontFamily: {
mono: ["JetBrains Mono", "Fira Code", "Cascadia Code", "monospace"],
},
animation: {
"pulse-slow": "pulse 3s cubic-bezier(0.4, 0, 0.6, 1) infinite",
},
},
},
plugins: [],
};