---
name: origon-ui-system
description: "Use when designing Origon UI screens or choosing components, tokens, themes, and interaction patterns from this repository."
---

# Origon UI System

Use this skill as the design-system source of truth for Origon UI work.

## Figma fidelity rule

Figma is the only source of truth for the documented design surface. Reproduce
only components, variants, properties, states, labels, and measurements that
are visibly present in the referenced Figma page/component set. Do not infer or
add a state because it is common in code, accessibility guidance, or another
component. If the local implementation differs, record the difference as a
gap; never present the extra implementation behavior as part of the Figma
specification.

## Source order

Read only the relevant sources, in this order:

1. `DESIGN.md` for system principles, component catalog, APIs, and accessibility.
2. `FOUNDATIONS.md` and `THEMES.md` for token semantics and theme behavior.
3. `tokens/source/*.json` when an exact token value or generated name is needed.
4. `packages/react/src` or `packages/swift/Sources/OrigonUI` to confirm a runtime API before inventing one.
5. `apps/docs/pages` for examples and existing documentation conventions.

## Design decisions

- Prefer existing Origon primitives and composition slots over new one-off patterns.
- Use semantic tokens, never hard-coded colors, for UI surfaces.
- Preserve the six brand/mode themes and test states against both dark and light surfaces when relevant.
- Treat `Tabs`, `SegmentedControl`, `SelectorRow`, `RangeSlider`, `Chip`, and `Filter` as different interaction patterns; choose by behavior, not visual similarity.
- Every interactive surface needs native semantics, keyboard behavior, visible focus, and an accessible label.
- When a Figma component has no runtime export, document it as design-only rather than inventing a public API.

For the component-selection matrix and checked Figma coverage, read
[`references/decision-guide.md`](references/decision-guide.md).
