Car Battery Pro
Day-to-Day OperationsTheme settings

Typography settings

Fonts, sizes, weights, line heights, and colours for every text style - headings, body, buttons, and links - across desktop and mobile.

Typography settings

๐Ÿ‘ค Ops ยท ๐Ÿ›  Dev

The Typography group defines every text style in the theme. Each style is exposed as CSS variables (see snippets/css-variables.liquid) and consumed across sections, blocks, and snippets.

The property set

Most text styles expose the same set of properties, each a separate setting. Headings and body text also have a Mobile variant of every property (a second setting with a _mobile in its ID), applied below the tablet breakpoint.

PropertySetting suffixNotes / shared default
Font family_familyinstrument_sans_n4 (Instrument Sans, weight 400) everywhere.
Font size_sizeIn px. Defaults differ per style - see tables below.
Font weight_weightThe base CSS font-weight.
Font weight - medium_weight_medium500 wherever present.
Font weight - bold_weight_bold700 wherever present.
Line height_line_heightUnitless multiplier.
Letter spacing_letter_spacingBody/button/link only. Default 0 px.
Text transform_text_transformnone | uppercase | lowercase | capitalize.
Font style_font_stylenormal | italic.
Colourcolor_*Heading and body colours; default per style below.

Unless a table says otherwise, every style defaults to text transform none, font style normal, weight-medium 500, and weight-bold 700.

Fonts

SettingIDCSS variableDefault
Headings font familyfont_headings_family--font-headings-familyinstrument_sans_n4
Body font family (per size)font_body_{xl,lg,md,sm,xs}_family--font-body-{size}-familyinstrument_sans_n4
Button font familyfont_button_family--font-button-familyinstrument_sans_n4
Link font familyfont_link_family--font-link-familyinstrument_sans_n4

Headings (H1โ€“H6)

Each level has a desktop and a mobile size (plus weight, line height, transform, style; H1/H3 and all mobile variants also expose medium/bold weights). Colour is shared across breakpoints.

LevelID prefixDesktop sizeMobile sizeWeightLine heightColour
H1font_h1_* / color_h148px32px7001.2#000000
H2font_h2_* / color_h240px28px7001.2#000000
H3font_h3_* / color_h332px24px7001.3#000000
H4font_h4_* / color_h424px20px7001.3#000000
H5font_h5_* / color_h520px18px7001.4#000000
H6font_h6_* / color_h616px14px7001.4#000000
  • CSS variables follow the ID: --font-h1-size, --font-h1-mobile-size, --font-h1-weight, --font-h1-line-height, --color-h1, and so on.
  • Size ranges: H1 16โ€“96, H2 16โ€“80, H3 16โ€“72, H4 14โ€“64, H5 14โ€“56, H6 12โ€“48 (step 1px).

Body text (XLโ€“XS)

Five body scales, each with desktop and mobile sizes. All share weight 400 (medium 500, bold 700), line height 1.6, letter spacing 0, and colour #333333.

ScaleID prefixDesktop sizeMobile sizeCSS variable prefix
Extra largefont_body_xl_* / color_body_xl20px18px--font-body-xl-*
Largefont_body_lg_* / color_body_lg18px16px--font-body-lg-*
Mediumfont_body_md_* / color_body_md16px16px--font-body-md-*
Smallfont_body_sm_* / color_body_sm14px13px--font-body-sm-*
Extra smallfont_body_xs_* / color_body_xs12px12px--font-body-xs-*

Body - Medium is the base body style used most widely (it also has its own mobile font-family setting, font_body_md_mobile_family). Its variable, --font-body-md-family, is referenced throughout component CSS.

Button text

SettingIDCSS variableDefault
Font familyfont_button_family--font-button-familyinstrument_sans_n4
Font sizefont_button_size--font-button-size14px
Font weightfont_button_weight--font-button-weight600
Line heightfont_button_line_height--font-button-line-height1.5
Letter spacingfont_button_letter_spacing--font-button-letter-spacing0px
Text transformfont_button_text_transform--font-button-text-transformuppercase
Font stylefont_button_font_style--font-button-font-stylenormal
Colourcolor_button--color-button#FFFFFF
SettingIDCSS variableDefault
Font familyfont_link_family--font-link-familyinstrument_sans_n4
Font sizefont_link_size--font-link-size16px
Font weightfont_link_weight--font-link-weight400
Line heightfont_link_line_height--font-link-line-height1.6
Letter spacingfont_link_letter_spacing--font-link-letter-spacing0px
Text transformfont_link_text_transform--font-link-text-transformnone
Font stylefont_link_font_style--font-link-font-stylenormal
Colourcolor_link--color-link#0066CC

On this page