# Red Assembly

Bold contrast · Dark preview · `red-assembly`

## Design intent

A red assembly board holds interrupted work in view until someone records the next action.

**Design rule.** Use the same named states on every line and place the restart instruction after the pending checks.

## Semantic palette

The first column of HEX values drives the dark preview. Use the light column when the appearance changes.

| Token | Default | Alternate | Role |
| --- | --- | --- | --- |
| `background` | `#391015` | `#F9F6EC` | Screen canvas |
| `surface` | `#50161F` | `#FFFEFC` | Primary cards, fields and settings rows |
| `text` | `#FFF2E7` | `#303129` | Body text, headings and key figures |
| `muted` | `#E4C1BE` | `#62645E` | Supporting labels, axes and timestamps |
| `accent` | `#F8DD95` | `#6C6549` | Primary action, focus and current data |
| `on_accent` | `#000000` | `#FFFFFF` | Action labels and icons on accent fills |
| `secondary` | `#BA6E73` | `#D0B5B4` | Supporting artwork, comparison series and selected fills |
| `border` | `#833744` | `#D4D3D0` | Card outlines, dividers and field boundaries |

## Type hierarchy

Display family `"Noto Sans", "Noto Sans CJK SC", sans-serif`. Interface family `system-ui, "Noto Sans CJK SC", sans-serif`. Font tracking is relative to the display size.

| Role | Size / line height | Weight | Treatment |
| --- | --- | --- | --- |
| Screen title | 48 / 49 px | 900 | Display, -0.075 em tracking |
| Section title | 19 / 24 px | 900 | Display, natural wrapping |
| Body and list | 15 / 22 px | 550 | Interface, sentence case |
| Caption and status | 12 / 16 px | 550 | Interface, pair states with labels |
| Metric | 62 / 62 px | 900 | Display, tabular lining figures |

## Shape and spacing

Use a 5 px spacing step, with 10 px between groups and 24 px horizontal screen insets. Feature cards use a 0 px radius. Nested input and icon containers use 0 px. Reserve at least 44 × 44 pt on iOS or 48 × 48 dp on Android for touch controls. The baseline is a 390 × 844 logical canvas.

Use a 2 px edge and a 3 px hard offset shadow on primary cards. Arrange readings and rows in compact panels and anchor the chart with a heavier bottom edge.

## Core components

- **Home.** Lead with “Line paused” and the key measure 03 (checks outstanding). Put Fixture · Fit test · Final label in the first list with a visible row label and trailing state.
- **Detail.** Pair the chart with a readable summary. The fixture check is first in the agreed restart order. Give the figure its unit, time window and a textual equivalent for users who skip the chart.
- **Upgrade.** Build the section around “Plan a line checklist”. Present billing interval and price together, then a primary action and visible restore and dismissal controls.
- **Settings.** Use a profile group, labeled settings rows and plain-language switch states. Place destructive actions in a separate group with confirmation.

Allocate the strongest accent to the primary action. Keep heavy rules and graphic blocks clear of text and preserve a clear focus outline.

## Appearance and accessibility

Switch the complete token set on an appearance change. Preserve the hierarchy, spacing and chart labels. Verify 4.5:1 contrast for regular text and 3:1 for large text and focus indicators. If a chart series is hard to tell apart, add a point marker, dash or inline label. Test larger type, wrapping and reduced motion before shipping.

## Originality checklist

- Check that the first screen still communicates ASSEMBLY's purpose when its title is hidden.
- Keep one leading action in the first viewport and use the palette roles consistently.
- Replace generic decorative marks with a visual that clarifies the task or data.
- Check long labels, empty states and the light appearance with real content.

## Implementation

- **iOS SwiftUI.** Define semantic colors in an asset catalog with two appearances. Use `@ScaledMetric` for type-linked spacing, `ViewThatFits` for crowded metric rows, and `accessibilityLabel` plus a summary for charts. Extend row hit areas with `contentShape(Rectangle())`.
- **Flutter.** Use paired `ThemeData` values and a `ThemeExtension` for chart tokens. Define spacing and radius in the theme and let `TextScaler` drive text growth. Add `Semantics` for indicators and actions.
- **React Native.** Map `useColorScheme()` to one semantic palette. Keep shared values in `StyleSheet.create`. Use `FlatList` for long lists, `hitSlop` to enlarge compact actions and meaningful accessibility roles and values.
