Skip to content

Design files

Every field of the [design] table of sypnia.toml, tokens.json, gallery.yaml, the screen files and the icon rules.

Applies to EngineCloud
View as Markdown
On this page
  1. The [design] table of sypnia.toml
  2. design/tokens.json
  3. design/gallery.yaml
  4. design/screens/<case-id>.screen.yaml
  5. design/icons/rules.yaml

The files in design/ carry format: 1 (except tokens.json, which follows the W3C Design Tokens format). Unknown fields are kept and reported as warnings; your own fields start with x-. The JSON Schemas are in the engine’s repository, in spec/schemas/.

The [design] table of sypnia.toml

Design’s settings live in sypnia.toml, the one configuration file at the root of your repository that every Sypnia product shares. Design reads only its own [design] table, and the project’s id from the top-level project:

sypnia.toml (part)
format = 1
project = "la-espiga"

[design]
guide = 4
prefix = "espiga"
components = { dir = "src/design", framework = "next" }
languages = ["es", "en"]
themes = { light = true, dark = true, switch = true }
FieldTypeWhat it is
guideintegerthe current guide version
prefixstringthe CSS variable prefix (espiga → --espiga-color-accent)
componentstabledir (default src/design) and framework (next, vite, astro)
languageslistthe app’s languages, first is the main one
themestablelight, dark, and switch (whether the app offers a switch)
checkstablerenders (local, cloud, off), first_screen_sizes, and [[design.checks.waive]] entries (each code, path, reason, until)

design/tokens.json

W3C Design Tokens: each token has $type and $value, optionally $description; the dark value is in $extensions["sypnia.dark"]. Required groups:

GroupHolds
colorthe colour roles
fontfamilies and role.* (type roles)
space, radius, border, shadowspace and shape
motionduration.*, easing.* (motion)
sizetouch and other fixed sizes
layoutbreakpoints and content widths

design/gallery.yaml

ListFields
piecesid, component, for, not_for, variants, states, combines_with, example
combinationsid, pieces, for, rule
patternsid, for, regions, pieces, phone, desktop, states_required

design/screens/<case-id>.screen.yaml

FieldWhat it is
format, case, wherethe format, the case id, the place id in the navigation tree
pattern, guidethe pattern followed and the guide version used
status, approved_by, approved_atdraft, approved or built, and the approval
first_screenthe main content fits without scrolling
regionsregion → list of { piece, variant?, text?, repeat? }
statesloading, empty, outcome.<name>, failure.<FailureName>, offline
phone, desktophow the layout changes

design/icons/rules.yaml

FieldExample
grid, padding24, 2
stroke, cap, join1.75, round, round
radii[2.5, 9] (the arcs allowed)
sizes[16, 20, 24]
signaturedescription and picture of the brand’s trait
  1. The [design] table of sypnia.toml
  2. design/tokens.json
  3. design/gallery.yaml
  4. design/screens/<case-id>.screen.yaml
  5. design/icons/rules.yaml

    Search pages, sections and terms