@code-sherpas/pharos-tokens 0.5.0 → 0.7.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 CHANGED
@@ -2,115 +2,122 @@
2
2
  * Do not edit directly, this file was auto-generated.
3
3
  */
4
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(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
- export const PharosColorSemanticErrorFgHover = "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
- export const PharosColorSemanticErrorFgActive = "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
- export const PharosColorSemanticErrorBg = "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
- export const PharosColorSemanticErrorOn = "oklch(100% 0 0)"; // Readable on error.fg filled surfaces (WCAG AA 4.5:1 for normal text).
36
- export const PharosColorSemanticWarningFg = "oklch(77.77% 0.1588 90.66)"; // Warning foreground. Replaces Alexandria #ddb101 / warning.fore.
5
+ export const PharosColorBaseWhite = "oklch(100% 0 0)"; // Pure white. Cards, panels, sheets and popovers (via surface-card); text and icons on dark and semantic fills.
6
+ export const PharosColorBaseBlack = "oklch(0% 0 0)"; // Pure black base value.
7
+ export const PharosColorNeutral50 = "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).
8
+ export const PharosColorNeutral100 = "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).
9
+ export const PharosColorNeutral200 = "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).
10
+ export const PharosColorNeutral300 = "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).
11
+ export const PharosColorNeutral400 = "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).
12
+ export const PharosColorNeutral500 = "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.
13
+ export const PharosColorNeutral600 = "oklch(35.62% 0.019 248.83)"; // Ink: secondary body text on paper-* and white.
14
+ export const PharosColorNeutral700 = "oklch(29.52% 0.02 248.83)"; // Ink: labels and captions on paper-* and white; hover of the primary Button.
15
+ export const PharosColorNeutral800 = "oklch(24.5% 0.02 248.83)"; // Ink ramp step between 700 and 900 (fixed: no longer lighter than 700).
16
+ export const PharosColorNeutral900 = "oklch(20.50% 0.02 248.83)"; // Brand navy #101820. Primary text, icons and headlines on paper-* and white; the primary Button fill.
17
+ export const PharosColorNeutral950 = "oklch(14.69% 0.0225 248.83)"; // Deepest ink; press state of the primary Button.
18
+ export const PharosColorPrimary50 = "oklch(95.94% 0.0164 274.82)"; // Seablue ramp: signature and signal — action, focus, selection, links, AI/copilot. Never structural chrome.
19
+ export const PharosColorPrimary100 = "oklch(91.35% 0.0374 275.69)"; // Seablue ramp: signature and signal — action, focus, selection, links, AI/copilot. Never structural chrome.
20
+ export const PharosColorPrimary200 = "oklch(82.70% 0.0785 274.99)"; // Seablue ramp: signature and signal — action, focus, selection, links, AI/copilot. Never structural chrome.
21
+ export const PharosColorPrimary300 = "oklch(74.07% 0.1205 273.68)"; // Seablue ramp: signature and signal — action, focus, selection, links, AI/copilot. Never structural chrome.
22
+ export const PharosColorPrimary400 = "oklch(65.40% 0.1582 271.71)"; // Seablue ramp: signature and signal — action, focus, selection, links, AI/copilot. Never structural chrome.
23
+ export const PharosColorPrimary500 = "oklch(57.34% 0.1996 269.61)"; // Seablue ramp: signature and signal — action, focus, selection, links, AI/copilot. Never structural chrome.
24
+ export const PharosColorPrimary600 = "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.
25
+ export const PharosColorPrimary700 = "oklch(42.19% 0.2111 267.20)"; // Seablue ramp: signature and signal — action, focus, selection, links, AI/copilot. Never structural chrome.
26
+ export const PharosColorPrimary800 = "oklch(34.32% 0.1726 267.54)"; // Seablue ramp: signature and signal — action, focus, selection, links, AI/copilot. Never structural chrome.
27
+ export const PharosColorPrimary900 = "oklch(25.97% 0.1317 268.18)"; // Seablue ramp: signature and signal — action, focus, selection, links, AI/copilot. Never structural chrome.
28
+ export const PharosColorSemanticSuccessFg = "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.
29
+ export const PharosColorSemanticSuccessBg = "oklch(52% 0.136 152 / 0.063)"; // System state only: tinted success background (fg at 6.3%).
30
+ export const PharosColorSemanticSuccessOn = "oklch(100% 0 0)"; // Text and icons on a semantic-success-fg fill.
31
+ export const PharosColorSemanticErrorFg = "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
+ export const PharosColorSemanticErrorFgHover = "oklch(47% 0.191 27.48)"; // Hover of an error / destructive fill. #AD020E.
33
+ export const PharosColorSemanticErrorFgActive = "oklch(40% 0.162 27.48)"; // Press of an error / destructive fill. #8A0209.
34
+ export const PharosColorSemanticErrorBg = "oklch(54% 0.22 27.48 / 0.063)"; // System state only: tinted error background (fg at 6.3%).
35
+ export const PharosColorSemanticErrorOn = "oklch(100% 0 0)"; // Text and icons on a semantic-error-fg fill.
36
+ export const PharosColorSemanticWarningFg = "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).
37
37
  export const PharosColorSemanticWarningBg =
38
- "oklch(77.77% 0.1588 90.66 / 0.063)"; // Warning background, subtle. Replaces Alexandria #ddb10110 / warning.back.
39
- 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.
40
- 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.
41
- export const PharosColorSemanticInfoBg = "oklch(52% 0.17 246 / 0.063)"; // Info background, subtle tint of info.fg.
42
- export const PharosColorSemanticInfoOn = "oklch(100% 0 0)"; // Readable on info.fg filled surfaces (WCAG AA).
43
- export const PharosColorPaper50 = "oklch(99.4% 0.003 70)"; // Warmest, lightest paper. Sunken surfaces inside a card.
44
- export const PharosColorPaper100 = "oklch(98.5% 0.009 70)"; // The page canvas of the redesigned screens.
45
- export const PharosColorPaper200 = "oklch(96.5% 0.010 70)"; // Panels and hovers on paper.
46
- export const PharosColorPaper300 = "oklch(93.5% 0.010 70)"; // The rule that separates paper from paper.
47
- export const PharosColorRuleSubtle = "oklch(91.5% 0.008 248.83)"; // Hairline between rows and inside cards.
48
- export const PharosColorRuleStrong = "oklch(85.5% 0.012 248.83)"; // Visible border of a surface.
49
- export const PharosColorSurfaceCanvas = "oklch(98.5% 0.009 70)"; // The page itself.
50
- export const PharosColorSurfaceCard = "oklch(100% 0 0)"; // A surface resting on the canvas.
51
- export const PharosColorSurfaceSunken = "oklch(99.4% 0.003 70)"; // A well inside a card.
52
- export const PharosColorBorderSubtle = "oklch(91.5% 0.008 248.83)"; // Border of a resting surface.
53
- export const PharosColorBorderStrong = "oklch(85.5% 0.012 248.83)"; // Border that has to be seen.
54
- export const PharosColorAccentTerracotta50 = "oklch(96.50% 0.0160 42.5)"; // Tint surface for warm-accent blocks.
55
- export const PharosColorAccentTerracotta100 = "oklch(93.00% 0.0350 42.5)"; // Hover of the tint surface.
56
- export const PharosColorAccentTerracotta200 = "oklch(87.00% 0.0620 42.5)"; // Border of a warm-accent block.
57
- export const PharosColorAccentTerracotta300 = "oklch(79.00% 0.0950 42.5)"; // Disabled warm accent.
58
- export const PharosColorAccentTerracotta400 = "oklch(70.00% 0.1220 42.5)"; // Warm accent on dark surfaces.
59
- export const PharosColorAccentTerracotta500 = "oklch(65.00% 0.1320 42.5)"; // The accent at full strength.
60
- export const PharosColorAccentTerracotta600 = "oklch(60.75% 0.1358 42.5)"; // Default warm accent (#C4633A).
61
- export const PharosColorAccentTerracotta700 = "oklch(51.60% 0.1261 40.7)"; // Warm accent as ink: 5.92:1 on white, AA (#A24A28).
62
- export const PharosColorAccentTerracotta800 = "oklch(42.00% 0.1020 42.5)"; // Pressed step.
63
- export const PharosColorAccentTerracotta900 = "oklch(33.00% 0.0770 42.5)"; // Darkest step.
64
- export const PharosColorAccentTerracottaFg = "oklch(51.60% 0.1261 40.7)"; // Readable warm-accent ink on white.
65
- export const PharosColorAccentTerracottaBg = "oklch(96.50% 0.0160 42.5)"; // Warm-accent tint surface.
66
- export const PharosColorAccentTerracottaOn = "oklch(100% 0 0)"; // Readable on a filled warm-accent surface.
67
- export const PharosRadiusNone = "0"; // No rounding.
68
- export const PharosRadiusSm = "0.125rem"; // 2px. Subtle rounding.
69
- export const PharosRadiusMd = "0.375rem"; // 6px. Default control rounding.
70
- export const PharosRadiusLg = "0.5rem"; // 8px.
38
+ "oklch(77.77% 0.1588 90.66 / 0.063)"; // System state only: tinted warning background (fg at 6.3%).
39
+ export const PharosColorSemanticWarningOn = "oklch(20.50% 0.02 248.83)"; // Dark text on a semantic-warning-fg (amber) fill.
40
+ export const PharosColorSemanticInfoFg = "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.
41
+ export const PharosColorSemanticInfoBg = "oklch(52% 0.133 246 / 0.063)"; // System state only: tinted info background (fg at 6.3%).
42
+ export const PharosColorSemanticInfoOn = "oklch(100% 0 0)"; // Text and icons on a semantic-info-fg fill.
43
+ export const PharosColorPaper50 = "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.
44
+ export const PharosColorPaper100 = "oklch(98.5% 0.009 70)"; // Warm paper #FEF9F4 — the app canvas, the page itself (surface-canvas). Never a border.
45
+ export const PharosColorPaper200 = "oklch(96.5% 0.010 70)"; // Warm paper #F8F2EC — light fills on the canvas: chips, tracks, step circles, inputs. Never a border.
46
+ export const PharosColorPaper300 = "oklch(93.5% 0.010 70)"; // Warm paper #EEE8E2 — stronger fill: disabled surfaces, switch off-track. Never a border.
47
+ export const PharosColorRuleSubtle = "oklch(91.5% 0.008 248.83)"; // Line #DFE3E8 (ink family): default divider, card border — on white and on the warm ground.
48
+ export const PharosColorRuleStrong = "oklch(85.5% 0.012 248.83)"; // Line #C9D0D7 (ink family): emphatic rule, dashed placeholder.
49
+ export const PharosColorSurfaceCanvas = "oklch(98.5% 0.009 70)"; // Page / app background (→ paper-100). Prefer the semantic aliases in new work.
50
+ export const PharosColorSurfaceCard = "oklch(100% 0 0)"; // Cards, panels, sheets, popovers (→ base-white).
51
+ export const PharosColorSurfaceSunken = "oklch(99.4% 0.003 70)"; // Hover rows, subtle bands (→ paper-50).
52
+ export const PharosColorBorderSubtle = "oklch(91.5% 0.008 248.83)"; // Card borders, dividers, rules (→ rule-subtle).
53
+ export const PharosColorBorderStrong = "oklch(85.5% 0.012 248.83)"; // Emphatic rules, dashed placeholders (→ rule-strong).
54
+ export const PharosColorAccentTerracotta50 = "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).
55
+ export const PharosColorAccentTerracotta100 = "oklch(93.00% 0.0350 42.5)"; // Terracotta tint #FDE1D6: tag and chip fills when many show at once.
56
+ export const PharosColorAccentTerracotta200 = "oklch(87.00% 0.0620 42.5)"; // Subtle terracotta borders and rules; low end of chart ramps (#F9C8B5).
57
+ export const PharosColorAccentTerracotta300 = "oklch(79.00% 0.0950 42.5)"; // Chart ramp step (#EFA78A).
58
+ export const PharosColorAccentTerracotta400 = "oklch(70.00% 0.1220 42.5)"; // Terracotta ramp step (#DD835F).
59
+ export const PharosColorAccentTerracotta500 = "oklch(65.00% 0.1320 42.5)"; // Chart ramp step (#D1714A).
60
+ export const PharosColorAccentTerracotta600 = "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.
61
+ export const PharosColorAccentTerracotta700 = "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.
62
+ export const PharosColorAccentTerracotta800 = "oklch(42.00% 0.1020 42.5)"; // Press step of a terracotta fill (#79371A).
63
+ export const PharosColorAccentTerracotta900 = "oklch(33.00% 0.0770 42.5)"; // Deep text on a terracotta tint (#552612).
64
+ export const PharosColorAccentTerracottaFg = "oklch(51.60% 0.1261 40.7)"; // Accessible ink for warm-accent blocks on white (→ terracotta-700).
65
+ export const PharosColorAccentTerracottaBg = "oklch(96.50% 0.0160 42.5)"; // Tint surface for warm-accent blocks on white (→ terracotta-50).
66
+ export const PharosColorAccentTerracottaOn = "oklch(100% 0 0)"; // Text on a solid terracotta mark (use on 700 for small text).
67
+ export const PharosRadiusNone = "0"; // Square corners.
68
+ export const PharosRadiusSm = "0.125rem"; // 2px — small marks, code chips.
69
+ export const PharosRadiusMd = "0.375rem"; // 6px — default control rounding.
70
+ export const PharosRadiusLg = "0.5rem"; // 8px — swatches, inner panels.
71
71
  export const PharosRadiusXl = "0.75rem"; // 12px.
72
- export const PharosRadius2xl = "1rem"; // 16px. Default card rounding (replaces Alexandria cs-md / rounded-cs-md).
73
- export const PharosRadius3xl = "1.5rem"; // 24px. Large surface rounding (replaces Alexandria cs-lg / rounded-cs-lg).
74
- export const PharosRadiusFull = "9999px"; // Fully rounded — pills, avatars, icon buttons. 117 usages in Alexandria.
75
- export const PharosShadowSm = "0 1px 2px 0 rgb(0 0 0 / 0.05)"; // Subtle elevation.
72
+ export const PharosRadius2xl = "1rem"; // 16px — default card rounding.
73
+ export const PharosRadius3xl = "1.5rem"; // 24px — large surface rounding.
74
+ export const PharosRadiusFull = "9999px"; // Pills, avatars, icon buttons, buttons.
75
+ export const PharosShadowSm = "0 1px 2px 0 rgb(0 0 0 / 0.05)"; // Resting elements.
76
76
  export const PharosShadowMd =
77
- "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.
77
+ "0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)"; // Cards.
78
78
  export const PharosShadowLg =
79
- "0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)"; // Hover or raised card.
79
+ "0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)"; // Popups: popovers, dropdown menus.
80
80
  export const PharosShadowXl =
81
- "0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)"; // Modals, popovers.
82
- export const PharosZ0 = "0"; // Default stacking context.
83
- export const PharosZHeader = "1000";
84
- export const PharosZAboveHeader = "1100";
85
- export const PharosZModalOverlay = "9998";
86
- export const PharosZModal = "9999";
87
- export const PharosZDrawerOverlay = "9999";
88
- export const PharosZDrawer = "10000";
89
- export const PharosZDropdown = "10001";
90
- export const PharosZTooltip = "10002"; // Highest priority — tooltips always win.
81
+ "0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)"; // Modals and sheets.
82
+ export const PharosZIndexBase = "0"; // The page flow: the default stacking context.
83
+ export const PharosZIndexSticky = "1100"; // Sticky and fixed app chrome: headers, top bars, sticky table headers.
84
+ export const PharosZIndexOverlay = "1300"; // The scrim behind modal UI (Dialog, Sheet).
85
+ export const PharosZIndexModal = "1400"; // Modal UI: Dialog and Sheet panels.
86
+ export const PharosZIndexPopover = "1500"; // Anchored floating UI: Popover, DropdownMenu, Select and Combobox lists. Above modal so it can open from inside a Dialog or Sheet.
87
+ export const PharosZIndexToast = "1700"; // Toasts and transient notifications.
88
+ export const PharosZIndexTooltip = "1800"; // Tooltips: always on top.
89
+ export const PharosZ0 = "0"; // DEPRECATED: use --pharos-z-index-base (decision D29). Removed in the next major.
90
+ export const PharosZHeader = "1000"; // DEPRECATED: use --pharos-z-index-sticky (decision D29). Removed in the next major.
91
+ export const PharosZAboveHeader = "1100"; // DEPRECATED: use --pharos-z-index-sticky (decision D29). Removed in the next major.
92
+ export const PharosZModalOverlay = "9998"; // DEPRECATED: use --pharos-z-index-overlay (decision D29). Removed in the next major.
93
+ export const PharosZModal = "9999"; // DEPRECATED: use --pharos-z-index-modal (decision D29). Removed in the next major.
94
+ export const PharosZDrawerOverlay = "9999"; // DEPRECATED: use --pharos-z-index-overlay (decision D29). Removed in the next major.
95
+ export const PharosZDrawer = "10000"; // DEPRECATED: use --pharos-z-index-modal (decision D29). Removed in the next major.
96
+ export const PharosZDropdown = "10001"; // DEPRECATED: use --pharos-z-index-popover (decision D29). Removed in the next major.
97
+ export const PharosZTooltip = "10002"; // DEPRECATED: use --pharos-z-index-tooltip (decision D29). Removed in the next major.
91
98
  export const PharosDurationFast = "100ms"; // Micro interactions (hover).
92
99
  export const PharosDurationNormal = "200ms"; // Default transitions.
93
100
  export const PharosDurationSlow = "300ms"; // Panel slide, overlay fade.
94
101
  export const PharosEasingIn = "cubic-bezier(0.4, 0, 1, 1)";
95
102
  export const PharosEasingOut = "cubic-bezier(0, 0, 0.2, 1)";
96
103
  export const PharosEasingInOut = "cubic-bezier(0.4, 0, 0.2, 1)";
97
- export const PharosSpacing0 = "0"; // Zero.
98
- export const PharosSpacing1 = "0.25rem"; // 4px. Tightest usable gap.
99
- export const PharosSpacing2 = "0.5rem"; // 8px. Common small gap (replaces Alexandria cs-xs).
100
- export const PharosSpacing3 = "0.75rem"; // 12px. Replaces Alexandria cs-sm.
101
- export const PharosSpacing4 = "1rem"; // 16px. Default body padding (replaces Alexandria cs-md).
102
- export const PharosSpacing5 = "1.25rem"; // 20px.
103
- export const PharosSpacing6 = "1.5rem"; // 24px. Default card padding (replaces Alexandria cs-lg).
104
- export const PharosSpacing7 = "1.75rem"; // 28px.
105
- export const PharosSpacing8 = "2rem"; // 32px. Section gap (replaces Alexandria cs-xl).
106
- export const PharosSpacing10 = "2.5rem"; // 40px. Large section gap (replaces Alexandria cs-2xl).
107
- export const PharosSpacing12 = "3rem"; // 48px.
108
- export const PharosSpacing16 = "4rem"; // 64px.
109
- export const PharosSpacing20 = "5rem"; // 80px.
110
- export const PharosSpacing24 = "6rem"; // 96px.
111
- export const PharosSpacing05 = "0.125rem"; // 2px.
112
- export const PharosSpacing15 = "0.375rem"; // 6px.
113
- export const PharosSpacing25 = "0.625rem"; // 10px.
104
+ export const PharosSpacing0 = "0"; // 0 step of the rem scale.
105
+ export const PharosSpacing1 = "0.25rem"; // 4px step of the rem scale.
106
+ export const PharosSpacing2 = "0.5rem"; // 8px step of the rem scale.
107
+ export const PharosSpacing3 = "0.75rem"; // 12px step of the rem scale.
108
+ export const PharosSpacing4 = "1rem"; // 16px step of the rem scale. Default body padding.
109
+ export const PharosSpacing5 = "1.25rem"; // 20px step of the rem scale.
110
+ export const PharosSpacing6 = "1.5rem"; // 24px step of the rem scale. Default card padding.
111
+ export const PharosSpacing7 = "1.75rem"; // 28px step of the rem scale.
112
+ export const PharosSpacing8 = "2rem"; // 32px step of the rem scale. Section gap; height of sm controls.
113
+ export const PharosSpacing10 = "2.5rem"; // 40px step of the rem scale. Height of md controls.
114
+ export const PharosSpacing12 = "3rem"; // 48px step of the rem scale. Height of lg controls.
115
+ export const PharosSpacing16 = "4rem"; // 64px step of the rem scale.
116
+ export const PharosSpacing20 = "5rem"; // 80px step of the rem scale.
117
+ export const PharosSpacing24 = "6rem"; // 96px step of the rem scale.
118
+ export const PharosSpacing05 = "0.125rem"; // 2px step of the rem scale.
119
+ export const PharosSpacing15 = "0.375rem"; // 6px step of the rem scale.
120
+ export const PharosSpacing25 = "0.625rem"; // 10px step of the rem scale.
114
121
  export const PharosFontFamilySans =
115
122
  '"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.
116
123
  export const PharosFontFamilyMono =
@@ -136,3 +143,51 @@ export const PharosFontLineHeightLoose = "2";
136
143
  export const PharosFontLetterSpacingTight = "-0.025em";
137
144
  export const PharosFontLetterSpacingNormal = "0";
138
145
  export const PharosFontLetterSpacingWide = "0.025em";
146
+ export const PharosTypeDisplayFontFamily =
147
+ '"Outfit", Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif'; // Display (5xl). Brand surfaces and covers.
148
+ export const PharosTypeDisplayFontSize = "3rem"; // Display (5xl). Brand surfaces and covers.
149
+ export const PharosTypeDisplayFontWeight = "700"; // Display (5xl). Brand surfaces and covers.
150
+ export const PharosTypeDisplayLineHeight = "1.1"; // Display (5xl). Brand surfaces and covers.
151
+ export const PharosTypeDisplayLetterSpacing = "-0.025em"; // Display (5xl). Brand surfaces and covers.
152
+ export const PharosTypeH1FontFamily =
153
+ '"Outfit", Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif'; // H1 (4xl).
154
+ export const PharosTypeH1FontSize = "2.25rem"; // H1 (4xl).
155
+ export const PharosTypeH1FontWeight = "700"; // H1 (4xl).
156
+ export const PharosTypeH1LineHeight = "1.25"; // H1 (4xl).
157
+ export const PharosTypeH1LetterSpacing = "-0.02em"; // H1 (4xl).
158
+ export const PharosTypeH2FontFamily =
159
+ '"Outfit", Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif'; // H2 (3xl).
160
+ export const PharosTypeH2FontSize = "1.875rem"; // H2 (3xl).
161
+ export const PharosTypeH2FontWeight = "600"; // H2 (3xl).
162
+ export const PharosTypeH2LineHeight = "1.25"; // H2 (3xl).
163
+ export const PharosTypeH2LetterSpacing = "0"; // H2 (3xl).
164
+ export const PharosTypeH3FontFamily =
165
+ '"Outfit", Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif'; // H3 / large titles (2xl).
166
+ export const PharosTypeH3FontSize = "1.5rem"; // H3 / large titles (2xl).
167
+ export const PharosTypeH3FontWeight = "600"; // H3 / large titles (2xl).
168
+ export const PharosTypeH3LineHeight = "1.25"; // H3 / large titles (2xl).
169
+ export const PharosTypeH3LetterSpacing = "0"; // H3 / large titles (2xl).
170
+ export const PharosTypeLessonTitleFontFamily =
171
+ '"Outfit", Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif'; // Lesson titles (xl).
172
+ export const PharosTypeLessonTitleFontSize = "1.25rem"; // Lesson titles (xl).
173
+ export const PharosTypeLessonTitleFontWeight = "600"; // Lesson titles (xl).
174
+ export const PharosTypeLessonTitleLineHeight = "1.25"; // Lesson titles (xl).
175
+ export const PharosTypeLessonTitleLetterSpacing = "0"; // Lesson titles (xl).
176
+ export const PharosTypeSubtitleFontFamily =
177
+ '"Outfit", Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif'; // Subtitles (lg).
178
+ export const PharosTypeSubtitleFontSize = "1.125rem"; // Subtitles (lg).
179
+ export const PharosTypeSubtitleFontWeight = "500"; // Subtitles (lg).
180
+ export const PharosTypeSubtitleLineHeight = "1.25"; // Subtitles (lg).
181
+ export const PharosTypeSubtitleLetterSpacing = "0"; // Subtitles (lg).
182
+ export const PharosTypeBodyFontFamily =
183
+ '"Outfit", Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif'; // Body default (sm, 14px / 1.5). Colour signals interaction, not bold.
184
+ export const PharosTypeBodyFontSize = "0.875rem"; // Body default (sm, 14px / 1.5). Colour signals interaction, not bold.
185
+ export const PharosTypeBodyFontWeight = "400"; // Body default (sm, 14px / 1.5). Colour signals interaction, not bold.
186
+ export const PharosTypeBodyLineHeight = "1.5"; // Body default (sm, 14px / 1.5). Colour signals interaction, not bold.
187
+ export const PharosTypeBodyLetterSpacing = "0"; // Body default (sm, 14px / 1.5). Colour signals interaction, not bold.
188
+ export const PharosTypeCaptionFontFamily =
189
+ '"Outfit", Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif'; // Tiny eyebrow / caption labels (xs), ALL-CAPS with wide tracking; helper text at 400.
190
+ export const PharosTypeCaptionFontSize = "0.75rem"; // Tiny eyebrow / caption labels (xs), ALL-CAPS with wide tracking; helper text at 400.
191
+ export const PharosTypeCaptionFontWeight = "700"; // Tiny eyebrow / caption labels (xs), ALL-CAPS with wide tracking; helper text at 400.
192
+ export const PharosTypeCaptionLineHeight = "1.5"; // Tiny eyebrow / caption labels (xs), ALL-CAPS with wide tracking; helper text at 400.
193
+ export const PharosTypeCaptionLetterSpacing = "0.06em"; // Tiny eyebrow / caption labels (xs), ALL-CAPS with wide tracking; helper text at 400.
package/dist/tokens.json CHANGED
@@ -5,17 +5,17 @@
5
5
  "black": "oklch(0% 0 0)"
6
6
  },
7
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)",
8
+ "50": "oklch(97.91% 0.003 248.83)",
9
+ "100": "oklch(97.02% 0.004 248.83)",
10
+ "200": "oklch(95.21% 0.005 248.83)",
11
+ "300": "oklch(88.82% 0.007 248.83)",
12
+ "400": "oklch(81.09% 0.01 248.83)",
13
+ "500": "oklch(52.78% 0.016 248.83)",
14
+ "600": "oklch(35.62% 0.019 248.83)",
15
+ "700": "oklch(29.52% 0.02 248.83)",
16
+ "800": "oklch(24.5% 0.02 248.83)",
17
17
  "900": "oklch(20.50% 0.02 248.83)",
18
- "950": "oklch(14.69% 0.0225 269.48)"
18
+ "950": "oklch(14.69% 0.0225 248.83)"
19
19
  },
20
20
  "primary": {
21
21
  "50": "oklch(95.94% 0.0164 274.82)",
@@ -31,14 +31,14 @@
31
31
  },
32
32
  "semantic": {
33
33
  "success": {
34
- "fg": "oklch(52% 0.17 152)",
35
- "bg": "oklch(52% 0.17 152 / 0.063)",
34
+ "fg": "oklch(52% 0.136 152)",
35
+ "bg": "oklch(52% 0.136 152 / 0.063)",
36
36
  "on": "oklch(100% 0 0)"
37
37
  },
38
38
  "error": {
39
39
  "fg": "oklch(54% 0.22 27.48)",
40
- "fg-hover": "oklch(47% 0.205 27.48)",
41
- "fg-active": "oklch(40% 0.175 27.48)",
40
+ "fg-hover": "oklch(47% 0.191 27.48)",
41
+ "fg-active": "oklch(40% 0.162 27.48)",
42
42
  "bg": "oklch(54% 0.22 27.48 / 0.063)",
43
43
  "on": "oklch(100% 0 0)"
44
44
  },
@@ -48,8 +48,8 @@
48
48
  "on": "oklch(20.50% 0.02 248.83)"
49
49
  },
50
50
  "info": {
51
- "fg": "oklch(52% 0.17 246)",
52
- "bg": "oklch(52% 0.17 246 / 0.063)",
51
+ "fg": "oklch(52% 0.133 246)",
52
+ "bg": "oklch(52% 0.133 246 / 0.063)",
53
53
  "on": "oklch(100% 0 0)"
54
54
  }
55
55
  },
@@ -106,6 +106,15 @@
106
106
  "lg": "0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)",
107
107
  "xl": "0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)"
108
108
  },
109
+ "zIndex": {
110
+ "base": "0",
111
+ "sticky": "1100",
112
+ "overlay": "1300",
113
+ "modal": "1400",
114
+ "popover": "1500",
115
+ "toast": "1700",
116
+ "tooltip": "1800"
117
+ },
109
118
  "z": {
110
119
  "0": "0",
111
120
  "header": "1000",
@@ -177,5 +186,63 @@
177
186
  "normal": "0",
178
187
  "wide": "0.025em"
179
188
  }
189
+ },
190
+ "type": {
191
+ "display": {
192
+ "fontFamily": "\"Outfit\", Inter, system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif",
193
+ "fontSize": "3rem",
194
+ "fontWeight": "700",
195
+ "lineHeight": "1.1",
196
+ "letterSpacing": "-0.025em"
197
+ },
198
+ "h1": {
199
+ "fontFamily": "\"Outfit\", Inter, system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif",
200
+ "fontSize": "2.25rem",
201
+ "fontWeight": "700",
202
+ "lineHeight": "1.25",
203
+ "letterSpacing": "-0.02em"
204
+ },
205
+ "h2": {
206
+ "fontFamily": "\"Outfit\", Inter, system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif",
207
+ "fontSize": "1.875rem",
208
+ "fontWeight": "600",
209
+ "lineHeight": "1.25",
210
+ "letterSpacing": "0"
211
+ },
212
+ "h3": {
213
+ "fontFamily": "\"Outfit\", Inter, system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif",
214
+ "fontSize": "1.5rem",
215
+ "fontWeight": "600",
216
+ "lineHeight": "1.25",
217
+ "letterSpacing": "0"
218
+ },
219
+ "lesson-title": {
220
+ "fontFamily": "\"Outfit\", Inter, system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif",
221
+ "fontSize": "1.25rem",
222
+ "fontWeight": "600",
223
+ "lineHeight": "1.25",
224
+ "letterSpacing": "0"
225
+ },
226
+ "subtitle": {
227
+ "fontFamily": "\"Outfit\", Inter, system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif",
228
+ "fontSize": "1.125rem",
229
+ "fontWeight": "500",
230
+ "lineHeight": "1.25",
231
+ "letterSpacing": "0"
232
+ },
233
+ "body": {
234
+ "fontFamily": "\"Outfit\", Inter, system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif",
235
+ "fontSize": "0.875rem",
236
+ "fontWeight": "400",
237
+ "lineHeight": "1.5",
238
+ "letterSpacing": "0"
239
+ },
240
+ "caption": {
241
+ "fontFamily": "\"Outfit\", Inter, system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif",
242
+ "fontSize": "0.75rem",
243
+ "fontWeight": "700",
244
+ "lineHeight": "1.5",
245
+ "letterSpacing": "0.06em"
246
+ }
180
247
  }
181
248
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@code-sherpas/pharos-tokens",
3
- "version": "0.5.0",
3
+ "version": "0.7.0",
4
4
  "description": "Design tokens de Code Sherpas — agnóstico de framework. DTCG + Style Dictionary + OKLCH.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -44,6 +44,7 @@
44
44
  "culori": "^4.0.1",
45
45
  "eslint": "^10.2.1",
46
46
  "eslint-config-prettier": "^10.1.8",
47
+ "eslint-plugin-regexp": "^3.3.1",
47
48
  "husky": "^9.1.7",
48
49
  "lint-staged": "^17.0.5",
49
50
  "prettier": "^3.4.2",