[Grid System] Implenent the initial spacing and sizing token system
Categories
(Fenix :: Design System and Theming, task, P1)
Tracking
(firefox130 fixed)
Tracking | Status | |
---|---|---|
firefox130 | --- | fixed |
People
(Reporter: 007, Assigned: 007)
References
(Blocks 2 open bugs)
Details
(Whiteboard: [fxdroid][group4])
Attachments
(1 file)
As part of this ticket:
- Implement the spacing and sizing token system.
- Add them to the
FirefoxTheme
API. - Create a compose preview which allows the user to toggle between and preview the different window size breakpoints.
Requirements and notes can be found here.
There will be two systems of tokens:
- Spacing
- Sizing
We will support three window size breakpoints to match an Android API (see in the Notes; this is from WindowSizeClass
):
- Small - <600
- Medium - 600-840
- Large - 840+
Spacing tokens will define the whitespace and arrangement between visual elements.
- There will be a scale for each window size breakpoint.
- The scale will be tee-shirt sizes (XXS - XXL), and it will derived from a base value unique to each window size breakpoint.
- Small would hypothetically use 8dp as its base value and Medium would use 16dp.
- The XXS - XXL scale would then be mathematically calculated from these values.
Sizing tokens will define the height and/or width of visual elements with static dimensions.
- One tee-shirt scale will be used for all window sizes (XXXS - XXXL)
Updated•3 months ago
|
Assignee | ||
Comment 1•3 months ago
|
||
Updated•3 months ago
|
Updated•3 months ago
|
Assignee | ||
Updated•3 months ago
|
Comment 2•3 months ago
|
||
The stuff in the patch is based off of:
- This original proposal from Rahul
- How we handle colors
- How desktop handles sizing and spacing
Notes from our first meeting
Notes from our second meeting
Notes from our third meeting
Other inspirations:
Comment 4•3 months ago
|
||
bugherder |
Description
•