@code-sherpas/pharos-tokens 0.6.0 → 0.8.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 CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  Design tokens for Code Sherpas. Framework-agnostic. DTCG + Style Dictionary v4 + OKLCH.
4
4
 
5
+ Part of **Pharos**, Code Sherpas' design system: its visual direction and the
6
+ values of every token are decided in the
7
+ [Pharos design system artifact](https://claude.ai/artifact/AzsXQ2SHXhPJ9BhRSoGTbV),
8
+ published here as tokens and as components in [`pharos-react`](https://github.com/code-sherpas/pharos-react), and the program's documentation (decisions, roadmap,
9
+ [quality standard](https://app.notion.com/p/3fa1751eee1081debcc6db3ac657e3ac))
10
+ lives in Notion → [Programa Pharos](https://app.notion.com/p/38c1751eee1081a3834ff68c3485c03c).
11
+
5
12
  ## What's in this package
6
13
 
7
14
  This package defines **the atomic values** of Code Sherpas's visual system: colors, spacing, radius, typography, shadows, z-index, duration, and easing. They are consumable from any frontend (React, Vue, Svelte, React Native) and from backends (transactional emails, PDFs, reports).
package/RULES.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # Rules for consumers of `@code-sherpas/pharos-tokens`
2
2
 
3
3
  This file ships with the package (`files` includes `RULES.md`). Every
4
- consumer — `pharos-react`, `alexandria-web-application`, `alexandria-design`,
4
+ consumer — `pharos-react`, `alexandria-web-application`,
5
5
  and any future app — must follow these rules.
6
6
 
7
7
  ## 1. Do not redefine values locally
package/dist/index.js CHANGED
@@ -193,6 +193,71 @@ export const tokens = {
193
193
  "normal": "0",
194
194
  "wide": "0.025em"
195
195
  }
196
+ },
197
+ "type": {
198
+ "display": {
199
+ "fontFamily": "\"Outfit\", Inter, system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif",
200
+ "fontSize": "3rem",
201
+ "fontWeight": "700",
202
+ "lineHeight": "1.1",
203
+ "letterSpacing": "-0.025em"
204
+ },
205
+ "h1": {
206
+ "fontFamily": "\"Outfit\", Inter, system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif",
207
+ "fontSize": "2.25rem",
208
+ "fontWeight": "700",
209
+ "lineHeight": "1.25",
210
+ "letterSpacing": "-0.02em"
211
+ },
212
+ "h2": {
213
+ "fontFamily": "\"Outfit\", Inter, system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif",
214
+ "fontSize": "1.875rem",
215
+ "fontWeight": "600",
216
+ "lineHeight": "1.25",
217
+ "letterSpacing": "0"
218
+ },
219
+ "h3": {
220
+ "fontFamily": "\"Outfit\", Inter, system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif",
221
+ "fontSize": "1.5rem",
222
+ "fontWeight": "600",
223
+ "lineHeight": "1.25",
224
+ "letterSpacing": "0"
225
+ },
226
+ "h4": {
227
+ "fontFamily": "\"Outfit\", Inter, system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif",
228
+ "fontSize": "1.25rem",
229
+ "fontWeight": "600",
230
+ "lineHeight": "1.25",
231
+ "letterSpacing": "0"
232
+ },
233
+ "lesson-title": {
234
+ "fontFamily": "\"Outfit\", Inter, system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif",
235
+ "fontSize": "1.25rem",
236
+ "fontWeight": "600",
237
+ "lineHeight": "1.25",
238
+ "letterSpacing": "0"
239
+ },
240
+ "subtitle": {
241
+ "fontFamily": "\"Outfit\", Inter, system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif",
242
+ "fontSize": "1.125rem",
243
+ "fontWeight": "500",
244
+ "lineHeight": "1.25",
245
+ "letterSpacing": "0"
246
+ },
247
+ "body": {
248
+ "fontFamily": "\"Outfit\", Inter, system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif",
249
+ "fontSize": "0.875rem",
250
+ "fontWeight": "400",
251
+ "lineHeight": "1.5",
252
+ "letterSpacing": "0"
253
+ },
254
+ "caption": {
255
+ "fontFamily": "\"Outfit\", Inter, system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif",
256
+ "fontSize": "0.75rem",
257
+ "fontWeight": "700",
258
+ "lineHeight": "1.5",
259
+ "letterSpacing": "0.06em"
260
+ }
196
261
  }
197
262
  };
198
263
  export default tokens;
package/dist/styles.css CHANGED
@@ -16,16 +16,16 @@
16
16
  --pharos-color-neutral-800: oklch(24.5% 0.02 248.83); /** Ink ramp step between 700 and 900 (fixed: no longer lighter than 700). */
17
17
  --pharos-color-neutral-900: oklch(20.50% 0.02 248.83); /** Brand navy #101820. Primary text, icons and headlines on paper-* and white; the primary Button fill. */
18
18
  --pharos-color-neutral-950: oklch(14.69% 0.0225 248.83); /** Deepest ink; press state of the primary Button. */
19
- --pharos-color-primary-50: oklch(95.94% 0.0164 274.82); /** Seablue ramp: signature and signal — action, focus, selection, links, AI/copilot. Never structural chrome. */
20
- --pharos-color-primary-100: oklch(91.35% 0.0374 275.69); /** Seablue ramp: signature and signal — action, focus, selection, links, AI/copilot. Never structural chrome. */
21
- --pharos-color-primary-200: oklch(82.70% 0.0785 274.99); /** Seablue ramp: signature and signal — action, focus, selection, links, AI/copilot. Never structural chrome. */
22
- --pharos-color-primary-300: oklch(74.07% 0.1205 273.68); /** Seablue ramp: signature and signal — action, focus, selection, links, AI/copilot. Never structural chrome. */
23
- --pharos-color-primary-400: oklch(65.40% 0.1582 271.71); /** Seablue ramp: signature and signal — action, focus, selection, links, AI/copilot. Never structural chrome. */
24
- --pharos-color-primary-500: oklch(57.34% 0.1996 269.61); /** Seablue ramp: signature and signal — action, focus, selection, links, AI/copilot. Never structural chrome. */
25
- --pharos-color-primary-600: oklch(49.83% 0.2417 267.34); /** Seablue, the brand hue (≈ #2A48E9). The one blue anchor per view: action, focus ring (2px white halo + 4px primary-600), selection, links, AI/copilot. */
26
- --pharos-color-primary-700: oklch(42.19% 0.2111 267.20); /** Seablue ramp: signature and signal — action, focus, selection, links, AI/copilot. Never structural chrome. */
27
- --pharos-color-primary-800: oklch(34.32% 0.1726 267.54); /** Seablue ramp: signature and signal — action, focus, selection, links, AI/copilot. Never structural chrome. */
28
- --pharos-color-primary-900: oklch(25.97% 0.1317 268.18); /** Seablue ramp: signature and signal — action, focus, selection, links, AI/copilot. Never structural chrome. */
19
+ --pharos-color-primary-50: oklch(95.94% 0.0164 274.82); /** Seablue ramp: signature and signal — action, focus, selection, links, AI. Never structural chrome. */
20
+ --pharos-color-primary-100: oklch(91.35% 0.0374 275.69); /** Seablue ramp: signature and signal — action, focus, selection, links, AI. Never structural chrome. */
21
+ --pharos-color-primary-200: oklch(82.70% 0.0785 274.99); /** Seablue ramp: signature and signal — action, focus, selection, links, AI. Never structural chrome. */
22
+ --pharos-color-primary-300: oklch(74.07% 0.1205 273.68); /** Seablue ramp: signature and signal — action, focus, selection, links, AI. Never structural chrome. */
23
+ --pharos-color-primary-400: oklch(65.40% 0.1582 271.71); /** Seablue ramp: signature and signal — action, focus, selection, links, AI. Never structural chrome. */
24
+ --pharos-color-primary-500: oklch(57.34% 0.1996 269.61); /** Seablue ramp: signature and signal — action, focus, selection, links, AI. Never structural chrome. */
25
+ --pharos-color-primary-600: oklch(49.83% 0.2417 267.34); /** Seablue, the brand hue (≈ #2A48E9). The one blue anchor per view: action, focus ring (2px white halo + 4px primary-600), selection, links, AI. */
26
+ --pharos-color-primary-700: oklch(42.19% 0.2111 267.20); /** Seablue ramp: signature and signal — action, focus, selection, links, AI. Never structural chrome. */
27
+ --pharos-color-primary-800: oklch(34.32% 0.1726 267.54); /** Seablue ramp: signature and signal — action, focus, selection, links, AI. Never structural chrome. */
28
+ --pharos-color-primary-900: oklch(25.97% 0.1317 268.18); /** Seablue ramp: signature and signal — action, focus, selection, links, AI. Never structural chrome. */
29
29
  --pharos-color-semantic-success-fg: oklch(52% 0.136 152); /** System state only: success fill and success text colour; pair with semantic-success-on on the fill (WCAG AA). #027E3F — chroma clamped to the sRGB gamut edge. */
30
30
  --pharos-color-semantic-success-bg: oklch(52% 0.136 152 / 0.063); /** System state only: tinted success background (fg at 6.3%). */
31
31
  --pharos-color-semantic-error-fg: oklch(54% 0.22 27.48); /** System state only: error fill and error text colour; pair with semantic-error-on on the fill (WCAG AA). Single red (laser-red merged); also the destructive Button fill and its focus ring. */
@@ -126,6 +126,9 @@
126
126
  --pharos-font-letter-spacing-tight: -0.025em;
127
127
  --pharos-font-letter-spacing-normal: 0;
128
128
  --pharos-font-letter-spacing-wide: 0.025em;
129
+ --pharos-type-display-line-height: 1.1; /** Display (5xl). Brand surfaces and covers. */
130
+ --pharos-type-h1-letter-spacing: -0.02em; /** H1 (4xl). */
131
+ --pharos-type-caption-letter-spacing: 0.06em; /** Tiny eyebrow / caption labels (xs), ALL-CAPS with wide tracking; helper text at 400. */
129
132
  --pharos-color-semantic-success-on: var(--pharos-color-base-white); /** Text and icons on a semantic-success-fg fill. */
130
133
  --pharos-color-semantic-error-on: var(--pharos-color-base-white); /** Text and icons on a semantic-error-fg fill. */
131
134
  --pharos-color-semantic-warning-on: var(--pharos-color-neutral-900); /** Dark text on a semantic-warning-fg (amber) fill. */
@@ -138,4 +141,46 @@
138
141
  --pharos-color-accent-terracotta-fg: var(--pharos-color-accent-terracotta-700); /** Accessible ink for warm-accent blocks on white (→ terracotta-700). */
139
142
  --pharos-color-accent-terracotta-bg: var(--pharos-color-accent-terracotta-50); /** Tint surface for warm-accent blocks on white (→ terracotta-50). */
140
143
  --pharos-color-accent-terracotta-on: var(--pharos-color-base-white); /** Text on a solid terracotta mark (use on 700 for small text). */
144
+ --pharos-type-display-font-family: var(--pharos-font-family-sans); /** Display (5xl). Brand surfaces and covers. */
145
+ --pharos-type-display-font-size: var(--pharos-font-size-5xl); /** Display (5xl). Brand surfaces and covers. */
146
+ --pharos-type-display-font-weight: var(--pharos-font-weight-bold); /** Display (5xl). Brand surfaces and covers. */
147
+ --pharos-type-display-letter-spacing: var(--pharos-font-letter-spacing-tight); /** Display (5xl). Brand surfaces and covers. */
148
+ --pharos-type-h1-font-family: var(--pharos-font-family-sans); /** H1 (4xl). */
149
+ --pharos-type-h1-font-size: var(--pharos-font-size-4xl); /** H1 (4xl). */
150
+ --pharos-type-h1-font-weight: var(--pharos-font-weight-bold); /** H1 (4xl). */
151
+ --pharos-type-h1-line-height: var(--pharos-font-line-height-tight); /** H1 (4xl). */
152
+ --pharos-type-h2-font-family: var(--pharos-font-family-sans); /** H2 (3xl). */
153
+ --pharos-type-h2-font-size: var(--pharos-font-size-3xl); /** H2 (3xl). */
154
+ --pharos-type-h2-font-weight: var(--pharos-font-weight-semibold); /** H2 (3xl). */
155
+ --pharos-type-h2-line-height: var(--pharos-font-line-height-tight); /** H2 (3xl). */
156
+ --pharos-type-h2-letter-spacing: var(--pharos-font-letter-spacing-normal); /** H2 (3xl). */
157
+ --pharos-type-h3-font-family: var(--pharos-font-family-sans); /** H3 / large titles (2xl). */
158
+ --pharos-type-h3-font-size: var(--pharos-font-size-2xl); /** H3 / large titles (2xl). */
159
+ --pharos-type-h3-font-weight: var(--pharos-font-weight-semibold); /** H3 / large titles (2xl). */
160
+ --pharos-type-h3-line-height: var(--pharos-font-line-height-tight); /** H3 / large titles (2xl). */
161
+ --pharos-type-h3-letter-spacing: var(--pharos-font-letter-spacing-normal); /** H3 / large titles (2xl). */
162
+ --pharos-type-h4-font-family: var(--pharos-font-family-sans); /** H4 (xl). */
163
+ --pharos-type-h4-font-size: var(--pharos-font-size-xl); /** H4 (xl). */
164
+ --pharos-type-h4-font-weight: var(--pharos-font-weight-semibold); /** H4 (xl). */
165
+ --pharos-type-h4-line-height: var(--pharos-font-line-height-tight); /** H4 (xl). */
166
+ --pharos-type-h4-letter-spacing: var(--pharos-font-letter-spacing-normal); /** H4 (xl). */
167
+ --pharos-type-lesson-title-font-family: var(--pharos-font-family-sans); /** DEPRECATED: use --pharos-type-h4. Removed in the next major. */
168
+ --pharos-type-lesson-title-font-size: var(--pharos-font-size-xl); /** DEPRECATED: use --pharos-type-h4. Removed in the next major. */
169
+ --pharos-type-lesson-title-font-weight: var(--pharos-font-weight-semibold); /** DEPRECATED: use --pharos-type-h4. Removed in the next major. */
170
+ --pharos-type-lesson-title-line-height: var(--pharos-font-line-height-tight); /** DEPRECATED: use --pharos-type-h4. Removed in the next major. */
171
+ --pharos-type-lesson-title-letter-spacing: var(--pharos-font-letter-spacing-normal); /** DEPRECATED: use --pharos-type-h4. Removed in the next major. */
172
+ --pharos-type-subtitle-font-family: var(--pharos-font-family-sans); /** Subtitles (lg). */
173
+ --pharos-type-subtitle-font-size: var(--pharos-font-size-lg); /** Subtitles (lg). */
174
+ --pharos-type-subtitle-font-weight: var(--pharos-font-weight-medium); /** Subtitles (lg). */
175
+ --pharos-type-subtitle-line-height: var(--pharos-font-line-height-tight); /** Subtitles (lg). */
176
+ --pharos-type-subtitle-letter-spacing: var(--pharos-font-letter-spacing-normal); /** Subtitles (lg). */
177
+ --pharos-type-body-font-family: var(--pharos-font-family-sans); /** Body default (sm, 14px / 1.5). Colour signals interaction, not bold. */
178
+ --pharos-type-body-font-size: var(--pharos-font-size-sm); /** Body default (sm, 14px / 1.5). Colour signals interaction, not bold. */
179
+ --pharos-type-body-font-weight: var(--pharos-font-weight-regular); /** Body default (sm, 14px / 1.5). Colour signals interaction, not bold. */
180
+ --pharos-type-body-line-height: var(--pharos-font-line-height-normal); /** Body default (sm, 14px / 1.5). Colour signals interaction, not bold. */
181
+ --pharos-type-body-letter-spacing: var(--pharos-font-letter-spacing-normal); /** Body default (sm, 14px / 1.5). Colour signals interaction, not bold. */
182
+ --pharos-type-caption-font-family: var(--pharos-font-family-sans); /** Tiny eyebrow / caption labels (xs), ALL-CAPS with wide tracking; helper text at 400. */
183
+ --pharos-type-caption-font-size: var(--pharos-font-size-xs); /** Tiny eyebrow / caption labels (xs), ALL-CAPS with wide tracking; helper text at 400. */
184
+ --pharos-type-caption-font-weight: var(--pharos-font-weight-bold); /** Tiny eyebrow / caption labels (xs), ALL-CAPS with wide tracking; helper text at 400. */
185
+ --pharos-type-caption-line-height: var(--pharos-font-line-height-normal); /** Tiny eyebrow / caption labels (xs), ALL-CAPS with wide tracking; helper text at 400. */
141
186
  }
package/dist/tokens.d.ts CHANGED
@@ -28,25 +28,25 @@ export const PharosColorNeutral800: string;
28
28
  export const PharosColorNeutral900: string;
29
29
  /** Deepest ink; press state of the primary Button. */
30
30
  export const PharosColorNeutral950: string;
31
- /** Seablue ramp: signature and signal — action, focus, selection, links, AI/copilot. Never structural chrome. */
31
+ /** Seablue ramp: signature and signal — action, focus, selection, links, AI. Never structural chrome. */
32
32
  export const PharosColorPrimary50: string;
33
- /** Seablue ramp: signature and signal — action, focus, selection, links, AI/copilot. Never structural chrome. */
33
+ /** Seablue ramp: signature and signal — action, focus, selection, links, AI. Never structural chrome. */
34
34
  export const PharosColorPrimary100: string;
35
- /** Seablue ramp: signature and signal — action, focus, selection, links, AI/copilot. Never structural chrome. */
35
+ /** Seablue ramp: signature and signal — action, focus, selection, links, AI. Never structural chrome. */
36
36
  export const PharosColorPrimary200: string;
37
- /** Seablue ramp: signature and signal — action, focus, selection, links, AI/copilot. Never structural chrome. */
37
+ /** Seablue ramp: signature and signal — action, focus, selection, links, AI. Never structural chrome. */
38
38
  export const PharosColorPrimary300: string;
39
- /** Seablue ramp: signature and signal — action, focus, selection, links, AI/copilot. Never structural chrome. */
39
+ /** Seablue ramp: signature and signal — action, focus, selection, links, AI. Never structural chrome. */
40
40
  export const PharosColorPrimary400: string;
41
- /** Seablue ramp: signature and signal — action, focus, selection, links, AI/copilot. Never structural chrome. */
41
+ /** Seablue ramp: signature and signal — action, focus, selection, links, AI. Never structural chrome. */
42
42
  export const PharosColorPrimary500: string;
43
- /** Seablue, the brand hue (≈ #2A48E9). The one blue anchor per view: action, focus ring (2px white halo + 4px primary-600), selection, links, AI/copilot. */
43
+ /** Seablue, the brand hue (≈ #2A48E9). The one blue anchor per view: action, focus ring (2px white halo + 4px primary-600), selection, links, AI. */
44
44
  export const PharosColorPrimary600: string;
45
- /** Seablue ramp: signature and signal — action, focus, selection, links, AI/copilot. Never structural chrome. */
45
+ /** Seablue ramp: signature and signal — action, focus, selection, links, AI. Never structural chrome. */
46
46
  export const PharosColorPrimary700: string;
47
- /** Seablue ramp: signature and signal — action, focus, selection, links, AI/copilot. Never structural chrome. */
47
+ /** Seablue ramp: signature and signal — action, focus, selection, links, AI. Never structural chrome. */
48
48
  export const PharosColorPrimary800: string;
49
- /** Seablue ramp: signature and signal — action, focus, selection, links, AI/copilot. Never structural chrome. */
49
+ /** Seablue ramp: signature and signal — action, focus, selection, links, AI. Never structural chrome. */
50
50
  export const PharosColorPrimary900: string;
51
51
  /** 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. */
52
52
  export const PharosColorSemanticSuccessFg: string;
@@ -258,3 +258,93 @@ export const PharosFontLineHeightLoose: string;
258
258
  export const PharosFontLetterSpacingTight: string;
259
259
  export const PharosFontLetterSpacingNormal: string;
260
260
  export const PharosFontLetterSpacingWide: string;
261
+ /** Display (5xl). Brand surfaces and covers. */
262
+ export const PharosTypeDisplayFontFamily: string;
263
+ /** Display (5xl). Brand surfaces and covers. */
264
+ export const PharosTypeDisplayFontSize: string;
265
+ /** Display (5xl). Brand surfaces and covers. */
266
+ export const PharosTypeDisplayFontWeight: string;
267
+ /** Display (5xl). Brand surfaces and covers. */
268
+ export const PharosTypeDisplayLineHeight: string;
269
+ /** Display (5xl). Brand surfaces and covers. */
270
+ export const PharosTypeDisplayLetterSpacing: string;
271
+ /** H1 (4xl). */
272
+ export const PharosTypeH1FontFamily: string;
273
+ /** H1 (4xl). */
274
+ export const PharosTypeH1FontSize: string;
275
+ /** H1 (4xl). */
276
+ export const PharosTypeH1FontWeight: string;
277
+ /** H1 (4xl). */
278
+ export const PharosTypeH1LineHeight: string;
279
+ /** H1 (4xl). */
280
+ export const PharosTypeH1LetterSpacing: string;
281
+ /** H2 (3xl). */
282
+ export const PharosTypeH2FontFamily: string;
283
+ /** H2 (3xl). */
284
+ export const PharosTypeH2FontSize: string;
285
+ /** H2 (3xl). */
286
+ export const PharosTypeH2FontWeight: string;
287
+ /** H2 (3xl). */
288
+ export const PharosTypeH2LineHeight: string;
289
+ /** H2 (3xl). */
290
+ export const PharosTypeH2LetterSpacing: string;
291
+ /** H3 / large titles (2xl). */
292
+ export const PharosTypeH3FontFamily: string;
293
+ /** H3 / large titles (2xl). */
294
+ export const PharosTypeH3FontSize: string;
295
+ /** H3 / large titles (2xl). */
296
+ export const PharosTypeH3FontWeight: string;
297
+ /** H3 / large titles (2xl). */
298
+ export const PharosTypeH3LineHeight: string;
299
+ /** H3 / large titles (2xl). */
300
+ export const PharosTypeH3LetterSpacing: string;
301
+ /** H4 (xl). */
302
+ export const PharosTypeH4FontFamily: string;
303
+ /** H4 (xl). */
304
+ export const PharosTypeH4FontSize: string;
305
+ /** H4 (xl). */
306
+ export const PharosTypeH4FontWeight: string;
307
+ /** H4 (xl). */
308
+ export const PharosTypeH4LineHeight: string;
309
+ /** H4 (xl). */
310
+ export const PharosTypeH4LetterSpacing: string;
311
+ /** DEPRECATED: use --pharos-type-h4. Removed in the next major. */
312
+ export const PharosTypeLessonTitleFontFamily: string;
313
+ /** DEPRECATED: use --pharos-type-h4. Removed in the next major. */
314
+ export const PharosTypeLessonTitleFontSize: string;
315
+ /** DEPRECATED: use --pharos-type-h4. Removed in the next major. */
316
+ export const PharosTypeLessonTitleFontWeight: string;
317
+ /** DEPRECATED: use --pharos-type-h4. Removed in the next major. */
318
+ export const PharosTypeLessonTitleLineHeight: string;
319
+ /** DEPRECATED: use --pharos-type-h4. Removed in the next major. */
320
+ export const PharosTypeLessonTitleLetterSpacing: string;
321
+ /** Subtitles (lg). */
322
+ export const PharosTypeSubtitleFontFamily: string;
323
+ /** Subtitles (lg). */
324
+ export const PharosTypeSubtitleFontSize: string;
325
+ /** Subtitles (lg). */
326
+ export const PharosTypeSubtitleFontWeight: string;
327
+ /** Subtitles (lg). */
328
+ export const PharosTypeSubtitleLineHeight: string;
329
+ /** Subtitles (lg). */
330
+ export const PharosTypeSubtitleLetterSpacing: string;
331
+ /** Body default (sm, 14px / 1.5). Colour signals interaction, not bold. */
332
+ export const PharosTypeBodyFontFamily: string;
333
+ /** Body default (sm, 14px / 1.5). Colour signals interaction, not bold. */
334
+ export const PharosTypeBodyFontSize: string;
335
+ /** Body default (sm, 14px / 1.5). Colour signals interaction, not bold. */
336
+ export const PharosTypeBodyFontWeight: string;
337
+ /** Body default (sm, 14px / 1.5). Colour signals interaction, not bold. */
338
+ export const PharosTypeBodyLineHeight: string;
339
+ /** Body default (sm, 14px / 1.5). Colour signals interaction, not bold. */
340
+ export const PharosTypeBodyLetterSpacing: string;
341
+ /** Tiny eyebrow / caption labels (xs), ALL-CAPS with wide tracking; helper text at 400. */
342
+ export const PharosTypeCaptionFontFamily: string;
343
+ /** Tiny eyebrow / caption labels (xs), ALL-CAPS with wide tracking; helper text at 400. */
344
+ export const PharosTypeCaptionFontSize: string;
345
+ /** Tiny eyebrow / caption labels (xs), ALL-CAPS with wide tracking; helper text at 400. */
346
+ export const PharosTypeCaptionFontWeight: string;
347
+ /** Tiny eyebrow / caption labels (xs), ALL-CAPS with wide tracking; helper text at 400. */
348
+ export const PharosTypeCaptionLineHeight: string;
349
+ /** Tiny eyebrow / caption labels (xs), ALL-CAPS with wide tracking; helper text at 400. */
350
+ export const PharosTypeCaptionLetterSpacing: string;
package/dist/tokens.js CHANGED
@@ -15,16 +15,16 @@ export const PharosColorNeutral700 = "oklch(29.52% 0.02 248.83)"; // Ink: labels
15
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
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
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.
18
+ export const PharosColorPrimary50 = "oklch(95.94% 0.0164 274.82)"; // Seablue ramp: signature and signal — action, focus, selection, links, AI. Never structural chrome.
19
+ export const PharosColorPrimary100 = "oklch(91.35% 0.0374 275.69)"; // Seablue ramp: signature and signal — action, focus, selection, links, AI. Never structural chrome.
20
+ export const PharosColorPrimary200 = "oklch(82.70% 0.0785 274.99)"; // Seablue ramp: signature and signal — action, focus, selection, links, AI. Never structural chrome.
21
+ export const PharosColorPrimary300 = "oklch(74.07% 0.1205 273.68)"; // Seablue ramp: signature and signal — action, focus, selection, links, AI. Never structural chrome.
22
+ export const PharosColorPrimary400 = "oklch(65.40% 0.1582 271.71)"; // Seablue ramp: signature and signal — action, focus, selection, links, AI. Never structural chrome.
23
+ export const PharosColorPrimary500 = "oklch(57.34% 0.1996 269.61)"; // Seablue ramp: signature and signal — action, focus, selection, links, AI. 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.
25
+ export const PharosColorPrimary700 = "oklch(42.19% 0.2111 267.20)"; // Seablue ramp: signature and signal — action, focus, selection, links, AI. Never structural chrome.
26
+ export const PharosColorPrimary800 = "oklch(34.32% 0.1726 267.54)"; // Seablue ramp: signature and signal — action, focus, selection, links, AI. Never structural chrome.
27
+ export const PharosColorPrimary900 = "oklch(25.97% 0.1317 268.18)"; // Seablue ramp: signature and signal — action, focus, selection, links, AI. Never structural chrome.
28
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
29
  export const PharosColorSemanticSuccessBg = "oklch(52% 0.136 152 / 0.063)"; // System state only: tinted success background (fg at 6.3%).
30
30
  export const PharosColorSemanticSuccessOn = "oklch(100% 0 0)"; // Text and icons on a semantic-success-fg fill.
@@ -143,3 +143,57 @@ export const PharosFontLineHeightLoose = "2";
143
143
  export const PharosFontLetterSpacingTight = "-0.025em";
144
144
  export const PharosFontLetterSpacingNormal = "0";
145
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 PharosTypeH4FontFamily =
171
+ '"Outfit", Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif'; // H4 (xl).
172
+ export const PharosTypeH4FontSize = "1.25rem"; // H4 (xl).
173
+ export const PharosTypeH4FontWeight = "600"; // H4 (xl).
174
+ export const PharosTypeH4LineHeight = "1.25"; // H4 (xl).
175
+ export const PharosTypeH4LetterSpacing = "0"; // H4 (xl).
176
+ export const PharosTypeLessonTitleFontFamily =
177
+ '"Outfit", Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif'; // DEPRECATED: use --pharos-type-h4. Removed in the next major.
178
+ export const PharosTypeLessonTitleFontSize = "1.25rem"; // DEPRECATED: use --pharos-type-h4. Removed in the next major.
179
+ export const PharosTypeLessonTitleFontWeight = "600"; // DEPRECATED: use --pharos-type-h4. Removed in the next major.
180
+ export const PharosTypeLessonTitleLineHeight = "1.25"; // DEPRECATED: use --pharos-type-h4. Removed in the next major.
181
+ export const PharosTypeLessonTitleLetterSpacing = "0"; // DEPRECATED: use --pharos-type-h4. Removed in the next major.
182
+ export const PharosTypeSubtitleFontFamily =
183
+ '"Outfit", Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif'; // Subtitles (lg).
184
+ export const PharosTypeSubtitleFontSize = "1.125rem"; // Subtitles (lg).
185
+ export const PharosTypeSubtitleFontWeight = "500"; // Subtitles (lg).
186
+ export const PharosTypeSubtitleLineHeight = "1.25"; // Subtitles (lg).
187
+ export const PharosTypeSubtitleLetterSpacing = "0"; // Subtitles (lg).
188
+ export const PharosTypeBodyFontFamily =
189
+ '"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.
190
+ export const PharosTypeBodyFontSize = "0.875rem"; // Body default (sm, 14px / 1.5). Colour signals interaction, not bold.
191
+ export const PharosTypeBodyFontWeight = "400"; // Body default (sm, 14px / 1.5). Colour signals interaction, not bold.
192
+ export const PharosTypeBodyLineHeight = "1.5"; // Body default (sm, 14px / 1.5). Colour signals interaction, not bold.
193
+ export const PharosTypeBodyLetterSpacing = "0"; // Body default (sm, 14px / 1.5). Colour signals interaction, not bold.
194
+ export const PharosTypeCaptionFontFamily =
195
+ '"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.
196
+ export const PharosTypeCaptionFontSize = "0.75rem"; // Tiny eyebrow / caption labels (xs), ALL-CAPS with wide tracking; helper text at 400.
197
+ export const PharosTypeCaptionFontWeight = "700"; // Tiny eyebrow / caption labels (xs), ALL-CAPS with wide tracking; helper text at 400.
198
+ export const PharosTypeCaptionLineHeight = "1.5"; // Tiny eyebrow / caption labels (xs), ALL-CAPS with wide tracking; helper text at 400.
199
+ export const PharosTypeCaptionLetterSpacing = "0.06em"; // Tiny eyebrow / caption labels (xs), ALL-CAPS with wide tracking; helper text at 400.
package/dist/tokens.json CHANGED
@@ -186,5 +186,70 @@
186
186
  "normal": "0",
187
187
  "wide": "0.025em"
188
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
+ "h4": {
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
+ "lesson-title": {
227
+ "fontFamily": "\"Outfit\", Inter, system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif",
228
+ "fontSize": "1.25rem",
229
+ "fontWeight": "600",
230
+ "lineHeight": "1.25",
231
+ "letterSpacing": "0"
232
+ },
233
+ "subtitle": {
234
+ "fontFamily": "\"Outfit\", Inter, system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif",
235
+ "fontSize": "1.125rem",
236
+ "fontWeight": "500",
237
+ "lineHeight": "1.25",
238
+ "letterSpacing": "0"
239
+ },
240
+ "body": {
241
+ "fontFamily": "\"Outfit\", Inter, system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif",
242
+ "fontSize": "0.875rem",
243
+ "fontWeight": "400",
244
+ "lineHeight": "1.5",
245
+ "letterSpacing": "0"
246
+ },
247
+ "caption": {
248
+ "fontFamily": "\"Outfit\", Inter, system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif",
249
+ "fontSize": "0.75rem",
250
+ "fontWeight": "700",
251
+ "lineHeight": "1.5",
252
+ "letterSpacing": "0.06em"
253
+ }
189
254
  }
190
255
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@code-sherpas/pharos-tokens",
3
- "version": "0.6.0",
3
+ "version": "0.8.0",
4
4
  "description": "Design tokens de Code Sherpas — agnóstico de framework. DTCG + Style Dictionary + OKLCH.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -73,52 +73,52 @@
73
73
  "50": {
74
74
  "$value": "oklch(95.94% 0.0164 274.82)",
75
75
  "$type": "color",
76
- "$description": "Seablue ramp: signature and signal — action, focus, selection, links, AI/copilot. Never structural chrome."
76
+ "$description": "Seablue ramp: signature and signal — action, focus, selection, links, AI. Never structural chrome."
77
77
  },
78
78
  "100": {
79
79
  "$value": "oklch(91.35% 0.0374 275.69)",
80
80
  "$type": "color",
81
- "$description": "Seablue ramp: signature and signal — action, focus, selection, links, AI/copilot. Never structural chrome."
81
+ "$description": "Seablue ramp: signature and signal — action, focus, selection, links, AI. Never structural chrome."
82
82
  },
83
83
  "200": {
84
84
  "$value": "oklch(82.70% 0.0785 274.99)",
85
85
  "$type": "color",
86
- "$description": "Seablue ramp: signature and signal — action, focus, selection, links, AI/copilot. Never structural chrome."
86
+ "$description": "Seablue ramp: signature and signal — action, focus, selection, links, AI. Never structural chrome."
87
87
  },
88
88
  "300": {
89
89
  "$value": "oklch(74.07% 0.1205 273.68)",
90
90
  "$type": "color",
91
- "$description": "Seablue ramp: signature and signal — action, focus, selection, links, AI/copilot. Never structural chrome."
91
+ "$description": "Seablue ramp: signature and signal — action, focus, selection, links, AI. Never structural chrome."
92
92
  },
93
93
  "400": {
94
94
  "$value": "oklch(65.40% 0.1582 271.71)",
95
95
  "$type": "color",
96
- "$description": "Seablue ramp: signature and signal — action, focus, selection, links, AI/copilot. Never structural chrome."
96
+ "$description": "Seablue ramp: signature and signal — action, focus, selection, links, AI. Never structural chrome."
97
97
  },
98
98
  "500": {
99
99
  "$value": "oklch(57.34% 0.1996 269.61)",
100
100
  "$type": "color",
101
- "$description": "Seablue ramp: signature and signal — action, focus, selection, links, AI/copilot. Never structural chrome."
101
+ "$description": "Seablue ramp: signature and signal — action, focus, selection, links, AI. Never structural chrome."
102
102
  },
103
103
  "600": {
104
104
  "$value": "oklch(49.83% 0.2417 267.34)",
105
105
  "$type": "color",
106
- "$description": "Seablue, the brand hue (≈ #2A48E9). The one blue anchor per view: action, focus ring (2px white halo + 4px primary-600), selection, links, AI/copilot."
106
+ "$description": "Seablue, the brand hue (≈ #2A48E9). The one blue anchor per view: action, focus ring (2px white halo + 4px primary-600), selection, links, AI."
107
107
  },
108
108
  "700": {
109
109
  "$value": "oklch(42.19% 0.2111 267.20)",
110
110
  "$type": "color",
111
- "$description": "Seablue ramp: signature and signal — action, focus, selection, links, AI/copilot. Never structural chrome."
111
+ "$description": "Seablue ramp: signature and signal — action, focus, selection, links, AI. Never structural chrome."
112
112
  },
113
113
  "800": {
114
114
  "$value": "oklch(34.32% 0.1726 267.54)",
115
115
  "$type": "color",
116
- "$description": "Seablue ramp: signature and signal — action, focus, selection, links, AI/copilot. Never structural chrome."
116
+ "$description": "Seablue ramp: signature and signal — action, focus, selection, links, AI. Never structural chrome."
117
117
  },
118
118
  "900": {
119
119
  "$value": "oklch(25.97% 0.1317 268.18)",
120
120
  "$type": "color",
121
- "$description": "Seablue ramp: signature and signal — action, focus, selection, links, AI/copilot. Never structural chrome."
121
+ "$description": "Seablue ramp: signature and signal — action, focus, selection, links, AI. Never structural chrome."
122
122
  }
123
123
  },
124
124
  "semantic": {
@@ -13,10 +13,22 @@
13
13
  }
14
14
  },
15
15
  "weight": {
16
- "regular": { "$value": "400", "$type": "fontWeight" },
17
- "medium": { "$value": "500", "$type": "fontWeight" },
18
- "semibold": { "$value": "600", "$type": "fontWeight" },
19
- "bold": { "$value": "700", "$type": "fontWeight" }
16
+ "regular": {
17
+ "$value": "400",
18
+ "$type": "fontWeight"
19
+ },
20
+ "medium": {
21
+ "$value": "500",
22
+ "$type": "fontWeight"
23
+ },
24
+ "semibold": {
25
+ "$value": "600",
26
+ "$type": "fontWeight"
27
+ },
28
+ "bold": {
29
+ "$value": "700",
30
+ "$type": "fontWeight"
31
+ }
20
32
  },
21
33
  "size": {
22
34
  "xs": {
@@ -66,16 +78,143 @@
66
78
  }
67
79
  },
68
80
  "lineHeight": {
69
- "tight": { "$value": "1.25", "$type": "number" },
70
- "snug": { "$value": "1.375", "$type": "number" },
71
- "normal": { "$value": "1.5", "$type": "number", "$description": "Default body line-height." },
72
- "relaxed": { "$value": "1.625", "$type": "number" },
73
- "loose": { "$value": "2", "$type": "number" }
81
+ "tight": {
82
+ "$value": "1.25",
83
+ "$type": "number"
84
+ },
85
+ "snug": {
86
+ "$value": "1.375",
87
+ "$type": "number"
88
+ },
89
+ "normal": {
90
+ "$value": "1.5",
91
+ "$type": "number",
92
+ "$description": "Default body line-height."
93
+ },
94
+ "relaxed": {
95
+ "$value": "1.625",
96
+ "$type": "number"
97
+ },
98
+ "loose": {
99
+ "$value": "2",
100
+ "$type": "number"
101
+ }
74
102
  },
75
103
  "letterSpacing": {
76
- "tight": { "$value": "-0.025em", "$type": "dimension" },
77
- "normal": { "$value": "0", "$type": "dimension" },
78
- "wide": { "$value": "0.025em", "$type": "dimension" }
104
+ "tight": {
105
+ "$value": "-0.025em",
106
+ "$type": "dimension"
107
+ },
108
+ "normal": {
109
+ "$value": "0",
110
+ "$type": "dimension"
111
+ },
112
+ "wide": {
113
+ "$value": "0.025em",
114
+ "$type": "dimension"
115
+ }
116
+ }
117
+ },
118
+ "type": {
119
+ "display": {
120
+ "$type": "typography",
121
+ "$value": {
122
+ "fontFamily": "{font.family.sans}",
123
+ "fontSize": "{font.size.5xl}",
124
+ "fontWeight": "{font.weight.bold}",
125
+ "lineHeight": "1.1",
126
+ "letterSpacing": "{font.letterSpacing.tight}"
127
+ },
128
+ "$description": "Display (5xl). Brand surfaces and covers."
129
+ },
130
+ "h1": {
131
+ "$type": "typography",
132
+ "$value": {
133
+ "fontFamily": "{font.family.sans}",
134
+ "fontSize": "{font.size.4xl}",
135
+ "fontWeight": "{font.weight.bold}",
136
+ "lineHeight": "{font.lineHeight.tight}",
137
+ "letterSpacing": "-0.02em"
138
+ },
139
+ "$description": "H1 (4xl)."
140
+ },
141
+ "h2": {
142
+ "$type": "typography",
143
+ "$value": {
144
+ "fontFamily": "{font.family.sans}",
145
+ "fontSize": "{font.size.3xl}",
146
+ "fontWeight": "{font.weight.semibold}",
147
+ "lineHeight": "{font.lineHeight.tight}",
148
+ "letterSpacing": "{font.letterSpacing.normal}"
149
+ },
150
+ "$description": "H2 (3xl)."
151
+ },
152
+ "h3": {
153
+ "$type": "typography",
154
+ "$value": {
155
+ "fontFamily": "{font.family.sans}",
156
+ "fontSize": "{font.size.2xl}",
157
+ "fontWeight": "{font.weight.semibold}",
158
+ "lineHeight": "{font.lineHeight.tight}",
159
+ "letterSpacing": "{font.letterSpacing.normal}"
160
+ },
161
+ "$description": "H3 / large titles (2xl)."
162
+ },
163
+ "h4": {
164
+ "$type": "typography",
165
+ "$value": {
166
+ "fontFamily": "{font.family.sans}",
167
+ "fontSize": "{font.size.xl}",
168
+ "fontWeight": "{font.weight.semibold}",
169
+ "lineHeight": "{font.lineHeight.tight}",
170
+ "letterSpacing": "{font.letterSpacing.normal}"
171
+ },
172
+ "$description": "H4 (xl)."
173
+ },
174
+ "lesson-title": {
175
+ "$type": "typography",
176
+ "$value": {
177
+ "fontFamily": "{font.family.sans}",
178
+ "fontSize": "{font.size.xl}",
179
+ "fontWeight": "{font.weight.semibold}",
180
+ "lineHeight": "{font.lineHeight.tight}",
181
+ "letterSpacing": "{font.letterSpacing.normal}"
182
+ },
183
+ "$description": "DEPRECATED: use --pharos-type-h4. Removed in the next major.",
184
+ "$deprecated": "Use --pharos-type-h4: Pharos names text styles by their level, not by one product's content. Removed in the next major."
185
+ },
186
+ "subtitle": {
187
+ "$type": "typography",
188
+ "$value": {
189
+ "fontFamily": "{font.family.sans}",
190
+ "fontSize": "{font.size.lg}",
191
+ "fontWeight": "{font.weight.medium}",
192
+ "lineHeight": "{font.lineHeight.tight}",
193
+ "letterSpacing": "{font.letterSpacing.normal}"
194
+ },
195
+ "$description": "Subtitles (lg)."
196
+ },
197
+ "body": {
198
+ "$type": "typography",
199
+ "$value": {
200
+ "fontFamily": "{font.family.sans}",
201
+ "fontSize": "{font.size.sm}",
202
+ "fontWeight": "{font.weight.regular}",
203
+ "lineHeight": "{font.lineHeight.normal}",
204
+ "letterSpacing": "{font.letterSpacing.normal}"
205
+ },
206
+ "$description": "Body default (sm, 14px / 1.5). Colour signals interaction, not bold."
207
+ },
208
+ "caption": {
209
+ "$type": "typography",
210
+ "$value": {
211
+ "fontFamily": "{font.family.sans}",
212
+ "fontSize": "{font.size.xs}",
213
+ "fontWeight": "{font.weight.bold}",
214
+ "lineHeight": "{font.lineHeight.normal}",
215
+ "letterSpacing": "0.06em"
216
+ },
217
+ "$description": "Tiny eyebrow / caption labels (xs), ALL-CAPS with wide tracking; helper text at 400."
79
218
  }
80
219
  }
81
220
  }