Commit a676ce6
authored
## Summary
Adds a new `learning.characters.flesh` sub-tree to the semantic color tokens, with 5 color families (blue/cyan/green/magenta/orange) × 3 variants (subtle/default/strong), sourced from the Foundations Figma library. Light themes (default + thunderblocks) share the same Light values; syl-dark uses the inverted Dark values.
Also adds a `LearningCharactersFlesh` story under *Tokens → Semantic Colors → Groups*, and a minor changeset for `wonder-blocks-tokens`.
Reviewers: jandrade, beaesguerra
Issue: [WB-2322](https://khanacademy.atlassian.net/browse/WB-2322)
## Test plan
- [ ] Open Storybook (`pnpm start`) → *Packages / Tokens / Semantic Colors / Groups / Learning Characters Flesh* and confirm 5 colors × 3 variants render with sensible values in both light and dark themes.
- [x] Automated: `pnpm typecheck`, `pnpm lint`, and `pnpm jest packages/wonder-blocks-tokens` all pass.
## Review plan
No high or medium risk changes — all file changes are purely additive to the design tokens (no existing tokens modified), follow the established `learning.*` shape, and are covered by the token-docs snapshot test.
### Common patterns
**3 Files:** Append a `characters.flesh` block to the end of the `learning` tree in each semantic-color theme file. Light themes use `*_40 / *_30 / *_10`; the dark theme inverts to `*_10 / *_30 / *_40`.
```ts
// inside `learning: { ... }`
characters: {
flesh: {
blue: { subtle: color.blue_40, default: color.blue_30, strong: color.blue_10 },
cyan: { subtle: color.cyan_40, default: color.cyan_30, strong: color.cyan_10 },
green: { subtle: color.green_40, default: color.green_30, strong: color.green_10 },
magenta: { subtle: color.magenta_40, default: color.magenta_30, strong: color.magenta_10 },
orange: { subtle: color.orange_40, default: color.orange_30, strong: color.orange_10 },
},
},
```
🤖 Built using Claude Code #ai-generated
[WB-2322]: https://khanacademy.atlassian.net/browse/WB-2322?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
Author: jandrade
Required Reviewers:
Approved By: beaesguerra
Checks: ✅ 11 checks were successful, ❌ 1 check failed, ⏭️ 3 checks have been skipped
Pull Request URL: #3060
1 parent 6eb6af8 commit a676ce6
8 files changed
Lines changed: 97 additions & 7 deletions
File tree
- .changeset
- __docs__
- wonder-blocks-tokens
- packages/wonder-blocks-tokens/src
- build/__tests__/__snapshots__
- theme/semantic
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
2 | 7 | | |
3 | 8 | | |
4 | 9 | | |
5 | 10 | | |
6 | 11 | | |
7 | 12 | | |
8 | 13 | | |
9 | | - | |
| 14 | + | |
10 | 15 | | |
11 | 16 | | |
12 | 17 | | |
| |||
75 | 80 | | |
76 | 81 | | |
77 | 82 | | |
78 | | - | |
79 | 83 | | |
80 | 84 | | |
81 | 85 | | |
| |||
158 | 162 | | |
159 | 163 | | |
160 | 164 | | |
161 | | - | |
162 | 165 | | |
163 | 166 | | |
164 | 167 | | |
| |||
210 | 213 | | |
211 | 214 | | |
212 | 215 | | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
213 | 223 | | |
214 | 224 | | |
215 | 225 | | |
| |||
218 | 228 | | |
219 | 229 | | |
220 | 230 | | |
221 | | - | |
222 | 231 | | |
223 | 232 | | |
224 | 233 | | |
| |||
240 | 249 | | |
241 | 250 | | |
242 | 251 | | |
243 | | - | |
244 | 252 | | |
245 | 253 | | |
246 | 254 | | |
| |||
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
210 | 210 | | |
211 | 211 | | |
212 | 212 | | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
213 | 222 | | |
214 | 223 | | |
215 | 224 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
88 | 94 | | |
89 | 95 | | |
90 | 96 | | |
| |||
107 | 113 | | |
108 | 114 | | |
109 | 115 | | |
110 | | - | |
| 116 | + | |
111 | 117 | | |
112 | 118 | | |
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
296 | 296 | | |
297 | 297 | | |
298 | 298 | | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
299 | 304 | | |
300 | 305 | | |
301 | 306 | | |
| |||
Lines changed: 19 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
647 | 647 | | |
648 | 648 | | |
649 | 649 | | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
650 | 669 | | |
651 | 670 | | |
652 | 671 | | |
| |||
Lines changed: 19 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
730 | 730 | | |
731 | 731 | | |
732 | 732 | | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
733 | 752 | | |
734 | 753 | | |
735 | 754 | | |
| |||
Lines changed: 19 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
277 | 277 | | |
278 | 278 | | |
279 | 279 | | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
280 | 299 | | |
281 | 300 | | |
282 | 301 | | |
| |||
0 commit comments