Skip to content

Commit

Permalink
♻️ [open-formulieren/open-forms-sdk#36] Update design tokens
Browse files Browse the repository at this point in the history
Add new, update existing and remove obsolete design tokens related to the
progress indicator styling. This includes some bigger changes to the app
component as well.
  • Loading branch information
sergei-maertens committed Nov 27, 2023
1 parent ff79cdd commit a9b6a57
Show file tree
Hide file tree
Showing 5 changed files with 55 additions and 22 deletions.
19 changes: 18 additions & 1 deletion src/components/app.tokens.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,34 @@
"groupDescription": "The outer SDK form 'app' wrapper."
}
},
"body": {
"padding-block-end": {"value": "0"},
"padding-block-start": {"value": "0"},
"mobile": {
"padding-block-end": {"value": "0"},
"padding-block-start": {"value": "15px"}
}
},

"gap": {"value": "0"},
"grid-column-gap": {"value": "20px"},

"mobile": {
"grid-row-gap": {"value": "0"},
"padding-block-end": {"value": "15px"},
"padding-block-start": {
"value": "0",
"comment": "Allow room for the progress indicator"
},
"padding-inline-end": {"value": "15px"},
"padding-inline-start": {"value": "15px"}
},

"progress-indicator": {
"mobile": {
"inset-block-start": {"value": "0"},
"margin-inline-end": {"value": "calc(-1 * {of.app.mobile.padding-inline-end})"},
"margin-inline-start": {"value": "calc(-1 * {of.app.mobile.padding-inline-start})"}
}
}
}
}
Expand Down
11 changes: 11 additions & 0 deletions src/components/card.tokens.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"of": {
"card": {
"background-color": {"value": "{of.color.bg}"},
"padding-block-end": {"value": "40px"},
"padding-block-start": {"value": "40px"},
"padding-inline-end": {"value": "40px"},
"padding-inline-start": {"value": "40px"}
}
}
}
20 changes: 0 additions & 20 deletions src/components/form.tokens.json

This file was deleted.

12 changes: 11 additions & 1 deletion src/components/language-selection.tokens.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,17 @@
{
"of": {
"language-selection": {
"gap": {"value": ".2em"}
"gap": {"value": ".2em"},

"in-app": {
"padding-block-end": {"value": "0"},
"padding-block-start": {"value": "0"},

"mobile": {
"padding-block-end": {"value": "0"},
"padding-block-start": {"value": "15px"}
}
}
}
}
}
15 changes: 15 additions & 0 deletions src/components/list.tokens.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"of": {
"list": {
"gap": {"value": "20px"},

"compact": {
"gap": {"value": "8px"}
},

"extra-compact": {
"gap": {"value": "0"}
}
}
}
}

0 comments on commit a9b6a57

Please sign in to comment.