Skip to content
AI Building

Build an Atrium app with AI

One minimised file with everything an AI tool needs: how to work, the hard rules, the full app contract and the design system. Upload it to any LLM, then describe your app.

ATRIUM-AI-BUILD.mdMarkdown
  1. Upload the file to ChatGPT, Claude, Cursor or any AI tool (or paste its contents).
  2. Describe the app you want in plain English.
  3. Let the AI ask you for the API key when it needs one.
View the file
Auto

Component · Form elements

Radio

View .md

Stable

Radios let managers pick exactly one option from a short list, with every option visible. Use them for five or fewer options. A group of radios sits in a fieldset with a legend that asks the question, and every radio in the group shares one name.

Atrium uses the browser's own radio, tinted with the accent colour. It has no separate hover style.

Charge

Specifications

Anatomy

Charge
1) Legend
font-size: var(--at-text-sm) /* 14px */
font-weight: var(--at-weight-bold)
2) Radio
width: 1.125rem; height: 1.125rem /* 18px */
accent-color: var(--at-bg-primary)
3) Label
font-size: var(--at-text-md) /* 16px */
the whole label is clickable

Size and spacing

Radio
18px by 18px
Spacing
radio to label: var(--at-space-3) /* 8px */
between options: var(--at-space-3) /* 8px */

Radio group

Pre-select the most common answer if there is a safe default. Otherwise leave all unselected and check one was chosen on save.

Example

Read frequency

States

Unselected

browser default circle

Selected

dot: var(--at-bg-primary)

Focus

outline: 3px solid var(--at-border-focus)
outline-offset: 2px

Disabled

greyed by the browser

Usage

When to use

  • Exactly one choice from five or fewer options.

When not to use

  • More than about five options: use a select.
  • Several choices: use checkboxes.
  • A single on or off option: use a checkbox.

Content

  • Order options logically: smallest to largest, or most common first.
  • Keep each label short and parallel: "Monthly", "Quarterly", "Yearly".

Do and don't

Read frequency
DoA legend that asks the question, options in order.
Don'tNo legend, and different names, so both can be selected.

Do

  • Pre-select the most common option when it is safe to.

Don't

  • Use a single radio on its own.

Implementation

HTML

<fieldset class="at-fieldset">
  <legend>Charge</legend>
  <label class="at-choice"><input type="radio" name="charge" checked /> Flat monthly fee</label>
  <label class="at-choice"><input type="radio" name="charge" /> Per unit per month</label>
</fieldset>

Classes

ClassWhat it does
at-fieldsetGroups the options
at-choiceOne option

Tokens used

--at-bg-primary


Accessibility

  • Give every radio in a group the same name.

Related