Paul Alexander

Festy design system

One set of tokens and components for a Flutter app, a web card service, a website and a design canvas, kept in step by tests rather than by memory.

Festy design system

Festy's product runs on four surfaces, and most of its code is written with AI assistants. I built a design system that the code itself keeps honest: every value is written once in the Flutter theme, exported to one tokens file, and checked by tests, so the document, the app, the web and the design canvas cannot quietly drift apart.

Client

Festy

Date

November 2026

Services

Design SystemsUI & UX DesignProduct Development

Industries

ConsumerSocial

Tech

FlutterNext.jsClaude Code

The problem

Four surfaces, one small team

Festy is a Flutter app, an eCards web service, a website and a dashboard. Each kept its own colours and sizes, and there was no design-ops role to hold them together.

  • •Four surfaces, four sets of styles.
  • •Most of the code is written with AI assistants, and without written rules every session invents its own spacing, corners and shadows.
  • •A style guide typed by hand is out of date the week after it is written, and nobody can tell which is right, the document or the code.
  • •Whatever keeps things consistent has to run by itself.

How tokens are used

A colour, size or text style is written once, in the app's Flutter theme. A test exports it to one tokens file, with light and dark values and a note on what each token is for, and every other surface is generated from that file. Nobody types a value twice. The same token is named for each platform: onSurfaceMuted in Flutter is on-surface-muted in the file and a CSS variable on the web.

The Flutter theme is the source. 67 colours, 9 spacing steps, 4 corner sizes and 3 shadows.

The Flutter theme is the source. 67 colours, 9 spacing steps, 4 corner sizes and 3 shadows.

Version control

The system is versioned like software: patch for fixes and wording, minor for new tokens or components, major for renamed or removed tokens. One version number sits in the document, in the app's code and in the visual reference, and a test fails the build when the document's values, the version, or a component name it mentions no longer matches the code. Rules the app does not follow yet are marked as proposals, and each one ends as adopted, dropped or still to build.

Nine days from the first draft to tokens generated from the code.

Nine days from the first draft to tokens generated from the code.

The assets

On top of the tokens sit 17 components, each drawn live in the visual reference and named after the Flutter widget that implements it; five principles and a voice guide; illustration and motion rules for the mascots; the logo and fonts; and the eCard art in 11 styles. Card art is content, not interface: each card keeps its own palette, and the system covers how to brief and make new art.

Components, rules and card art, each with written guidance on when to use it.

Components, rules and card art, each with written guidance on when to use it.

How it is used across the team

Each surface takes the same tokens in the form it needs. The Flutter app is the source and its screens read the theme, never a raw number. The eCards web service copies the tokens file in and regenerates its CSS variables with one command, with a test that fails when they are out of date. The design canvas has the system installed, so its colour pickers and text styles offer the real tokens. Every repository links the system from its AI context file, so each AI session starts with the same rules whichever tool writes the code.

Flutter, the eCards web service, the website and the design canvas.

Flutter, the eCards web service, the website and the design canvas.

Where it stands

Version 0.9 is still a draft. The app branch that brings the whole theme in line with it is waiting for review, the website is next in line for the generated tokens, and three components exist only on the web so far. It becomes 1.0 when that is agreed and merged.

Part of Festy

This is one part of my work on Festy 2.0.