Skip to documentation

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
Public / static44 molecule contractsNo tenant data

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 pages
src/theming/theme.cssdocs/decisions/ADR-0031-frontend-component-taxonomy-and-product-instances.md

Choose 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.
Terms used throughout this reference
TermWhat it means here
TokenA named design value, such as a color or spacing step. A semantic token names its purpose rather than its raw value.
Contract / API / propsThe supported inputs, outputs and behavior a caller can rely on. Props are the values, content and callbacks passed to a React component.
ConsumerA component or screen that uses another component. Consumer notes trace selected real uses, not every use in the repository.
ControlledThe caller supplies the current value and receives changes. Uncontrolled means the underlying control manages that value itself.
Instance / adapterA named product binding that supplies meaning, navigation or behavior to reusable UI. It reuses the structure rather than copying it.
Behavior hookA use… function that manages effects or coordinated work and returns state plus commands. Each call normally owns separate state.
Context / reducerContext makes a bounded value available to descendants. A reducer expresses related state changes as events. Neither automatically justifies a global store.
Slot / portal / mountingA 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.
RadixThe interaction primitives used by many local controls to coordinate focus, keyboard behavior, selection and disclosure. They still need appropriate labels and consumer configuration.
Server boundaryThe server-side place that checks access and supplies allowed data. A hidden button or client-side redirect is not an access check.
ADR / skillAn architecture decision record explains an accepted choice and why. A development skill turns those choices into implementation and review guidance.
Live preview

This specimen imports Card, LabelWithInfo, Input and Button directly from the UI library.

Shared components in a field assembly

Explore live molecules

Explore the system

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.
Examples do not establish product behavior
A working specimen demonstrates the supplied component contract. It does not prove product adoption, authorize an operation or provide a complete application workflow. Read each component's integration limits before using it in a route.
Current components and theme tokens. Fictional example data. Source views refresh on deployment; authors maintain contract notes.