@code-sherpas/pharos-tokens 0.6.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 +58 -0
- package/dist/styles.css +40 -0
- package/dist/tokens.d.ts +80 -0
- package/dist/tokens.js +48 -0
- package/dist/tokens.json +58 -0
- package/package.json +1 -1
- package/src/typography.tokens.json +139 -12
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`,
|
|
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,64 @@ 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
|
+
"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
|
+
}
|
|
196
254
|
}
|
|
197
255
|
};
|
|
198
256
|
export default tokens;
|
package/dist/styles.css
CHANGED
|
@@ -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,41 @@
|
|
|
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-lesson-title-font-family: var(--pharos-font-family-sans); /** Lesson titles (xl). */
|
|
163
|
+
--pharos-type-lesson-title-font-size: var(--pharos-font-size-xl); /** Lesson titles (xl). */
|
|
164
|
+
--pharos-type-lesson-title-font-weight: var(--pharos-font-weight-semibold); /** Lesson titles (xl). */
|
|
165
|
+
--pharos-type-lesson-title-line-height: var(--pharos-font-line-height-tight); /** Lesson titles (xl). */
|
|
166
|
+
--pharos-type-lesson-title-letter-spacing: var(--pharos-font-letter-spacing-normal); /** Lesson titles (xl). */
|
|
167
|
+
--pharos-type-subtitle-font-family: var(--pharos-font-family-sans); /** Subtitles (lg). */
|
|
168
|
+
--pharos-type-subtitle-font-size: var(--pharos-font-size-lg); /** Subtitles (lg). */
|
|
169
|
+
--pharos-type-subtitle-font-weight: var(--pharos-font-weight-medium); /** Subtitles (lg). */
|
|
170
|
+
--pharos-type-subtitle-line-height: var(--pharos-font-line-height-tight); /** Subtitles (lg). */
|
|
171
|
+
--pharos-type-subtitle-letter-spacing: var(--pharos-font-letter-spacing-normal); /** Subtitles (lg). */
|
|
172
|
+
--pharos-type-body-font-family: var(--pharos-font-family-sans); /** Body default (sm, 14px / 1.5). Colour signals interaction, not bold. */
|
|
173
|
+
--pharos-type-body-font-size: var(--pharos-font-size-sm); /** Body default (sm, 14px / 1.5). Colour signals interaction, not bold. */
|
|
174
|
+
--pharos-type-body-font-weight: var(--pharos-font-weight-regular); /** Body default (sm, 14px / 1.5). Colour signals interaction, not bold. */
|
|
175
|
+
--pharos-type-body-line-height: var(--pharos-font-line-height-normal); /** Body default (sm, 14px / 1.5). Colour signals interaction, not bold. */
|
|
176
|
+
--pharos-type-body-letter-spacing: var(--pharos-font-letter-spacing-normal); /** Body default (sm, 14px / 1.5). Colour signals interaction, not bold. */
|
|
177
|
+
--pharos-type-caption-font-family: var(--pharos-font-family-sans); /** Tiny eyebrow / caption labels (xs), ALL-CAPS with wide tracking; helper text at 400. */
|
|
178
|
+
--pharos-type-caption-font-size: var(--pharos-font-size-xs); /** Tiny eyebrow / caption labels (xs), ALL-CAPS with wide tracking; helper text at 400. */
|
|
179
|
+
--pharos-type-caption-font-weight: var(--pharos-font-weight-bold); /** Tiny eyebrow / caption labels (xs), ALL-CAPS with wide tracking; helper text at 400. */
|
|
180
|
+
--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
181
|
}
|
package/dist/tokens.d.ts
CHANGED
|
@@ -258,3 +258,83 @@ 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
|
+
/** Lesson titles (xl). */
|
|
302
|
+
export const PharosTypeLessonTitleFontFamily: string;
|
|
303
|
+
/** Lesson titles (xl). */
|
|
304
|
+
export const PharosTypeLessonTitleFontSize: string;
|
|
305
|
+
/** Lesson titles (xl). */
|
|
306
|
+
export const PharosTypeLessonTitleFontWeight: string;
|
|
307
|
+
/** Lesson titles (xl). */
|
|
308
|
+
export const PharosTypeLessonTitleLineHeight: string;
|
|
309
|
+
/** Lesson titles (xl). */
|
|
310
|
+
export const PharosTypeLessonTitleLetterSpacing: string;
|
|
311
|
+
/** Subtitles (lg). */
|
|
312
|
+
export const PharosTypeSubtitleFontFamily: string;
|
|
313
|
+
/** Subtitles (lg). */
|
|
314
|
+
export const PharosTypeSubtitleFontSize: string;
|
|
315
|
+
/** Subtitles (lg). */
|
|
316
|
+
export const PharosTypeSubtitleFontWeight: string;
|
|
317
|
+
/** Subtitles (lg). */
|
|
318
|
+
export const PharosTypeSubtitleLineHeight: string;
|
|
319
|
+
/** Subtitles (lg). */
|
|
320
|
+
export const PharosTypeSubtitleLetterSpacing: string;
|
|
321
|
+
/** Body default (sm, 14px / 1.5). Colour signals interaction, not bold. */
|
|
322
|
+
export const PharosTypeBodyFontFamily: string;
|
|
323
|
+
/** Body default (sm, 14px / 1.5). Colour signals interaction, not bold. */
|
|
324
|
+
export const PharosTypeBodyFontSize: string;
|
|
325
|
+
/** Body default (sm, 14px / 1.5). Colour signals interaction, not bold. */
|
|
326
|
+
export const PharosTypeBodyFontWeight: string;
|
|
327
|
+
/** Body default (sm, 14px / 1.5). Colour signals interaction, not bold. */
|
|
328
|
+
export const PharosTypeBodyLineHeight: string;
|
|
329
|
+
/** Body default (sm, 14px / 1.5). Colour signals interaction, not bold. */
|
|
330
|
+
export const PharosTypeBodyLetterSpacing: string;
|
|
331
|
+
/** Tiny eyebrow / caption labels (xs), ALL-CAPS with wide tracking; helper text at 400. */
|
|
332
|
+
export const PharosTypeCaptionFontFamily: string;
|
|
333
|
+
/** Tiny eyebrow / caption labels (xs), ALL-CAPS with wide tracking; helper text at 400. */
|
|
334
|
+
export const PharosTypeCaptionFontSize: string;
|
|
335
|
+
/** Tiny eyebrow / caption labels (xs), ALL-CAPS with wide tracking; helper text at 400. */
|
|
336
|
+
export const PharosTypeCaptionFontWeight: string;
|
|
337
|
+
/** Tiny eyebrow / caption labels (xs), ALL-CAPS with wide tracking; helper text at 400. */
|
|
338
|
+
export const PharosTypeCaptionLineHeight: string;
|
|
339
|
+
/** Tiny eyebrow / caption labels (xs), ALL-CAPS with wide tracking; helper text at 400. */
|
|
340
|
+
export const PharosTypeCaptionLetterSpacing: string;
|
package/dist/tokens.js
CHANGED
|
@@ -143,3 +143,51 @@ 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 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
|
@@ -186,5 +186,63 @@
|
|
|
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
|
+
"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
|
+
}
|
|
189
247
|
}
|
|
190
248
|
}
|
package/package.json
CHANGED
|
@@ -13,10 +13,22 @@
|
|
|
13
13
|
}
|
|
14
14
|
},
|
|
15
15
|
"weight": {
|
|
16
|
-
"regular": {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
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,131 @@
|
|
|
66
78
|
}
|
|
67
79
|
},
|
|
68
80
|
"lineHeight": {
|
|
69
|
-
"tight": {
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
"
|
|
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": {
|
|
77
|
-
|
|
78
|
-
|
|
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
|
+
"lesson-title": {
|
|
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": "Lesson titles (xl)."
|
|
173
|
+
},
|
|
174
|
+
"subtitle": {
|
|
175
|
+
"$type": "typography",
|
|
176
|
+
"$value": {
|
|
177
|
+
"fontFamily": "{font.family.sans}",
|
|
178
|
+
"fontSize": "{font.size.lg}",
|
|
179
|
+
"fontWeight": "{font.weight.medium}",
|
|
180
|
+
"lineHeight": "{font.lineHeight.tight}",
|
|
181
|
+
"letterSpacing": "{font.letterSpacing.normal}"
|
|
182
|
+
},
|
|
183
|
+
"$description": "Subtitles (lg)."
|
|
184
|
+
},
|
|
185
|
+
"body": {
|
|
186
|
+
"$type": "typography",
|
|
187
|
+
"$value": {
|
|
188
|
+
"fontFamily": "{font.family.sans}",
|
|
189
|
+
"fontSize": "{font.size.sm}",
|
|
190
|
+
"fontWeight": "{font.weight.regular}",
|
|
191
|
+
"lineHeight": "{font.lineHeight.normal}",
|
|
192
|
+
"letterSpacing": "{font.letterSpacing.normal}"
|
|
193
|
+
},
|
|
194
|
+
"$description": "Body default (sm, 14px / 1.5). Colour signals interaction, not bold."
|
|
195
|
+
},
|
|
196
|
+
"caption": {
|
|
197
|
+
"$type": "typography",
|
|
198
|
+
"$value": {
|
|
199
|
+
"fontFamily": "{font.family.sans}",
|
|
200
|
+
"fontSize": "{font.size.xs}",
|
|
201
|
+
"fontWeight": "{font.weight.bold}",
|
|
202
|
+
"lineHeight": "{font.lineHeight.normal}",
|
|
203
|
+
"letterSpacing": "0.06em"
|
|
204
|
+
},
|
|
205
|
+
"$description": "Tiny eyebrow / caption labels (xs), ALL-CAPS with wide tracking; helper text at 400."
|
|
79
206
|
}
|
|
80
207
|
}
|
|
81
208
|
}
|