-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtailwind.config.js
More file actions
155 lines (144 loc) · 3.48 KB
/
tailwind.config.js
File metadata and controls
155 lines (144 loc) · 3.48 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
import { fontFamily } from "tailwindcss/defaultTheme";
/** @type {import('tailwindcss').Config} */
export default {
content: [
"./Public/**/*.html",
"./Source/**/*.{astro,js,jsx,ts,tsx,vue,svelte}",
"./src/**/*.{astro,js,jsx,ts,tsx}",
],
darkMode: "class",
theme: {
container: {
center: true,
},
extend: {
transitionTimingFunction: {
Ease: "cubic-bezier(0.21, 0.1, 0.21, 1)",
},
fontFamily: {
sans: ["Albert Sans", ...fontFamily.sans],
},
typography: {
DEFAULT: {
css: {
a: {
"font-weight": "400",
},
},
},
},
borderRadius: {
none: "0",
full: "9999px",
},
borderColor: {
DEFAULT: "var(--Border)",
},
colors: {
/* Design system tokens - maps Tailwind utilities to CSS custom properties in Base.css */
background: "hsl(var(--Background))",
foreground: "var(--Foreground)",
card: {
DEFAULT: "var(--Card)",
foreground: "var(--CardForeground)",
},
popover: {
DEFAULT: "var(--Popover)",
foreground: "var(--PopoverForeground)",
},
primary: {
DEFAULT: "var(--Primary)",
foreground: "var(--PrimaryForeground)",
},
secondary: {
DEFAULT: "var(--Secondary)",
foreground: "var(--SecondaryForeground)",
},
muted: {
DEFAULT: "var(--Mute)",
foreground: "var(--MuteForeground)",
},
accent: {
DEFAULT: "var(--Accent)",
foreground: "var(--AccentForeground)",
},
destructive: {
DEFAULT: "var(--Destruct)",
foreground: "var(--DestructForeground)",
},
border: "var(--Border)",
input: "var(--Input)",
ring: "var(--Ring)",
// Existing tokens
backgroundLight: "var(--BackgroundLight)",
backgroundDark: "var(--BackgroundDark)",
// Bridge colors from Example/src/index.css
"color-green-500": "var(--ColorGreen500)",
"color-yellow-500": "var(--ColorYellow500)",
"color-white": "var(--ColorWhite)",
// Extended technology badge palette - Protocol Spines
"spine-grpc": "#22c55e",
"spine-ipc": "#3b82f6",
"spine-tcp": "#f97316",
"spine-wasm": "#a855f7",
// Extensions & Libraries
"ext-rust": "#ea580c",
"ext-tauri": "#eab308",
"ext-effect-ts": "#06b6d4",
"ext-react": "#60a5fa",
"ext-vue": "#4ade80",
"ext-svelte": "#fb923c",
"ext-next": "#171717",
"ext-nuxt": "#16a34a",
"ext-solid": "#2563eb",
"ext-astro": "#9333ea",
// Platform indicators
"platform-web": "#4f46e5",
"platform-desktop": "#475569",
"platform-mobile": "#ec4899",
},
},
},
variants: {},
plugins: [
require("@tailwindcss/forms"),
require("@tailwindcss/typography"),
require("@tailwindcss/aspect-ratio"),
],
// TODO: Link that to the dynamic components inside ./Source/Function/Scroll/Layout.astro
safelist: [
"h-2",
"w-2",
// Include badge color utilities
"bg-spine-grpc",
"text-spine-grpc",
"border-spine-grpc",
"bg-spine-ipc",
"text-spine-ipc",
"border-spine-ipc",
"bg-spine-tcp",
"text-spine-tcp",
"border-spine-tcp",
"bg-spine-wasm",
"text-spine-wasm",
"border-spine-wasm",
"bg-ext-rust",
"text-ext-rust",
"border-ext-rust",
"bg-ext-tauri",
"text-ext-tauri",
"border-ext-tauri",
"bg-ext-effect-ts",
"text-ext-effect-ts",
"border-ext-effect-ts",
"bg-platform-web",
"text-platform-web",
"border-platform-web",
"bg-platform-desktop",
"text-platform-desktop",
"border-platform-desktop",
"bg-platform-mobile",
"text-platform-mobile",
"border-platform-mobile",
],
};