Skip to content

Commit a999745

Browse files
authored
feat: add ams-avatar tokens and remove todo-avatar tokens - Voorbeeld (#1251)
Met deze PR voegen we design tokens toe voor de Avatar component van Amsterdam voor het Voorbeeld-thema, en verwijderen we de ToDo component. De volgende tokens zijn toegevoegd aan Avatar component van Amsterdam: - `ams.avatar.aspect-ratio` - `ams.avatar.background-color` - `ams.avatar.border-color` - `ams.avatar.border-style` - `ams.avatar.border-width` - `ams.avatar.color` - `ams.avatar.font-family` - `ams.avatar.font-size` - `ams.avatar.inline-size` - `ams.avatar.line-height` - `ams.avatar.padding-block` - `ams.avatar.padding-inline` - `ams.avatar.has-image.inline-size` De volgende tokens zijn verwijderd uit ToDo Avatar component: - `todo.avatar.background-color` - `todo.avatar.border-color` - `todo.avatar.border-radius` - `todo.avatar.border-width` - `todo.avatar.color` - `todo.avatar.size` - `todo.avatar.icon.icon-size` - `todo.avatar.font-family` - `todo.avatar.font-size` - `todo.avatar.font-weight` - `todo.avatar.line-height` - `todo.avatar.text-transform`
1 parent fc53406 commit a999745

File tree

2 files changed

+62
-22
lines changed

2 files changed

+62
-22
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
---
2+
"@nl-design-system-unstable/voorbeeld-design-tokens": major
3+
---
4+
5+
De volgende tokens zijn toegevoegd aan Avatar component van Amsterdam:
6+
7+
- `ams.avatar.aspect-ratio`
8+
- `ams.avatar.background-color`
9+
- `ams.avatar.border-color`
10+
- `ams.avatar.border-style`
11+
- `ams.avatar.border-width`
12+
- `ams.avatar.color`
13+
- `ams.avatar.font-family`
14+
- `ams.avatar.font-size`
15+
- `ams.avatar.inline-size`
16+
- `ams.avatar.line-height`
17+
- `ams.avatar.padding-block`
18+
- `ams.avatar.padding-inline`
19+
- `ams.avatar.has-image.inline-size`
20+
21+
De volgende tokens zijn verwijderd uit ToDo Avatar component:
22+
23+
- `todo.avatar.background-color`
24+
- `todo.avatar.border-color`
25+
- `todo.avatar.border-radius`
26+
- `todo.avatar.border-width`
27+
- `todo.avatar.color`
28+
- `todo.avatar.size`
29+
- `todo.avatar.icon.icon-size`
30+
- `todo.avatar.font-family`
31+
- `todo.avatar.font-size`
32+
- `todo.avatar.font-weight`
33+
- `todo.avatar.line-height`
34+
- `todo.avatar.text-transform`

packages/voorbeeld-design-tokens/figma/voorbeeld.tokens.json

Lines changed: 28 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -3230,37 +3230,33 @@
32303230
}
32313231
},
32323232
"components/avatar": {
3233-
"todo": {
3233+
"ams": {
32343234
"avatar": {
3235+
"aspect-ratio": {
3236+
"$type": "other",
3237+
"$value": "1 / 1",
3238+
"$description": "[code-only]"
3239+
},
32353240
"background-color": {
32363241
"$type": "color",
3237-
"$value": "{basis.color.action-1-inverse.bg-default}"
3242+
"$value": "{basis.color.accent-1-inverse.bg-default}"
32383243
},
32393244
"border-color": {
32403245
"$type": "color",
32413246
"$value": "{basis.color.transparent}"
32423247
},
3243-
"border-radius": {
3244-
"$type": "dimension",
3245-
"$value": "{basis.border-radius.round}"
3248+
"border-style": {
3249+
"$type": "other",
3250+
"$value": "solid",
3251+
"$description": "[code-only]"
32463252
},
32473253
"border-width": {
32483254
"$type": "dimension",
32493255
"$value": "{basis.border-width.sm}"
32503256
},
32513257
"color": {
32523258
"$type": "color",
3253-
"$value": "{basis.color.action-1-inverse.color-default}"
3254-
},
3255-
"size": {
3256-
"$type": "dimension",
3257-
"$value": "{basis.pointer-target.min-block-size}"
3258-
},
3259-
"icon": {
3260-
"icon-size": {
3261-
"$type": "dimension",
3262-
"$value": "{basis.size.icon.md}"
3263-
}
3259+
"$value": "{basis.color.accent-1-inverse.color-default}"
32643260
},
32653261
"font-family": {
32663262
"$type": "fontFamilies",
@@ -3270,17 +3266,27 @@
32703266
"$type": "fontSizes",
32713267
"$value": "{basis.text.font-size.md}"
32723268
},
3273-
"font-weight": {
3274-
"$type": "fontWeights",
3275-
"$value": "{basis.text.font-weight.bold}"
3269+
"inline-size": {
3270+
"$type": "dimension",
3271+
"$value": "{basis.pointer-target.min-inline-size}"
32763272
},
32773273
"line-height": {
32783274
"$type": "lineHeights",
32793275
"$value": "{basis.text.line-height.md}"
32803276
},
3281-
"text-transform": {
3282-
"$type": "textCase",
3283-
"$value": "uppercase"
3277+
"padding-block": {
3278+
"$type": "dimension",
3279+
"$value": "0px"
3280+
},
3281+
"padding-inline": {
3282+
"$type": "dimension",
3283+
"$value": "0px"
3284+
},
3285+
"has-image": {
3286+
"inline-size": {
3287+
"$type": "dimension",
3288+
"$value": "{basis.pointer-target.min-inline-size}"
3289+
}
32843290
}
32853291
}
32863292
}

0 commit comments

Comments
 (0)