Skip to the content
FilDocs

Design systems

Keep a site's colours, fonts, text styles and spacing in one design system. Change a variable once and every page follows; import or export tokens.

A design system holds what a site's pages share: its colours, fonts, text styles, spacing, corner radii and shadows, as variables, and its components. Each page uses the variables instead of fixed values, so when you change one, every page that uses it changes too. A website Fil makes gets one on its own, as its own node on the canvas.

One change to a colour, on every page of the site

What a design system holds

When Fil makes a website, it splits it into linked nodes on the canvas: the pages, the site's data and its design system. In the Design tab, the system shows in three places: as a card beside the pages on the stage, in the Assets tab on the left, and in the inspector when nothing is selected.

The Assets tab showing Kinfolk Tea system, with its Value card, Nav bar, Button, Tea card and Site footer components, beside the system's card on the stage: Fraunces for headings, Inter for body, its type sizes and colours
The site's design system in Assets, and as a card on the stage
KindWhat it isExample
ColoursNamed colours, each with a descriptioncolor-accent
FontsThe heading and body typefacesFraunces, Inter
Text stylesA font, weight, size, line height and letter spacing togetherDisplay, H2, Body, Label
SpacingSteps for padding and gapsspace-4 is 16px
RadiusCorner roundingradius-lg is 28px
ShadowsDrop shadows for cards and buttonsshadow-card
ComponentsParts used on many pagesNav bar, Button, Tea card

Components have a page of their own: Components.

Change a colour on every page

  1. Open any page of the site in the Design tab and click an empty part of the stage, so nothing is selected.
  2. In the inspector on the right, scroll to Colours. Its note says the colours come from the site's system and that its other pages follow.
  3. Click a colour's code, type a new one (here B4532A for the accent) and press Enter. Or click its swatch for the colour picker.
  4. Everything on this page that uses the colour changes at once: here the Shop the teas button and the small label above the heading.
  5. When the page saves (a moment after you stop, at most every 30 seconds; ⌘S saves now), the new value goes into the design system, and the site's other pages update to it, each as a new version. The message says so: "Kinfolk Tea system has the new variable, and 2 other pages updated."

Spacing and radius values change the same way, in their sections below Colours. Shadows are changed in Assets › System, under Shadows.

Edit text styles and fonts

With nothing selected, Text styles in the inspector lists the site's fonts (Headings, Body) and its text styles, each with a sample.

To change the site's font, click Headings or Body. The Fonts picker lists the fonts In this page, Google Fonts and System fonts, with a search box. Pick one, and every heading (or every body text) on every page changes to it.

Click a text style to edit it:

The Display text style open beside the Text styles list: a sample reading The quick brown fox, Font Headings · Fraunces, Weight Medium, Size clamp(44px, 6vw, 76px), Line height 1.02, Letter spacing -0.02em
A text style: change it once for every heading that uses it
FieldWhat it sets
FontOne of the page's fonts, or Another font…
WeightThin to Black
SizeA size in px or rem, or a range that grows with the window (clamp)
Line height1.2 is 1.2 times the size; 28 is 28 px
Letter spacingTighter or looser, in em or px

Every text that uses the style changes with it, on every page. + adds a text style, and a style's ⋯ menu has Edit…, Rename and Delete.

Use a variable on a layer

Select a layer, then:

  • Colours: in the colour picker, the swatches under Page colours are the site's colours. A colour set this way shows its variable's name on the field.
  • Spacing, gaps, radius and font size: a field that takes a variable shows a small variable button when you point at it. Click it for the list, or click the variable's name on a field that has one.
  • Text styles: the Text style menu at the top of the inspector's Text section, with Edit this text style… and Detach text style.
The hero picture's corner radius field open on its variable list: radius-md 16px, radius-lg 28px (picked) and radius-pill 999px, with Detach variable below
A field set by a variable: pick another, or detach it

Detach variable turns the field back into a plain value of its own. A colour picked by hand in the colour picker is the layer's own too; Edit variable in the picker changes the variable instead, everywhere.

Add, rename and delete variables

  • + beside Colours, Spacing, Radius or Text styles in the inspector, or beside any group in Assets (Fonts and Shadows too), adds one and asks for its name. A name is letters, numbers and dashes.
  • A variable's ⋯ menu has Rename (everything that uses it follows), Copy variable and Delete; in Assets, Add a description too.
  • Deleting a variable that's in use asks first: the places that use it keep its value, and stop following a variable.
  • A page with colours or fonts written as plain values shows Make variables, which turns them into variables in one step.

Add dark mode colours

Each colour can have a second value for screens set to dark mode. In Assets › Colours, click the moon (Add dark mode) to show a Dark column beside Light, then set each colour's dark value. For one colour at a time, use Add a dark colour… in its ⋯ menu in Assets, or Dark mode colour… in the inspector. The page switches by itself when a visitor's screen is dark.

Assets › Colours with dark mode on: Name, Light and Dark columns, each colour's light value beside a dark swatch to set, next to the Home page
A dark value for each colour

Edit the design system itself

The system is a page of its own, laid out as a style guide: every colour, type style and token, and each component. Open it in any of four ways:

  • its row in Pages (with the component icon)
  • the system's name at the top of Assets
  • double-click its card on the stage
  • Open Kinfolk Tea system in the inspector, with the card selected
The Kinfolk Tea system open in Design: its style guide with the colour swatches and the type ladder from Display to Label
The design system's own page: a style guide of everything it holds
  • Change its variables in the inspector or in Assets, and its components on the page (see Components).
  • While it has unsaved changes, any page of the site you open shows them, with a bar saying Showing unsaved changes to … and a Save system button.
  • Save and update all pages, in the ⋯ menu at the top of Assets, saves the system and brings every page it feeds up to date, each as a new version. On its own it saves at most once a minute while you keep working.

A page that's open in Design takes the change by itself as soon as you stop typing or dragging. If it can't, Assets shows Design system updated with Update this page's tokens.

Give a page a design system

Pages made as a Website get a system when they're made. A Simple HTML page, or a page brought in from elsewhere, starts with none, and Assets says what it has:

  • This page · Its own variables: the page declares its own colours and fonts. Open the ⋯ menu and choose Share as a design system… to turn them into a design system node on the canvas, which other pages can use too.
  • No design system yet: choose Make one from this page (free; it needs colours or fonts written as variables, so use Make variables first), Import…, or Make one with AI…, where Claude Sonnet 5.5 reads the page and writes its tokens and components after showing the price.
A Simple HTML page with its own variables in Assets (cream, ink, muted, sage and two fonts) and the menu open: Share as a design system…, Make variables, Import a design system…, and Export as Everything (.zip), Design Tokens (.json), CSS variables (.css) or Copy CSS variables
Share a page's own variables, or import and export them

To switch a page to another site's system, wire that design system's node into the page on the canvas in place of the old one. In Design, Assets then offers Use … to bring its tokens into the page.

Import and export design tokens

The ⋯ menu at the top of Assets imports and exports:

ChoiceWhat you get
Everything (.zip)Tokens, components and the style guide
Design Tokens (.json)The W3C format, for Figma plugins and other tools
CSS variables (.css)A stylesheet of the variables
Copy CSS variablesThe same, on your clipboard

Import into this system… (Import a design system… on a page with its own variables, or Import… on one with none) takes Fil zips, W3C Design Tokens and Tokens Studio JSON, and CSS variables.

Use another site's system as a library

A site can borrow from another site's design system, as Figma's libraries do. In the Design tab, open Assets and find Libraries: every other design system in your workspace you can open, named by its site, each with a switch.

  • Switch one on to see its components under From its name, in Assets and in Insert. Click or drag one onto the page: it becomes this site's own component, linked to the library it came from, so your site keeps working however the library changes.
  • When the library's component changes, Assets says the library was updated and the component's inspector offers Update from the library. Updating brings the new version in as one step that ⌘Z takes back, and each copy on your pages keeps its own changes.
  • Detach in the inspector's ⋯ menu keeps your copy and drops the link: the library's changes no longer reach it.
  • Use its colours and type brings in the library's colours, fonts and other variables, linked the same way. A value you've changed here is kept unless you take theirs.

In a React app

A React app has libraries too, under Assets › System in Design, with the same switches.

  • Click or drag a library's component onto the page and it becomes one of your app's own components, a file in src/components/ (a Product card becomes ProductCard.jsx, with its CSS in ProductCard.css). It's linked to the library on its first line, so it downloads and publishes as it is, however the library changes. The library's variables it uses that your app hasn't got come with it, and your app's own colours win where both have one.
  • When the library changes, System says it was updated: click that to update this app. The component's inspector says where it came from, with Update from the library and Detach in its ⋯ menu. If you've changed the component's code since, Fil asks first: updating writes it again from the library.
  • Use its colours and type goes where your app's colours are: its design system when it's built from one (that system gets a new version, and Undo in the message takes it back), or the app's own when it isn't (one step that ⌘Z takes back).

Costs and limits

  • Changing, saving, sharing, importing and exporting a design system is free, and so is Make one from this page.
  • Make one with AI… runs Claude Sonnet 5.5 at medium effort and asks first with its price (up to about 50 credits; what it doesn't use comes back). It reads the page as last saved.
  • Pages that have unsaved changes of their own aren't updated by a save of the system; they take its changes when you next open them.
  • Dark mode values, descriptions and new text styles need a design system (or a page's own variables block) to live in.

What's next