forked from zmkfirmware/zmk-studio
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathtailwind.config.js
More file actions
60 lines (59 loc) · 2.1 KB
/
Copy pathtailwind.config.js
File metadata and controls
60 lines (59 loc) · 2.1 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
53
54
55
56
57
58
59
60
/** @type {import('tailwindcss').Config} */
import trac from "tailwindcss-react-aria-components";
// IBM Carbon Design tokens are driven by CSS variables (see src/index.css),
// switched between light/dark by toggling the `.dark` class on <html>. Token
// NAMES are kept identical to the previous theme so existing feature panels
// (LightingControl, BehaviorBindingPicker, HidUsageGrid, …) re-skin as-is.
export default {
darkMode: "class",
content: ["./index.html", "./download.html", "./src/**/*.{js,ts,jsx,tsx}"],
theme: {
fontSize: {
"2xs": "0.625rem",
xs: "0.75rem",
sm: "0.875rem",
base: "1rem",
lg: "1.125rem",
xl: "1.25rem",
"2xl": "1.5rem",
},
extend: {
fontFamily: {
sans: ["IBM Plex Sans", "system-ui", "sans-serif"],
mono: ["IBM Plex Mono", "monospace"],
keycap: ["IBM Plex Mono", "monospace"],
},
colors: {
background: "hsl(var(--background) / <alpha-value>)",
primary: "hsl(var(--primary) / <alpha-value>)",
"primary-content": "hsl(var(--primary-content) / <alpha-value>)",
secondary: "hsl(var(--secondary) / <alpha-value>)",
accent: "hsl(var(--accent) / <alpha-value>)",
"base-content": "hsl(var(--base-content) / <alpha-value>)",
"base-100": "hsl(var(--base-100) / <alpha-value>)",
"base-200": "hsl(var(--base-200) / <alpha-value>)",
"base-300": "hsl(var(--base-300) / <alpha-value>)",
// Carbon status colors (also available to feature panels)
success: "hsl(var(--success) / <alpha-value>)",
warning: "hsl(var(--warning) / <alpha-value>)",
error: "hsl(var(--error) / <alpha-value>)",
},
borderRadius: {
// Carbon uses square corners for surfaces/controls; only pills/circles round.
none: "0px",
sm: "0px",
DEFAULT: "0px",
md: "0px",
lg: "0px",
xl: "0px",
"2xl": "0px",
"3xl": "0px",
full: "9999px",
},
},
fontFamily: {
keycap: ["IBM Plex Mono", "monospace"],
},
},
plugins: [trac({ prefix: "rac" })],
};