@code-sherpas/pharos-tokens 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/tokens.js ADDED
@@ -0,0 +1,112 @@
1
+ /**
2
+ * Do not edit directly, this file was auto-generated.
3
+ */
4
+
5
+ export const PharosColorBaseWhite = "oklch(100% 0 0)"; // Pure white. Used as surface background and typical on-color for dark brand fills.
6
+ export const PharosColorBaseBlack = "oklch(0% 0 0)"; // Pure black. Rarely used — prefer color.neutral.900 for text and dark surfaces.
7
+ export const PharosColorNeutral50 = "oklch(97.91% 0 0)"; // Lightest surface. Replaces Alexandria #f8f8f8 and legacy 'grey'.
8
+ export const PharosColorNeutral100 = "oklch(97.02% 0 0)"; // Subtle surface. Replaces Alexandria #f5f5f5 / light-grey / supporting.light.
9
+ export const PharosColorNeutral200 = "oklch(95.21% 0 0)"; // Quiet surface / default border on light mode. Replaces Alexandria #efefef / supporting.base / legacy border.
10
+ export const PharosColorNeutral300 = "oklch(88.82% 0.0029 264.54)"; // Border strong / disabled fill. Replaces Alexandria #d9dadc / supporting.dark / border-dark.
11
+ export const PharosColorNeutral400 = "oklch(81.09% 0 0)"; // Muted foreground on light surfaces. Replaces Alexandria #c1c1c1.
12
+ export const PharosColorNeutral500 = "oklch(52.78% 0 0)"; // Secondary text (most-used neutral). Replaces Alexandria #6b6b6b / secondary-text / supporting.secondary.
13
+ export const PharosColorNeutral600 = "oklch(35.62% 0 0)"; // Icon dark / secondary emphasis. Replaces Alexandria #3c3c3c.
14
+ export const PharosColorNeutral700 = "oklch(29.52% 0.0107 254)"; // Strong text on light surfaces. Replaces Alexandria #292d32.
15
+ export const PharosColorNeutral800 = "oklch(37.05% 0.0436 247.87)"; // Charcoal blue, alternative navy. Replaces Alexandria #2d4256 / charcoal-blue.
16
+ export const PharosColorNeutral900 = "oklch(20.50% 0.02 248.83)"; // Primary text / dark surface. Hero neutral of the Code Sherpas identity. Replaces Alexandria #101820 (279 usages) / main.base / navy-blue-text.
17
+ export const PharosColorNeutral950 = "oklch(14.69% 0.0225 269.48)"; // Deepest neutral. Replaces Alexandria #070a14 / primary-text.
18
+ export const PharosColorPrimary50 = "oklch(95.94% 0.0164 274.82)"; // Primary tint, lightest. Replaces Alexandria #eef1fd / new-primary.light derivates.
19
+ export const PharosColorPrimary100 = "oklch(91.35% 0.0374 275.69)"; // Primary tint, soft. Replaces Alexandria #dbe1fc / new-primary.light.
20
+ export const PharosColorPrimary200 = "oklch(82.70% 0.0785 274.99)"; // Primary tint, medium.
21
+ export const PharosColorPrimary300 = "oklch(74.07% 0.1205 273.68)"; // Primary tint, stronger.
22
+ export const PharosColorPrimary400 = "oklch(65.40% 0.1582 271.71)"; // Primary highlight.
23
+ export const PharosColorPrimary500 = "oklch(57.34% 0.1996 269.61)"; // Primary lighter step.
24
+ export const PharosColorPrimary600 = "oklch(49.83% 0.2417 267.34)"; // Primary brand color (sea blue). Replaces Alexandria #2a48e9 / sea-blue-primitive / new-primary.base.
25
+ export const PharosColorPrimary700 = "oklch(42.19% 0.2111 267.20)"; // Primary pressed / hover dark.
26
+ export const PharosColorPrimary800 = "oklch(34.32% 0.1726 267.54)"; // Primary deep.
27
+ export const PharosColorPrimary900 = "oklch(25.97% 0.1317 268.18)"; // Primary darkest.
28
+ export const PharosColorSemanticSuccessFg = "oklch(52% 0.17 152)"; // Success foreground. Darkened from Alexandria #05b661 (L=68%, failed WCAG) to pass AA 4.5:1 vs white background and AA 3:1 for white text on filled surfaces.
29
+ export const PharosColorSemanticSuccessBg = "oklch(52% 0.17 152 / 0.063)"; // Success background, subtle tint of success.fg.
30
+ export const PharosColorSemanticSuccessOn = "oklch(100% 0 0)"; // Readable on success.fg filled surfaces (WCAG AA).
31
+ export const PharosColorSemanticErrorFg = "oklch(61.28% 0.2305 27.48)"; // Error foreground. Replaces Alexandria #ef2828 / true-red-opaque. Decision D2: single red (laser-red merged).
32
+ export const PharosColorSemanticErrorBg = "oklch(61.28% 0.2305 27.48 / 0.063)"; // Error background, subtle. Replaces Alexandria #ef282810.
33
+ export const PharosColorSemanticErrorOn = "oklch(100% 0 0)"; // Readable on error.fg filled surfaces (WCAG AA).
34
+ export const PharosColorSemanticWarningFg = "oklch(77.77% 0.1588 90.66)"; // Warning foreground. Replaces Alexandria #ddb101 / warning.fore.
35
+ export const PharosColorSemanticWarningBg =
36
+ "oklch(77.77% 0.1588 90.66 / 0.063)"; // Warning background, subtle. Replaces Alexandria #ddb10110 / warning.back.
37
+ export const PharosColorSemanticWarningOn = "oklch(20.50% 0.02 248.83)"; // Readable on warning.fg filled surfaces (WCAG AA). Warning is light/amber — needs dark on-color.
38
+ export const PharosColorSemanticInfoFg = "oklch(52% 0.17 246)"; // Info foreground. Darkened from Alexandria #009bf9 (L=67%, failed WCAG) to pass AA 4.5:1 vs white background.
39
+ export const PharosColorSemanticInfoBg = "oklch(52% 0.17 246 / 0.063)"; // Info background, subtle tint of info.fg.
40
+ export const PharosColorSemanticInfoOn = "oklch(100% 0 0)"; // Readable on info.fg filled surfaces (WCAG AA).
41
+ export const PharosRadiusNone = 0; // No rounding.
42
+ export const PharosRadiusSm = "0.125rem"; // 2px. Subtle rounding.
43
+ export const PharosRadiusMd = "0.375rem"; // 6px. Default control rounding.
44
+ export const PharosRadiusLg = "0.5rem"; // 8px.
45
+ export const PharosRadiusXl = "0.75rem"; // 12px.
46
+ export const PharosRadius2xl = "1rem"; // 16px. Default card rounding (replaces Alexandria cs-md / rounded-cs-md).
47
+ export const PharosRadius3xl = "1.5rem"; // 24px. Large surface rounding (replaces Alexandria cs-lg / rounded-cs-lg).
48
+ export const PharosRadiusFull = "9999px"; // Fully rounded — pills, avatars, icon buttons. 117 usages in Alexandria.
49
+ export const PharosShadowSm = "0 1px 2px 0 rgb(0 0 0 / 0.05)"; // Subtle elevation.
50
+ export const PharosShadowMd =
51
+ "0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)"; // Default elevation for cards at rest.
52
+ export const PharosShadowLg =
53
+ "0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)"; // Hover or raised card.
54
+ export const PharosShadowXl =
55
+ "0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)"; // Modals, popovers.
56
+ export const PharosZ0 = "0"; // Default stacking context.
57
+ export const PharosZHeader = "1000";
58
+ export const PharosZAboveHeader = "1100";
59
+ export const PharosZModalOverlay = "9998";
60
+ export const PharosZModal = "9999";
61
+ export const PharosZDrawerOverlay = "9999";
62
+ export const PharosZDrawer = "10000";
63
+ export const PharosZDropdown = "10001";
64
+ export const PharosZTooltip = "10002"; // Highest priority — tooltips always win.
65
+ export const PharosDurationFast = "100ms"; // Micro interactions (hover).
66
+ export const PharosDurationNormal = "200ms"; // Default transitions.
67
+ export const PharosDurationSlow = "300ms"; // Panel slide, overlay fade.
68
+ export const PharosEasingIn = "cubic-bezier(0.4, 0, 1, 1)";
69
+ export const PharosEasingOut = "cubic-bezier(0, 0, 0.2, 1)";
70
+ export const PharosEasingInOut = "cubic-bezier(0.4, 0, 0.2, 1)";
71
+ export const PharosSpacing0 = 0; // Zero.
72
+ export const PharosSpacing1 = "0.25rem"; // 4px. Tightest usable gap.
73
+ export const PharosSpacing2 = "0.5rem"; // 8px. Common small gap (replaces Alexandria cs-xs).
74
+ export const PharosSpacing3 = "0.75rem"; // 12px. Replaces Alexandria cs-sm.
75
+ export const PharosSpacing4 = "1rem"; // 16px. Default body padding (replaces Alexandria cs-md).
76
+ export const PharosSpacing5 = "1.25rem"; // 20px.
77
+ export const PharosSpacing6 = "1.5rem"; // 24px. Default card padding (replaces Alexandria cs-lg).
78
+ export const PharosSpacing7 = "1.75rem"; // 28px.
79
+ export const PharosSpacing8 = "2rem"; // 32px. Section gap (replaces Alexandria cs-xl).
80
+ export const PharosSpacing10 = "2.5rem"; // 40px. Large section gap (replaces Alexandria cs-2xl).
81
+ export const PharosSpacing12 = "3rem"; // 48px.
82
+ export const PharosSpacing16 = "4rem"; // 64px.
83
+ export const PharosSpacing20 = "5rem"; // 80px.
84
+ export const PharosSpacing24 = "6rem"; // 96px.
85
+ export const PharosSpacing05 = "0.125rem"; // 2px.
86
+ export const PharosSpacing15 = "0.375rem"; // 6px.
87
+ export const PharosSpacing25 = "0.625rem"; // 10px.
88
+ export const PharosFontFamilySans =
89
+ '"Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif'; // Default sans-serif stack. Inter can be replaced at the consumer layer via CSS var override.
90
+ export const PharosFontFamilyMono =
91
+ 'ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace'; // Default monospace stack for code.
92
+ export const PharosFontWeightRegular = "400";
93
+ export const PharosFontWeightMedium = "500";
94
+ export const PharosFontWeightSemibold = "600";
95
+ export const PharosFontWeightBold = "700";
96
+ export const PharosFontSizeXs = "0.75rem"; // 12px. Helper text, captions.
97
+ export const PharosFontSizeSm = "0.875rem"; // 14px. Body default in Pharos (Decision D3: formalizes Alexandria's dominant body size).
98
+ export const PharosFontSizeBase = "1rem"; // 16px. Reserved for increased-legibility contexts.
99
+ export const PharosFontSizeLg = "1.125rem"; // 18px.
100
+ export const PharosFontSizeXl = "1.25rem"; // 20px.
101
+ export const PharosFontSize2xl = "1.5rem"; // 24px. Heading level 3 / large titles.
102
+ export const PharosFontSize3xl = "1.875rem"; // 30px. Heading level 2.
103
+ export const PharosFontSize4xl = "2.25rem"; // 36px. Heading level 1.
104
+ export const PharosFontSize5xl = "3rem"; // 48px. Display.
105
+ export const PharosFontLineHeightTight = "1.25";
106
+ export const PharosFontLineHeightSnug = "1.375";
107
+ export const PharosFontLineHeightNormal = "1.5"; // Default body line-height.
108
+ export const PharosFontLineHeightRelaxed = "1.625";
109
+ export const PharosFontLineHeightLoose = "2";
110
+ export const PharosFontLetterSpacingTight = "-0.025em";
111
+ export const PharosFontLetterSpacingNormal = 0;
112
+ export const PharosFontLetterSpacingWide = "0.025em";
@@ -0,0 +1,143 @@
1
+ {
2
+ "color": {
3
+ "base": {
4
+ "white": "oklch(100% 0 0)",
5
+ "black": "oklch(0% 0 0)"
6
+ },
7
+ "neutral": {
8
+ "50": "oklch(97.91% 0 0)",
9
+ "100": "oklch(97.02% 0 0)",
10
+ "200": "oklch(95.21% 0 0)",
11
+ "300": "oklch(88.82% 0.0029 264.54)",
12
+ "400": "oklch(81.09% 0 0)",
13
+ "500": "oklch(52.78% 0 0)",
14
+ "600": "oklch(35.62% 0 0)",
15
+ "700": "oklch(29.52% 0.0107 254)",
16
+ "800": "oklch(37.05% 0.0436 247.87)",
17
+ "900": "oklch(20.50% 0.02 248.83)",
18
+ "950": "oklch(14.69% 0.0225 269.48)"
19
+ },
20
+ "primary": {
21
+ "50": "oklch(95.94% 0.0164 274.82)",
22
+ "100": "oklch(91.35% 0.0374 275.69)",
23
+ "200": "oklch(82.70% 0.0785 274.99)",
24
+ "300": "oklch(74.07% 0.1205 273.68)",
25
+ "400": "oklch(65.40% 0.1582 271.71)",
26
+ "500": "oklch(57.34% 0.1996 269.61)",
27
+ "600": "oklch(49.83% 0.2417 267.34)",
28
+ "700": "oklch(42.19% 0.2111 267.20)",
29
+ "800": "oklch(34.32% 0.1726 267.54)",
30
+ "900": "oklch(25.97% 0.1317 268.18)"
31
+ },
32
+ "semantic": {
33
+ "success": {
34
+ "fg": "oklch(52% 0.17 152)",
35
+ "bg": "oklch(52% 0.17 152 / 0.063)",
36
+ "on": "oklch(100% 0 0)"
37
+ },
38
+ "error": {
39
+ "fg": "oklch(61.28% 0.2305 27.48)",
40
+ "bg": "oklch(61.28% 0.2305 27.48 / 0.063)",
41
+ "on": "oklch(100% 0 0)"
42
+ },
43
+ "warning": {
44
+ "fg": "oklch(77.77% 0.1588 90.66)",
45
+ "bg": "oklch(77.77% 0.1588 90.66 / 0.063)",
46
+ "on": "oklch(20.50% 0.02 248.83)"
47
+ },
48
+ "info": {
49
+ "fg": "oklch(52% 0.17 246)",
50
+ "bg": "oklch(52% 0.17 246 / 0.063)",
51
+ "on": "oklch(100% 0 0)"
52
+ }
53
+ }
54
+ },
55
+ "radius": {
56
+ "none": 0,
57
+ "sm": "0.125rem",
58
+ "md": "0.375rem",
59
+ "lg": "0.5rem",
60
+ "xl": "0.75rem",
61
+ "2xl": "1rem",
62
+ "3xl": "1.5rem",
63
+ "full": "9999px"
64
+ },
65
+ "shadow": {
66
+ "sm": "0 1px 2px 0 rgb(0 0 0 / 0.05)",
67
+ "md": "0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)",
68
+ "lg": "0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)",
69
+ "xl": "0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)"
70
+ },
71
+ "z": {
72
+ "0": "0",
73
+ "header": "1000",
74
+ "above-header": "1100",
75
+ "modal-overlay": "9998",
76
+ "modal": "9999",
77
+ "drawer-overlay": "9999",
78
+ "drawer": "10000",
79
+ "dropdown": "10001",
80
+ "tooltip": "10002"
81
+ },
82
+ "duration": {
83
+ "fast": "100ms",
84
+ "normal": "200ms",
85
+ "slow": "300ms"
86
+ },
87
+ "easing": {
88
+ "in": "cubic-bezier(0.4, 0, 1, 1)",
89
+ "out": "cubic-bezier(0, 0, 0.2, 1)",
90
+ "in-out": "cubic-bezier(0.4, 0, 0.2, 1)"
91
+ },
92
+ "spacing": {
93
+ "0": 0,
94
+ "1": "0.25rem",
95
+ "2": "0.5rem",
96
+ "3": "0.75rem",
97
+ "4": "1rem",
98
+ "5": "1.25rem",
99
+ "6": "1.5rem",
100
+ "7": "1.75rem",
101
+ "8": "2rem",
102
+ "10": "2.5rem",
103
+ "12": "3rem",
104
+ "16": "4rem",
105
+ "20": "5rem",
106
+ "24": "6rem"
107
+ },
108
+ "font": {
109
+ "family": {
110
+ "sans": "\"Inter\", system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif",
111
+ "mono": "ui-monospace, SFMono-Regular, \"SF Mono\", Menlo, Consolas, \"Liberation Mono\", monospace"
112
+ },
113
+ "weight": {
114
+ "regular": "400",
115
+ "medium": "500",
116
+ "semibold": "600",
117
+ "bold": "700"
118
+ },
119
+ "size": {
120
+ "xs": "0.75rem",
121
+ "sm": "0.875rem",
122
+ "base": "1rem",
123
+ "lg": "1.125rem",
124
+ "xl": "1.25rem",
125
+ "2xl": "1.5rem",
126
+ "3xl": "1.875rem",
127
+ "4xl": "2.25rem",
128
+ "5xl": "3rem"
129
+ },
130
+ "lineHeight": {
131
+ "tight": "1.25",
132
+ "snug": "1.375",
133
+ "normal": "1.5",
134
+ "relaxed": "1.625",
135
+ "loose": "2"
136
+ },
137
+ "letterSpacing": {
138
+ "tight": "-0.025em",
139
+ "normal": 0,
140
+ "wide": "0.025em"
141
+ }
142
+ }
143
+ }
package/package.json ADDED
@@ -0,0 +1,59 @@
1
+ {
2
+ "name": "@code-sherpas/pharos-tokens",
3
+ "version": "0.1.0",
4
+ "description": "Design tokens de Code Sherpas — agnóstico de framework. DTCG + Style Dictionary + OKLCH.",
5
+ "license": "MIT",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git+https://github.com/code-sherpas/pharos-tokens.git"
9
+ },
10
+ "homepage": "https://github.com/code-sherpas/pharos-tokens#readme",
11
+ "bugs": {
12
+ "url": "https://github.com/code-sherpas/pharos-tokens/issues"
13
+ },
14
+ "publishConfig": {
15
+ "access": "public"
16
+ },
17
+ "type": "module",
18
+ "files": [
19
+ "dist",
20
+ "src",
21
+ "RULES.md"
22
+ ],
23
+ "exports": {
24
+ ".": {
25
+ "types": "./dist/index.d.ts",
26
+ "import": "./dist/index.js"
27
+ },
28
+ "./css": "./dist/styles.css",
29
+ "./dtcg/*": "./src/*.tokens.json"
30
+ },
31
+ "engines": {
32
+ "node": ">=22"
33
+ },
34
+ "devDependencies": {
35
+ "@changesets/cli": "^2.27.10",
36
+ "@types/culori": "^4.0.1",
37
+ "@types/node": "^25.6.0",
38
+ "@typescript-eslint/eslint-plugin": "^8.20.0",
39
+ "@typescript-eslint/parser": "^8.20.0",
40
+ "culori": "^4.0.1",
41
+ "eslint": "^10.2.1",
42
+ "eslint-config-prettier": "^10.1.8",
43
+ "prettier": "^3.4.2",
44
+ "style-dictionary": "^5.4.0",
45
+ "typescript": "^6.0.3",
46
+ "vitest": "^4.1.4"
47
+ },
48
+ "scripts": {
49
+ "build": "node build/style-dictionary.config.mjs",
50
+ "test": "vitest run",
51
+ "test:watch": "vitest",
52
+ "typecheck": "tsc --noEmit",
53
+ "lint": "eslint .",
54
+ "format": "prettier --write .",
55
+ "format:check": "prettier --check .",
56
+ "changeset": "changeset",
57
+ "release": "pnpm build && changeset publish"
58
+ }
59
+ }
@@ -0,0 +1,195 @@
1
+ {
2
+ "color": {
3
+ "base": {
4
+ "white": {
5
+ "$value": "oklch(100% 0 0)",
6
+ "$type": "color",
7
+ "$description": "Pure white. Used as surface background and typical on-color for dark brand fills."
8
+ },
9
+ "black": {
10
+ "$value": "oklch(0% 0 0)",
11
+ "$type": "color",
12
+ "$description": "Pure black. Rarely used — prefer color.neutral.900 for text and dark surfaces."
13
+ }
14
+ },
15
+ "neutral": {
16
+ "50": {
17
+ "$value": "oklch(97.91% 0 0)",
18
+ "$type": "color",
19
+ "$description": "Lightest surface. Replaces Alexandria #f8f8f8 and legacy 'grey'."
20
+ },
21
+ "100": {
22
+ "$value": "oklch(97.02% 0 0)",
23
+ "$type": "color",
24
+ "$description": "Subtle surface. Replaces Alexandria #f5f5f5 / light-grey / supporting.light."
25
+ },
26
+ "200": {
27
+ "$value": "oklch(95.21% 0 0)",
28
+ "$type": "color",
29
+ "$description": "Quiet surface / default border on light mode. Replaces Alexandria #efefef / supporting.base / legacy border."
30
+ },
31
+ "300": {
32
+ "$value": "oklch(88.82% 0.0029 264.54)",
33
+ "$type": "color",
34
+ "$description": "Border strong / disabled fill. Replaces Alexandria #d9dadc / supporting.dark / border-dark."
35
+ },
36
+ "400": {
37
+ "$value": "oklch(81.09% 0 0)",
38
+ "$type": "color",
39
+ "$description": "Muted foreground on light surfaces. Replaces Alexandria #c1c1c1."
40
+ },
41
+ "500": {
42
+ "$value": "oklch(52.78% 0 0)",
43
+ "$type": "color",
44
+ "$description": "Secondary text (most-used neutral). Replaces Alexandria #6b6b6b / secondary-text / supporting.secondary."
45
+ },
46
+ "600": {
47
+ "$value": "oklch(35.62% 0 0)",
48
+ "$type": "color",
49
+ "$description": "Icon dark / secondary emphasis. Replaces Alexandria #3c3c3c."
50
+ },
51
+ "700": {
52
+ "$value": "oklch(29.52% 0.0107 254)",
53
+ "$type": "color",
54
+ "$description": "Strong text on light surfaces. Replaces Alexandria #292d32."
55
+ },
56
+ "800": {
57
+ "$value": "oklch(37.05% 0.0436 247.87)",
58
+ "$type": "color",
59
+ "$description": "Charcoal blue, alternative navy. Replaces Alexandria #2d4256 / charcoal-blue."
60
+ },
61
+ "900": {
62
+ "$value": "oklch(20.50% 0.02 248.83)",
63
+ "$type": "color",
64
+ "$description": "Primary text / dark surface. Hero neutral of the Code Sherpas identity. Replaces Alexandria #101820 (279 usages) / main.base / navy-blue-text."
65
+ },
66
+ "950": {
67
+ "$value": "oklch(14.69% 0.0225 269.48)",
68
+ "$type": "color",
69
+ "$description": "Deepest neutral. Replaces Alexandria #070a14 / primary-text."
70
+ }
71
+ },
72
+ "primary": {
73
+ "50": {
74
+ "$value": "oklch(95.94% 0.0164 274.82)",
75
+ "$type": "color",
76
+ "$description": "Primary tint, lightest. Replaces Alexandria #eef1fd / new-primary.light derivates."
77
+ },
78
+ "100": {
79
+ "$value": "oklch(91.35% 0.0374 275.69)",
80
+ "$type": "color",
81
+ "$description": "Primary tint, soft. Replaces Alexandria #dbe1fc / new-primary.light."
82
+ },
83
+ "200": {
84
+ "$value": "oklch(82.70% 0.0785 274.99)",
85
+ "$type": "color",
86
+ "$description": "Primary tint, medium."
87
+ },
88
+ "300": {
89
+ "$value": "oklch(74.07% 0.1205 273.68)",
90
+ "$type": "color",
91
+ "$description": "Primary tint, stronger."
92
+ },
93
+ "400": {
94
+ "$value": "oklch(65.40% 0.1582 271.71)",
95
+ "$type": "color",
96
+ "$description": "Primary highlight."
97
+ },
98
+ "500": {
99
+ "$value": "oklch(57.34% 0.1996 269.61)",
100
+ "$type": "color",
101
+ "$description": "Primary lighter step."
102
+ },
103
+ "600": {
104
+ "$value": "oklch(49.83% 0.2417 267.34)",
105
+ "$type": "color",
106
+ "$description": "Primary brand color (sea blue). Replaces Alexandria #2a48e9 / sea-blue-primitive / new-primary.base."
107
+ },
108
+ "700": {
109
+ "$value": "oklch(42.19% 0.2111 267.20)",
110
+ "$type": "color",
111
+ "$description": "Primary pressed / hover dark."
112
+ },
113
+ "800": {
114
+ "$value": "oklch(34.32% 0.1726 267.54)",
115
+ "$type": "color",
116
+ "$description": "Primary deep."
117
+ },
118
+ "900": {
119
+ "$value": "oklch(25.97% 0.1317 268.18)",
120
+ "$type": "color",
121
+ "$description": "Primary darkest."
122
+ }
123
+ },
124
+ "semantic": {
125
+ "success": {
126
+ "fg": {
127
+ "$value": "oklch(52% 0.17 152)",
128
+ "$type": "color",
129
+ "$description": "Success foreground. Darkened from Alexandria #05b661 (L=68%, failed WCAG) to pass AA 4.5:1 vs white background and AA 3:1 for white text on filled surfaces."
130
+ },
131
+ "bg": {
132
+ "$value": "oklch(52% 0.17 152 / 0.063)",
133
+ "$type": "color",
134
+ "$description": "Success background, subtle tint of success.fg."
135
+ },
136
+ "on": {
137
+ "$value": "{color.base.white}",
138
+ "$type": "color",
139
+ "$description": "Readable on success.fg filled surfaces (WCAG AA)."
140
+ }
141
+ },
142
+ "error": {
143
+ "fg": {
144
+ "$value": "oklch(61.28% 0.2305 27.48)",
145
+ "$type": "color",
146
+ "$description": "Error foreground. Replaces Alexandria #ef2828 / true-red-opaque. Decision D2: single red (laser-red merged)."
147
+ },
148
+ "bg": {
149
+ "$value": "oklch(61.28% 0.2305 27.48 / 0.063)",
150
+ "$type": "color",
151
+ "$description": "Error background, subtle. Replaces Alexandria #ef282810."
152
+ },
153
+ "on": {
154
+ "$value": "{color.base.white}",
155
+ "$type": "color",
156
+ "$description": "Readable on error.fg filled surfaces (WCAG AA)."
157
+ }
158
+ },
159
+ "warning": {
160
+ "fg": {
161
+ "$value": "oklch(77.77% 0.1588 90.66)",
162
+ "$type": "color",
163
+ "$description": "Warning foreground. Replaces Alexandria #ddb101 / warning.fore."
164
+ },
165
+ "bg": {
166
+ "$value": "oklch(77.77% 0.1588 90.66 / 0.063)",
167
+ "$type": "color",
168
+ "$description": "Warning background, subtle. Replaces Alexandria #ddb10110 / warning.back."
169
+ },
170
+ "on": {
171
+ "$value": "{color.neutral.900}",
172
+ "$type": "color",
173
+ "$description": "Readable on warning.fg filled surfaces (WCAG AA). Warning is light/amber — needs dark on-color."
174
+ }
175
+ },
176
+ "info": {
177
+ "fg": {
178
+ "$value": "oklch(52% 0.17 246)",
179
+ "$type": "color",
180
+ "$description": "Info foreground. Darkened from Alexandria #009bf9 (L=67%, failed WCAG) to pass AA 4.5:1 vs white background."
181
+ },
182
+ "bg": {
183
+ "$value": "oklch(52% 0.17 246 / 0.063)",
184
+ "$type": "color",
185
+ "$description": "Info background, subtle tint of info.fg."
186
+ },
187
+ "on": {
188
+ "$value": "{color.base.white}",
189
+ "$type": "color",
190
+ "$description": "Readable on info.fg filled surfaces (WCAG AA)."
191
+ }
192
+ }
193
+ }
194
+ }
195
+ }
@@ -0,0 +1,28 @@
1
+ {
2
+ "radius": {
3
+ "none": { "$value": "0", "$type": "dimension", "$description": "No rounding." },
4
+ "sm": { "$value": "0.125rem", "$type": "dimension", "$description": "2px. Subtle rounding." },
5
+ "md": {
6
+ "$value": "0.375rem",
7
+ "$type": "dimension",
8
+ "$description": "6px. Default control rounding."
9
+ },
10
+ "lg": { "$value": "0.5rem", "$type": "dimension", "$description": "8px." },
11
+ "xl": { "$value": "0.75rem", "$type": "dimension", "$description": "12px." },
12
+ "2xl": {
13
+ "$value": "1rem",
14
+ "$type": "dimension",
15
+ "$description": "16px. Default card rounding (replaces Alexandria cs-md / rounded-cs-md)."
16
+ },
17
+ "3xl": {
18
+ "$value": "1.5rem",
19
+ "$type": "dimension",
20
+ "$description": "24px. Large surface rounding (replaces Alexandria cs-lg / rounded-cs-lg)."
21
+ },
22
+ "full": {
23
+ "$value": "9999px",
24
+ "$type": "dimension",
25
+ "$description": "Fully rounded — pills, avatars, icon buttons. 117 usages in Alexandria."
26
+ }
27
+ }
28
+ }
@@ -0,0 +1,53 @@
1
+ {
2
+ "shadow": {
3
+ "sm": {
4
+ "$value": "0 1px 2px 0 rgb(0 0 0 / 0.05)",
5
+ "$type": "shadow",
6
+ "$description": "Subtle elevation."
7
+ },
8
+ "md": {
9
+ "$value": "0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)",
10
+ "$type": "shadow",
11
+ "$description": "Default elevation for cards at rest."
12
+ },
13
+ "lg": {
14
+ "$value": "0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)",
15
+ "$type": "shadow",
16
+ "$description": "Hover or raised card."
17
+ },
18
+ "xl": {
19
+ "$value": "0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)",
20
+ "$type": "shadow",
21
+ "$description": "Modals, popovers."
22
+ }
23
+ },
24
+ "z": {
25
+ "0": { "$value": "0", "$type": "number", "$description": "Default stacking context." },
26
+ "header": { "$value": "1000", "$type": "number" },
27
+ "above-header": { "$value": "1100", "$type": "number" },
28
+ "modal-overlay": { "$value": "9998", "$type": "number" },
29
+ "modal": { "$value": "9999", "$type": "number" },
30
+ "drawer-overlay": { "$value": "9999", "$type": "number" },
31
+ "drawer": { "$value": "10000", "$type": "number" },
32
+ "dropdown": { "$value": "10001", "$type": "number" },
33
+ "tooltip": {
34
+ "$value": "10002",
35
+ "$type": "number",
36
+ "$description": "Highest priority — tooltips always win."
37
+ }
38
+ },
39
+ "duration": {
40
+ "fast": {
41
+ "$value": "100ms",
42
+ "$type": "duration",
43
+ "$description": "Micro interactions (hover)."
44
+ },
45
+ "normal": { "$value": "200ms", "$type": "duration", "$description": "Default transitions." },
46
+ "slow": { "$value": "300ms", "$type": "duration", "$description": "Panel slide, overlay fade." }
47
+ },
48
+ "easing": {
49
+ "in": { "$value": "cubic-bezier(0.4, 0, 1, 1)", "$type": "cubicBezier" },
50
+ "out": { "$value": "cubic-bezier(0, 0, 0.2, 1)", "$type": "cubicBezier" },
51
+ "in-out": { "$value": "cubic-bezier(0.4, 0, 0.2, 1)", "$type": "cubicBezier" }
52
+ }
53
+ }
@@ -0,0 +1,45 @@
1
+ {
2
+ "spacing": {
3
+ "0": { "$value": "0", "$type": "dimension", "$description": "Zero." },
4
+ "0.5": { "$value": "0.125rem", "$type": "dimension", "$description": "2px." },
5
+ "1": { "$value": "0.25rem", "$type": "dimension", "$description": "4px. Tightest usable gap." },
6
+ "1.5": { "$value": "0.375rem", "$type": "dimension", "$description": "6px." },
7
+ "2": {
8
+ "$value": "0.5rem",
9
+ "$type": "dimension",
10
+ "$description": "8px. Common small gap (replaces Alexandria cs-xs)."
11
+ },
12
+ "2.5": { "$value": "0.625rem", "$type": "dimension", "$description": "10px." },
13
+ "3": {
14
+ "$value": "0.75rem",
15
+ "$type": "dimension",
16
+ "$description": "12px. Replaces Alexandria cs-sm."
17
+ },
18
+ "4": {
19
+ "$value": "1rem",
20
+ "$type": "dimension",
21
+ "$description": "16px. Default body padding (replaces Alexandria cs-md)."
22
+ },
23
+ "5": { "$value": "1.25rem", "$type": "dimension", "$description": "20px." },
24
+ "6": {
25
+ "$value": "1.5rem",
26
+ "$type": "dimension",
27
+ "$description": "24px. Default card padding (replaces Alexandria cs-lg)."
28
+ },
29
+ "7": { "$value": "1.75rem", "$type": "dimension", "$description": "28px." },
30
+ "8": {
31
+ "$value": "2rem",
32
+ "$type": "dimension",
33
+ "$description": "32px. Section gap (replaces Alexandria cs-xl)."
34
+ },
35
+ "10": {
36
+ "$value": "2.5rem",
37
+ "$type": "dimension",
38
+ "$description": "40px. Large section gap (replaces Alexandria cs-2xl)."
39
+ },
40
+ "12": { "$value": "3rem", "$type": "dimension", "$description": "48px." },
41
+ "16": { "$value": "4rem", "$type": "dimension", "$description": "64px." },
42
+ "20": { "$value": "5rem", "$type": "dimension", "$description": "80px." },
43
+ "24": { "$value": "6rem", "$type": "dimension", "$description": "96px." }
44
+ }
45
+ }