CMT Sites Documentation

Spacing and Sizing

Last modified with commit 74094e5 on by Martin Jagodic.

The spacing and sizing system defines consistent space and dimensions across all components and layouts. It uses CSS variables that automatically scale from desktop to mobile, ensuring consistency and responsive behavior across all brands.

Soft Scale

Used for ~90% of spacing needs. Values decrease gradually (linearly) from desktop to mobile.

Primary use: Gaps, margins, paddings, and sizing for icons, badges, and small images.

DesktopMobile
128104
11288
9672
8064
7256
6448
4840
4032
3224
2420
2016
1612
1210
108
86
64
42
20

Hard Scale

Values decrease by half for more dramatic scaling. Used for main section DIVs and specific cases requiring sharper reduction.

Primary use: Section-level spacing and containers.

DesktopMobile
12864
11256
9648
8040
7236
6432
4824
4020
3216
2412
2010
168
126
105
84
63
42
21

Variable Scale

Custom scaling for contexts where flex direction changes and spacing needs may vary (increase, decrease, or stay the same).

Primary use: Gaps that transition from horizontal to vertical layouts.

24px variable values:

DesktopVariable Options
2416, 24, 32, 40, 48

16px variable values:

DesktopVariable Options
168, 16, 24

To Zero Scale

Desktop values reduce to zero on mobile to maximize space.

Primary use: Decorative paddings and offsets that can be removed on mobile.

DesktopMobile
1280
1120
960
800
640
480
400
320
240
200
160
120
80
40

From Zero Scale

Zero on desktop, scales up on mobile (inverse of To Zero Scale).

Primary use: Spacing that’s only needed on mobile devices.

DesktopMobile
0128
0112
096
080
064
048
040
032
024
020
016
012
08
04

Site-Specific Variables

Certain values are brand-specific (Collegium, Mondial) for grid and navigation spacing:

PropertyDesktopMobile
12-col13921392
Navi offset76113
Navi offset with announcement strip118150

Site-specific variables: