@code-sherpas/pharos-tokens 0.4.0 → 0.6.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/index.js CHANGED
@@ -12,17 +12,17 @@ export const tokens = {
12
12
  "black": "oklch(0% 0 0)"
13
13
  },
14
14
  "neutral": {
15
- "50": "oklch(97.91% 0 0)",
16
- "100": "oklch(97.02% 0 0)",
17
- "200": "oklch(95.21% 0 0)",
18
- "300": "oklch(88.82% 0.0029 264.54)",
19
- "400": "oklch(81.09% 0 0)",
20
- "500": "oklch(52.78% 0 0)",
21
- "600": "oklch(35.62% 0 0)",
22
- "700": "oklch(29.52% 0.0107 254)",
23
- "800": "oklch(37.05% 0.0436 247.87)",
15
+ "50": "oklch(97.91% 0.003 248.83)",
16
+ "100": "oklch(97.02% 0.004 248.83)",
17
+ "200": "oklch(95.21% 0.005 248.83)",
18
+ "300": "oklch(88.82% 0.007 248.83)",
19
+ "400": "oklch(81.09% 0.01 248.83)",
20
+ "500": "oklch(52.78% 0.016 248.83)",
21
+ "600": "oklch(35.62% 0.019 248.83)",
22
+ "700": "oklch(29.52% 0.02 248.83)",
23
+ "800": "oklch(24.5% 0.02 248.83)",
24
24
  "900": "oklch(20.50% 0.02 248.83)",
25
- "950": "oklch(14.69% 0.0225 269.48)"
25
+ "950": "oklch(14.69% 0.0225 248.83)"
26
26
  },
27
27
  "primary": {
28
28
  "50": "oklch(95.94% 0.0164 274.82)",
@@ -38,14 +38,14 @@ export const tokens = {
38
38
  },
39
39
  "semantic": {
40
40
  "success": {
41
- "fg": "oklch(52% 0.17 152)",
42
- "bg": "oklch(52% 0.17 152 / 0.063)",
41
+ "fg": "oklch(52% 0.136 152)",
42
+ "bg": "oklch(52% 0.136 152 / 0.063)",
43
43
  "on": "oklch(100% 0 0)"
44
44
  },
45
45
  "error": {
46
46
  "fg": "oklch(54% 0.22 27.48)",
47
- "fg-hover": "oklch(47% 0.205 27.48)",
48
- "fg-active": "oklch(40% 0.175 27.48)",
47
+ "fg-hover": "oklch(47% 0.191 27.48)",
48
+ "fg-active": "oklch(40% 0.162 27.48)",
49
49
  "bg": "oklch(54% 0.22 27.48 / 0.063)",
50
50
  "on": "oklch(100% 0 0)"
51
51
  },
@@ -55,14 +55,50 @@ export const tokens = {
55
55
  "on": "oklch(20.50% 0.02 248.83)"
56
56
  },
57
57
  "info": {
58
- "fg": "oklch(52% 0.17 246)",
59
- "bg": "oklch(52% 0.17 246 / 0.063)",
58
+ "fg": "oklch(52% 0.133 246)",
59
+ "bg": "oklch(52% 0.133 246 / 0.063)",
60
+ "on": "oklch(100% 0 0)"
61
+ }
62
+ },
63
+ "paper": {
64
+ "50": "oklch(99.4% 0.003 70)",
65
+ "100": "oklch(98.5% 0.009 70)",
66
+ "200": "oklch(96.5% 0.010 70)",
67
+ "300": "oklch(93.5% 0.010 70)"
68
+ },
69
+ "rule": {
70
+ "subtle": "oklch(91.5% 0.008 248.83)",
71
+ "strong": "oklch(85.5% 0.012 248.83)"
72
+ },
73
+ "surface": {
74
+ "canvas": "oklch(98.5% 0.009 70)",
75
+ "card": "oklch(100% 0 0)",
76
+ "sunken": "oklch(99.4% 0.003 70)"
77
+ },
78
+ "border": {
79
+ "subtle": "oklch(91.5% 0.008 248.83)",
80
+ "strong": "oklch(85.5% 0.012 248.83)"
81
+ },
82
+ "accent": {
83
+ "terracotta": {
84
+ "50": "oklch(96.50% 0.0160 42.5)",
85
+ "100": "oklch(93.00% 0.0350 42.5)",
86
+ "200": "oklch(87.00% 0.0620 42.5)",
87
+ "300": "oklch(79.00% 0.0950 42.5)",
88
+ "400": "oklch(70.00% 0.1220 42.5)",
89
+ "500": "oklch(65.00% 0.1320 42.5)",
90
+ "600": "oklch(60.75% 0.1358 42.5)",
91
+ "700": "oklch(51.60% 0.1261 40.7)",
92
+ "800": "oklch(42.00% 0.1020 42.5)",
93
+ "900": "oklch(33.00% 0.0770 42.5)",
94
+ "fg": "oklch(51.60% 0.1261 40.7)",
95
+ "bg": "oklch(96.50% 0.0160 42.5)",
60
96
  "on": "oklch(100% 0 0)"
61
97
  }
62
98
  }
63
99
  },
64
100
  "radius": {
65
- "none": 0,
101
+ "none": "0",
66
102
  "sm": "0.125rem",
67
103
  "md": "0.375rem",
68
104
  "lg": "0.5rem",
@@ -77,6 +113,15 @@ export const tokens = {
77
113
  "lg": "0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)",
78
114
  "xl": "0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)"
79
115
  },
116
+ "zIndex": {
117
+ "base": "0",
118
+ "sticky": "1100",
119
+ "overlay": "1300",
120
+ "modal": "1400",
121
+ "popover": "1500",
122
+ "toast": "1700",
123
+ "tooltip": "1800"
124
+ },
80
125
  "z": {
81
126
  "0": "0",
82
127
  "header": "1000",
@@ -99,7 +144,7 @@ export const tokens = {
99
144
  "in-out": "cubic-bezier(0.4, 0, 0.2, 1)"
100
145
  },
101
146
  "spacing": {
102
- "0": 0,
147
+ "0": "0",
103
148
  "1": "0.25rem",
104
149
  "2": "0.5rem",
105
150
  "3": "0.75rem",
@@ -145,7 +190,7 @@ export const tokens = {
145
190
  },
146
191
  "letterSpacing": {
147
192
  "tight": "-0.025em",
148
- "normal": 0,
193
+ "normal": "0",
149
194
  "wide": "0.025em"
150
195
  }
151
196
  }
package/dist/styles.css CHANGED
@@ -3,83 +3,106 @@
3
3
  */
4
4
 
5
5
  :root {
6
- --pharos-color-base-white: oklch(100% 0 0); /** Pure white. Used as surface background and typical on-color for dark brand fills. */
7
- --pharos-color-base-black: oklch(0% 0 0); /** Pure black. Rarely used — prefer color.neutral.900 for text and dark surfaces. */
8
- --pharos-color-neutral-50: oklch(97.91% 0 0); /** Lightest surface. Replaces Alexandria #f8f8f8 and legacy 'grey'. */
9
- --pharos-color-neutral-100: oklch(97.02% 0 0); /** Subtle surface. Replaces Alexandria #f5f5f5 / light-grey / supporting.light. */
10
- --pharos-color-neutral-200: oklch(95.21% 0 0); /** Quiet surface / default border on light mode. Replaces Alexandria #efefef / supporting.base / legacy border. */
11
- --pharos-color-neutral-300: oklch(88.82% 0.0029 264.54); /** Border strong / disabled fill. Replaces Alexandria #d9dadc / supporting.dark / border-dark. */
12
- --pharos-color-neutral-400: oklch(81.09% 0 0); /** Muted foreground on light surfaces. Replaces Alexandria #c1c1c1. */
13
- --pharos-color-neutral-500: oklch(52.78% 0 0); /** Secondary text (most-used neutral). Replaces Alexandria #6b6b6b / secondary-text / supporting.secondary. */
14
- --pharos-color-neutral-600: oklch(35.62% 0 0); /** Icon dark / secondary emphasis. Replaces Alexandria #3c3c3c. */
15
- --pharos-color-neutral-700: oklch(29.52% 0.0107 254); /** Strong text on light surfaces. Replaces Alexandria #292d32. */
16
- --pharos-color-neutral-800: oklch(37.05% 0.0436 247.87); /** Charcoal blue, alternative navy. Replaces Alexandria #2d4256 / charcoal-blue. */
17
- --pharos-color-neutral-900: 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. */
18
- --pharos-color-neutral-950: oklch(14.69% 0.0225 269.48); /** Deepest neutral. Replaces Alexandria #070a14 / primary-text. */
19
- --pharos-color-primary-50: oklch(95.94% 0.0164 274.82); /** Primary tint, lightest. Replaces Alexandria #eef1fd / new-primary.light derivates. */
20
- --pharos-color-primary-100: oklch(91.35% 0.0374 275.69); /** Primary tint, soft. Replaces Alexandria #dbe1fc / new-primary.light. */
21
- --pharos-color-primary-200: oklch(82.70% 0.0785 274.99); /** Primary tint, medium. */
22
- --pharos-color-primary-300: oklch(74.07% 0.1205 273.68); /** Primary tint, stronger. */
23
- --pharos-color-primary-400: oklch(65.40% 0.1582 271.71); /** Primary highlight. */
24
- --pharos-color-primary-500: oklch(57.34% 0.1996 269.61); /** Primary lighter step. */
25
- --pharos-color-primary-600: oklch(49.83% 0.2417 267.34); /** Primary brand color (sea blue). Replaces Alexandria #2a48e9 / sea-blue-primitive / new-primary.base. */
26
- --pharos-color-primary-700: oklch(42.19% 0.2111 267.20); /** Primary pressed / hover dark. */
27
- --pharos-color-primary-800: oklch(34.32% 0.1726 267.54); /** Primary deep. */
28
- --pharos-color-primary-900: oklch(25.97% 0.1317 268.18); /** Primary darkest. */
29
- --pharos-color-semantic-success-fg: 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. */
30
- --pharos-color-semantic-success-bg: oklch(52% 0.17 152 / 0.063); /** Success background, subtle tint of success.fg. */
31
- --pharos-color-semantic-error-fg: oklch(54% 0.22 27.48); /** Error foreground. Darkened from Alexandria #ef2828 (L=61%, contrast 4.19 against white failed WCAG AA 4.5:1 for normal text in filled destructive buttons) to pass AA 4.5:1 (contrast 5.68 vs white). Decision D2: single red (laser-red merged). Same precedent as success.fg and info.fg — Alexandria's value failed AA, Pharos fixes it systemically. */
32
- --pharos-color-semantic-error-fg-hover: oklch(47% 0.205 27.48); /** Darker shade of error.fg for hover states on filled destructive surfaces. Contrast 7.26 vs error.on (white), passes WCAG AA 4.5:1 with margin. */
33
- --pharos-color-semantic-error-fg-active: oklch(40% 0.175 27.48); /** Darkest — pressed/active state for filled destructive surfaces. Contrast 9.69 vs error.on (white), passes WCAG AAA 7:1. */
34
- --pharos-color-semantic-error-bg: oklch(54% 0.22 27.48 / 0.063); /** Error background, subtle tint of error.fg. Tracks the darkened fg so the relationship stays consistent. */
35
- --pharos-color-semantic-warning-fg: oklch(77.77% 0.1588 90.66); /** Warning foreground. Replaces Alexandria #ddb101 / warning.fore. */
36
- --pharos-color-semantic-warning-bg: oklch(77.77% 0.1588 90.66 / 0.063); /** Warning background, subtle. Replaces Alexandria #ddb10110 / warning.back. */
37
- --pharos-color-semantic-info-fg: oklch(52% 0.17 246); /** Info foreground. Darkened from Alexandria #009bf9 (L=67%, failed WCAG) to pass AA 4.5:1 vs white background. */
38
- --pharos-color-semantic-info-bg: oklch(52% 0.17 246 / 0.063); /** Info background, subtle tint of info.fg. */
39
- --pharos-radius-none: 0; /** No rounding. */
40
- --pharos-radius-sm: 0.125rem; /** 2px. Subtle rounding. */
41
- --pharos-radius-md: 0.375rem; /** 6px. Default control rounding. */
42
- --pharos-radius-lg: 0.5rem; /** 8px. */
6
+ --pharos-color-base-white: oklch(100% 0 0); /** Pure white. Cards, panels, sheets and popovers (via surface-card); text and icons on dark and semantic fills. */
7
+ --pharos-color-base-black: oklch(0% 0 0); /** Pure black base value. */
8
+ --pharos-color-neutral-50: oklch(97.91% 0.003 248.83); /** Ink ramp (tints of navy). The light steps 50–400 are disabled / low-emphasis ink: reach for paper-* (fills) or rule-* (lines) first. The Pharos-faithful components still use 50/100/200 for hover and press bands (un-migrated). */
9
+ --pharos-color-neutral-100: oklch(97.02% 0.004 248.83); /** Ink ramp (tints of navy). The light steps 50–400 are disabled / low-emphasis ink: reach for paper-* (fills) or rule-* (lines) first. The Pharos-faithful components still use 50/100/200 for hover and press bands (un-migrated). */
10
+ --pharos-color-neutral-200: oklch(95.21% 0.005 248.83); /** Ink ramp (tints of navy). The light steps 50–400 are disabled / low-emphasis ink: reach for paper-* (fills) or rule-* (lines) first. The Pharos-faithful components still use 50/100/200 for hover and press bands (un-migrated). */
11
+ --pharos-color-neutral-300: oklch(88.82% 0.007 248.83); /** Ink ramp (tints of navy). The light steps 50–400 are disabled / low-emphasis ink: reach for paper-* (fills) or rule-* (lines) first. The Pharos-faithful components still use 50/100/200 for hover and press bands (un-migrated). */
12
+ --pharos-color-neutral-400: oklch(81.09% 0.01 248.83); /** Ink ramp (tints of navy). The light steps 50–400 are disabled / low-emphasis ink: reach for paper-* (fills) or rule-* (lines) first. The Pharos-faithful components still use 50/100/200 for hover and press bands (un-migrated). */
13
+ --pharos-color-neutral-500: oklch(52.78% 0.016 248.83); /** Ink: de-emphasised text on the warm ground and on white; the 1px border of interactive controls (Input, secondary Button, outline Badge, Select, Combobox), clearing WCAG 3:1 non-text contrast. */
14
+ --pharos-color-neutral-600: oklch(35.62% 0.019 248.83); /** Ink: secondary body text on paper-* and white. */
15
+ --pharos-color-neutral-700: oklch(29.52% 0.02 248.83); /** Ink: labels and captions on paper-* and white; hover of the primary Button. */
16
+ --pharos-color-neutral-800: oklch(24.5% 0.02 248.83); /** Ink ramp step between 700 and 900 (fixed: no longer lighter than 700). */
17
+ --pharos-color-neutral-900: oklch(20.50% 0.02 248.83); /** Brand navy #101820. Primary text, icons and headlines on paper-* and white; the primary Button fill. */
18
+ --pharos-color-neutral-950: oklch(14.69% 0.0225 248.83); /** Deepest ink; press state of the primary Button. */
19
+ --pharos-color-primary-50: oklch(95.94% 0.0164 274.82); /** Seablue ramp: signature and signal — action, focus, selection, links, AI/copilot. Never structural chrome. */
20
+ --pharos-color-primary-100: oklch(91.35% 0.0374 275.69); /** Seablue ramp: signature and signal — action, focus, selection, links, AI/copilot. Never structural chrome. */
21
+ --pharos-color-primary-200: oklch(82.70% 0.0785 274.99); /** Seablue ramp: signature and signal — action, focus, selection, links, AI/copilot. Never structural chrome. */
22
+ --pharos-color-primary-300: oklch(74.07% 0.1205 273.68); /** Seablue ramp: signature and signal — action, focus, selection, links, AI/copilot. Never structural chrome. */
23
+ --pharos-color-primary-400: oklch(65.40% 0.1582 271.71); /** Seablue ramp: signature and signal — action, focus, selection, links, AI/copilot. Never structural chrome. */
24
+ --pharos-color-primary-500: oklch(57.34% 0.1996 269.61); /** Seablue ramp: signature and signal — action, focus, selection, links, AI/copilot. Never structural chrome. */
25
+ --pharos-color-primary-600: oklch(49.83% 0.2417 267.34); /** Seablue, the brand hue (≈ #2A48E9). The one blue anchor per view: action, focus ring (2px white halo + 4px primary-600), selection, links, AI/copilot. */
26
+ --pharos-color-primary-700: oklch(42.19% 0.2111 267.20); /** Seablue ramp: signature and signal — action, focus, selection, links, AI/copilot. Never structural chrome. */
27
+ --pharos-color-primary-800: oklch(34.32% 0.1726 267.54); /** Seablue ramp: signature and signal — action, focus, selection, links, AI/copilot. Never structural chrome. */
28
+ --pharos-color-primary-900: oklch(25.97% 0.1317 268.18); /** Seablue ramp: signature and signal — action, focus, selection, links, AI/copilot. Never structural chrome. */
29
+ --pharos-color-semantic-success-fg: oklch(52% 0.136 152); /** System state only: success fill and success text colour; pair with semantic-success-on on the fill (WCAG AA). #027E3F — chroma clamped to the sRGB gamut edge. */
30
+ --pharos-color-semantic-success-bg: oklch(52% 0.136 152 / 0.063); /** System state only: tinted success background (fg at 6.3%). */
31
+ --pharos-color-semantic-error-fg: oklch(54% 0.22 27.48); /** System state only: error fill and error text colour; pair with semantic-error-on on the fill (WCAG AA). Single red (laser-red merged); also the destructive Button fill and its focus ring. */
32
+ --pharos-color-semantic-error-fg-hover: oklch(47% 0.191 27.48); /** Hover of an error / destructive fill. #AD020E. */
33
+ --pharos-color-semantic-error-fg-active: oklch(40% 0.162 27.48); /** Press of an error / destructive fill. #8A0209. */
34
+ --pharos-color-semantic-error-bg: oklch(54% 0.22 27.48 / 0.063); /** System state only: tinted error background (fg at 6.3%). */
35
+ --pharos-color-semantic-warning-fg: oklch(77.77% 0.1588 90.66); /** System state only: warning fill and warning text colour; pair with semantic-warning-on on the fill (WCAG AA). */
36
+ --pharos-color-semantic-warning-bg: oklch(77.77% 0.1588 90.66 / 0.063); /** System state only: tinted warning background (fg at 6.3%). */
37
+ --pharos-color-semantic-info-fg: oklch(52% 0.133 246); /** System state only: info fill and info text colour; pair with semantic-info-on on the fill (WCAG AA). #026DB0 — chroma clamped to the sRGB gamut edge. */
38
+ --pharos-color-semantic-info-bg: oklch(52% 0.133 246 / 0.063); /** System state only: tinted info background (fg at 6.3%). */
39
+ --pharos-color-paper-50: oklch(99.4% 0.003 70); /** Warm paper #FEFDFB — all but white, a spark of warmth. Fill: hover rows, zebra banding, the faintest lift off white (surface-sunken). Never a border. */
40
+ --pharos-color-paper-100: oklch(98.5% 0.009 70); /** Warm paper #FEF9F4 — the app canvas, the page itself (surface-canvas). Never a border. */
41
+ --pharos-color-paper-200: oklch(96.5% 0.010 70); /** Warm paper #F8F2EC — light fills on the canvas: chips, tracks, step circles, inputs. Never a border. */
42
+ --pharos-color-paper-300: oklch(93.5% 0.010 70); /** Warm paper #EEE8E2 — stronger fill: disabled surfaces, switch off-track. Never a border. */
43
+ --pharos-color-rule-subtle: oklch(91.5% 0.008 248.83); /** Line #DFE3E8 (ink family): default divider, card border — on white and on the warm ground. */
44
+ --pharos-color-rule-strong: oklch(85.5% 0.012 248.83); /** Line #C9D0D7 (ink family): emphatic rule, dashed placeholder. */
45
+ --pharos-color-accent-terracotta-50: oklch(96.50% 0.0160 42.5); /** Tint surfaces and soft badges (#FEF0EB); bg of a warm tint block (text 900) or a tag (text 700). */
46
+ --pharos-color-accent-terracotta-100: oklch(93.00% 0.0350 42.5); /** Terracotta tint #FDE1D6: tag and chip fills when many show at once. */
47
+ --pharos-color-accent-terracotta-200: oklch(87.00% 0.0620 42.5); /** Subtle terracotta borders and rules; low end of chart ramps (#F9C8B5). */
48
+ --pharos-color-accent-terracotta-300: oklch(79.00% 0.0950 42.5); /** Chart ramp step (#EFA78A). */
49
+ --pharos-color-accent-terracotta-400: oklch(70.00% 0.1220 42.5); /** Terracotta ramp step (#DD835F). */
50
+ --pharos-color-accent-terracotta-500: oklch(65.00% 0.1320 42.5); /** Chart ramp step (#D1714A). */
51
+ --pharos-color-accent-terracotta-600: oklch(60.75% 0.1358 42.5); /** BASE — the brand terracotta #C4633A. Solid fills with no small text (bars, blocks, ≥18.66px bold / ≥24px), emphatic rules. 4.04:1 on white either way: large text only. Never a control, focus ring, link or state. */
52
+ --pharos-color-accent-terracotta-700: oklch(51.60% 0.1261 40.7); /** Terracotta ink #A24A28: accent text on white (5.92:1, AA); solid marks carrying small white text; hover of a 600 fill. */
53
+ --pharos-color-accent-terracotta-800: oklch(42.00% 0.1020 42.5); /** Press step of a terracotta fill (#79371A). */
54
+ --pharos-color-accent-terracotta-900: oklch(33.00% 0.0770 42.5); /** Deep text on a terracotta tint (#552612). */
55
+ --pharos-radius-none: 0; /** Square corners. */
56
+ --pharos-radius-sm: 0.125rem; /** 2px — small marks, code chips. */
57
+ --pharos-radius-md: 0.375rem; /** 6px — default control rounding. */
58
+ --pharos-radius-lg: 0.5rem; /** 8px — swatches, inner panels. */
43
59
  --pharos-radius-xl: 0.75rem; /** 12px. */
44
- --pharos-radius-2xl: 1rem; /** 16px. Default card rounding (replaces Alexandria cs-md / rounded-cs-md). */
45
- --pharos-radius-3xl: 1.5rem; /** 24px. Large surface rounding (replaces Alexandria cs-lg / rounded-cs-lg). */
46
- --pharos-radius-full: 9999px; /** Fully rounded — pills, avatars, icon buttons. 117 usages in Alexandria. */
47
- --pharos-shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05); /** Subtle elevation. */
48
- --pharos-shadow-md: 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. */
49
- --pharos-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); /** Hover or raised card. */
50
- --pharos-shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1); /** Modals, popovers. */
51
- --pharos-z-0: 0; /** Default stacking context. */
52
- --pharos-z-header: 1000;
53
- --pharos-z-above-header: 1100;
54
- --pharos-z-modal-overlay: 9998;
55
- --pharos-z-modal: 9999;
56
- --pharos-z-drawer-overlay: 9999;
57
- --pharos-z-drawer: 10000;
58
- --pharos-z-dropdown: 10001;
59
- --pharos-z-tooltip: 10002; /** Highest priority — tooltips always win. */
60
+ --pharos-radius-2xl: 1rem; /** 16px — default card rounding. */
61
+ --pharos-radius-3xl: 1.5rem; /** 24px — large surface rounding. */
62
+ --pharos-radius-full: 9999px; /** Pills, avatars, icon buttons, buttons. */
63
+ --pharos-shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05); /** Resting elements. */
64
+ --pharos-shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); /** Cards. */
65
+ --pharos-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); /** Popups: popovers, dropdown menus. */
66
+ --pharos-shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1); /** Modals and sheets. */
67
+ --pharos-z-index-base: 0; /** The page flow: the default stacking context. */
68
+ --pharos-z-index-sticky: 1100; /** Sticky and fixed app chrome: headers, top bars, sticky table headers. */
69
+ --pharos-z-index-overlay: 1300; /** The scrim behind modal UI (Dialog, Sheet). */
70
+ --pharos-z-index-modal: 1400; /** Modal UI: Dialog and Sheet panels. */
71
+ --pharos-z-index-popover: 1500; /** Anchored floating UI: Popover, DropdownMenu, Select and Combobox lists. Above modal so it can open from inside a Dialog or Sheet. */
72
+ --pharos-z-index-toast: 1700; /** Toasts and transient notifications. */
73
+ --pharos-z-index-tooltip: 1800; /** Tooltips: always on top. */
74
+ --pharos-z-0: 0; /** DEPRECATED: use --pharos-z-index-base (decision D29). Removed in the next major. */
75
+ --pharos-z-header: 1000; /** DEPRECATED: use --pharos-z-index-sticky (decision D29). Removed in the next major. */
76
+ --pharos-z-above-header: 1100; /** DEPRECATED: use --pharos-z-index-sticky (decision D29). Removed in the next major. */
77
+ --pharos-z-modal-overlay: 9998; /** DEPRECATED: use --pharos-z-index-overlay (decision D29). Removed in the next major. */
78
+ --pharos-z-modal: 9999; /** DEPRECATED: use --pharos-z-index-modal (decision D29). Removed in the next major. */
79
+ --pharos-z-drawer-overlay: 9999; /** DEPRECATED: use --pharos-z-index-overlay (decision D29). Removed in the next major. */
80
+ --pharos-z-drawer: 10000; /** DEPRECATED: use --pharos-z-index-modal (decision D29). Removed in the next major. */
81
+ --pharos-z-dropdown: 10001; /** DEPRECATED: use --pharos-z-index-popover (decision D29). Removed in the next major. */
82
+ --pharos-z-tooltip: 10002; /** DEPRECATED: use --pharos-z-index-tooltip (decision D29). Removed in the next major. */
60
83
  --pharos-duration-fast: 100ms; /** Micro interactions (hover). */
61
84
  --pharos-duration-normal: 200ms; /** Default transitions. */
62
85
  --pharos-duration-slow: 300ms; /** Panel slide, overlay fade. */
63
86
  --pharos-easing-in: cubic-bezier(0.4, 0, 1, 1);
64
87
  --pharos-easing-out: cubic-bezier(0, 0, 0.2, 1);
65
88
  --pharos-easing-in-out: cubic-bezier(0.4, 0, 0.2, 1);
66
- --pharos-spacing-0: 0; /** Zero. */
67
- --pharos-spacing-1: 0.25rem; /** 4px. Tightest usable gap. */
68
- --pharos-spacing-2: 0.5rem; /** 8px. Common small gap (replaces Alexandria cs-xs). */
69
- --pharos-spacing-3: 0.75rem; /** 12px. Replaces Alexandria cs-sm. */
70
- --pharos-spacing-4: 1rem; /** 16px. Default body padding (replaces Alexandria cs-md). */
71
- --pharos-spacing-5: 1.25rem; /** 20px. */
72
- --pharos-spacing-6: 1.5rem; /** 24px. Default card padding (replaces Alexandria cs-lg). */
73
- --pharos-spacing-7: 1.75rem; /** 28px. */
74
- --pharos-spacing-8: 2rem; /** 32px. Section gap (replaces Alexandria cs-xl). */
75
- --pharos-spacing-10: 2.5rem; /** 40px. Large section gap (replaces Alexandria cs-2xl). */
76
- --pharos-spacing-12: 3rem; /** 48px. */
77
- --pharos-spacing-16: 4rem; /** 64px. */
78
- --pharos-spacing-20: 5rem; /** 80px. */
79
- --pharos-spacing-24: 6rem; /** 96px. */
80
- --pharos-spacing-0-5: 0.125rem; /** 2px. */
81
- --pharos-spacing-1-5: 0.375rem; /** 6px. */
82
- --pharos-spacing-2-5: 0.625rem; /** 10px. */
89
+ --pharos-spacing-0: 0; /** 0 step of the rem scale. */
90
+ --pharos-spacing-1: 0.25rem; /** 4px step of the rem scale. */
91
+ --pharos-spacing-2: 0.5rem; /** 8px step of the rem scale. */
92
+ --pharos-spacing-3: 0.75rem; /** 12px step of the rem scale. */
93
+ --pharos-spacing-4: 1rem; /** 16px step of the rem scale. Default body padding. */
94
+ --pharos-spacing-5: 1.25rem; /** 20px step of the rem scale. */
95
+ --pharos-spacing-6: 1.5rem; /** 24px step of the rem scale. Default card padding. */
96
+ --pharos-spacing-7: 1.75rem; /** 28px step of the rem scale. */
97
+ --pharos-spacing-8: 2rem; /** 32px step of the rem scale. Section gap; height of sm controls. */
98
+ --pharos-spacing-10: 2.5rem; /** 40px step of the rem scale. Height of md controls. */
99
+ --pharos-spacing-12: 3rem; /** 48px step of the rem scale. Height of lg controls. */
100
+ --pharos-spacing-16: 4rem; /** 64px step of the rem scale. */
101
+ --pharos-spacing-20: 5rem; /** 80px step of the rem scale. */
102
+ --pharos-spacing-24: 6rem; /** 96px step of the rem scale. */
103
+ --pharos-spacing-0-5: 0.125rem; /** 2px step of the rem scale. */
104
+ --pharos-spacing-1-5: 0.375rem; /** 6px step of the rem scale. */
105
+ --pharos-spacing-2-5: 0.625rem; /** 10px step of the rem scale. */
83
106
  --pharos-font-family-sans: "Outfit", Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; /** Default sans-serif stack. Outfit is the primary face (Decision D8); Inter is the fallback before system fonts. Loading Outfit is the consumer's responsibility — see RULES.md §8. */
84
107
  --pharos-font-family-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; /** Default monospace stack for code. */
85
108
  --pharos-font-weight-regular: 400;
@@ -103,8 +126,16 @@
103
126
  --pharos-font-letter-spacing-tight: -0.025em;
104
127
  --pharos-font-letter-spacing-normal: 0;
105
128
  --pharos-font-letter-spacing-wide: 0.025em;
106
- --pharos-color-semantic-success-on: var(--pharos-color-base-white); /** Readable on success.fg filled surfaces (WCAG AA). */
107
- --pharos-color-semantic-error-on: var(--pharos-color-base-white); /** Readable on error.fg filled surfaces (WCAG AA 4.5:1 for normal text). */
108
- --pharos-color-semantic-warning-on: var(--pharos-color-neutral-900); /** Readable on warning.fg filled surfaces (WCAG AA). Warning is light/amber — needs dark on-color. */
109
- --pharos-color-semantic-info-on: var(--pharos-color-base-white); /** Readable on info.fg filled surfaces (WCAG AA). */
129
+ --pharos-color-semantic-success-on: var(--pharos-color-base-white); /** Text and icons on a semantic-success-fg fill. */
130
+ --pharos-color-semantic-error-on: var(--pharos-color-base-white); /** Text and icons on a semantic-error-fg fill. */
131
+ --pharos-color-semantic-warning-on: var(--pharos-color-neutral-900); /** Dark text on a semantic-warning-fg (amber) fill. */
132
+ --pharos-color-semantic-info-on: var(--pharos-color-base-white); /** Text and icons on a semantic-info-fg fill. */
133
+ --pharos-color-surface-canvas: var(--pharos-color-paper-100); /** Page / app background (→ paper-100). Prefer the semantic aliases in new work. */
134
+ --pharos-color-surface-card: var(--pharos-color-base-white); /** Cards, panels, sheets, popovers (→ base-white). */
135
+ --pharos-color-surface-sunken: var(--pharos-color-paper-50); /** Hover rows, subtle bands (→ paper-50). */
136
+ --pharos-color-border-subtle: var(--pharos-color-rule-subtle); /** Card borders, dividers, rules (→ rule-subtle). */
137
+ --pharos-color-border-strong: var(--pharos-color-rule-strong); /** Emphatic rules, dashed placeholders (→ rule-strong). */
138
+ --pharos-color-accent-terracotta-fg: var(--pharos-color-accent-terracotta-700); /** Accessible ink for warm-accent blocks on white (→ terracotta-700). */
139
+ --pharos-color-accent-terracotta-bg: var(--pharos-color-accent-terracotta-50); /** Tint surface for warm-accent blocks on white (→ terracotta-50). */
140
+ --pharos-color-accent-terracotta-on: var(--pharos-color-base-white); /** Text on a solid terracotta mark (use on 700 for small text). */
110
141
  }