Skip to content

Commit

Permalink
feat(data): finalising first draft of all sizes needed
Browse files Browse the repository at this point in the history
  • Loading branch information
ljemmo committed Jan 17, 2024
1 parent 7eab9d6 commit 7258d2e
Show file tree
Hide file tree
Showing 9 changed files with 122 additions and 23 deletions.
7 changes: 6 additions & 1 deletion data/tokens/Components/badge.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,15 @@
"type": "sizing",
"description": "Micro dot badge size"
},
"L": {
"M": {
"value": "{global.size.component.XS}",
"type": "sizing",
"description": "standard badge size"
},
"L": {
"value": "{global.size.component.S} + {origin.dimension.50}",
"type": "sizing",
"description": "Standard badge max-width"
}
}
}
Expand Down
9 changes: 7 additions & 2 deletions data/tokens/Components/button.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,14 @@
"description": "min-height on XL Buttons"
},
"XXL": {
"value": "{global.size.component.XL} + {origin.dimension.100}",
"value": "{global.size.component.S} * 2",
"type": "sizing",
"description": "color picker items on hover"
"description": "color picker items on hover, Small file preview thumbnails"
},
"XXXL": {
"value": "{global.size.component.M} + {global.size.component.S}",
"type": "sizing",
"description": "Large file preview thumbnails"
}
},
"space": {
Expand Down
33 changes: 33 additions & 0 deletions data/tokens/Components/container.json
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,39 @@
"type": "sizing",
"description": "min and max widths for responsive tile items"
}
},
"drawer": {
"closed": {
"M": {
"value": "{global.size.component.M}",
"type": "sizing",
"description": "width for the closed drawer state"
}
}
},
"footer": {
"M": {
"value": "{global.size.component.XL}",
"type": "sizing",
"description": "card and tile footers"
},
"L": {
"value": "{global.size.component.M} + {global.size.component.S}",
"type": "sizing",
"description": "Dialog, sidebar and drawer footer max-height"
}
},
"tooltip": {
"width": {
"value": "{global.size.decorative.XXL}",
"type": "sizing",
"description": "tooltip arrow width"
},
"height": {
"value": "{global.size.decorative.M}",
"type": "sizing",
"description": "tooltip arrow height"
}
}
}
}
Expand Down
7 changes: 7 additions & 0 deletions data/tokens/Components/feedback.json
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,13 @@
"value": "{global.size.component.S}",
"type": "sizing"
}
},
"message": {
"M": {
"value": "{global.size.component.M}",
"type": "sizing",
"description": "message and toast icon container width"
}
}
}
}
Expand Down
7 changes: 7 additions & 0 deletions data/tokens/Components/focus.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,13 @@
"value": "{base.color.interactive.focus.default}",
"type": "color"
}
},
"size": {
"underline": {
"value": "{global.size.decorative.XS}",
"type": "sizing",
"description": "focus black underline on links and skiplink"
}
}
}
}
5 changes: 5 additions & 0 deletions data/tokens/Components/form.json
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,11 @@
"value": "{global.size.component.M}",
"type": "sizing",
"description": "day buttons"
},
"underline": {
"value": "{global.size.decorative.XS}",
"type": "sizing",
"description": "day underline"
}
},
"validation": {
Expand Down
8 changes: 8 additions & 0 deletions data/tokens/Components/link.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,14 @@
}
}
}
},
"size": {
"skiplink": {
"M": {
"value": "{global.size.component.M}",
"type": "sizing"
}
}
}
}
}
42 changes: 22 additions & 20 deletions data/tokens/Components/nav.json
Original file line number Diff line number Diff line change
Expand Up @@ -120,25 +120,6 @@
},
"size": {
"horizontal": {
"container": {
"value": "{global.size.component.M}",
"type": "sizing",
"description": "global nav and horizontal nav container height"
}
},
"vertical": {
"container": {
"value": "{global.size.component.XL} + {origin.dimension.550}",
"type": "sizing",
"description": "Left nav parent container"
},
"parentItem": {
"value": "{global.size.component.L}",
"type": "sizing",
"description": "Left nav collapsed item min-height"
}
},
"menuItem": {
"S": {
"value": "{global.size.component.S}",
"type": "sizing",
Expand All @@ -147,7 +128,28 @@
"M": {
"value": "{global.size.component.M}",
"type": "sizing",
"description": "Left nav child menu item min-height"
"description": "global nav and horizontal nav container height"
}
},
"vertical": {
"inside": {
"M": {
"value": "{global.size.component.M}",
"type": "sizing",
"description": "Left nav child menu item min-height"
},
"L": {
"value": "{global.size.component.L}",
"type": "sizing",
"description": "Left nav collapsed item min-height"
}
},
"outside": {
"M": {
"value": "{global.size.component.XL} + {origin.dimension.550}",
"type": "sizing",
"description": "Left nav parent container"
}
}
}
}
Expand Down
27 changes: 27 additions & 0 deletions data/tokens/Components/progress.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,33 @@
"type": "sizing",
"description": "XL spinners"
}
},
"skeleton": {
"XS": {
"value": "{origin.dimension.200}",
"type": "sizing",
"description": "Skeleton paragraph and H5"
},
"S": {
"value": "{origin.dimension.200} + {origin.dimension.25}",
"type": "sizing",
"description": "H3 Skeletons"
},
"M": {
"value": "{origin.dimension.250}",
"type": "sizing",
"description": "H3 Skeletons"
},
"L": {
"value": "{origin.dimension.250} + {origin.dimension.25}",
"type": "sizing",
"description": "H2 Skeletons"
},
"XL": {
"value": "{origin.dimension.300}",
"type": "sizing",
"description": "H1 Skeletons"
}
}
},
"color": {
Expand Down

0 comments on commit 7258d2e

Please sign in to comment.