Design System
Layout
Rules for responsive, scalable, and accessible design
The layout system establishes a set of parameters that ensure the proportions of element sizes remain constant as they scale. Originally produced for Chainlift, the system enables faster production times and higher fidelity when moving from Figma to Webflow.
Anatomy
Layouts consist of sections. Within sections are containers, which in turn contain the body content.
Each of these components plays a different role in keeping layouts responsive.
Section
Container
Body
Scaling Behavior
How it works
- Designs and mockups assume a 1600px viewport width and a base font size of 16px.
- The <body> tag is given a font size of 1vw
- With this setup, the size and spacing proportions in the design will appear identical on a 1600px viewport in Webflow, where 1vw = 16px.
- Containers are all given a class of "container," and all elements within the container scale accordingly
- The following CSS is applied to ensure content doesn't get too large or too small
Sections
Sections grow and shrink to always match exactly 100vw on both desktop and mobile. They have no padding or margins.
Container
Body
Body width is controlled by the container padding. When padding is lowered, it fills the container completely. All content is housed in the body.
Color
The Brand Palette
Brand colors define the spectrum of hues and tones for use in illustrations, diagrams, and interactive UI elements like buttons and text links. Swatch names indicate their position in the hierarchy.
a balanced spectrum
generation method
Omissions
Environment Palette
Environment colors define the neutral tones used in backgrounds, text, cards, and miscellaneous UI elements like dividers, input fields, and drop shadows.
If a design does not call for both a “light” and “dark” mode, both variants must still be provided for the following swatches for optional use in footers, announcement bars, navigation rails, and other miscellaneous use cases.
Communication
Communication colors are used in UI elements that provide direct feedback to the user, such as confirmation messages, error alerts, and tooltips. Success and Error must always be some hue of green and red, respectively. Warnings may be either orange or yellow.
Neutrals may be any color that’s clearly distinguishable from the other three. Avoid “border” colors like seafoam, burgundy, or lime green.
Typography
The type system used for Chainlift is a modified version of Material Design's system. However, some important changes have been made to keep it responsive.
- Font size and letter spacing (i.e. "tracking") are measured in em units, in lieu of pixels.
- Line heights are unitless
- Sizes are scaled always assuming a base font size of 16px during the design process. The proportions are maintained in production by converting to em units.
- The default scale coefficient is always 1.25 on desktops and 1.2 on tablets and below.
- Base font sizes are hard capped at a 16px maximum and 14px minimum. These limits are established by the global CSS described in Scaling Behavior.
Heading 1
Heading 2
Heading 3
Heading 4
Heading 5
Heading 6
Components
Cards
Duis cursus, mi quis viverra ornare, eros dolor interdum nulla, ut commodo diam libero vitae erat.
Duis cursus, mi quis viverra ornare, eros dolor interdum nulla, ut commodo diam libero vitae erat.
Duis cursus, mi quis viverra ornare, eros dolor interdum nulla, ut commodo diam libero vitae erat.
Duis cursus, mi quis viverra ornare, eros dolor interdum nulla, ut commodo diam libero vitae erat.
Duis cursus, mi quis viverra ornare, eros dolor interdum nulla, ut commodo diam libero vitae erat.
Duis cursus, mi quis viverra ornare, eros dolor interdum nulla, ut commodo diam libero vitae erat.
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Lorem ipsum dolor sit amet, consectetur adipiscing elit.