Tokens
Tokens are the CSS custom properties that hold the design's values. Use them in your own CSS and style attributes instead of fixed values, so your styles follow the theme and the Appearance page: color: var(--fz-color-text-muted). Sizes are given at the default settings; they are in rem, so they grow with the browser's font size.
- Colour
- Type
- Spacing and sizes
- Shape, depth and motion
- Tuning properties
- Set by the classes
- Component sizes
- Component fonts, colours and corners
Colour
The theme's palette, including any colours set on the Appearance page.
| Token | Value |
|---|---|
--fz-color-page | The page background. |
--fz-color-surface | Cards, tables and other raised areas. |
--fz-color-surface-2 | A slightly darker surface, for headers and hover. |
--fz-color-surface-3 | A darker surface still, for inset areas and stripes. |
--fz-color-overlay | The dimming behind a dialog or the drawer. |
--fz-color-border | Borders and dividers. |
--fz-color-border-strong | The borders of controls. |
--fz-color-focus | The border of a focused control. |
--fz-color-text | Body text. |
--fz-color-text-muted | Secondary text. |
--fz-color-text-subtle | Tertiary text, such as placeholders. |
--fz-color-accent | The main colour: primary buttons, links, selection. |
--fz-color-accent-hover | The accent, on hover. |
--fz-color-accent-soft | A pale tint of the accent, for backgrounds. |
--fz-color-accent-soft-2 | A slightly stronger tint of the accent. |
--fz-color-accent-text | Accent-coloured text, such as links. |
--fz-color-on-accent | Text on an accent background. |
--fz-color-success | Success. With --fz-color-success-soft, a pale tint. |
--fz-color-success-soft | A pale tint of success. |
--fz-color-warning | Warning. |
--fz-color-warning-soft | A pale tint of warning. |
--fz-color-danger | Danger, errors. |
--fz-color-danger-soft | A pale tint of danger. |
--fz-color-info | Information. |
--fz-color-info-soft | A pale tint of information. |
Type
Fonts, text sizes (each with a line height), weights and line heights. The sizes are Tailwind's, plus xs-plus and sm-plus.
| Token | Value |
|---|---|
--fz-font-sans | The main font. |
--fz-font-heading | The secondary font, for headings and labels. The main font unless the Appearance page sets another. |
--fz-font-mono | A monospaced font. |
--fz-text-xs | 0.75rem (12px) |
--fz-text-xs-plus | 0.8125rem (13px). Formulize's own step; Lyris's content text. |
--fz-text-sm | 0.875rem (14px) |
--fz-text-sm-plus | 0.9375rem (15px). Formulize's own step; labels and field text at the Comfortable size. |
--fz-text-base | 1rem (16px) |
--fz-text-lg | 1.125rem (18px) |
--fz-text-xl | 1.25rem (20px) |
--fz-text-2xl | 1.5rem (24px) |
--fz-text-3xl | 1.875rem (30px) |
--fz-text-{xs, | The line height that goes with each size, as in Tailwind: 1rem for xs, 1.25rem for xs-plus and sm, 1.375rem for sm-plus, 1.5rem for base, and so on. |
--fz-font-weight-normal | 400 |
--fz-font-weight-medium | 500 |
--fz-font-weight-semibold | 600 |
--fz-font-weight-bold | 700 |
--fz-leading-tight | 1.25 |
--fz-leading-snug | 1.375 |
--fz-leading-normal | 1.5 |
--fz-tracking-wide | 0.025em: slightly wider letter spacing. |
--fz-tracking-wider | 0.05em: wider letter spacing, for small capitals. |
Spacing and sizes
One step that every space and size is a multiple of, as in Tailwind: calc(var(--fz-spacing) * 4) is 1rem, 16px. It is fixed, like the text sizes: the Appearance page's looks change the component sizes, not the step.
| Token | Value |
|---|---|
--fz-spacing | 0.25rem (4px). |
--fz-container-2xl | 42rem, the narrow container. |
--fz-container-6xl | 72rem, the container. |
--fz-container-7xl | 80rem, the wide container. |
--fz-safe-area-{top, | The parts of a phone's screen kept for its notch or camera and for the bar at the bottom. 0 everywhere else. A theme pads its header, its sides and its bottom edge by these, so nothing is hidden under them when the site is installed as an app. |
Shape, depth and motion
Corner radii, shadows, the focus ring, and the timing of transitions.
| Token | Value |
|---|---|
--fz-radius-sm | 0.25rem (4px) |
--fz-radius-md | 0.375rem (6px) |
--fz-radius-lg | 0.5rem (8px) |
--fz-radius-xl | 0.75rem (12px) |
--fz-radius-full | Fully round. |
--fz-shadow-xs | A hairline shadow. |
--fz-shadow-sm | Resting cards. |
--fz-shadow-md | Hovered cards. |
--fz-shadow-lg | Floating panels. |
--fz-focus-ring | The keyboard focus ring, as a box-shadow. |
--fz-ease-out | The easing curve for transitions. |
--fz-duration-fast | 120ms, for small changes such as hover. |
--fz-duration | 200ms. |
Tuning properties
Custom properties you can set on an element, in a style attribute, to adjust a layout class or component.
| Token | Value |
|---|---|
--fz-auto-grid-min | On fz-auto-grid or fz-grid-list: the narrowest a column can be. 10rem. |
--fz-sidebar-width | On fz-with-sidebar: the width of the side. 16rem. |
--fz-switcher-threshold | On fz-switcher: the width below which its children stack. 32rem. |
--fz-field-label-width | On fz-field--horizontal: the width of the label. 12rem. |
--fz-tone | On fz-badge, fz-callout, fz-bar-list__row, fz-progress or fz-matrix__cell: the colour, for a tone of your own when none of the tone modifiers is the right one, such as the steps of a scale. Set it in a style attribute, or in a class of your own. Set --fz-tone-soft with it on a badge or a callout. |
--fz-tone-soft | On fz-badge or fz-callout: the pale tint that goes with --fz-tone. |
--fz-code-block-max-height | On fz-code-block: the tallest it can be, after which it scrolls. No limit unless it is set. |
--fz-depth | On fz-tree__cell: how deep its row is in the tree, 0 for a row at the top. Every row needs it. |
--fz-level | On fz-tree__line: the depth of the column the line is drawn in. See Tree for which level each line has. |
--fz-tree-indent | On fz-tree: how far each level is indented. 6 steps (24px). |
Set by the classes
Custom properties the classes set for their own use. Don't set these yourself: use the classes that set them.
| Token | Value |
|---|---|
--fz-gap | Set by the layout classes and the fz-gap-* utilities. |
--fz-gap-x | Set by the fz-gap-x-* utilities. |
--fz-gap-y | Set by the fz-gap-y-* utilities. |
--fz-auto-grid-max | Set by the --max-N modifiers of fz-auto-grid and fz-grid-list. |
Component sizes
The sizes of the parts of the interface: titles, labels and field text, the heights of fields, buttons and list rows, the space in forms, cards and the drawer, the size and spacing of written content (fz-content and fz-prose), and the side menu's (--fz-sidemenu-*, for a theme's menu of links down the side of the page). The components use them. The Appearance page's looks (Default, Compact, Comfortable, and any made in its advanced editor) change them. Steps are spacing steps, 4px each at the default settings.
| Token | Value |
|---|---|
--fz-title-text | The size of form card, drawer and list titles. Standard xl (20px), Compact lg (18px), Comfortable xl (20px). Can be base (16px), lg (18px), xl (20px), 2xl (24px). |
--fz-title-text-narrow | The size of titles at 768px wide and below. Standard base (16px), Compact base (16px), Comfortable lg (18px). Can be sm (14px), base (16px), lg (18px), xl (20px). |
--fz-title-weight | The weight of titles. Standard 600. Can be 500, 600, 700. |
--fz-title-leading | The line height of titles that wrap. Standard 1.25. Can be 1.25, 1.3, 1.375, 1.45. |
--fz-label-text | The size of form field labels. Standard sm (14px), Compact xs-plus (13px), Comfortable sm-plus (15px). Can be xs (12px), xs-plus (13px), sm (14px), sm-plus (15px), base (16px). |
--fz-label-weight | The weight of form field labels. Standard 600, Compact 600, Comfortable 500. Can be 400, 500, 600, 700. |
--fz-field-text | The size of the text in form fields, and of read-only values. Standard sm (14px), Compact sm (14px), Comfortable sm-plus (15px). Can be xs-plus (13px), sm (14px), sm-plus (15px), base (16px). |
--fz-help-text | The size of the help text under form fields, and of character counters. Standard xs-plus (13px), Compact xs (12px), Comfortable xs-plus (13px). Can be xs (12px), xs-plus (13px), sm (14px). |
--fz-help-leading | The line height of help text. Standard 1.5, Compact 1.45, Comfortable 1.5. Can be 1.375, 1.45, 1.5, 1.625. |
--fz-help-max-width | The longest a line of help text can be. Standard 65ch, Compact 70ch, Comfortable 62ch. Can be 45ch to 90ch. |
--fz-control-text | The size of the text on buttons, menu items and tabs. Standard xs-plus (13px), Compact xs-plus (13px), Comfortable sm (14px). Can be xs (12px), xs-plus (13px), sm (14px), sm-plus (15px). |
--fz-table-text | The size of the text in list and table cells. Standard xs-plus (13px), Compact xs-plus (13px), Comfortable sm (14px). Can be xs (12px), xs-plus (13px), sm (14px), sm-plus (15px). |
--fz-table-header-text | The size of the column headings in lists and tables. Standard xs (12px), Compact xs (12px), Comfortable xs-plus (13px). Can be xs (12px), xs-plus (13px), sm (14px). |
--fz-field-height | The height of text inputs and dropdowns. Text areas start at 2.4 times this. Standard 9.5 steps (38px), Compact 8.5 steps (34px), Comfortable 10.5 steps (42px). Can be 7 steps (28px) to 14 steps (56px). |
--fz-field-padding-x | The space between the edge of a form field and its text. Standard 3 steps (12px), Compact 2.5 steps (10px), Comfortable 3.5 steps (14px). Can be 1.5 steps (6px) to 6 steps (24px). |
--fz-field-gap | The space between one form field and the next, in forms and in the drawer. Standard 5.5 steps (22px), Compact 3.5 steps (14px), Comfortable 6.5 steps (26px). Can be 2 steps (8px) to 12 steps (48px). |
--fz-label-gap | The space between a label and its field, when the label is above the field. Standard 1.5 steps (6px), Compact 1 step (4px), Comfortable 2 steps (8px). Can be 0.5 steps (2px) to 4 steps (16px). |
--fz-help-gap | The space between a field and its help text. Standard 1.5 steps (6px), Compact 1 step (4px), Comfortable 2 steps (8px). Can be 0 steps (0px) to 4 steps (16px). |
--fz-option-gap | The space between the radio buttons or checkboxes of one field, when each is on a line of its own. Standard 0.5 steps (2px), Compact 0 steps (0px), Comfortable 1 step (4px). Can be 0 steps (0px) to 4 steps (16px). |
--fz-control-height | The height of buttons, including the save and submit buttons on forms. Standard 8 steps (32px), Compact 7 steps (28px), Comfortable 9 steps (36px). Can be 6 steps (24px) to 12 steps (48px). |
--fz-control-padding-x | The space between the edge of a button and its label. Standard 3 steps (12px), Compact 2.5 steps (10px), Comfortable 3.5 steps (14px). Can be 1.5 steps (6px) to 6 steps (24px). |
--fz-menu-item-height | The height of each item in a dropdown menu. Standard 7.5 steps (30px), Compact 7 steps (28px), Comfortable 8.5 steps (34px). Can be 6 steps (24px) to 12 steps (48px). |
--fz-tab-padding-y | The space above and below the label of a tab. Standard 1 step (4px), Compact 0.5 steps (2px), Comfortable 1.5 steps (6px). Can be 0 steps (0px) to 3 steps (12px). |
--fz-tab-padding-x | The space either side of the label of a tab. Standard 3 steps (12px), Compact 2.5 steps (10px), Comfortable 3.5 steps (14px). Can be 1.5 steps (6px) to 6 steps (24px). |
--fz-row-height | The height of rows in lists and tables. Rows grow to fit text that wraps. Standard 10 steps (40px), Compact 8 steps (32px), Comfortable 13 steps (52px). Can be 6 steps (24px) to 16 steps (64px). |
--fz-cell-padding-x | The space either side of the content of a list or table cell. Standard 3 steps (12px), Compact 2 steps (8px), Comfortable 4 steps (16px). Can be 1 step (4px) to 6 steps (24px). |
--fz-table-header-height | The height of the row of column headings. Standard 9 steps (36px), Compact 8 steps (32px), Comfortable 10 steps (40px). Can be 6 steps (24px) to 14 steps (56px). |
--fz-toolbar-height | The height of a list's title bar and selection bar. Standard 14 steps (56px), Compact 13 steps (52px), Comfortable 16 steps (64px). Can be 10 steps (40px) to 20 steps (80px). |
--fz-toolbar-padding-x | The space either side of a list's title bar, selection bar and footer, and of a form's action bar. Standard 5 steps (20px), Compact 4 steps (16px), Comfortable 6 steps (24px). Can be 2 steps (8px) to 10 steps (40px). |
--fz-card-padding | The space inside a card, and above and below a form card's header. Standard 4 steps (16px), Compact 3 steps (12px), Comfortable 5 steps (20px). Can be 2 steps (8px) to 10 steps (40px). |
--fz-card-gap | The space between the things in a card. Standard 3 steps (12px), Compact 2 steps (8px), Comfortable 4 steps (16px). Can be 1 step (4px) to 8 steps (32px). |
--fz-form-padding | The space inside a form card, and either side of its header. Standard 6 steps (24px), Compact 4 steps (16px), Comfortable 8 steps (32px). Can be 2 steps (8px) to 12 steps (48px). |
--fz-drawer-padding-x | The space either side of the drawer's content. Standard 5 steps (20px), Compact 4 steps (16px), Comfortable 6 steps (24px). Can be 2 steps (8px) to 10 steps (40px). |
--fz-drawer-padding-y | The space above and below the drawer's header and footer. Standard 4 steps (16px), Compact 3 steps (12px), Comfortable 5 steps (20px). Can be 2 steps (8px) to 8 steps (32px). |
--fz-page-padding | The space around the main content of the page: around every screen, whatever its type, and around simple pages such as the login page. Standard 5 steps (20px), Compact 4 steps (16px), Comfortable 6 steps (24px). Can be 2 steps (8px) to 12 steps (48px). |
--fz-topbar-height | The height of the bar across the top of every page. The logo in it grows and shrinks with it. Standard 12 steps (48px). Can be 10 steps (40px) to 30 steps (120px). |
--fz-paragraph-text | The size of running text in a page's content: paragraphs, lists, and anything else without a size of its own. Standard sm (14px). Can be xs-plus (13px), sm (14px), sm-plus (15px), base (16px), lg (18px). |
--fz-paragraph-leading | The space between the lines of running text, as a multiple of its size. Standard 1.5. Can be 1.375, 1.45, 1.5, 1.625, 1.75. |
--fz-paragraph-gap | The space between paragraphs, lists and block quotes that follow one another. Standard 4 steps (16px). Can be 0 steps (0px) to 8 steps (32px). |
--fz-heading-leading | The space between the lines of a heading that wraps, at every level. Standard 1.25. Can be 1.25, 1.3, 1.375, 1.45, 1.5. |
--fz-heading-space-above | The space above a heading, at every level, unless it is the first thing in what it's in. Standard 8 steps (32px). Can be 0 steps (0px) to 16 steps (64px). |
--fz-heading-space-below | The space between a heading and what follows it, at every level. Standard 4 steps (16px). Can be 0 steps (0px) to 8 steps (32px). |
--fz-h1-text | The size of level 1 headings. Standard 2xl (24px). Can be sm (14px), sm-plus (15px), base (16px), lg (18px), xl (20px), 2xl (24px), 3xl (30px). |
--fz-h1-weight | The weight of level 1 headings. Standard 600. Can be 400, 500, 600, 700. |
--fz-h2-text | The size of level 2 headings. Standard xl (20px). Can be sm (14px), sm-plus (15px), base (16px), lg (18px), xl (20px), 2xl (24px), 3xl (30px). |
--fz-h2-weight | The weight of level 2 headings. Standard 600. Can be 400, 500, 600, 700. |
--fz-h3-text | The size of level 3 headings. Standard lg (18px). Can be sm (14px), sm-plus (15px), base (16px), lg (18px), xl (20px), 2xl (24px), 3xl (30px). |
--fz-h3-weight | The weight of level 3 headings. Standard 600. Can be 400, 500, 600, 700. |
--fz-h4-text | The size of level 4 headings. Standard base (16px). Can be sm (14px), sm-plus (15px), base (16px), lg (18px), xl (20px), 2xl (24px), 3xl (30px). |
--fz-h4-weight | The weight of level 4 headings. Standard 600. Can be 400, 500, 600, 700. |
--fz-h5-text | The size of level 5 headings. Standard base (16px). Can be sm (14px), sm-plus (15px), base (16px), lg (18px), xl (20px), 2xl (24px), 3xl (30px). |
--fz-h5-weight | The weight of level 5 headings. Standard 600. Can be 400, 500, 600, 700. |
--fz-h6-text | The size of level 6 headings. Standard base (16px). Can be sm (14px), sm-plus (15px), base (16px), lg (18px), xl (20px), 2xl (24px), 3xl (30px). |
--fz-h6-weight | The weight of level 6 headings. Standard 600. Can be 400, 500, 600, 700. |
--fz-list-indent | How far a list's items are from the edge, which leaves room for their bullets or numbers. Standard 6 steps (24px). Can be 3 steps (12px) to 12 steps (48px). |
--fz-list-gap | The space between a list's items. Standard 1 step (4px). Can be 0 steps (0px) to 4 steps (16px). |
--fz-quote-indent | The space between the line and the quote's text. Standard 4 steps (16px). Can be 0 steps (0px) to 8 steps (32px). |
--fz-rule-space | The space above and below a separator line. Standard 4 steps (16px). Can be 0 steps (0px) to 12 steps (48px). |
--fz-sidemenu-width | How wide the side menu is when it is open. Standard 55 steps (220px). Can be 40 steps (160px) to 80 steps (320px). |
--fz-sidemenu-padding-x | The space between the side menu's edges and its links. Standard 2 steps (8px). Can be 0 steps (0px) to 6 steps (24px). |
--fz-sidemenu-padding-y | The space above the first link and below the last. Standard 4 steps (16px). Can be 0 steps (0px) to 8 steps (32px). |
--fz-sidemenu-text | The size of the side menu's links and group names. Standard xs-plus (13px). Can be xs (12px), xs-plus (13px), sm (14px), sm-plus (15px), base (16px). |
--fz-sidemenu-weight | The weight of the side menu's links and group names. Standard 500. Can be 400, 500, 600, 700. |
--fz-sidemenu-item-padding-y | The space above and below each link's text, which sets how tall the links are. Standard 1.5 steps (6px). Can be 0.5 steps (2px) to 4 steps (16px). |
--fz-sidemenu-item-gap | The space between one link and the next, and between the links in a group, without making the links bigger. 0 leaves a hairline between them. Standard 0 steps (0px). Can be 0 steps (0px) to 6 steps (24px). |
--fz-sidemenu-item-padding-x | The space before and after each link's text. Standard 2 steps (8px). Can be 0 steps (0px) to 5 steps (20px). |
--fz-sidemenu-sub-text | The size of the links in a group. Standard xs (12px). Can be xs (12px), xs-plus (13px), sm (14px), sm-plus (15px), base (16px). |
--fz-sidemenu-sub-indent | How far a group's links are indented under the group's name. Standard 3 steps (12px). Can be 0 steps (0px) to 8 steps (32px). |
--fz-sidemenu-active-weight | The weight of the link to the page you're on, and of the name of the group it is in. Standard 600. Can be 400, 500, 600, 700. |
- Use them in your own CSS so it matches the components and follows the site's look:
gap: var(--fz-field-gap),height: var(--fz-control-height). - To change a size for one part of a page, set the token on its container, in a style attribute. Everything inside uses that size; the rest of the page keeps the site's.
<div class="fz-auto-grid fz-auto-grid--max-2">
<table class="fz-table">
<thead><tr><th>Name</th><th>Grade</th></tr></thead>
<tbody><tr><td>Ada</td><td>7</td></tr><tr><td>Grace</td><td>8</td></tr></tbody>
</table>
<table class="fz-table" style="--fz-row-height: calc(var(--fz-spacing) * 8)">
<thead><tr><th>Name</th><th>Grade</th></tr></thead>
<tbody><tr><td>Ada</td><td>7</td></tr><tr><td>Grace</td><td>8</td></tr></tbody>
</table>
</div>Component fonts, colours and corners
Which font each kind of text is set in, the colours of the parts of the interface, and their corners; and for written content, its link underlines, list markers and the thickness of its lines; and the side menu's fonts, colours and corners. The components use them. Each follows one of the look's branding settings on the Appearance page (the main or secondary font, one of the colours) until the Appearance page's advanced editor gives that part its own.
| Token | Value |
|---|---|
--fz-title-font | The font of form card, list and drawer titles. Default var(--fz-font-heading). Can be the main font or the secondary font. |
--fz-label-font | The font of field labels. Default var(--fz-font-heading). Can be the main font or the secondary font. |
--fz-field-font | The font of what is typed in fields, read-only values and choice options. Default var(--fz-font-sans). Can be the main font or the secondary font. |
--fz-help-font | The font of help text under fields. Default var(--fz-font-sans). Can be the main font or the secondary font. |
--fz-control-font | The font of buttons, page tabs, menus and toolbars. Default var(--fz-font-sans). Can be the main font or the secondary font. |
--fz-table-font | The font of the text in list and table rows. Default var(--fz-font-sans). Can be the main font or the secondary font. |
--fz-table-header-font | The font of column headings. Default var(--fz-font-sans). Can be the main font or the secondary font. |
--fz-title-color | The colour of titles. Default var(--fz-color-text). Can be any of the site's colours, or a colour of its own. |
--fz-label-color | The colour of field labels. Default var(--fz-color-text). Can be any of the site's colours, or a colour of its own. |
--fz-required-color | The colour of the * after a required field's label. Default var(--fz-color-danger). Can be any of the site's colours, or a colour of its own. |
--fz-field-color | The colour of what is typed in fields, and of choice options. Default var(--fz-color-text). Can be any of the site's colours, or a colour of its own. |
--fz-value-color | The colour of read-only values. Default var(--fz-color-text). Can be any of the site's colours, or a colour of its own. |
--fz-help-color | The colour of help text. Default var(--fz-color-text-muted). Can be any of the site's colours, or a colour of its own. |
--fz-field-bg | The background of text boxes, dropdowns and text areas. Default var(--fz-color-surface). Can be any of the site's colours, or a colour of its own. |
--fz-field-border | The border of text boxes, dropdowns and text areas. Default var(--fz-color-border-strong). Can be any of the site's colours, or a colour of its own. |
--fz-option-accent | The colour of a chosen radio button or checkbox. Default var(--fz-color-accent). Can be any of the site's colours, or a colour of its own. |
--fz-form-bg | The background of form cards. Default var(--fz-color-surface). Can be any of the site's colours, or a colour of its own. |
--fz-form-border | The border of form cards, and the line under their titles. Default var(--fz-color-border). Can be any of the site's colours, or a colour of its own. |
--fz-button-text | The text of buttons, other than the main one. Default var(--fz-color-text). Can be any of the site's colours, or a colour of its own. |
--fz-button-bg | The background of buttons, other than the main one. Default var(--fz-color-surface). Can be any of the site's colours, or a colour of its own. |
--fz-button-border | The border of buttons, other than the main one. Default var(--fz-color-border-strong). Can be any of the site's colours, or a colour of its own. |
--fz-button-primary-bg | The background of the main button, such as Save or Add. Its hover colour is a darker shade of it. Default var(--fz-color-accent). Can be any of the site's colours, or a colour of its own. |
--fz-button-primary-hover | Follows --fz-button-primary-bg: color-mix(in srgb, its value 85%, #000) when it is set. Default var(--fz-color-accent-hover). |
--fz-button-primary-text | The text of the main button. Default var(--fz-color-on-accent). Can be any of the site's colours, or a colour of its own. |
--fz-tab-text | The text of the tabs that aren't selected. Default var(--fz-color-text-muted). Can be any of the site's colours, or a colour of its own. |
--fz-tab-bg | The background of the tabs that aren't selected. Default var(--fz-color-surface). Can be any of the site's colours, or a colour of its own. |
--fz-tab-border | The border of the tabs that aren't selected. Default var(--fz-color-border). Can be any of the site's colours, or a colour of its own. |
--fz-tab-active-bg | The background of the tab for the page being shown. Default var(--fz-color-accent). Can be any of the site's colours, or a colour of its own. |
--fz-tab-active-text | The text of the tab for the page being shown. Default var(--fz-color-on-accent). Can be any of the site's colours, or a colour of its own. |
--fz-menu-text | The text of menu items. Default var(--fz-color-text). Can be any of the site's colours, or a colour of its own. |
--fz-menu-bg | The background of dropdown menus. Default var(--fz-color-surface). Can be any of the site's colours, or a colour of its own. |
--fz-toolbar-bg | The background of a list's title bar and footer, and of a form's action bar. Default var(--fz-color-surface). Can be any of the site's colours, or a colour of its own. |
--fz-header-text | The text of column headings. Default var(--fz-color-text-muted). Can be any of the site's colours, or a colour of its own. |
--fz-header-bg | The background of column headings. Default var(--fz-color-surface-2). Can be any of the site's colours, or a colour of its own. |
--fz-header-border | The line under the column headings. Default var(--fz-color-border-strong). Can be any of the site's colours, or a colour of its own. |
--fz-row-text | The text in list and table rows. Default var(--fz-color-text). Can be any of the site's colours, or a colour of its own. |
--fz-row-bg | The background of list and table rows. Default var(--fz-color-surface). Can be any of the site's colours, or a colour of its own. |
--fz-row-hover | The background of the row the pointer is over. Default var(--fz-color-surface-2). Can be any of the site's colours, or a colour of its own. |
--fz-row-border | The line between rows. Default var(--fz-color-border). Can be any of the site's colours, or a colour of its own. |
--fz-card-bg | The background of cards. Default var(--fz-color-surface). Can be any of the site's colours, or a colour of its own. |
--fz-card-border | The border of cards. Default var(--fz-color-border). Can be any of the site's colours, or a colour of its own. |
--fz-drawer-bg | The background of the drawer. Default var(--fz-color-surface). Can be any of the site's colours, or a colour of its own. |
--fz-drawer-foot-bg | The background of the drawer's button bar. Default var(--fz-color-surface-2). Can be any of the site's colours, or a colour of its own. |
--fz-field-radius | The corner radius of text boxes, dropdowns and text areas. Default 6px. Can be 0px to 16px. |
--fz-button-radius | The corner radius of buttons. Default 6px. Can be 0px to 16px, or fully rounded. |
--fz-tab-radius | The corner radius of page tabs. Default 999px. Can be 0px to 16px, or fully rounded. |
--fz-form-radius | The corner radius of form cards. Default 8px. Can be 0px to 16px. |
--fz-card-radius | The corner radius of cards. Default 8px. Can be 0px to 16px. |
--fz-menu-radius | The corner radius of dropdown menus. Default 8px. Can be 0px to 12px. |
--fz-paragraph-font | The font of running text in a page's content. Default var(--fz-font-sans). Can be the main font or the secondary font. |
--fz-paragraph-color | The colour of running text. Default var(--fz-color-text). Can be any of the site's colours, or a colour of its own. |
--fz-heading-font | The font of headings in a page's content, at every level. Default var(--fz-font-heading). Can be the main font or the secondary font. |
--fz-heading-color | The colour of headings, at every level. Default var(--fz-color-text). Can be any of the site's colours, or a colour of its own. |
--fz-link-color | The colour of links in a page's content. Its hover colour is a darker shade of it. Default var(--fz-color-accent). Can be any of the site's colours, or a colour of its own. |
--fz-link-hover-color | Follows --fz-link-color: color-mix(in srgb, its value 80%, #000) when it is set. Default var(--fz-color-accent-hover). |
--fz-link-underline | Whether links are underlined. Default underline. Can be underline (Underlined), none (Not underlined). |
--fz-link-hover-underline | Whether a link is underlined while the pointer is over it. Default underline. Can be underline (Underlined), none (Not underlined). |
--fz-list-marker-color | The colour of the bullets and numbers. Default var(--fz-color-text). Can be any of the site's colours, or a colour of its own. |
--fz-list-bullet | The marker before each item in a bulleted list. Default disc. Can be disc (Filled circles), circle (Hollow circles), square (Squares), none (None). |
--fz-list-number | How the items in a numbered list are numbered. Default decimal. Can be decimal (1, 2, 3), decimal-leading-zero (01, 02, 03), lower-alpha (a, b, c), upper-alpha (A, B, C), lower-roman (i, ii, iii), upper-roman (I, II, III). |
--fz-quote-color | The colour of the text in a block quote. Default var(--fz-color-text-muted). Can be any of the site's colours, or a colour of its own. |
--fz-quote-border | The colour of the line beside a block quote. Default var(--fz-color-border-strong). Can be any of the site's colours, or a colour of its own. |
--fz-quote-line | The thickness of the line beside a block quote. 0 has no line. Default 3px. Can be 0px to 8px. |
--fz-rule-color | The colour of separator lines. Default var(--fz-color-border). Can be any of the site's colours, or a colour of its own. |
--fz-rule-line | The thickness of separator lines. Default 1px. Can be 1px to 6px. |
--fz-sidemenu-bg | The side menu's background. Default var(--fz-color-surface-2). Can be any of the site's colours, or a colour of its own. |
--fz-sidemenu-border | The line between the side menu and the page. Default var(--fz-color-border). Can be any of the site's colours, or a colour of its own. |
--fz-sidemenu-font | The font of the side menu's links. Default var(--fz-font-sans). Can be the main font or the secondary font. |
--fz-sidemenu-color | The colour of the side menu's links, and of a group's links with the pointer over them. Default var(--fz-color-text). Can be any of the site's colours, or a colour of its own. |
--fz-sidemenu-hover-bg | The background of a link with the pointer over it. Default var(--fz-color-surface-3). Can be any of the site's colours, or a colour of its own. |
--fz-sidemenu-item-radius | The corner radius of the side menu's links, which shows on the current page's and the one under the pointer. Default 6px. Can be 0px to 12px, or fully rounded. |
--fz-sidemenu-sub-color | The colour of the links in a group. Default var(--fz-color-text-muted). Can be any of the site's colours, or a colour of its own. |
--fz-sidemenu-guide | The line down the side of a group's links. Default var(--fz-color-border). Can be any of the site's colours, or a colour of its own. |
--fz-sidemenu-active-color | The colour of the link to the page you're on, and of the name of the group it is in. Default var(--fz-color-text). Can be any of the site's colours, or a colour of its own. |
--fz-sidemenu-active-bg | The background of the link to the page you're on. Default var(--fz-color-surface). Can be any of the site's colours, or a colour of its own. |
--fz-sidemenu-sub-active-bg | The background of the link to the page you're on, when it is in a group. Default var(--fz-color-accent-soft). Can be any of the site's colours, or a colour of its own. |
--fz-sidemenu-active-marker | The short line beside the link to the page you're on. Default var(--fz-color-accent). Can be any of the site's colours, or a colour of its own. |
- Use them in your own CSS so it matches the components:
background: var(--fz-button-primary-bg),border-radius: var(--fz-field-radius),font-family: var(--fz-label-font).
<div class="fz-cluster">
<button type="button" class="fz-btn fz-btn--primary">Save</button>
<button type="button" class="fz-btn fz-btn--primary" style="--fz-button-primary-bg: var(--fz-color-success); --fz-button-primary-hover: var(--fz-color-success); --fz-button-radius: var(--fz-radius-full)">Approve</button>
</div>