Type Styles
We use fluid scaling for typography, meaning we don’t need to specify exact breakpoints. Instead, we define sizes for desktop & mobile and use relative units for the other values to allow the styles to scale seamlessly without much work. With this in mind, it’s important to ensure line-height and letter-spacing are set in percentage (%) values, not pixels.
Heading 1
Heading 2
Heading 3
Heading 4
Heading 5
Heading 6
Body L
Body
Caption
Utility
Pullquote
Fluid Utility
We use fluid scaling for utility classes, meaning we don’t need to specify exact breakpoints. Instead, we define sizes for desktop & mobile and use relative units for the other values to allow the styles to scale seamlessly without much work.
Following are the utilities are available available:
fluid-text-[mobile|desktop]fluid-line-height-[mobile|desktop]fluid-gap-[mobile|desktop]fluid-pl-[mobile|desktop]fluid-pr-[mobile|desktop]fluid-pb-[mobile|desktop]fluid-pt-[mobile|desktop]fluid-ml-[mobile|desktop]fluid-mr-[mobile|desktop]fluid-mb-[mobile|desktop]fluid-mt-[mobile|desktop]fluid-inset-[mobile|desktop]fluid-top-[mobile|desktop]fluid-right-[mobile|desktop]fluid-bottom-[mobile|desktop]fluid-left-[mobile|desktop]fluid-size-[mobile|desktop]
Note: Replace mobile with Mobile Pixel Size Base and desktop with Desktop Size base
Examples:
Fluid, 12|16
Fluid, 30|70
fluid-size-[200|400]
Buttons
Spacing
Border Radius
Colors
Settings Colours
*-p-darkest
Dark *-p-dark
Neutral*-p-neutral
Light*-p-light
Lightest*-p-lightest
Foreground*-t-foreground
Foreground Secondary*-t-foreground-secondary
Background*-t-background
Background Secondary*-t-background-secondary
Brand Primary*-t-brand-primary
Brand Secondary*-t-brand-secondary
Brand Primary Contrast*-t-brand-primary
Brand Secondary Contrast*-t-brand-secondary-contrast
Brand Colours
*-t-brand-foreground
Brand Foreground Secondary*-t-brand-foreground-secondary
Brand Foreground Tertiary*-t-brand-foreground-tertiary
Brand Foreground Quaternary*-t-brand-foreground-quaternary
Brand Background*-t-brand-background
Brand Background Secondary*-t-brand-background-secondary
Brand Background Tertiary*-t-brand-background-tertiary
Brand Background Quaternary*-t-brand-background-quaternary
Brand Accent 01*-t-brand-accent-01
Brand Accent 02*-t-brand-accent-02
Brand Accent 03*-t-brand-accent-03
Utility Colours
Form Controls
Some help text here
Provide a message
Select a country
This is a custom Select field
This is a custom Select field
Swiper Carousels
Icons
Dialogs / Modals
Inner modal
Dynamic Product Card
Section Injection with Live Params
Enter something to search for
Tabs component
Typically, this component would be rendered dynamically as part of section blocks, or something similiar, and the attributes could all be controlled dynamically. For the sake of the styleguide, I've hardcoded three tabs.
Featured Content Cards
Card Title
Card Title
Card Title
Card Title
Card Title
Card Title
Card Title