Commit aa6ad92
authored
## Summary:
- Introducing `border.knockout.default` and `foreground.knockout.default` tokens. This will replace `border.inverse.*` and `foreground.inverse.*` tokens to align with the recent design token changes (the inverse tokens will be removed in a future update once existing usage of these tokens have moved to the new token structure)
- Updating existing usage of `border.inverse.*` and `foreground.inverse.*` tokens in WB
Token Mapping:
| Before | After |
| --- | --- |
| `foreground.inverse.strong` | `foreground.knockout.default` |
| `border.inverse.strong` | `border.knockout.default` |
For `foreground.inverse.subtle/default` and `border.inverse.subtle/default` the mapping will either map to a `neutral` or `disabled` value depending on the use case
Issue: WB-2050
Design: [Core Tokens](https://www.figma.com/design/e9qdyiDUBZ3rDabP9S7ulO/%E2%9A%A1%EF%B8%8F-Handshake?node-id=3040-15158&m=dev)
## Test plan:
- Confirm the `foreground.knockout.default` and `border.knockout.default` tokens exist (`?path=/docs/foundations-using-color--docs`)
- Confirm the `foreground.inverse.*` and `border.inverse.*` tokens have not been removed
- Most things should look the same. For any components that have any changes, confirm they are intentional (I noted the expected changes in Chromatic)
## Implementation plan
1. Add knockout tokens (#2758)
2. Add background base and overlay tokens
3. Update usage (in WB and other repos)
- Replace foreground and border inverse tokens usage in other repos
- Replace surface tokens with background base tokens
- Use background.base.default token for white instead of background.neutral.subtle
4. Update background.neutral.subtle to light gray
5. Remove surface and inverse tokens
Author: beaesguerra
Reviewers: beaesguerra, marcysutton
Required Reviewers:
Approved By: marcysutton
Checks: ✅ 49 checks were successful, ⏭️ 11 checks have been skipped, ⏹️ 5 checks were cancelled
Pull Request URL: #2758
1 parent 31135ce commit aa6ad92
File tree
25 files changed
+124
-84
lines changed- .changeset
- __docs__
- wonder-blocks-badge
- wonder-blocks-banner
- wonder-blocks-cell
- wonder-blocks-clickable
- wonder-blocks-link
- wonder-blocks-pill
- wonder-blocks-popover
- wonder-blocks-styles
- wonder-blocks-tooltip
- packages
- wonder-blocks-cell/src
- components/internal
- theme
- wonder-blocks-clickable/src/components
- wonder-blocks-form/src/util
- wonder-blocks-link/src/components
- wonder-blocks-pill/src/components
- wonder-blocks-styles/src/styles
- wonder-blocks-switch/src/components
- wonder-blocks-tokens/src/theme/semantic
- wonder-blocks-toolbar/src/components
25 files changed
+124
-84
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
359 | 359 | | |
360 | 360 | | |
361 | 361 | | |
362 | | - | |
363 | | - | |
| 362 | + | |
| 363 | + | |
364 | 364 | | |
365 | | - | |
| 365 | + | |
366 | 366 | | |
367 | 367 | | |
368 | 368 | | |
369 | | - | |
| 369 | + | |
370 | 370 | | |
371 | 371 | | |
372 | 372 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
198 | 198 | | |
199 | 199 | | |
200 | 200 | | |
201 | | - | |
202 | | - | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
203 | 206 | | |
204 | | - | |
205 | 207 | | |
206 | 208 | | |
207 | 209 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
135 | | - | |
| 135 | + | |
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
234 | 234 | | |
235 | 235 | | |
236 | 236 | | |
237 | | - | |
| 237 | + | |
238 | 238 | | |
239 | 239 | | |
240 | 240 | | |
241 | 241 | | |
242 | | - | |
| 242 | + | |
243 | 243 | | |
244 | 244 | | |
245 | 245 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
337 | 337 | | |
338 | 338 | | |
339 | 339 | | |
340 | | - | |
| 340 | + | |
341 | 341 | | |
342 | 342 | | |
343 | 343 | | |
| |||
353 | 353 | | |
354 | 354 | | |
355 | 355 | | |
356 | | - | |
| 356 | + | |
357 | 357 | | |
358 | 358 | | |
359 | 359 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
248 | 248 | | |
249 | 249 | | |
250 | 250 | | |
251 | | - | |
| 251 | + | |
252 | 252 | | |
253 | 253 | | |
254 | 254 | | |
| |||
325 | 325 | | |
326 | 326 | | |
327 | 327 | | |
328 | | - | |
| 328 | + | |
329 | 329 | | |
330 | 330 | | |
331 | 331 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
235 | 235 | | |
236 | 236 | | |
237 | 237 | | |
238 | | - | |
| 238 | + | |
239 | 239 | | |
240 | 240 | | |
241 | 241 | | |
| |||
0 commit comments