@code-sherpas/pharos-tokens 0.3.0 → 0.5.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/RULES.md CHANGED
@@ -48,3 +48,13 @@ When picking which tokens to use, respect the defined pairs:
48
48
  ## 7. Extensions and overrides
49
49
 
50
50
  **Do not** publish a new package `@yourorg/pharos-tokens-extended`. If a product needs its own tokens (e.g. co-branded identities), implement them as additional CSS vars in the consumer under your own namespace (`--myapp-*`) and document it.
51
+
52
+ ## 8. Font loading is the consumer's responsibility
53
+
54
+ `pharos-tokens` declares the font stack (e.g. `"Outfit", Inter, system-ui, ...`) but does **not** ship font files. The package stays framework-agnostic and cannot assume how the consumer serves assets. Each consumer is responsible for loading the primary face before the UI renders:
55
+
56
+ - **Next.js**: `next/font/google` with `Outfit` (and optionally `Inter`) in the root layout.
57
+ - **Vite / CRA / generic web**: `@fontsource/outfit` + `@fontsource/inter`, or a `<link>` tag to Google Fonts.
58
+ - **Emails / PDFs**: the renderer falls back through the stack; declare `Outfit` as the primary face only if the renderer can embed it, otherwise the fallback chain kicks in.
59
+
60
+ If the primary face is not loaded, the stack falls back through `Inter → system-ui → ...`, so the UI degrades gracefully — but the intended design requires the primary face.
package/dist/index.js CHANGED
@@ -59,10 +59,46 @@ export const tokens = {
59
59
  "bg": "oklch(52% 0.17 246 / 0.063)",
60
60
  "on": "oklch(100% 0 0)"
61
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)",
96
+ "on": "oklch(100% 0 0)"
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",
@@ -99,7 +135,7 @@ export const tokens = {
99
135
  "in-out": "cubic-bezier(0.4, 0, 0.2, 1)"
100
136
  },
101
137
  "spacing": {
102
- "0": 0,
138
+ "0": "0",
103
139
  "1": "0.25rem",
104
140
  "2": "0.5rem",
105
141
  "3": "0.75rem",
@@ -116,7 +152,7 @@ export const tokens = {
116
152
  },
117
153
  "font": {
118
154
  "family": {
119
- "sans": "\"Inter\", system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif",
155
+ "sans": "\"Outfit\", Inter, system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif",
120
156
  "mono": "ui-monospace, SFMono-Regular, \"SF Mono\", Menlo, Consolas, \"Liberation Mono\", monospace"
121
157
  },
122
158
  "weight": {
@@ -145,7 +181,7 @@ export const tokens = {
145
181
  },
146
182
  "letterSpacing": {
147
183
  "tight": "-0.025em",
148
- "normal": 0,
184
+ "normal": "0",
149
185
  "wide": "0.025em"
150
186
  }
151
187
  }
package/dist/styles.css CHANGED
@@ -36,6 +36,22 @@
36
36
  --pharos-color-semantic-warning-bg: oklch(77.77% 0.1588 90.66 / 0.063); /** Warning background, subtle. Replaces Alexandria #ddb10110 / warning.back. */
37
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
38
  --pharos-color-semantic-info-bg: oklch(52% 0.17 246 / 0.063); /** Info background, subtle tint of info.fg. */
39
+ --pharos-color-paper-50: oklch(99.4% 0.003 70); /** Warmest, lightest paper. Sunken surfaces inside a card. */
40
+ --pharos-color-paper-100: oklch(98.5% 0.009 70); /** The page canvas of the redesigned screens. */
41
+ --pharos-color-paper-200: oklch(96.5% 0.010 70); /** Panels and hovers on paper. */
42
+ --pharos-color-paper-300: oklch(93.5% 0.010 70); /** The rule that separates paper from paper. */
43
+ --pharos-color-rule-subtle: oklch(91.5% 0.008 248.83); /** Hairline between rows and inside cards. */
44
+ --pharos-color-rule-strong: oklch(85.5% 0.012 248.83); /** Visible border of a surface. */
45
+ --pharos-color-accent-terracotta-50: oklch(96.50% 0.0160 42.5); /** Tint surface for warm-accent blocks. */
46
+ --pharos-color-accent-terracotta-100: oklch(93.00% 0.0350 42.5); /** Hover of the tint surface. */
47
+ --pharos-color-accent-terracotta-200: oklch(87.00% 0.0620 42.5); /** Border of a warm-accent block. */
48
+ --pharos-color-accent-terracotta-300: oklch(79.00% 0.0950 42.5); /** Disabled warm accent. */
49
+ --pharos-color-accent-terracotta-400: oklch(70.00% 0.1220 42.5); /** Warm accent on dark surfaces. */
50
+ --pharos-color-accent-terracotta-500: oklch(65.00% 0.1320 42.5); /** The accent at full strength. */
51
+ --pharos-color-accent-terracotta-600: oklch(60.75% 0.1358 42.5); /** Default warm accent (#C4633A). */
52
+ --pharos-color-accent-terracotta-700: oklch(51.60% 0.1261 40.7); /** Warm accent as ink: 5.92:1 on white, AA (#A24A28). */
53
+ --pharos-color-accent-terracotta-800: oklch(42.00% 0.1020 42.5); /** Pressed step. */
54
+ --pharos-color-accent-terracotta-900: oklch(33.00% 0.0770 42.5); /** Darkest step. */
39
55
  --pharos-radius-none: 0; /** No rounding. */
40
56
  --pharos-radius-sm: 0.125rem; /** 2px. Subtle rounding. */
41
57
  --pharos-radius-md: 0.375rem; /** 6px. Default control rounding. */
@@ -80,7 +96,7 @@
80
96
  --pharos-spacing-0-5: 0.125rem; /** 2px. */
81
97
  --pharos-spacing-1-5: 0.375rem; /** 6px. */
82
98
  --pharos-spacing-2-5: 0.625rem; /** 10px. */
83
- --pharos-font-family-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; /** Default sans-serif stack. Inter can be replaced at the consumer layer via CSS var override. */
99
+ --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
100
  --pharos-font-family-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; /** Default monospace stack for code. */
85
101
  --pharos-font-weight-regular: 400;
86
102
  --pharos-font-weight-medium: 500;
@@ -107,4 +123,12 @@
107
123
  --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
124
  --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
125
  --pharos-color-semantic-info-on: var(--pharos-color-base-white); /** Readable on info.fg filled surfaces (WCAG AA). */
126
+ --pharos-color-surface-canvas: var(--pharos-color-paper-100); /** The page itself. */
127
+ --pharos-color-surface-card: var(--pharos-color-base-white); /** A surface resting on the canvas. */
128
+ --pharos-color-surface-sunken: var(--pharos-color-paper-50); /** A well inside a card. */
129
+ --pharos-color-border-subtle: var(--pharos-color-rule-subtle); /** Border of a resting surface. */
130
+ --pharos-color-border-strong: var(--pharos-color-rule-strong); /** Border that has to be seen. */
131
+ --pharos-color-accent-terracotta-fg: var(--pharos-color-accent-terracotta-700); /** Readable warm-accent ink on white. */
132
+ --pharos-color-accent-terracotta-bg: var(--pharos-color-accent-terracotta-50); /** Warm-accent tint surface. */
133
+ --pharos-color-accent-terracotta-on: var(--pharos-color-base-white); /** Readable on a filled warm-accent surface. */
110
134
  }
package/dist/tokens.d.ts CHANGED
@@ -76,8 +76,56 @@ export const PharosColorSemanticInfoFg: string;
76
76
  export const PharosColorSemanticInfoBg: string;
77
77
  /** Readable on info.fg filled surfaces (WCAG AA). */
78
78
  export const PharosColorSemanticInfoOn: string;
79
+ /** Warmest, lightest paper. Sunken surfaces inside a card. */
80
+ export const PharosColorPaper50: string;
81
+ /** The page canvas of the redesigned screens. */
82
+ export const PharosColorPaper100: string;
83
+ /** Panels and hovers on paper. */
84
+ export const PharosColorPaper200: string;
85
+ /** The rule that separates paper from paper. */
86
+ export const PharosColorPaper300: string;
87
+ /** Hairline between rows and inside cards. */
88
+ export const PharosColorRuleSubtle: string;
89
+ /** Visible border of a surface. */
90
+ export const PharosColorRuleStrong: string;
91
+ /** The page itself. */
92
+ export const PharosColorSurfaceCanvas: string;
93
+ /** A surface resting on the canvas. */
94
+ export const PharosColorSurfaceCard: string;
95
+ /** A well inside a card. */
96
+ export const PharosColorSurfaceSunken: string;
97
+ /** Border of a resting surface. */
98
+ export const PharosColorBorderSubtle: string;
99
+ /** Border that has to be seen. */
100
+ export const PharosColorBorderStrong: string;
101
+ /** Tint surface for warm-accent blocks. */
102
+ export const PharosColorAccentTerracotta50: string;
103
+ /** Hover of the tint surface. */
104
+ export const PharosColorAccentTerracotta100: string;
105
+ /** Border of a warm-accent block. */
106
+ export const PharosColorAccentTerracotta200: string;
107
+ /** Disabled warm accent. */
108
+ export const PharosColorAccentTerracotta300: string;
109
+ /** Warm accent on dark surfaces. */
110
+ export const PharosColorAccentTerracotta400: string;
111
+ /** The accent at full strength. */
112
+ export const PharosColorAccentTerracotta500: string;
113
+ /** Default warm accent (#C4633A). */
114
+ export const PharosColorAccentTerracotta600: string;
115
+ /** Warm accent as ink: 5.92:1 on white, AA (#A24A28). */
116
+ export const PharosColorAccentTerracotta700: string;
117
+ /** Pressed step. */
118
+ export const PharosColorAccentTerracotta800: string;
119
+ /** Darkest step. */
120
+ export const PharosColorAccentTerracotta900: string;
121
+ /** Readable warm-accent ink on white. */
122
+ export const PharosColorAccentTerracottaFg: string;
123
+ /** Warm-accent tint surface. */
124
+ export const PharosColorAccentTerracottaBg: string;
125
+ /** Readable on a filled warm-accent surface. */
126
+ export const PharosColorAccentTerracottaOn: string;
79
127
  /** No rounding. */
80
- export const PharosRadiusNone: number;
128
+ export const PharosRadiusNone: string;
81
129
  /** 2px. Subtle rounding. */
82
130
  export const PharosRadiusSm: string;
83
131
  /** 6px. Default control rounding. */
@@ -121,7 +169,7 @@ export const PharosEasingIn: string;
121
169
  export const PharosEasingOut: string;
122
170
  export const PharosEasingInOut: string;
123
171
  /** Zero. */
124
- export const PharosSpacing0: number;
172
+ export const PharosSpacing0: string;
125
173
  /** 4px. Tightest usable gap. */
126
174
  export const PharosSpacing1: string;
127
175
  /** 8px. Common small gap (replaces Alexandria cs-xs). */
@@ -154,7 +202,7 @@ export const PharosSpacing05: string;
154
202
  export const PharosSpacing15: string;
155
203
  /** 10px. */
156
204
  export const PharosSpacing25: string;
157
- /** Default sans-serif stack. Inter can be replaced at the consumer layer via CSS var override. */
205
+ /** 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. */
158
206
  export const PharosFontFamilySans: string;
159
207
  /** Default monospace stack for code. */
160
208
  export const PharosFontFamilyMono: string;
@@ -187,5 +235,5 @@ export const PharosFontLineHeightNormal: string;
187
235
  export const PharosFontLineHeightRelaxed: string;
188
236
  export const PharosFontLineHeightLoose: string;
189
237
  export const PharosFontLetterSpacingTight: string;
190
- export const PharosFontLetterSpacingNormal: number;
238
+ export const PharosFontLetterSpacingNormal: string;
191
239
  export const PharosFontLetterSpacingWide: string;
package/dist/tokens.js CHANGED
@@ -40,7 +40,31 @@ export const PharosColorSemanticWarningOn = "oklch(20.50% 0.02 248.83)"; // Read
40
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
41
  export const PharosColorSemanticInfoBg = "oklch(52% 0.17 246 / 0.063)"; // Info background, subtle tint of info.fg.
42
42
  export const PharosColorSemanticInfoOn = "oklch(100% 0 0)"; // Readable on info.fg filled surfaces (WCAG AA).
43
- export const PharosRadiusNone = 0; // No rounding.
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.
44
68
  export const PharosRadiusSm = "0.125rem"; // 2px. Subtle rounding.
45
69
  export const PharosRadiusMd = "0.375rem"; // 6px. Default control rounding.
46
70
  export const PharosRadiusLg = "0.5rem"; // 8px.
@@ -70,7 +94,7 @@ export const PharosDurationSlow = "300ms"; // Panel slide, overlay fade.
70
94
  export const PharosEasingIn = "cubic-bezier(0.4, 0, 1, 1)";
71
95
  export const PharosEasingOut = "cubic-bezier(0, 0, 0.2, 1)";
72
96
  export const PharosEasingInOut = "cubic-bezier(0.4, 0, 0.2, 1)";
73
- export const PharosSpacing0 = 0; // Zero.
97
+ export const PharosSpacing0 = "0"; // Zero.
74
98
  export const PharosSpacing1 = "0.25rem"; // 4px. Tightest usable gap.
75
99
  export const PharosSpacing2 = "0.5rem"; // 8px. Common small gap (replaces Alexandria cs-xs).
76
100
  export const PharosSpacing3 = "0.75rem"; // 12px. Replaces Alexandria cs-sm.
@@ -88,7 +112,7 @@ export const PharosSpacing05 = "0.125rem"; // 2px.
88
112
  export const PharosSpacing15 = "0.375rem"; // 6px.
89
113
  export const PharosSpacing25 = "0.625rem"; // 10px.
90
114
  export const PharosFontFamilySans =
91
- '"Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif'; // Default sans-serif stack. Inter can be replaced at the consumer layer via CSS var override.
115
+ '"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.
92
116
  export const PharosFontFamilyMono =
93
117
  'ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace'; // Default monospace stack for code.
94
118
  export const PharosFontWeightRegular = "400";
@@ -110,5 +134,5 @@ export const PharosFontLineHeightNormal = "1.5"; // Default body line-height.
110
134
  export const PharosFontLineHeightRelaxed = "1.625";
111
135
  export const PharosFontLineHeightLoose = "2";
112
136
  export const PharosFontLetterSpacingTight = "-0.025em";
113
- export const PharosFontLetterSpacingNormal = 0;
137
+ export const PharosFontLetterSpacingNormal = "0";
114
138
  export const PharosFontLetterSpacingWide = "0.025em";
package/dist/tokens.json CHANGED
@@ -52,10 +52,46 @@
52
52
  "bg": "oklch(52% 0.17 246 / 0.063)",
53
53
  "on": "oklch(100% 0 0)"
54
54
  }
55
+ },
56
+ "paper": {
57
+ "50": "oklch(99.4% 0.003 70)",
58
+ "100": "oklch(98.5% 0.009 70)",
59
+ "200": "oklch(96.5% 0.010 70)",
60
+ "300": "oklch(93.5% 0.010 70)"
61
+ },
62
+ "rule": {
63
+ "subtle": "oklch(91.5% 0.008 248.83)",
64
+ "strong": "oklch(85.5% 0.012 248.83)"
65
+ },
66
+ "surface": {
67
+ "canvas": "oklch(98.5% 0.009 70)",
68
+ "card": "oklch(100% 0 0)",
69
+ "sunken": "oklch(99.4% 0.003 70)"
70
+ },
71
+ "border": {
72
+ "subtle": "oklch(91.5% 0.008 248.83)",
73
+ "strong": "oklch(85.5% 0.012 248.83)"
74
+ },
75
+ "accent": {
76
+ "terracotta": {
77
+ "50": "oklch(96.50% 0.0160 42.5)",
78
+ "100": "oklch(93.00% 0.0350 42.5)",
79
+ "200": "oklch(87.00% 0.0620 42.5)",
80
+ "300": "oklch(79.00% 0.0950 42.5)",
81
+ "400": "oklch(70.00% 0.1220 42.5)",
82
+ "500": "oklch(65.00% 0.1320 42.5)",
83
+ "600": "oklch(60.75% 0.1358 42.5)",
84
+ "700": "oklch(51.60% 0.1261 40.7)",
85
+ "800": "oklch(42.00% 0.1020 42.5)",
86
+ "900": "oklch(33.00% 0.0770 42.5)",
87
+ "fg": "oklch(51.60% 0.1261 40.7)",
88
+ "bg": "oklch(96.50% 0.0160 42.5)",
89
+ "on": "oklch(100% 0 0)"
90
+ }
55
91
  }
56
92
  },
57
93
  "radius": {
58
- "none": 0,
94
+ "none": "0",
59
95
  "sm": "0.125rem",
60
96
  "md": "0.375rem",
61
97
  "lg": "0.5rem",
@@ -92,7 +128,7 @@
92
128
  "in-out": "cubic-bezier(0.4, 0, 0.2, 1)"
93
129
  },
94
130
  "spacing": {
95
- "0": 0,
131
+ "0": "0",
96
132
  "1": "0.25rem",
97
133
  "2": "0.5rem",
98
134
  "3": "0.75rem",
@@ -109,7 +145,7 @@
109
145
  },
110
146
  "font": {
111
147
  "family": {
112
- "sans": "\"Inter\", system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif",
148
+ "sans": "\"Outfit\", Inter, system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif",
113
149
  "mono": "ui-monospace, SFMono-Regular, \"SF Mono\", Menlo, Consolas, \"Liberation Mono\", monospace"
114
150
  },
115
151
  "weight": {
@@ -138,7 +174,7 @@
138
174
  },
139
175
  "letterSpacing": {
140
176
  "tight": "-0.025em",
141
- "normal": 0,
177
+ "normal": "0",
142
178
  "wide": "0.025em"
143
179
  }
144
180
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@code-sherpas/pharos-tokens",
3
- "version": "0.3.0",
3
+ "version": "0.5.0",
4
4
  "description": "Design tokens de Code Sherpas — agnóstico de framework. DTCG + Style Dictionary + OKLCH.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -30,7 +30,10 @@
30
30
  "./dtcg/*": "./src/*.tokens.json"
31
31
  },
32
32
  "engines": {
33
- "node": ">=24"
33
+ "node": ">=22"
34
+ },
35
+ "lint-staged": {
36
+ "*.{ts,tsx,js,mjs,cjs,json,md,mdx,css,yml,yaml}": "prettier --write"
34
37
  },
35
38
  "devDependencies": {
36
39
  "@changesets/cli": "^2.27.10",
@@ -41,6 +44,8 @@
41
44
  "culori": "^4.0.1",
42
45
  "eslint": "^10.2.1",
43
46
  "eslint-config-prettier": "^10.1.8",
47
+ "husky": "^9.1.7",
48
+ "lint-staged": "^17.0.5",
44
49
  "prettier": "^3.4.2",
45
50
  "style-dictionary": "^5.4.0",
46
51
  "typescript": "^6.0.3",
@@ -200,6 +200,138 @@
200
200
  "$description": "Readable on info.fg filled surfaces (WCAG AA)."
201
201
  }
202
202
  }
203
+ },
204
+ "paper": {
205
+ "50": {
206
+ "$value": "oklch(99.4% 0.003 70)",
207
+ "$type": "color",
208
+ "$description": "Warmest, lightest paper. Sunken surfaces inside a card."
209
+ },
210
+ "100": {
211
+ "$value": "oklch(98.5% 0.009 70)",
212
+ "$type": "color",
213
+ "$description": "The page canvas of the redesigned screens."
214
+ },
215
+ "200": {
216
+ "$value": "oklch(96.5% 0.010 70)",
217
+ "$type": "color",
218
+ "$description": "Panels and hovers on paper."
219
+ },
220
+ "300": {
221
+ "$value": "oklch(93.5% 0.010 70)",
222
+ "$type": "color",
223
+ "$description": "The rule that separates paper from paper."
224
+ }
225
+ },
226
+ "rule": {
227
+ "subtle": {
228
+ "$value": "oklch(91.5% 0.008 248.83)",
229
+ "$type": "color",
230
+ "$description": "Hairline between rows and inside cards."
231
+ },
232
+ "strong": {
233
+ "$value": "oklch(85.5% 0.012 248.83)",
234
+ "$type": "color",
235
+ "$description": "Visible border of a surface."
236
+ }
237
+ },
238
+ "surface": {
239
+ "canvas": {
240
+ "$value": "{color.paper.100}",
241
+ "$type": "color",
242
+ "$description": "The page itself."
243
+ },
244
+ "card": {
245
+ "$value": "{color.base.white}",
246
+ "$type": "color",
247
+ "$description": "A surface resting on the canvas."
248
+ },
249
+ "sunken": {
250
+ "$value": "{color.paper.50}",
251
+ "$type": "color",
252
+ "$description": "A well inside a card."
253
+ }
254
+ },
255
+ "border": {
256
+ "subtle": {
257
+ "$value": "{color.rule.subtle}",
258
+ "$type": "color",
259
+ "$description": "Border of a resting surface."
260
+ },
261
+ "strong": {
262
+ "$value": "{color.rule.strong}",
263
+ "$type": "color",
264
+ "$description": "Border that has to be seen."
265
+ }
266
+ },
267
+ "accent": {
268
+ "terracotta": {
269
+ "50": {
270
+ "$value": "oklch(96.50% 0.0160 42.5)",
271
+ "$type": "color",
272
+ "$description": "Tint surface for warm-accent blocks."
273
+ },
274
+ "100": {
275
+ "$value": "oklch(93.00% 0.0350 42.5)",
276
+ "$type": "color",
277
+ "$description": "Hover of the tint surface."
278
+ },
279
+ "200": {
280
+ "$value": "oklch(87.00% 0.0620 42.5)",
281
+ "$type": "color",
282
+ "$description": "Border of a warm-accent block."
283
+ },
284
+ "300": {
285
+ "$value": "oklch(79.00% 0.0950 42.5)",
286
+ "$type": "color",
287
+ "$description": "Disabled warm accent."
288
+ },
289
+ "400": {
290
+ "$value": "oklch(70.00% 0.1220 42.5)",
291
+ "$type": "color",
292
+ "$description": "Warm accent on dark surfaces."
293
+ },
294
+ "500": {
295
+ "$value": "oklch(65.00% 0.1320 42.5)",
296
+ "$type": "color",
297
+ "$description": "The accent at full strength."
298
+ },
299
+ "600": {
300
+ "$value": "oklch(60.75% 0.1358 42.5)",
301
+ "$type": "color",
302
+ "$description": "Default warm accent (#C4633A)."
303
+ },
304
+ "700": {
305
+ "$value": "oklch(51.60% 0.1261 40.7)",
306
+ "$type": "color",
307
+ "$description": "Warm accent as ink: 5.92:1 on white, AA (#A24A28)."
308
+ },
309
+ "800": {
310
+ "$value": "oklch(42.00% 0.1020 42.5)",
311
+ "$type": "color",
312
+ "$description": "Pressed step."
313
+ },
314
+ "900": {
315
+ "$value": "oklch(33.00% 0.0770 42.5)",
316
+ "$type": "color",
317
+ "$description": "Darkest step."
318
+ },
319
+ "fg": {
320
+ "$value": "{color.accent.terracotta.700}",
321
+ "$type": "color",
322
+ "$description": "Readable warm-accent ink on white."
323
+ },
324
+ "bg": {
325
+ "$value": "{color.accent.terracotta.50}",
326
+ "$type": "color",
327
+ "$description": "Warm-accent tint surface."
328
+ },
329
+ "on": {
330
+ "$value": "{color.base.white}",
331
+ "$type": "color",
332
+ "$description": "Readable on a filled warm-accent surface."
333
+ }
334
+ }
203
335
  }
204
336
  }
205
337
  }
@@ -2,9 +2,9 @@
2
2
  "font": {
3
3
  "family": {
4
4
  "sans": {
5
- "$value": "\"Inter\", system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif",
5
+ "$value": "\"Outfit\", Inter, system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif",
6
6
  "$type": "fontFamily",
7
- "$description": "Default sans-serif stack. Inter can be replaced at the consumer layer via CSS var override."
7
+ "$description": "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."
8
8
  },
9
9
  "mono": {
10
10
  "$value": "ui-monospace, SFMono-Regular, \"SF Mono\", Menlo, Consolas, \"Liberation Mono\", monospace",