Documentation / Preset editor
Preset editor
Create, preview, check, and export a project theme.
1. Open and name your draft
Open the global preset editor. A fresh session starts with Ombelle; a valid saved draft restores automatically. Change the preset name in the top bar. Use More actions → ID & revision… to edit its export identity.
The browser stores the draft and undo/redo history locally. This editor’s storage is separate from component editor drafts. Download JSON when you want a portable copy.
2. Set family, colors, and design values
- Choose a Style family. Confirm a family change when requested; custom values remain.
- In Colors, pick a scheme or open a semantic color token to edit its light and dark values. Supported color values include hex and numeric OKLCH.
- Adjust Typography & shape for fonts, radius, density, and supported dimensions.
- Adjust Depth & motion for borders, shadows, and motion. Liquid Glass adds a material section and starting presets.
- Use individual reset controls to restore inherited values. Undo and redo let you compare edits.
More actions → Reset all tokens… returns colors and design values to the current family’s defaults while keeping the preset identity. Undo can restore the previous draft.
3. Inspect the preview and checks
Switch Preview mode between Light and Dark, change Preview page to inspect the gallery and other scenes, and use Preview width to inspect narrow layouts. Glass previews also expose backdrop choices. Preview controls do not become preset settings.
Open the review drawer to inspect checks. Resolve invalid fields and compilation errors before exporting. Contrast checks cover defined semantic token pairs; they do not replace testing real content, keyboard behavior, responsive layouts, or screen-reader interaction.
4. Export and install
- Wait for the current draft to compile successfully.
- Choose More actions → Download JSON, or open Export in the review drawer and choose Download preset JSON.
- For manual styling, choose Tailwind v4 token CSS and Family CSS in the Output selector. Copy both to apply the full family.
- Install JSON with the CLI, or use Get code for a public shareable snapshot.
pnpm dlx @ombelle-ui/cli@1.1.2 init --preset ./project-preset.jsonFor an existing initialized project, use theme add ./project-preset.json. An export is available only for the successfully compiled current draft; stale output cannot be exported.
Keep or recover your draft
Reopening the editor in the same browser restores valid saved work. If a saved draft cannot be read, download the recovery data before starting again. Storage failures leave edits in memory; download an export before closing the tab. See draft recovery for details.