| name | design-router |
| description | Routes a requested UI visual direction to one bundled design theme. Use when building or restyling an interface that needs an explicit aesthetic. |
| license | MIT |
| metadata | {"author":"typeui.sh (catalog) / router by user"} |
Design Router
Select one design system before generating or restyling UI.
Route
- Extract the requested style, product type, and visual constraints.
- If the user names a theme slug exactly, load
themes/<slug>.md.
- Otherwise, use CATALOG.md to select the closest single
theme. Default to
clean for applications and modern for marketing
pages only when the request supplies no useful visual direction.
- Read the selected theme file completely and apply its tokens, typography,
spacing, component rules, quality gates, and design intent.
- Do not mix themes unless the user explicitly requests a hybrid; when they
do, name the primary theme and the exact borrowed constraint.
Completion Criterion
Routing is complete when exactly one primary theme is named, its theme file
has been read, every generated UI decision follows that file or an explicit
user override, and any requested hybrid records the single borrowed
constraint.