← Work
Foundation Workbench

I wanted my own tool. So I built one.

The Workbench reads styles straight from an application’s code, organizes what was scattered and delivers the Design System. Before the hand-off, an AI agent suggests adjustments.

Authorship
Lucas Souza
Stage
Pre-launch
Scope
Product, Design System & development
Platform
Web

The system for building your system.

Refine your agent’s input. Export your Design System.

For products built with HTML and CSS

HOW IT WORKS

Tokens

See where color appears.

Your next idea.Ready to take shape.Create
Typography

See text respond.

14px

One clear next step.

Proposal

Every value. A clear role.

BodyText
14px
IntervalSpacing
16px
CornerShape / radius 1:1
8px
The problem

The product worked, but its look didn’t follow a rule.

Text sizes, spacing and corners changed from one screen to the next. When it was time to create a new button or heading, there was no reference to follow. I wanted to organize what already existed without redesigning everything.

My role
  • Product: the flow from diagnosis to organization and documentation.
  • Interface and Design System of the Workbench itself.
  • Development in HTML, CSS and JavaScript, with AI agents.
Process

First, a survey of the styles the product already used.

Then the Workbench: a place to test the organization right in the interface and compare it with an AI agent’s proposal.

Result

A pre-launch tool that goes from code to Design System, in HTML and Markdown.

Organize & proposal

Between rules and interpretation.

When an interface grows by improvising, every tweak leaves a loose style behind. Organizing groups those styles into families without changing the design. Then an AI agent proposes what can still improve. Compare the three states.

Current state Original

Your workspace

Today

3due

Tasks

  • Review headerNavigation
  • Adjust formForm

Project

Website refresh

Current statusIn review

Palette

New task

Describe the next adjustment.

Add
DesignContentResearchReview

Illustrative values.

Diagnosis

Input metrics

The Workbench reads the product’s code and shows, in one place, where each style is used, before anything changes and without opening the CSS. Pick a measure and see where it sits on the card.

In review

Website refresh

A page to introduce the project.

DesignIn review
ContentReady
1 of 2 stages complete
In the next review
  • Heading hierarchy
  • Small-text readability
  • Spacing between sections

One decision applies everywhere.

In the first tests, what I adjusted in the interface and what was written in the document lived apart. Changing a heading on screen didn’t change its rule in the document.

I brought everything into one model. The controls, the preview and the documentation now read the same decisions: what changes on screen comes out right in the document.

Editor

Adjustments in the interface itself.

The controls sit next to the product, and every change shows up right away. The first pair is text scale and the minimum reading size.

Scale comes first because it’s the adjustment that changes the page the most.

100%
11 px

The minimum only enlarges text that would fall below it.

In review

Prepare the page

Final adjustments

Check the presentation, links and control states.

2 checks remaining
Current sizes
Title
28 px
Subtitle
22 px
Body
13 px
Supporting
11 px

Improvising is part of creating. So is organizing.

Design System

Choices become a reference.

Colors, text, spacing and shapes become a document, built from what the product already uses. The original version is kept for comparison.

Colors

Primary colors

Card background--surface · #FFFFFF
Main text--ink · #22252A
Action and link--link · #2F6FEB

Supporting colors

Supporting background--surface-2 · #EFEEEA
Secondary text--ink-2 · #5F6368
Lines and borders--line · #E2E0DB

Status and highlight

Confirmation--success · #2E7D5B
Warning--warning · #A36808
Error--danger · #C23B3B
Highlight--accent · #D81FB5

Typography

DisplayA clear beginning28 px · Display
TitleSection heading15 px · Title
BodyA sentence to explain the next step.13 px · Body
SupportingDetails stay close to the action.11 px · Supporting

Spacing

Menu with three spacing values: 16 px side padding (--space-4), 12 px between rows and around the list (--space-3) and 48 px row height (--space-12).

Shape and components

Buttons

PrimarySecondary
DefaultAddAdd
DisabledSaveSave

Pills

4 familiesOrganized
HTML and CSSIn review
HTMLMarkdown

40 px · 20 px radius · buttons and pills

Use in CSS

One rule, written once

Each color gets a name, like --surface, and components use that name instead of the value. To change the background color, you change it in one place and the rest follows.

Illustrative sample.

.panel {
  /* card background */
  background: var(--surface);
  /* secondary text */
  color: var(--ink-2);
  /* interface font */
  font-family: var(--font);
}
Output

An output to build on.

The output comes in two formats. HTML is the visual version, for reading and sharing. Markdown carries the same rules in plain text, in a file that can live next to the project’s code.

HTML
Markdown

A visual document and the rules in text.

Explore the complete Workbench.

Open the Workbench ↗