@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/README.md +7 -0
- package/RULES.md +1 -1
- package/dist/index.js +83 -16
- package/dist/styles.css +145 -98
- package/dist/tokens.d.ts +192 -91
- package/dist/tokens.js +153 -98
- package/dist/tokens.json +83 -16
- package/package.json +2 -1
- package/src/color.tokens.json +77 -77
- package/src/radius.tokens.json +24 -8
- package/src/shadow.tokens.json +113 -18
- package/src/spacing.tokens.json +61 -17
- package/src/typography.tokens.json +139 -12
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.
|
|
6
|
-
export const PharosColorBaseBlack = "oklch(0% 0 0)"; // Pure black
|
|
7
|
-
export const PharosColorNeutral50 = "oklch(97.91% 0
|
|
8
|
-
export const PharosColorNeutral100 = "oklch(97.02% 0
|
|
9
|
-
export const PharosColorNeutral200 = "oklch(95.21% 0
|
|
10
|
-
export const PharosColorNeutral300 = "oklch(88.82% 0.
|
|
11
|
-
export const PharosColorNeutral400 = "oklch(81.09% 0
|
|
12
|
-
export const PharosColorNeutral500 = "oklch(52.78% 0
|
|
13
|
-
export const PharosColorNeutral600 = "oklch(35.62% 0
|
|
14
|
-
export const PharosColorNeutral700 = "oklch(29.52% 0.
|
|
15
|
-
export const PharosColorNeutral800 = "oklch(
|
|
16
|
-
export const PharosColorNeutral900 = "oklch(20.50% 0.02 248.83)"; //
|
|
17
|
-
export const PharosColorNeutral950 = "oklch(14.69% 0.0225
|
|
18
|
-
export const PharosColorPrimary50 = "oklch(95.94% 0.0164 274.82)"; //
|
|
19
|
-
export const PharosColorPrimary100 = "oklch(91.35% 0.0374 275.69)"; //
|
|
20
|
-
export const PharosColorPrimary200 = "oklch(82.70% 0.0785 274.99)"; //
|
|
21
|
-
export const PharosColorPrimary300 = "oklch(74.07% 0.1205 273.68)"; //
|
|
22
|
-
export const PharosColorPrimary400 = "oklch(65.40% 0.1582 271.71)"; //
|
|
23
|
-
export const PharosColorPrimary500 = "oklch(57.34% 0.1996 269.61)"; //
|
|
24
|
-
export const PharosColorPrimary600 = "oklch(49.83% 0.2417 267.34)"; //
|
|
25
|
-
export const PharosColorPrimary700 = "oklch(42.19% 0.2111 267.20)"; //
|
|
26
|
-
export const PharosColorPrimary800 = "oklch(34.32% 0.1726 267.54)"; //
|
|
27
|
-
export const PharosColorPrimary900 = "oklch(25.97% 0.1317 268.18)"; //
|
|
28
|
-
export const PharosColorSemanticSuccessFg = "oklch(52% 0.
|
|
29
|
-
export const PharosColorSemanticSuccessBg = "oklch(52% 0.
|
|
30
|
-
export const PharosColorSemanticSuccessOn = "oklch(100% 0 0)"; //
|
|
31
|
-
export const PharosColorSemanticErrorFg = "oklch(54% 0.22 27.48)"; //
|
|
32
|
-
export const PharosColorSemanticErrorFgHover = "oklch(47% 0.
|
|
33
|
-
export const PharosColorSemanticErrorFgActive = "oklch(40% 0.
|
|
34
|
-
export const PharosColorSemanticErrorBg = "oklch(54% 0.22 27.48 / 0.063)"; //
|
|
35
|
-
export const PharosColorSemanticErrorOn = "oklch(100% 0 0)"; //
|
|
36
|
-
export const PharosColorSemanticWarningFg = "oklch(77.77% 0.1588 90.66)"; //
|
|
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)"; //
|
|
39
|
-
export const PharosColorSemanticWarningOn = "oklch(20.50% 0.02 248.83)"; //
|
|
40
|
-
export const PharosColorSemanticInfoFg = "oklch(52% 0.
|
|
41
|
-
export const PharosColorSemanticInfoBg = "oklch(52% 0.
|
|
42
|
-
export const PharosColorSemanticInfoOn = "oklch(100% 0 0)"; //
|
|
43
|
-
export const PharosColorPaper50 = "oklch(99.4% 0.003 70)"; //
|
|
44
|
-
export const PharosColorPaper100 = "oklch(98.5% 0.009 70)"; //
|
|
45
|
-
export const PharosColorPaper200 = "oklch(96.5% 0.010 70)"; //
|
|
46
|
-
export const PharosColorPaper300 = "oklch(93.5% 0.010 70)"; //
|
|
47
|
-
export const PharosColorRuleSubtle = "oklch(91.5% 0.008 248.83)"; //
|
|
48
|
-
export const PharosColorRuleStrong = "oklch(85.5% 0.012 248.83)"; //
|
|
49
|
-
export const PharosColorSurfaceCanvas = "oklch(98.5% 0.009 70)"; //
|
|
50
|
-
export const PharosColorSurfaceCard = "oklch(100% 0 0)"; //
|
|
51
|
-
export const PharosColorSurfaceSunken = "oklch(99.4% 0.003 70)"; //
|
|
52
|
-
export const PharosColorBorderSubtle = "oklch(91.5% 0.008 248.83)"; //
|
|
53
|
-
export const PharosColorBorderStrong = "oklch(85.5% 0.012 248.83)"; //
|
|
54
|
-
export const PharosColorAccentTerracotta50 = "oklch(96.50% 0.0160 42.5)"; // Tint
|
|
55
|
-
export const PharosColorAccentTerracotta100 = "oklch(93.00% 0.0350 42.5)"; //
|
|
56
|
-
export const PharosColorAccentTerracotta200 = "oklch(87.00% 0.0620 42.5)"; //
|
|
57
|
-
export const PharosColorAccentTerracotta300 = "oklch(79.00% 0.0950 42.5)"; //
|
|
58
|
-
export const PharosColorAccentTerracotta400 = "oklch(70.00% 0.1220 42.5)"; //
|
|
59
|
-
export const PharosColorAccentTerracotta500 = "oklch(65.00% 0.1320 42.5)"; //
|
|
60
|
-
export const PharosColorAccentTerracotta600 = "oklch(60.75% 0.1358 42.5)"; //
|
|
61
|
-
export const PharosColorAccentTerracotta700 = "oklch(51.60% 0.1261 40.7)"; //
|
|
62
|
-
export const PharosColorAccentTerracotta800 = "oklch(42.00% 0.1020 42.5)"; //
|
|
63
|
-
export const PharosColorAccentTerracotta900 = "oklch(33.00% 0.0770 42.5)"; //
|
|
64
|
-
export const PharosColorAccentTerracottaFg = "oklch(51.60% 0.1261 40.7)"; //
|
|
65
|
-
export const PharosColorAccentTerracottaBg = "oklch(96.50% 0.0160 42.5)"; //
|
|
66
|
-
export const PharosColorAccentTerracottaOn = "oklch(100% 0 0)"; //
|
|
67
|
-
export const PharosRadiusNone = "0"; //
|
|
68
|
-
export const PharosRadiusSm = "0.125rem"; // 2px
|
|
69
|
-
export const PharosRadiusMd = "0.375rem"; // 6px
|
|
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
|
|
73
|
-
export const PharosRadius3xl = "1.5rem"; // 24px
|
|
74
|
-
export const PharosRadiusFull = "9999px"; //
|
|
75
|
-
export const PharosShadowSm = "0 1px 2px 0 rgb(0 0 0 / 0.05)"; //
|
|
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)"; //
|
|
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)"; //
|
|
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
|
|
82
|
-
export const
|
|
83
|
-
export const
|
|
84
|
-
export const
|
|
85
|
-
export const
|
|
86
|
-
export const
|
|
87
|
-
export const
|
|
88
|
-
export const
|
|
89
|
-
export const
|
|
90
|
-
export const
|
|
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"; //
|
|
98
|
-
export const PharosSpacing1 = "0.25rem"; // 4px
|
|
99
|
-
export const PharosSpacing2 = "0.5rem"; // 8px
|
|
100
|
-
export const PharosSpacing3 = "0.75rem"; // 12px
|
|
101
|
-
export const PharosSpacing4 = "1rem"; // 16px. Default body padding
|
|
102
|
-
export const PharosSpacing5 = "1.25rem"; // 20px.
|
|
103
|
-
export const PharosSpacing6 = "1.5rem"; // 24px. Default card padding
|
|
104
|
-
export const PharosSpacing7 = "1.75rem"; // 28px.
|
|
105
|
-
export const PharosSpacing8 = "2rem"; // 32px. Section gap
|
|
106
|
-
export const PharosSpacing10 = "2.5rem"; // 40px
|
|
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
|
|
9
|
-
"100": "oklch(97.02% 0
|
|
10
|
-
"200": "oklch(95.21% 0
|
|
11
|
-
"300": "oklch(88.82% 0.
|
|
12
|
-
"400": "oklch(81.09% 0
|
|
13
|
-
"500": "oklch(52.78% 0
|
|
14
|
-
"600": "oklch(35.62% 0
|
|
15
|
-
"700": "oklch(29.52% 0.
|
|
16
|
-
"800": "oklch(
|
|
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
|
|
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.
|
|
35
|
-
"bg": "oklch(52% 0.
|
|
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.
|
|
41
|
-
"fg-active": "oklch(40% 0.
|
|
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.
|
|
52
|
-
"bg": "oklch(52% 0.
|
|
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.
|
|
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",
|