Skip to content

Commit 7def3be

Browse files
committed
feat(design): add primitive token layer (tokens.css)
Change-Id: I6e0fbd73f4d59f2779d48cdedb8979da36c63271
1 parent bf0f085 commit 7def3be

1 file changed

Lines changed: 40 additions & 0 deletions

File tree

src/styles/tokens.css

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
/*
2+
Primitive tokens — fixed values. Do NOT remap in dark mode.
3+
Components must NEVER reference these directly. Use semantic tokens
4+
in theme.css instead.
5+
*/
6+
7+
:root {
8+
/* Neutrals — clean ramp, no duplicates (intentionally diverges from
9+
mergify.com which has gray-50 == gray-200 collisions). */
10+
--color-white: #ffffff;
11+
--color-dark: #000000;
12+
--color-gray-50: #f6f7f8; /* Docs body-bg tone — preserves the historical
13+
"Mergify gray" character that the translucent
14+
navbar relies on for visual presence. */
15+
--color-gray-100: #f3f4f6;
16+
--color-gray-200: #e5e7eb;
17+
--color-gray-300: #d1d5db;
18+
--color-gray-400: #9ca3af;
19+
--color-gray-500: #6b7280;
20+
--color-gray-600: #4b5563;
21+
--color-gray-700: #374151;
22+
--color-gray-800: #1f2937;
23+
--color-gray-900: #111827;
24+
25+
/* Product palette — verbatim from mergify.com/DESIGN.md.
26+
Brand colors. Do NOT flip in dark mode. */
27+
--color-teal-400: #82ddbe; /* Merge Queue accent */
28+
--color-teal-700: #1cb893; /* Merge Queue label */
29+
--color-purple-400: #858ef4; /* CI Insights accent */
30+
--color-purple-700: #4d59e0; /* CI Insights label */
31+
--color-orange-400: #f9b070; /* Test Insights accent */
32+
--color-orange-700: #f27b2a; /* Test Insights label */
33+
--color-blue-400: #85c9f4; /* Merge Protections accent */
34+
--color-blue-700: #43a7e5; /* Merge Protections label */
35+
--color-blue-800: #237caf; /* Link hover (docs-only) */
36+
--color-coral-400: #ef9a9a; /* Stacks accent */
37+
--color-coral-700: #e53935; /* Stacks label */
38+
--color-rose-400: #f485b3; /* Workflow Automation accent */
39+
--color-rose-700: #e61e71; /* Workflow Automation label */
40+
}

0 commit comments

Comments
 (0)