Closed Bug 1905449 Opened 3 months ago Closed 3 months ago

[Grid System] Implenent the initial spacing and sizing token system

Categories

(Fenix :: Design System and Theming, task, P1)

All
Android
task

Tracking

(firefox130 fixed)

RESOLVED FIXED
130 Branch
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:

  1. Spacing
  2. 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)

Attachment #9410892 - Attachment description: WIP: Bug 1905449 - Implement the first iteration of the sizing and spacing tokens → Bug 1905449 - Implement the first iteration of the sizing and spacing tokens
Blocks: 1908017
Attachment #9410892 - Attachment description: Bug 1905449 - Implement the first iteration of the sizing and spacing tokens → Bug 1905449 - Implement the first iteration of the size and space tokens
Blocks: 1905450, 1905451

The stuff in the patch is based off of:

Notes from our first meeting
Notes from our second meeting
Notes from our third meeting

Other inspirations:

Pushed by nbond@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/b3727b89d194 Implement the first iteration of the size and space tokens r=android-reviewers,gl,calu
Status: ASSIGNED → RESOLVED
Closed: 3 months ago
Resolution: --- → FIXED
Target Milestone: --- → 130 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: