Design

Brand and design system

Set the colors, fonts, sizes and components of your whole project from one panel, share a brand as a link, and import a design system from screenshots, a website, your code, Figma or a brand link.

Use the Brand panel to set the colors, fonts, sizes and components that every page of your project uses. Change it once and the whole app follows. The AI reads it too, so new pages match your brand.

What you can do

  • Build a full palette from one brand color.
  • Pick the fonts for headings, body text, labels and code, and the size of your text.
  • Set the density of your spacing, the height of your controls, the roundness of corners, the style of shadows and the speed of movement, each with one plain choice.
  • Tune every component of your project's UI kit, setting by setting, and add your own overrides.
  • Reach the exact steps (type styles, spacing steps, corner sizes, shadow levels, durations, screen sizes and color tokens) when you need them.
  • Start from a preset or from one of your saved brands.
  • Share a brand as a link, and bring a brand into another project from that link.
  • Import a design system from screenshots, a website, this project, a Figma file or a brand link.
  • Edit the written rules in DESIGN.md, and export your design system as DESIGN.md.
  • See your whole design system on the canvas, as a board, and edit any color, font or component right on it, with the mouse, the keyboard or a touch screen.

Open the panel

Choose Brand in the rail on the left of the editor. The panel has four tabs: Base styles, Components, Advanced and DESIGN.md. They all show the same system: a change in one tab shows in the others.

Every change shows at once on your pages and on the design system board of the canvas. A pick, such as a density tile or a text size, applies at once. An editor that opens beside a row applies when you choose Apply. Either way, the change is one step in your history, so one Undo takes it back. A value you type is checked as you type it: a value Lyna cannot read is marked with a short message, nothing changes on your pages, and Apply stays off until you fix it.

Switch Preview between Light, Dark and System to check both themes.

Base styles

Base styles holds the plain choices. Each section starts with one control in plain words.

SectionWhat you set
PresetStart from a ready-made system.
Logo and iconsYour logo on a light and on a dark background, the favicon and the icons of your brand. With no logo yet, Upload one or Ask Lyna to draw one. Icon weight (Light, Regular, Bold) sets the stroke of the line icons across the site and of your brand icons, in one step you can undo.
BriefWhat your site is, what it is for and who it is for, as Lyna understands it. Edit it so the AI builds for the right goal.
ColorThe Brand color, the one color every other color starts from: type a hex code such as #2563eb or a color name such as blue, or open its editor with twelve Quick colors. The Scheme sets how the other colors are made from it: Fidelity, Tonal, Vibrant, Expressive, Content, Monochrome, Neutral or Spectrum. Then the four Color roles: Primary, Secondary, Tertiary and Neutral. A role you set yourself stops following the brand color, and Follow the brand color lets it follow again. Surfaces shows the colors of the page, the cards, the muted fills and the text.
TypographyThe fonts of the four roles, Headings, Body text, Labels and Code (choose Manage fonts to add fonts), the Scale between heading steps, and the Text size: S, M, L or XL, or a number of px.
SpacingThe Scale: Compact, Default, Comfortable or Gigantic, which moves the density, the text size and the roundness together. The Density: Compact, Default, Comfortable or Spacious. Then the Base unit every spacing step grows from, and the Control height of buttons, fields and tab lists: S, M, L or XL, or a number of px.
ShapeThe Roundness of the corners of buttons, cards and fields, as a tile or a number.
ShadowsThe shadow Style of every level at once: Flat, Soft, Crisp or Floating.
MotionThe Speed of the three durations at once: Calm, Default or Snappy, and the Base duration.

Typography, Spacing, Shape, Shadows and Motion end with a link to their exact steps, for example All 13 type styles, All 6 spacing steps, All 5 corner sizes, All 5 shadow levels or Durations and easing. The link opens the Advanced tab on that list.

A value you set yourself is marked, with a reset beside it. A value missing from your design system reads Not set, with an action to add it.

Your site shows a logo made with Lyna without the flat background it was drawn on, and your name never shows twice:

Your logoWhat the header showsThe icon in browser tabs
No logoYour nameThe default icon
A symbolThe symbol and your nameThe symbol
A wide logo that holds your nameThe logo aloneIts symbol, or the initial of your brand
A compact logo that holds your name, with a symbol apartThe symbol and your nameThe symbol
A compact logo that holds your name, in one drawingThe logo alone, tallerThe initial of your brand

Where its colors do not read, on a dark or a light surface, the logo turns white or black. An icon you uploaded, or one you picked among the ideas Lyna drew, stays when the logo changes. On a new site, Lyna can draw your brand icon: see A new site, step by step.

Components

The Components tab lists every component of your project's UI kit, in groups: Actions, Fields, Choices, Surfaces, Data and Navigation, then Your components for the ones your DESIGN.md adds. The first group is open; open any other to see its components.

Each component shows its name, a mark when you changed it, a switch for its states (such as Hover, Focus, Pressed or Disabled) when it has them, and Reset. Under it, its main settings are rows: Corners, Padding, Height or Size, Background and Text color, only the ones the component's file reads. All settings opens the rest.

Each setting is a select. A named choice applies at once. Custom opens a typed field: Enter applies it and Escape puts the value back. A setting you changed is marked and has its own reset. The settings are the same as in the component editor of the board (see Edit a component).

Custom overrides

The last section of the Components tab, Custom overrides, sets one CSS property on one component of the UI kit, beyond its own settings:

  1. Pick a Component, its State (or Default) and a Property.
  2. Type its Value. Turn on Different in dark mode to give it a Dark mode value too.
  3. Choose Add, or press Enter.

The value is checked as you type it, and Add stays off while it is incomplete, refused or already in the list. When the property is one of the component's own settings, the section says so, and Add sets that setting. A component the kit gives no way to target is listed, but you cannot pick it yet. When your project's copy of the component file was changed by you or the AI, Lyna never overwrites it: the section says so before you add. Each override shows in the list under the form, where you can edit or remove it. Adding or removing one is a single step in your history.

Advanced

Advanced holds the exact steps, each in its own section with a summary on its header:

  • Type styles: every text style with its font, size, weight and line height.
  • Text weights and spacing: the weights and the letter spacing of your text.
  • Spacing steps: every step of your spacing scale.
  • Corner sizes: every corner step, from None to Full.
  • Shadow levels: every shadow level, in light and dark mode.
  • Durations and easing: the three durations and the movement curves.
  • Screen sizes: the widths at which your layout changes.
  • Color tokens: every color token, by group, in light and dark mode.

Choose or save a system

Open the design system picker at the top of the panel. It lists Presets, My brands and This project. Search by name, then pick one to apply it.

The actions menu of the panel holds:

  • Rename
  • Save to my brands: keep this system to reuse in other projects.
  • Copy brand link: see Share a brand with a link.
  • Export DESIGN.md
  • Reset colors to the brand color
  • Reset design system: go back to the template default.
  • New design system: start over from the default preset.
  • Import a design

Choose Copy brand link in the actions menu. The link carries your brand's colors, fonts and sizes, never your written rules, so anyone with it can copy them. A brand too large for a link copies nothing: export DESIGN.md to share it instead.

Opening the link applies nothing. To use it, open Import a design in the project that should get the brand, choose the Link source and paste the link or its code. The link is read on your device and nothing is sent. Lyna then shows what will change, the fonts it keeps and any value it leaves out, before you apply it.

Import a design

  1. Choose Start from your design

    In the picker, choose Start from your design, or Import a design in the actions menu.

  2. Pick a source

    • Images: drop screenshots in PNG, JPEG or WebP.
    • Website: enter a web address. The page and its stylesheets are read once. Nothing is stored.
    • This project: read the stylesheet and components already in your code.
    • Figma: connect Figma and paste a link to a file. A link to one frame also samples that frame.
    • Link: paste a brand link or its code. A link that is not a brand link, comes from a newer version of Lyna, is too large or is damaged is refused under the field.
  3. Read the design

    Choose Read the design. Lyna shows what it found (colors, fonts, corner radii) and the system it drafted. For a brand link, it shows What will change, the Fonts kept and the values it does not apply.

  4. Review and apply

    Read the written rules under Written rules to review. Text that reads like an instruction to the AI, or that names a host, a package or a script, is highlighted. When you are ready, choose I have read this, apply it. Applying replaces the current system, in one step of your history.

DESIGN.md

The DESIGN.md tab shows the source of your design system: settings at the top and written rules below. Edit it, then choose Save, or Revert to drop your edits. The tab lists problems with their line number.

The design system board

Your design system also shows on the canvas as a board. It draws the whole system the way your pages draw it, in the theme the page shows, so you see every part side by side:

BandWhat it shows
OverviewYour Primary, Secondary, Tertiary and Neutral colors, the headline, body and label fonts, and a first look at buttons, a search field, tabs, an icon button and a chip.
ButtonsEvery button style (primary, secondary, outline, ghost, delete, link and icon) and the states of a button: hover, focus, pressed and disabled.
FormsText field, text area, select, label, checkbox, radio group, switch and slider.
FeedbackBadges, alerts, progress bar, tooltip, loading placeholder, avatar and separator.
Surfaces and navigationCard, dialog, popover, menu, sheet, drawer, hover card, tabs, accordion, table, breadcrumb and pagination.

The board's own menu (right-click on the board outside a part) offers Focus, Open Brand panel, View details and Export DESIGN.md. To ask the AI for a new design system, write your request in the chat.

Show or hide the board

The eye button Show on canvas at the top of the Brand panel answers what you see:

  • The board is off screen: the canvas moves to bring it into view.
  • The board is on screen: it hides it.
  • The board is hidden, after its own close button or this button: it shows it again.

To find the board from anywhere, open the command palette (Cmd/Ctrl + K) and choose Show the Design system board.

Select a part

Every color, font and component on the board is a part you can select:

  • Click a part to select it. A ring shows around it.
  • Click the selected part again, or press Enter or Space, to open its editor beside it. A double-click does both.
  • Right-click it to open its menu. The menu starts with the part's own options, then the board's options:
    • Edit color, Change font or Edit component opens its editor.
    • Copy followed by the value copies it, for example a color as a hex code.
    • On a color: Keep this color stops the brand color from changing it, and Follow the brand color lets it follow again.
    • On a font: Browse fonts opens the font list.
    • Reset to default when you changed the part yourself.

With the keyboard, move from part to part with the arrow keys. An arrow follows the board as you see it: it goes to the nearest part in that direction, so the right arrow on the Primary swatch reaches the headline font beside it and the down arrow reaches the Secondary swatch under it. When no part lies that way, you stay where you are. Go to the first or last part with Home and End. Press Enter to open the editor. Escape takes one step back each time: it closes the editor, then lets the part go, then deselects the board. In the command palette, Edit the selected design system part opens the editor of the part you selected.

Edit a part

The editor that opens on the board is the same editor the Brand panel opens for that part. A color opens the color picker, twelve quick colors and a color field that takes a hex code or a color name. A font opens the list of fonts for that role. A component opens the component editor described below.

Other colors of your system follow the main ones: a focus ring or a chart color, for example, is worked out from Primary. Before you apply a change to a color, its editor lists the colors that move with it: a line such as Also updates 3 colors that follow Primary, followed by their names. A color you kept or set yourself never moves, so it is never listed. When no other color follows, the line does not show.

While you edit, the board and your pages show the change at once, before anything is saved:

  • Apply saves the change. It is one step in your history.
  • Escape or Close closes the editor and saves nothing. The board and your pages go back to how they were.
  • Reset puts every setting you changed on this component back to its default.
  • Undo (Cmd + Z) takes the whole change back in one step, and Redo (Cmd + Shift + Z) puts it back.

Once the change is saved, a message names the part and its new value, for example Primary set to #2563eb. When the same save also updates one of your component files, the message names that file on a second line. An undo or a redo of the change names the same part and value.

Edit a component

Each component has its own settings, grouped under Color, Text, Border, Shape, Shadow and opacity, Spacing and Size. The editor lists only the settings the component uses. At the top, a preview draws the component as your pages draw it.

Each setting is one select, read from top to bottom:

  1. Default comes first, with the value the component has on its own, for example Default, MD, 8 px. Choose it to remove your own value.
  2. The named choices come next, each with its value: your colors with their swatch, your text styles, corner sizes from None to Full, spacing steps in px, Auto for a height or a width, border styles, No shadow and your shadow levels, opacity in steps of a tenth.
  3. Custom comes last. It opens a typed field under the select: a color, a number with its unit, the four corners one by one, or the vertical and horizontal spacing (choose Each side to set every side on its own).

A value the field cannot read is marked at once with a short message, nothing changes on the board or the pages, and Apply stays off until you fix it.

To set the look of a state, such as a button under the pointer or a disabled button, pick the state on the component in the Components tab of the Brand panel, or select the state on the board in the Buttons band.

When your component file does not follow a setting

The components of your project are files in your code. When a file does not use a setting, a note above the settings says so:

  • The project does not use this component yet: the setting is saved for when it does.
  • The file is one Lyna made and you never changed: Apply also updates it so the page follows the setting, a message names the file, and Undo puts it back.
  • The file is your own copy (you or the AI changed it): the note names the settings it does not read, and the page will not change for them. Lyna never overwrites a file you changed.

On a phone

On a phone, tap a part to select it, then tap it again to open its editor. The editor opens as a sheet from the bottom of the screen, with the same settings, Apply and Reset. A long press opens the part's menu, and a font opens its list of fonts.

Need help?

Ask the team, read what changed, or learn from the blog.