@codecademy/gamut 68.6.1-alpha.f6b2ce.0 → 68.6.2-alpha.1fc7ca.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.
Files changed (59) hide show
  1. package/dist/Modals/elements.d.ts +186 -1
  2. package/dist/Modals/elements.js +3 -3
  3. package/dist/{InternalFloatingCard/InternalFloatingCard.d.ts → PatternBackdrop/PatternBackdrop.d.ts} +8 -24
  4. package/dist/PatternBackdrop/PatternBackdrop.js +42 -0
  5. package/dist/Toast/Toast.js +4 -4
  6. package/package.json +8 -11
  7. package/agent-tools/.claude-plugin/marketplace.json +0 -16
  8. package/agent-tools/.claude-plugin/plugin.json +0 -7
  9. package/agent-tools/.cursor-plugin/plugin.json +0 -7
  10. package/agent-tools/DESIGN.Codecademy.md +0 -696
  11. package/agent-tools/DESIGN.LXStudio.md +0 -512
  12. package/agent-tools/DESIGN.Percipio.md +0 -513
  13. package/agent-tools/DESIGN.md +0 -1
  14. package/agent-tools/agents/.gitkeep +0 -0
  15. package/agent-tools/commands/gamut-review.md +0 -259
  16. package/agent-tools/guidelines/components/animations.md +0 -74
  17. package/agent-tools/guidelines/components/buttons.md +0 -95
  18. package/agent-tools/guidelines/components/card.md +0 -19
  19. package/agent-tools/guidelines/components/coachmark.md +0 -21
  20. package/agent-tools/guidelines/components/data-table.md +0 -79
  21. package/agent-tools/guidelines/components/forms.md +0 -106
  22. package/agent-tools/guidelines/components/loading-states.md +0 -17
  23. package/agent-tools/guidelines/components/menu.md +0 -58
  24. package/agent-tools/guidelines/components/overview.md +0 -124
  25. package/agent-tools/guidelines/components/radial-progress.md +0 -13
  26. package/agent-tools/guidelines/components/select.md +0 -23
  27. package/agent-tools/guidelines/components/tooltips.md +0 -22
  28. package/agent-tools/guidelines/components/video.md +0 -29
  29. package/agent-tools/guidelines/foundations/color.md +0 -168
  30. package/agent-tools/guidelines/foundations/modes.md +0 -69
  31. package/agent-tools/guidelines/foundations/spacing.md +0 -107
  32. package/agent-tools/guidelines/foundations/typography.md +0 -82
  33. package/agent-tools/guidelines/overview-icons.md +0 -19
  34. package/agent-tools/guidelines/overview-illustrations.md +0 -7
  35. package/agent-tools/guidelines/overview-patterns.md +0 -7
  36. package/agent-tools/guidelines/overview.md +0 -84
  37. package/agent-tools/guidelines/setup.md +0 -83
  38. package/agent-tools/rules/accessibility.mdc +0 -78
  39. package/agent-tools/skills/gamut-accessibility/SKILL.md +0 -224
  40. package/agent-tools/skills/gamut-color-mode/SKILL.md +0 -149
  41. package/agent-tools/skills/gamut-components/SKILL.md +0 -46
  42. package/agent-tools/skills/gamut-forms/SKILL.md +0 -101
  43. package/agent-tools/skills/gamut-style-utilities/SKILL.md +0 -111
  44. package/agent-tools/skills/gamut-system-props/SKILL.md +0 -225
  45. package/agent-tools/skills/gamut-testing/SKILL.md +0 -225
  46. package/agent-tools/skills/gamut-theming/SKILL.md +0 -63
  47. package/agent-tools/skills/gamut-typography/SKILL.md +0 -79
  48. package/bin/commands/plugin/install.mjs +0 -213
  49. package/bin/commands/plugin/list.mjs +0 -73
  50. package/bin/commands/plugin/remove.mjs +0 -108
  51. package/bin/commands/plugin/update.mjs +0 -59
  52. package/bin/gamut.mjs +0 -96
  53. package/bin/lib/claude.mjs +0 -52
  54. package/bin/lib/cursor.mjs +0 -40
  55. package/bin/lib/design.mjs +0 -71
  56. package/bin/lib/io.mjs +0 -14
  57. package/bin/lib/resolve-plugin-dir.mjs +0 -38
  58. package/bin/lib/run-command.mjs +0 -22
  59. package/dist/InternalFloatingCard/InternalFloatingCard.js +0 -98
@@ -1,513 +0,0 @@
1
- ---
2
- version: alpha
3
- name: Percipio Design System
4
- description: Design tokens for the Skillsoft Percipio platform.
5
- colors:
6
- # palette — raw swatches; set once on :root and then always reference by token name, never use hex values directly in code
7
- percipioTextPrimary: '#222325'
8
- percipioTextAccent: '#222325'
9
- percipioTextSecondary: 'rgba(34, 35, 37, 0.75)'
10
- percipioTextDisabled: '#AFB6C2'
11
- sapphire: '#1C50BB'
12
- percipioActionPrimaryHover: '#141C36'
13
- percipioActionSecondary: '#6A6E75'
14
- percipioActionSecondaryHover: 'rgba(106, 110, 117, 0.86)'
15
- percipioActionDangerHover: '#A52020'
16
- percipioDanger: '#B83C3C'
17
- percipioFeedbackSuccess: '#1B8057'
18
- percipioFeedbackWarning: '#EF5B0D'
19
- percipioBgPrimary: '#FAFBFC'
20
- percipioBgSuccess: '#EEF7F3'
21
- percipioBgWarning: '#FFF7E0'
22
- percipioBgError: '#FFF1F5'
23
- navy-800: '#10162F'
24
- navy-400: 'rgba(16, 22, 47, 0.47)'
25
- navy-300: 'rgba(16, 22, 47, 0.28)'
26
- navy-200: 'rgba(16, 22, 47, 0.12)'
27
- navy-100: 'rgba(16, 22, 47, 0.04)'
28
- white: '#ffffff'
29
- # semantic aliases — use these in code, not palette swatches or hex values
30
- text: '{colors.percipioTextPrimary}'
31
- text-accent: '{colors.percipioTextAccent}'
32
- text-secondary: '{colors.percipioTextSecondary}'
33
- text-disabled: '{colors.percipioTextDisabled}'
34
- background: '{colors.white}'
35
- background-primary: '{colors.percipioBgPrimary}'
36
- background-selected: '{colors.navy-100}'
37
- background-hover: '{colors.navy-200}'
38
- background-disabled: '{colors.navy-200}'
39
- background-success: '{colors.percipioBgSuccess}'
40
- background-warning: '{colors.percipioBgWarning}'
41
- background-error: '{colors.percipioBgError}'
42
- primary: '{colors.sapphire}'
43
- primary-hover: '{colors.percipioActionPrimaryHover}'
44
- primary-inverse: '{colors.white}'
45
- secondary: '{colors.percipioActionSecondary}'
46
- secondary-hover: '{colors.percipioActionSecondaryHover}'
47
- danger: '{colors.percipioDanger}'
48
- danger-hover: '{colors.percipioActionDangerHover}'
49
- feedback-error: '{colors.percipioDanger}'
50
- feedback-success: '{colors.percipioFeedbackSuccess}'
51
- feedback-warning: '{colors.percipioFeedbackWarning}'
52
- border-primary: '{colors.navy-400}'
53
- border-secondary: '{colors.navy-200}'
54
- border-tertiary: '{colors.navy-800}'
55
- border-disabled: '{colors.navy-300}'
56
- shadow-primary: '{colors.navy-200}'
57
- shadow-secondary: '{colors.navy-400}'
58
- typography:
59
- base:
60
- fontFamily: '"Skillsoft Text", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif'
61
- fontSize: '1rem'
62
- fontWeight: '400'
63
- lineHeight: '1.5'
64
- accent:
65
- fontFamily: '"Skillsoft Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif'
66
- fontSize: '0.875rem'
67
- fontWeight: '400'
68
- lineHeight: '1.5'
69
- title:
70
- fontFamily: '"Skillsoft Text", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif'
71
- fontSize: '2.125rem'
72
- fontWeight: '500'
73
- lineHeight: '1.2'
74
- monospace:
75
- fontFamily: '"Roboto Mono", monospace'
76
- system:
77
- fontFamily: '"Roboto", sans-serif'
78
- '14':
79
- fontSize: '0.875rem'
80
- '16':
81
- fontSize: '1rem'
82
- '18':
83
- fontSize: '1.125rem'
84
- '20':
85
- fontSize: '1.25rem'
86
- '22':
87
- fontSize: '1.375rem'
88
- '26':
89
- fontSize: '1.625rem'
90
- '34':
91
- fontSize: '2.125rem'
92
- '44':
93
- fontSize: '2.75rem'
94
- '64':
95
- fontSize: '4rem'
96
- borderRadii:
97
- none: '0px'
98
- sm: '2px'
99
- md: '4px'
100
- lg: '8px'
101
- xl: '16px'
102
- full: '999px'
103
- spacing:
104
- '0': '0'
105
- '4': '0.25rem'
106
- '8': '0.5rem'
107
- '12': '0.75rem'
108
- '16': '1rem'
109
- '24': '1.5rem'
110
- '32': '2rem'
111
- '40': '2.5rem'
112
- '48': '3rem'
113
- '64': '4rem'
114
- '96': '6rem'
115
- components:
116
- FillButton:
117
- backgroundColor: '{colors.primary}'
118
- textColor: '{colors.primary-inverse}'
119
- borderRadii: '{borderRadii.md}'
120
- FillButton-hover:
121
- backgroundColor: '{colors.primary-hover}'
122
- textColor: '{colors.primary-inverse}'
123
- FillButton-danger:
124
- backgroundColor: '{colors.danger}'
125
- textColor: '{colors.white}'
126
- borderRadii: '{borderRadii.md}'
127
- FillButton-danger-hover:
128
- backgroundColor: '{colors.danger-hover}'
129
- textColor: '{colors.white}'
130
- StrokeButton:
131
- backgroundColor: 'transparent'
132
- textColor: '{colors.secondary}'
133
- borderRadii: '{borderRadii.md}'
134
- StrokeButton-hover:
135
- textColor: '{colors.secondary-hover}'
136
- TextButton:
137
- backgroundColor: 'transparent'
138
- textColor: '{colors.primary}'
139
- TextButton-hover:
140
- textColor: '{colors.primary-hover}'
141
- IconButton:
142
- backgroundColor: 'transparent'
143
- textColor: '{colors.secondary}'
144
- IconButton-hover:
145
- textColor: '{colors.secondary-hover}'
146
- Input:
147
- backgroundColor: '{colors.background}'
148
- textColor: '{colors.text}'
149
- borderRadii: '{borderRadii.md}'
150
- borderColor: '{colors.border-primary}'
151
- Checkbox:
152
- backgroundColor: '{colors.primary}'
153
- borderRadii: '{borderRadii.sm}'
154
- Checkbox-hover:
155
- backgroundColor: '{colors.primary-hover}'
156
- Card:
157
- backgroundColor: '{colors.background}'
158
- borderRadii: '{borderRadii.none}'
159
- Card-interactive:
160
- borderRadii: '{borderRadii.md}'
161
- Card-elevated:
162
- backgroundColor: '{colors.background-primary}'
163
- borderRadii: '{borderRadii.lg}'
164
- Headline:
165
- textColor: '{colors.text-accent}'
166
- typography: '{typography.title}'
167
- Tag-success:
168
- backgroundColor: '{colors.feedback-success}'
169
- textColor: '{colors.white}'
170
- borderRadii: '{borderRadii.sm}'
171
- Tag-warning:
172
- backgroundColor: '{colors.feedback-warning}'
173
- textColor: '{colors.text}'
174
- borderRadii: '{borderRadii.sm}'
175
- Alert-error:
176
- backgroundColor: '{colors.background-error}'
177
- textColor: '{colors.feedback-error}'
178
- Alert-success:
179
- backgroundColor: '{colors.background-success}'
180
- textColor: '{colors.text}'
181
- Alert-warning:
182
- backgroundColor: '{colors.background-warning}'
183
- textColor: '{colors.text}'
184
- ---
185
-
186
- # Percipio
187
-
188
- This file defines the visual design tokens for the Skillsoft Percipio platform, implemented using the Gamut design system (`@codecademy/gamut`, `@codecademy/gamut-styles`). Percipio uses a dedicated Gamut theme that applies its own colors and typography — all Gamut components work without modification.
189
-
190
- Storybook: https://gamut.codecademy.com
191
-
192
- ---
193
-
194
- ## Overview
195
-
196
- Percipio communicates professional clarity — clean, trustworthy, and enterprise-ready. The design voice is more neutral and corporate than Codecademy: less playful, more functional. Primary blue drives interactive affordances; neutral grays define text and structure.
197
-
198
- Density: Medium. Consistent with Codecademy layouts but with softer shadows and a lighter overall feel due to the muted neutral palette.
199
-
200
- ### Themes
201
-
202
- Percipio uses a single Gamut theme that extends Core. Light mode applies Percipio-specific semantic overrides (sapphire primary, percipio neutrals). Dark mode inherits Core dark semantics — use `<ColorMode>` and semantic tokens the same way as Codecademy.
203
-
204
- | Theme | Use case | Base font | Dark mode |
205
- | -------- | --------------------------- | --------------------- | -------------- |
206
- | Percipio | Skillsoft Percipio platform | Skillsoft Sans / Text | ✓ light + dark |
207
-
208
- Set the active theme via `<GamutProvider theme={percipioTheme}>`. Install in app repos: `gamut plugin install cursor --theme percipio` (copies to `./DESIGN.md`).
209
-
210
- ---
211
-
212
- ## Colors
213
-
214
- Use semantic token names in code and designs. They resolve per color mode automatically. Never hardcode hex values for adaptive UI. Never hardcode core-theme values like `beige` — use `background-primary` (`#FAFBFC` on Percipio).
215
-
216
- For dark/light regions, use `<ColorMode>` or `<Background>` — never swap colors manually with custom CSS.
217
-
218
- ### Text
219
-
220
- | Token | Light | Dark | Use for |
221
- | ---------------- | ------------------------ | --------------- | ------------------------------------------------ |
222
- | `text` | `#222325` | white `#ffffff` | Default body and UI text |
223
- | `text-accent` | `#222325` | beige `#FFF0E5` | Emphasis text (same as `text` in Percipio light) |
224
- | `text-secondary` | `rgba(34, 35, 37, 0.75)` | white at 65% | Supporting / secondary copy |
225
- | `text-disabled` | `#AFB6C2` | white at 50% | Disabled state labels |
226
-
227
- ### Background
228
-
229
- | Token | Light | Dark | Use for |
230
- | --------------------- | --------------------------------- | -------------------- | --------------------------------- |
231
- | `background` | white `#ffffff` | navy-800 `#10162F` | Default page/component background |
232
- | `background-primary` | `#FAFBFC` | navy-900 `#0A0D1C` | Slightly elevated surfaces |
233
- | `background-selected` | navy-100 `rgba(16, 22, 47, 0.04)` | white at 4% | Selected row / item |
234
- | `background-hover` | navy-200 `rgba(16, 22, 47, 0.12)` | white at 9% | Hover state overlay |
235
- | `background-disabled` | navy-200 `rgba(16, 22, 47, 0.12)` | white at 9% | Disabled surface |
236
- | `background-success` | `#EEF7F3` | green-900 `#151C07` | Success state container |
237
- | `background-warning` | `#FFF7E0` | yellow-900 `#211B00` | Warning state container |
238
- | `background-error` | `#FFF1F5` | red-900 `#280503` | Error state container |
239
-
240
- ### Interactive
241
-
242
- | Token | Light | Dark | Use for |
243
- | ----------------- | --------------------------- | -------------------- | ------------------------------------ |
244
- | `primary` | sapphire `#1C50BB` | yellow-500 `#FFD300` | Primary CTA, links, focus rings |
245
- | `primary-hover` | `#141C36` | yellow-400 `#CCA900` | Hover state of primary interactive |
246
- | `primary-inverse` | white `#ffffff` | hyper-500 `#3A10E5` | Primary on a colored background |
247
- | `secondary` | `#6A6E75` | white `#ffffff` | Secondary CTA, ghost buttons |
248
- | `secondary-hover` | `rgba(106, 110, 117, 0.86)` | white at 80% | Hover state of secondary interactive |
249
- | `danger` | `#B83C3C` | red-300 `#E85D7F` | Destructive actions, error states |
250
- | `danger-hover` | `#A52020` | red-400 `#DC5879` | Hover on danger interactive |
251
-
252
- ### Border
253
-
254
- Percipio's border weights use a non-standard order: `primary` is mid-weight, `secondary` is very light, `tertiary` is the strongest (solid navy). Use them for their semantic intent, not their numeric rank.
255
-
256
- | Token | Light | Dark | Use for |
257
- | ------------------ | --------------------------------- | --------------- | ----------------------------------- |
258
- | `border-primary` | navy-400 `rgba(16, 22, 47, 0.47)` | white `#ffffff` | Standard input and card borders |
259
- | `border-secondary` | navy-200 `rgba(16, 22, 47, 0.12)` | white at 65% | Subtle dividers, section separators |
260
- | `border-tertiary` | navy-800 `#10162F` | white at 20% | Strong structural borders |
261
- | `border-disabled` | navy-300 `rgba(16, 22, 47, 0.28)` | white at 50% | Disabled input borders |
262
-
263
- ### Feedback
264
-
265
- | Token | Light | Dark | Use for |
266
- | ------------------ | --------- | ------------------- | -------------------------------- |
267
- | `feedback-error` | `#B83C3C` | red-300 `#E85D7F` | Error messages, validation |
268
- | `feedback-success` | `#1B8057` | green-400 `#AEE938` | Success messages, confirmations |
269
- | `feedback-warning` | `#EF5B0D` | yellow-0 `#FFFAE5` | Warning messages, caution states |
270
-
271
- ### Shadow
272
-
273
- | Token | Light | Dark |
274
- | ------------------ | --------------------------------- | ------------ |
275
- | `shadow-primary` | navy-200 `rgba(16, 22, 47, 0.12)` | white |
276
- | `shadow-secondary` | navy-400 `rgba(16, 22, 47, 0.47)` | white at 65% |
277
-
278
- Percipio shadows are softer than Codecademy's — use `shadow-primary` for standard elevated surfaces.
279
-
280
- ---
281
-
282
- ### Percipio color palette
283
-
284
- Percipio introduces its own named semantic colors. These are the source values behind the aliases above. Use the semantic aliases in designs, not the raw named colors.
285
-
286
- | Named color | Value | Mapped to |
287
- | ------------------------------ | --------------------------- | -------------------------- |
288
- | `percipioTextPrimary` | `#222325` | `text` |
289
- | `percipioTextAccent` | `#222325` | `text-accent` |
290
- | `percipioTextSecondary` | `rgba(34, 35, 37, 0.75)` | `text-secondary` |
291
- | `percipioTextDisabled` | `#AFB6C2` | `text-disabled` |
292
- | `sapphire` | `#1C50BB` | `primary` |
293
- | `percipioActionPrimaryHover` | `#141C36` | `primary-hover` |
294
- | `percipioActionSecondary` | `#6A6E75` | `secondary` |
295
- | `percipioActionSecondaryHover` | `rgba(106, 110, 117, 0.86)` | `secondary-hover` |
296
- | `percipioActionDangerHover` | `#A52020` | `danger-hover` |
297
- | `percipioDanger` | `#B83C3C` | `danger`, `feedback-error` |
298
- | `percipioFeedbackSuccess` | `#1B8057` | `feedback-success` |
299
- | `percipioFeedbackWarning` | `#EF5B0D` | `feedback-warning` |
300
- | `percipioBgPrimary` | `#FAFBFC` | `background-primary` |
301
- | `percipioBgSuccess` | `#EEF7F3` | `background-success` |
302
- | `percipioBgWarning` | `#FFF7E0` | `background-warning` |
303
- | `percipioBgError` | `#FFF1F5` | `background-error` |
304
-
305
- The full core swatch palette (navy, blue, green, yellow, red, etc.) is also available, but the semantic aliases above are how Percipio maps them. Raw swatches should only be used for fixed colors that must not adapt (illustrations, data viz, etc.).
306
-
307
- ---
308
-
309
- ## Typography
310
-
311
- ### Typefaces
312
-
313
- Percipio uses Skillsoft Text for body and Skillsoft Sans for accent/labels. Roboto is the `system` fallback; Roboto Mono is used for monospace.
314
-
315
- | Token | Font | Use for |
316
- | ----------- | -------------------------- | ----------------------------------------- |
317
- | `base` | `"Skillsoft Text", …` | All default UI text, headlines, body copy |
318
- | `accent` | `"Skillsoft Sans", …` | Labels, captions, technical context |
319
- | `monospace` | `"Roboto Mono", monospace` | Code editor contexts |
320
- | `system` | `"Roboto", sans-serif` | Performance-critical surfaces |
321
-
322
- ### Rules
323
-
324
- - Skillsoft Medium (500) for headlines, sub-headlines, CTAs, and buttons — not Bold (700).
325
- - Skillsoft Regular (400) for body text, UI labels, and menu items.
326
- - Text is left-aligned by default. Center-align only for short marketing headlines. Never right-align.
327
- - Do not adjust letter-spacing.
328
-
329
- ### Font weight scale
330
-
331
- Percipio overrides the title weight from Core's 700 to 500 (medium). This gives Percipio a lighter, less heavy headline style.
332
-
333
- | Token | Value | Use |
334
- | ------- | ----- | ---------------------------------------------------------- |
335
- | `base` | 400 | Body text, UI labels |
336
- | `title` | 500 | Headlines, CTAs, buttons _(differs from Codecademy's 700)_ |
337
-
338
- ### Font size scale
339
-
340
- Shared with Core — all sizes are identical.
341
-
342
- | Token key | Size | Common use |
343
- | --------- | ---- | ---------------------------- |
344
- | `64` | 64px | Hero / display |
345
- | `44` | 44px | Page titles |
346
- | `34` | 34px | Section titles |
347
- | `26` | 26px | Sub-section titles |
348
- | `22` | 22px | Card titles, large UI labels |
349
- | `20` | 20px | Secondary titles |
350
- | `18` | 18px | Large body, intro text |
351
- | `16` | 16px | Default body text |
352
- | `14` | 14px | Small body, captions, labels |
353
-
354
- ### Line height scale
355
-
356
- Shared with Core.
357
-
358
- | Token | Value | Use |
359
- | ------------- | ----- | ------------------------------- |
360
- | `base` | 1.5 | Body text |
361
- | `spacedTitle` | 1.3 | Sub-headlines and medium titles |
362
- | `title` | 1.2 | Large headlines |
363
-
364
- ### Line length
365
-
366
- Target 45–85 characters per line; 66 characters is ideal. Max 50 for multi-column layouts.
367
-
368
- ---
369
-
370
- ## Layout
371
-
372
- ### Spacing scale
373
-
374
- Identical to Core. All spacing is multiples of 4px on an 8px grid.
375
-
376
- | Token | Value |
377
- | ----- | ----- |
378
- | `0` | 0 |
379
- | `4` | 4px |
380
- | `8` | 8px |
381
- | `12` | 12px |
382
- | `16` | 16px |
383
- | `24` | 24px |
384
- | `32` | 32px |
385
- | `40` | 40px |
386
- | `48` | 48px |
387
- | `64` | 64px |
388
- | `96` | 96px |
389
-
390
- ### System props
391
-
392
- Never use inline `style` attributes. Use system props shorthand (`m`, `mb`, `p`, `px`, etc.) and Gamut tokens for `bg`, `color`, `borderColor`, `borderRadius`.
393
-
394
- ### Responsive behavior
395
-
396
- Identical to Core. Mobile-first; 12-column grid. Minimum touch target 44×44px on mobile. Begin at 1440px (XL), then adapt down.
397
-
398
- | Token | Min-width | Max content |
399
- | -------- | --------- | ----------- |
400
- | _(base)_ | 0 | 288px |
401
- | `xs` | 480px | 448px |
402
- | `sm` | 768px | 704px |
403
- | `md` | 1024px | 896px |
404
- | `lg` | 1200px | 1072px |
405
- | `xl` | 1440px | 1248px |
406
-
407
- ---
408
-
409
- ## Elevation & Depth
410
-
411
- Percipio shadows are softer than Codecademy's — use `shadow-primary` (navy-200) for standard elevated surfaces. Card outline shadows use theme-resolved border/shadow tokens.
412
-
413
- ---
414
-
415
- ## Shapes
416
-
417
- Identical to Core (`borderRadii` in YAML). No custom radius values.
418
-
419
- | Token | Value | Use |
420
- | ------ | ----- | ------------------------------------------ |
421
- | `none` | 0px | Square / non-interactive elements |
422
- | `sm` | 2px | Subtle rounding, tags, checkboxes |
423
- | `md` | 4px | Default buttons, inputs, interactive cards |
424
- | `lg` | 8px | Cards, panels |
425
- | `xl` | 16px | Large cards, modals |
426
- | `full` | 999px | Pills, avatars, circular elements |
427
-
428
- ---
429
-
430
- ## Components
431
-
432
- Same component library as Codecademy — all atoms, molecules, and organisms apply. Token values resolve differently per theme automatically.
433
-
434
- ### Gamut implementation guardrails
435
-
436
- Same rules as Codecademy (`DESIGN.Codecademy.md` Components section), with Percipio-specific notes:
437
-
438
- - Buttons: no generic `Button`; `IconButton` requires `tip`; never set `mode` on buttons.
439
- - Forms: `GridForm` / `ConnectedForm` for submit flows; atoms only for standalone/live controls.
440
- - Cards: valid variants `default`, `white`, `yellow`, `beige`, `navy`, `hyper`; defaults `shadow="none"`, `isInteractive={false}`; set `isInteractive` only for link/interactive cards.
441
- - DataTable / DataList: `sortable` requires `query`, `onQueryChange`, and client-sorted rows.
442
- - Menu: always `variant="fixed"` + `as="nav"` or `variant="popover"`.
443
- - Color mode: `<ColorMode>` / `<Background>`; no manual rgba overrides.
444
- - Accessibility: WCAG contrast, 44×44px touch targets, `FocusTrap` in modals/drawers.
445
- - Assets: `@codecademy/gamut-icons`, `gamut-illustrations`, `gamut-patterns`.
446
-
447
- ---
448
-
449
- ## Do's and Don'ts
450
-
451
- ### Colors
452
-
453
- - Do use semantic color aliases (`primary`, `text`, `background`, etc.) — never hardcode hex values.
454
- - Do use `sapphire` (`#1C50BB`) as the primary interactive color via semantic aliases in light mode.
455
- - Do use `<ColorMode>` and `<Background>` for scoped light/dark — dark mode inherits from Core.
456
- - Don't use Codecademy's hyper-purple or yellow directly in Percipio contexts — use semantic tokens.
457
-
458
- ### Typography
459
-
460
- - Do use title weight (500) for headlines, CTAs, and buttons — not 700.
461
- - Do keep body text at 150–175% line height for readability.
462
- - Don't use Codecademy fonts (Apercu, Suisse) — Percipio uses Skillsoft Text and Skillsoft Sans.
463
- - Don't right-align or center-align body paragraphs.
464
- - Don't adjust letter-spacing.
465
-
466
- ### Layout & Spacing
467
-
468
- - Do use multiples of 8px for block-element spacing (4px only for inline / typographic relationships).
469
- - Do begin design work at 1440px (XL), then adapt down.
470
- - Do align elements to the 12-column grid.
471
-
472
- ### Components
473
-
474
- - Don't import a generic `Button` or use Codecademy hyper/yellow directly — use semantic tokens.
475
- - Don't use bare form atoms for functional forms.
476
-
477
- ### Pre-ship validation
478
-
479
- Before considering UI output final, run `/gamut-review` from the app repository root (the directory that contains `DESIGN.md`). Install the plugin first if needed: Cursor — `gamut plugin install cursor --theme percipio`; Claude Code — `gamut plugin install claude --theme percipio`.
480
-
481
- The command performs automated checks (dependencies, `GamutProvider`, imports, hex colors, tests, component guardrails) and prints a manual pre-ship checklist keyed to this product's theme. Fix all errors before shipping. Full procedure: [`commands/gamut-review.md`](commands/gamut-review.md) in `@codecademy/gamut` agent-tools (installed as a slash command with the Gamut plugin).
482
-
483
- ---
484
-
485
- ## Agent Prompt Guide
486
-
487
- Quick color/token reference for generating or specifying Percipio UI:
488
-
489
- | Scenario | Tokens |
490
- | ---------------- | ------------------------------------------------------------------------------------------------------------------ |
491
- | Primary button | `bg: primary (#1C50BB)`, `color: white`, `hover: primary-hover (#141C36)` |
492
- | Body text | `color: text (#222325)`, `font: Skillsoft Text`, `size: 16px`, `weight: 400`, `lineHeight: base (1.5)` |
493
- | Headline | `color: text (#222325)`, `font: Skillsoft Text`, `size: 34–64px`, `weight: title (500)`, `lineHeight: title (1.2)` |
494
- | Secondary text | `color: text-secondary (rgba(34, 35, 37, 0.75))` |
495
- | Disabled text | `color: text-disabled (#AFB6C2)` |
496
- | Elevated surface | `bg: background-primary (#FAFBFC)` |
497
- | Card default | `bg: background (#ffffff)`, `borderRadius: none` — add `isInteractive` for hover shadow + `borderRadius: md` |
498
- | Error state | `color: feedback-error (#B83C3C)`, `bg: background-error (#FFF1F5)`, `border: danger` |
499
- | Success state | `color: feedback-success (#1B8057)`, `bg: background-success (#EEF7F3)` |
500
- | Warning state | `color: feedback-warning (#EF5B0D)`, `bg: background-warning (#FFF7E0)` |
501
- | Disabled state | `color: text-disabled (#AFB6C2)`, `bg: background-disabled (navy-200)`, `border: border-disabled` |
502
-
503
- ### Component token cheatsheet
504
-
505
- ```
506
- FillButton → bg: primary (#1C50BB), color: white, hover: primary-hover (#141C36)
507
- StrokeButton → bg: transparent, border: secondary (#6A6E75)
508
- Checkbox/Toggle → primary (theme-resolved), hover: primary-hover
509
- Card → bg: background, shadow: shadow-primary (navy-200, soft)
510
- Alert (error) → uses feedback-error + background-error
511
- Alert (success) → uses feedback-success + background-success
512
- Alert (warning) → uses feedback-warning + background-warning
513
- ```
@@ -1 +0,0 @@
1
- DEPRECATED. Use the appropriate DESIGN.*.md from https://github.com/Codecademy/gamut/pull/3329 instead.
File without changes