Design system and forms
The Copilot Warm visual language, how its colours reach class names, the component kit and the shared app components, icons, and how forms are written.
Redesign B, “Copilot Warm”, is the app’s visual language: an orange primary (#FF6B1A), warm cream surfaces, an amber accent kept for AI only, and the Be Vietnam Pro typeface. The written brief is direction B of the design system in the repository’s design folder.
The design reaches the screen in three layers:
- Colour variables: raw palettes, and on top of them named roles such as primary, AI accent, page surface, text levels and borders.
- Tailwind class names mapped to those roles.
- Components: the kit of basic controls, and the app components built from it.
Colours and class names
| Role | Used for |
|---|---|
| Primary, in five steps | Main actions, hover and pressed states, text on a soft background, tints |
| AI accent | AI elements only: badges, gradient borders |
| Surfaces | The cream page, the sidebar and a secondary surface |
| Text, in levels | Strong, secondary and soft text |
| Borders | Soft and stronger strokes |
| Status | Success, warning, error and info, each with a soft variant |
| Hot | The colour of a Hot fit score |
Each role has two class names. One follows the long naming of the AlignUI kit the components came from. The other is a short alias taken from the design mockups, so classes can be copied from a mockup into the code unchanged. The theme also defines two corner radii (12px for controls, 20px for cards), a gradient with a matching shadow for primary actions, and Be Vietnam Pro as the default font, served from the app itself in weights 400 to 800.
The app is light only. It tells the browser so, which keeps the operating system’s dark mode from restyling controls such as the email editor’s menus.
The kit
The kit holds the basic controls, ported from AlignUI: buttons, inputs, selects, switches, tabs, modals, popovers, toasts and so on. Each control is a compound component whose parts (root, header, body, footer…) are used together. Styles are variant recipes: a button, for example, has a variant (primary, neutral, error, danger), a mode (filled, stroke, lighter, ghost) and a size from large to extra-extra-small. Destructive actions go through one shared confirm dialog. Radix primitives sit underneath the overlays and form controls and supply focus handling and accessibility.
The shared app components are built from the kit: page header and container, section card, empty state, KPI card, sparkline, timeline, kanban board, bulk action bar, saved view tabs, sub-navigation tabs, preview panel, entity picker, channel icon, Fit score pill, confidence meter, agent avatar and brand logo.
The agent’s display name (Kit) and its mascot images are defined once and used everywhere; components never spell the name out.
Icons
One icon component draws icons from the Solar and Remix sets, and some kit controls also accept Remix icons directly. The icons are bundled offline, and only the names written out in the source are included; see Frontend architecture.
Forms
The app uses no form library. A form keeps one piece of state per field, resets the fields when its dialog opens, and submits through a query mutation. From that follow a few conventions:
- Client-side checks stay minimal: required fields and trimming. The backend validates every request, and the form shows the backend’s first message in a toast when it refuses.
- The submit button is disabled while the mutation is pending.
- Sign-in and sign-up forms turn off the browser’s own validation and show their own messages.
- Campaign Step settings get their inputs from each Step type’s description in the backend; the builder lays out only the main fields of each Step type by hand. See Flow and email builders.