Skip to content

Commit

Permalink
feat(design-tokens): add Radio group tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
AlineNap authored Oct 24, 2024
1 parent 599a16f commit fbb693b
Show file tree
Hide file tree
Showing 7 changed files with 228 additions and 7 deletions.
2 changes: 0 additions & 2 deletions .changeset/fifty-lizards-promise.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,5 @@
"@lux-design-system/design-tokens": minor
---

In deze commit

- Nieuwe tokens: lux component button - smalle variant
- Wijziging tokens: line-height en font-size tokens voor secondary en subtle button toegevoegd
7 changes: 7 additions & 0 deletions .changeset/fresh-pugs-listen.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@lux-design-system/design-tokens": minor
---

Nieuwe tokens: Radio group
Nieuwe tokens: Utrecht Form label
Nieuwe tokens: Utrecht radio button
2 changes: 0 additions & 2 deletions .changeset/modern-bags-reflect.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
"@lux-design-system/design-tokens": minor
---

In deze commit

- Nieuwe tokens: utrecht common pointer target
- Nieuwe tokens: utrecht component form field
- Nieuwe tokens: utrecht component form field description
Expand Down
2 changes: 2 additions & 0 deletions proprietary/design-tokens/src/imported/$metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"component/link",
"component/login link",
"component/paragraph",
"component/radio-group",
"component/section",
"nl/utrecht-alert",
"nl/utrecht-button",
Expand All @@ -48,6 +49,7 @@
"nl/utrecht-paragraph",
"nl/utrecht-pointer-target",
"nl/utrecht-pre-heading",
"nl/utrecht-radio-button",
"nl/utrecht-text-input",
"nl/utrecht-textarea"
]
Expand Down
18 changes: 18 additions & 0 deletions proprietary/design-tokens/src/imported/component/radio-group.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"lux": {
"radio-group": {
"padding-block-start": {
"value": "{lux.space.0}",
"type": "spacing"
},
"padding-block-end": {
"value": "{lux.space.0}",
"type": "spacing"
},
"row-gap": {
"value": "{lux.space.100}",
"type": "spacing"
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
},
"checkbox": {
"font-weight": {
"value": "{lux.font-weight.bold}",
"value": "{lux.font-weight.regular}",
"type": "fontWeights"
},
"color": {
Expand All @@ -25,7 +25,7 @@
},
"checked": {
"font-weight": {
"value": "{lux.font-weight.bold}",
"value": "{lux.font-weight.regular}",
"type": "fontWeights"
}
},
Expand All @@ -41,7 +41,7 @@
"type": "color"
},
"font-weight": {
"value": "{lux.font-weight.bold}",
"value": "{lux.font-weight.regular}",
"type": "fontWeights"
}
}
Expand Down
198 changes: 198 additions & 0 deletions proprietary/design-tokens/src/imported/nl/utrecht-radio-button.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,198 @@
{
"utrecht": {
"radio-button": {
"border-width": {
"value": "0.094rem",
"type": "borderWidth"
},
"size": {
"value": "1.125rem",
"type": "sizing"
},
"icon": {
"size": {
"value": "0.625rem",
"type": "sizing"
}
},
"background-color": {
"value": "{lux.color.background.default}",
"type": "color"
},
"border-color": {
"value": "{lux.color.foreground.default}",
"type": "color"
},
"color": {
"value": "{utrecht.radio-button.border-color}",
"type": "color"
},
"invalid": {
"background-color": {
"value": "{lux.alert.error.background-color}",
"type": "color"
},
"border-color": {
"value": "{lux.color.feedback.error.default}",
"type": "color"
},
"color": {
"value": "{utrecht.radio-button.invalid.border-color}",
"type": "color"
},
"border-width": {
"value": "{utrecht.radio-button.border-width}",
"type": "borderWidth"
}
},
"hover": {
"background-color": {
"value": "{lux.color.background.default}",
"type": "color"
},
"border-color": {
"value": "{lux.color.foreground.default}",
"type": "color"
},
"color": {
"value": "{utrecht.radio-button.hover.border-color}",
"type": "color"
},
"border-width": {
"value": "0.125rem",
"type": "borderWidth"
}
},
"active": {
"background-color": {
"value": "{lux.color.background.default}",
"type": "color"
},
"border-color": {
"value": "{lux.color.foreground.default}",
"type": "color"
},
"color": {
"value": "{utrecht.radio-button.active.border-color}",
"type": "color"
},
"border-width": {
"value": "{utrecht.radio-button.border-width}",
"type": "borderWidth"
}
},
"disabled": {
"background-color": {
"value": "{lux.color.canvas}",
"type": "color"
},
"border-color": {
"value": "{lux.color.border.subdued}",
"type": "color"
},
"color": {
"value": "{lux.color.border.subdued}",
"type": "color"
},
"border-width": {
"value": "{utrecht.radio-button.border-width}",
"type": "borderWidth"
}
},
"focus": {
"background-color": {
"value": "{utrecht.radio-button.background-color}",
"type": "color"
},
"border-color": {
"value": "{utrecht.radio-button.border-color}",
"type": "color"
},
"color": {
"value": "{utrecht.radio-button.focus.border-color}",
"type": "color"
},
"border-width": {
"value": "0.125rem",
"type": "borderWidth"
}
},
"checked": {
"background-color": {
"value": "{lux.color.background.default}",
"type": "color"
},
"border-color": {
"value": "{lux.color.foreground.default}",
"type": "color"
},
"color": {
"value": "{lux.color.foreground.default}",
"type": "color"
},
"hover": {
"background-color": {
"value": "{lux.color.background.default}",
"type": "color"
},
"border-color": {
"value": "{lux.color.foreground.default}",
"type": "color"
},
"color": {
"value": "{lux.color.foreground.default}",
"type": "color"
},
"border-width": {
"value": "0.125rem",
"type": "borderWidth"
}
},
"active": {
"background-color": {
"value": "{lux.color.background.default}",
"type": "color"
},
"border-color": {
"value": "{lux.color.foreground.default}",
"type": "color"
},
"color": {
"value": "{lux.color.foreground.default}",
"type": "color"
},
"border-width": {
"value": "{utrecht.radio-button.border-width}",
"type": "borderWidth"
}
},
"focus": {
"background-color": {
"value": "{utrecht.radio-button.checked.background-color}",
"type": "color"
},
"border-color": {
"value": "{utrecht.radio-button.checked.border-color}",
"type": "color"
},
"color": {
"value": "{utrecht.radio-button.checked.color}",
"type": "color"
},
"border-width": {
"value": "0.125rem",
"type": "borderWidth"
}
},
"border-width": {
"value": "{utrecht.radio-button.border-width}",
"type": "borderWidth"
}
},
"margin-inline-end": {
"value": "{lux.space.100}",
"type": "spacing"
}
}
}
}

0 comments on commit fbb693b

Please sign in to comment.