Design system / Overview
CreativeXHub design system
CreativeXHub design system
The design system defines the theme values, reusable component contracts and composition rules used to build application interfaces. This reference explains their implementation and shows current components with fictional data.
The neutral foundation
Aa
- System sans
- ui-sans-serif, system-ui, sans-serif
- Fluid body size
- clamp(1.45rem, calc(1.3927rem + 0.1591vw), 1.8rem)
Current typography and neutral palette values. Brand and feedback palette placeholders remain identified in the source.
- Primitive tokens
- 158
- Semantic names
- 101
- Tenant presets
- 7
Theme, components and application pages
The theme defines primitive values, semantic tokens and Tailwind utilities in src/theming/. Atoms use these styles for small controls and display elements. Molecules combine components for one focused concern; organisms coordinate several concerns within a section.
Templates arrange content through slots. Named instances bind reusable components to product copy, navigation and behavior. Pages and layouts assemble these components, select rendering intent and supply permitted data. Protected routes and server operations enforce access; component visibility does not establish permission.
src/theming/theme.css
→ primitives: palette, size, spacing and other raw values
→ semantics: interface-purpose aliases and scoped overrides
→ utilities: Tailwind classes used by components
atoms → focused molecules → coordinated organisms
templates + named instances + route composition → application pagessrc/theming/theme.cssdocs/decisions/ADR-0031-frontend-component-taxonomy-and-product-instances.mdChoose a reference page
- Theme selection: Read semantic roles, then typography and foundations.
- Component integration: Read the atom or molecule contract for supported inputs, caller responsibilities and a current example.
- Code placement and composition: Read Molecules & instances, then Organisms and Page compositions.
- Implementation and policy: Sources & standards links current source views, accepted decisions and development guidance.
| Term | What it means here |
|---|---|
| Token | A named design value, such as a color or spacing step. A semantic token names its purpose rather than its raw value. |
| Contract / API / props | The supported inputs, outputs and behavior a caller can rely on. Props are the values, content and callbacks passed to a React component. |
| Consumer | A component or screen that uses another component. Consumer notes trace selected real uses, not every use in the repository. |
| Controlled | The caller supplies the current value and receives changes. Uncontrolled means the underlying control manages that value itself. |
| Instance / adapter | A named product binding that supplies meaning, navigation or behavior to reusable UI. It reuses the structure rather than copying it. |
| Behavior hook | A use… function that manages effects or coordinated work and returns state plus commands. Each call normally owns separate state. |
| Context / reducer | Context makes a bounded value available to descendants. A reducer expresses related state changes as events. Neither automatically justifies a global store. |
| Slot / portal / mounting | A slot accepts content or forwards props to a child. A portal renders elsewhere in the document, as overlays often do. Mounting creates a component instance; unmounting removes it and its local state. |
| Radix | The interaction primitives used by many local controls to coordinate focus, keyboard behavior, selection and disclosure. They still need appropriate labels and consumer configuration. |
| Server boundary | The server-side place that checks access and supplies allowed data. A hidden button or client-side redirect is not an access check. |
| ADR / skill | An architecture decision record explains an accepted choice and why. A development skill turns those choices into implementation and review guidance. |
This specimen imports Card, LabelWithInfo, Input and Button directly from the UI library.
Shared components in a field assembly
Explore the system
- Colors Color primitives, OKLCH notation and the distinction between palette values and semantic roles.
- Semantic roles Purpose-based tokens connect theme values to component styles. Theme overrides change those values without replacing component markup.
- Typography Fluid font sizes, semantic text roles and independently selected line height, font family and color.
- Foundations Theme values and layout utilities for spacing, corners, elevation, motion, content width and stacking order.
- Tenant themes Production console presets and custom palette derivation, with explicit preview and publication boundaries.
- Shadcn Local ownership of shadcn-derived components, their runtime dependencies and the process for reviewing upstream changes.
- Atoms Small controls and display elements: supported props, theme dependencies, consumer responsibilities and current examples.
- Molecules & instances Component taxonomy, product adapters and state ownership, illustrated through navigation and submission editing.
- Molecules Curated component families, with current examples, API notes, dependencies and integration limits.
- Organisms Interface sections that coordinate navigation, forms, uploads, management or review. Each contract identifies its data and behavior owner.
- Page compositions Shells, layout templates and feature sections assembled into application pages. Routes retain data loading and authorization responsibilities.
- Sources & standards Build-time source views, accepted architecture decisions and implementation and review guidance.
How the reference stays current
- Specimens import shared components and use the application theme. Their markup and styles are not separate documentation implementations.
- The build reads token declarations, the UI inventory, selected ADRs and development skills from approved repository paths. These views change on deployment, not in response to runtime repository edits.
- Authors maintain contract explanations and usage examples manually. When a component API changes, update its documentation. Source types and implementation remain authoritative.
- Public examples use fictional data and local state, read-only props or an inert interaction boundary. Workflows requiring authorized data or operations are documented without mounting the workflow.