Every Delta site runs one of two design systems. Delta’s seed is the token system the theme ships. Your own design system is anything else: a stylesheet you already have, a framework such as Automatic.CSS or Core Framework, or a brand you describe. The agent sets it up and switches the site over.
What you can bring
- A file: a CSS file, a design.md, a token list, or a Figma link.
- A plugin or a build that already loads its CSS. Delta leaves that stylesheet alone and loads a small site.css of its own after it.
- Nothing yet: a brief, a brand, or references. The agent proposes the values and asks you to approve them.
“Use {file name} as the design system for this site.”
“Our framework plugin already loads the CSS. Switch the site to it.”
Switching from Delta’s default design system to Automatic.css? Use the recipe Switch from Delta’s default design system to Automatic.css, or watch the video Using Automatic.css as Delta’s design system.
With Automatic.css, colours are set as hex values; other colour formats are refused.
Upload a CSS file to the Media Library, or attach it in the chat. Delta checks the file and holds it until you confirm the switch. The agent does not read a stylesheet from your computer’s folders or from a URL.
How the switch runs
- The agent reads your material. It asks what you have if your request does not say. For a CSS file, Delta lists the variables the file defines and where each is set, before anything goes live.
- It shows a table. Each line names a job, such as page background, text, or links and buttons, next to your own name for it. Nine jobs are required. When your material leaves a gap, the agent proposes values in your naming and asks once for all of them.
- It asks who edits the stylesheet. Delta can manage the file, or leave it untouched and add its own rules after it.
- It runs a dry run. For each name the site uses that your system has no value for, the agent sees the value it has today, which job it does, and where it is used. It brings these to you.
- It saves a snapshot and asks you to confirm. The agent lists how many templates, pages, and components the switch changes. Nothing on the site changes before you say yes.
- It switches and converts. The agent converts templates and pages to your names, in batches. If the site has no templates yet, it builds the basic set in your names.
- It checks the result. The agent renders a page, a post, an archive, the header and the footer, and the store pages when WooCommerce is active. It looks at a wide window and at phone width.
The agent reports what it converted, what it left unchanged, and what still needs work. Components are kept, and the names in them are renamed to yours.
Switching from a single CSS file
When your design system is one CSS file, the switch has two choices you make with the agent.
Keep Delta’s current rules. The file can replace site.css as it is, or Delta can keep the seed’s current rules in front of it: type, text rhythm, links, surface classes, and the dark and contrast rows. Kept rules sit in one marked block, and your file’s own rules follow. A later import of a new version of the file keeps that block and replaces the older file. A site already on its own system, with no kept block, has nothing to keep.
Values for jobs your system has no name for. When your file has no name for a job the site needs, the agent asks you to approve a value, under a new name or under the old seed name kept as a site name. Delta writes the approved values in one block at the end of site.css, with the comment “Values for jobs the design system has no name for, approved during the switch.”, in the same step as the renames.
Delta refuses a switch that would leave names used on the site without a value. The agent then runs the dry run and comes back with the gaps.
What stays the same
- base.css stays. It is the theme’s floor: reset, page frame, focus outline, and skip link. Your stylesheet builds on it.
- Hard-coded values in your CSS stay as they are. Turning them into variables is a separate request.
- The WooCommerce base style still applies. Store rules that lived in the old site.css go with it.
- Dark and contrast rows that still hold the old system’s colours under your new names are reported after the switch, so you can ask for them to be changed.
What Delta → Design shows
On the seed, the card reads Delta Seed Design System and the tiles show token values. On your own system, the card reads Your Custom Design System and each tile is named from your table. When Delta manages site.css, the tiles show your colors and fonts. When another plugin loads the CSS, they show the variable names only.
The agent sets the mode. The Design page shows it; you cannot change it there.
Going back to the seed
“Put Delta’s seed design system back.”
The agent saves a snapshot and asks you to confirm. It then restores the seed files and the seed map, and tells you what it restored. To undo a switch instead, restore the snapshot taken before it under Delta → Site → Snapshots.
Restore Default on Delta → Design is a different action. It resets the seed’s tokens, notes, CSS, and components to the theme default. It shows only while the site is on the seed and the seed has been changed.
For developers
- The mode is stored in the option
21press_delta_design_system:seedorcustom, with ownershipdeltaorexternaland the recorded source handles. delta/switch-design-systemmoves a site from the seed to a custom system in one step: it checks every name in use, saves a snapshot, renames the names, writes the map and sets the mode. Run it withdryRun: truefirst.- Dry run:
problems.missing.factsgives per missing name itsvalue, maprow, up to fiveusedInplaces and ausescount. The inputdefines(name to value) carries approved values, listed undernotices.defines.notices.oldValueslists dark and contrast rows that keep old colours;notices.classColourslistssite.csscolour rules that read a renamed name. delta/register-design-systemalso sets the mode but renames nothing. Seed to custom is refused with21press_delta_switch_needs_map(409) while names in use would have no value, for every ownership and for a file activated in the same call. The error carrieshintandsteps;forcestill goes ahead. Do not pass the import hash to it.- The filter
21press_delta_design_switch_external_namesnames variables another plugin uses, so a switch keeps them. delta/import-site-csstakes two calls.{mediaId}returns a hash, a report and up to 500variables(name,value,selector,root).{confirm: true, hash}makes the file the live site.css.keepCurrentRules: truekeeps the seed’s rules between/* delta:kept-rules start: … */and/* delta:kept-rules end */; the file’s@charset,@import,@namespaceand@layerlines stay on top. It does not change the mode.- A framework button class that loses to Delta’s button style can take the class
btn--bare. delta/list-variableslists enqueued custom properties with source handle and selector.delta/restore-seedrestores the seed design pack after a snapshot.- The active names live in the rule
design-system-map. The seed ships it; a custom system overrides it withupsert-rule, andrestore-rulebrings the seed version back. - Hook reference: Developer hooks.