Files
craft-libs/crates/theme/sizes/compact.json
T
aiongg 9777ba9c83 Rows, notices and gallery story columns derive their sizes from role tokens
A list row with a thumbnail is at least a standard control and the panel padding tall (the old
thumb_row_min), a centred notice reads about 38 body sizes wide, and the stage tokens become the story
stage (size.story), whose least width also sets the gallery's story columns. A gallery card is at
least a story and its padding wide, and its height guesses come from type and control roles.
size.thumb_row goes.
2026-11-12 14:32:43 +00:00

176 lines
3.2 KiB
JSON

{
"schema": "craft-design-sizes",
"schema_version": 1,
"id": "compact",
"name": "Compact",
"base": {
"edge": "flat",
"radius": {
"button": "full",
"control": 3.0,
"panel": 0.0,
"pill": "full",
"surface": 4.0,
"window": 6.0
},
"rows": "divided",
"size": {
"bar": {
"options": 36.0,
"options_narrow": 28.0,
"status": 24.0,
"tab": 26.0,
"title": 32.0
},
"checker": 4.0,
"control": {
"md": 24.0,
"sm": 20.0
},
"dock": {
"column": 340.0
},
"float": {
"height": 240.0,
"width": 192.0
},
"groove": 3.0,
"handle": {
"md": 8.0,
"ring": 18.0,
"sm": 6.0
},
"hit": {
"slop": 3.0,
"target": 8.0
},
"icon": {
"glyph_md": 12.0,
"glyph_sm": 10.0,
"lg": 20.0,
"md": 16.0,
"sm": 12.0
},
"length": {
"field": 192.0,
"number": 72.0,
"short": 96.0,
"track": 128.0
},
"pane": {
"least": 40.0
},
"panel_header": 28.0,
"plot": {
"height": 144.0,
"width": 240.0
},
"pointer_tip": {
"x": 20.0,
"y": 22.0
},
"popup_min": 192.0,
"rail": {
"button": 30.0,
"width": 40.0
},
"ramp": {
"bar": 10.0,
"groove": 5.0
},
"ruler": {
"tick": {
"mid": 3.0
}
},
"scroll_fade": 20.0,
"story": {
"height": 360.0,
"width_max": 720.0,
"width_min": 240.0
},
"thumb": {
"card": 128.0,
"lg": 48.0,
"md": 24.0,
"sm": 18.0
},
"window": {
"cascade": 32.0
}
},
"space": {
"gap": {
"card_column": 12.0,
"card_row": 18.0,
"inline": 4.0,
"item": 8.0,
"row": 4.0,
"section": 12.0,
"stack": 6.0,
"tight": 2.0
},
"inset": {
"screen": 16.0
},
"pad": {
"chip": 4.0,
"control": 6.0,
"regular": 8.0,
"roomy": 16.0,
"segment": 10.0
}
},
"stroke": {
"dash": 4.0,
"dash_gap": 3.0,
"heavy": 3.0,
"medium": 1.5,
"thick": 2.0,
"thin": 1.0
},
"typography": {
"body": {
"font": "ui",
"line_height": 16.0,
"size": 12.0
},
"body_large": {
"font": "ui",
"line_height": 20.0,
"size": 15.0
},
"body_strong": {
"font": "ui_semibold",
"line_height": 16.0,
"size": 12.0
},
"caption": {
"font": "ui",
"line_height": 14.0,
"size": 10.5
},
"heading": {
"font": "ui_semibold",
"line_height": 20.0,
"size": 15.0
},
"label": {
"font": "ui",
"line_height": 16.0,
"size": 11.5
},
"mono": {
"font": "mono",
"line_height": 16.0,
"size": 11.5
},
"title": {
"font": "ui_semibold",
"line_height": 18.0,
"size": 13.0
}
}
}
}