interplane.Get Omega
Read in your language

aienux

Aienux, the AienOS kernel: boot, scheduling, IPC and capability boundaries. Pre-alpha; host, emulator and physical evidence are labelled separately.

Brought by drakestapleton

branch main Branches Tags History

aienux / docs / design / DESIGN.md

438 lines · 17436 bytes Raw Blame History Source

version: alpha name: Allen description: A night sky with one calm light in the middle. Allen's look on every screen AienOS draws. colors: primary: "#ECF0FC" night: "#060812" hint: "#96A0C4" faint: "#828CB0" glow: "#96AAFF" mist: "#C8D2FF" ink: "#4056C4" warm: "#FFD496" warm-soft: "#FFDEB4" heart: "#FFD2AA" heart-core: "#FFECD6" halo: "#3C4AD2" halo-violet: "#705CFF" sky-glow: "#6E82FF" panel: "#0C1026" lit: "#3B446F" typography: voice: fontFamily: Quicksand fontSize: 27px fontWeight: 400 lineHeight: 40px letterSpacing: "0.02em" body: fontFamily: Quicksand fontSize: 21px fontWeight: 500 lineHeight: 30px letterSpacing: "0.01em" small: fontFamily: Quicksand fontSize: 16px fontWeight: 500 lineHeight: 22px letterSpacing: "0.02em" title: fontFamily: Quicksand fontSize: 40px fontWeight: 300 lineHeight: 52px letterSpacing: "0.04em" rounded: sm: 8px md: 14px panel: 22px pill: 999px spacing: xs: 4px sm: 8px md: 16px lg: 24px xl: 40px xxl: 72px bar-width: 720px bar-height: 54px bar-bottom: 96px text-width: 900px words-below-centre: 250px components: page: backgroundColor: "{colors.night}" textColor: "{colors.primary}" typography: "{typography.body}" allen-says: backgroundColor: "{colors.night}" textColor: "{colors.primary}" typography: "{typography.voice}" allen-title: backgroundColor: "{colors.night}" textColor: "{colors.primary}" typography: "{typography.title}" hint-text: backgroundColor: "{colors.night}" textColor: "{colors.hint}" typography: "{typography.small}" fine-print: backgroundColor: "{colors.night}" textColor: "{colors.faint}" typography: "{typography.small}" input-bar: backgroundColor: "{colors.night}" textColor: "{colors.primary}" typography: "{typography.body}" rounded: "{rounded.pill}" height: 54px width: 720px input-bar-caret: backgroundColor: "{colors.night}" textColor: "{colors.glow}" choice: backgroundColor: "{colors.panel}" textColor: "{colors.mist}" typography: "{typography.body}" rounded: "{rounded.md}" padding: 16px choice-lit: backgroundColor: "{colors.lit}" textColor: "{colors.primary}" typography: "{typography.body}" rounded: "{rounded.md}" padding: 16px button-primary: backgroundColor: "{colors.lit}" textColor: "{colors.primary}" typography: "{typography.body}" rounded: "{rounded.pill}" padding: 14px button-primary-hover: backgroundColor: "{colors.lit}" textColor: "{colors.warm-soft}" button-secondary: backgroundColor: "{colors.panel}" textColor: "{colors.mist}" rounded: "{rounded.pill}" padding: 14px panel: backgroundColor: "{colors.panel}" textColor: "{colors.primary}" rounded: "{rounded.panel}" padding: 24px found-line: backgroundColor: "{colors.night}" textColor: "{colors.primary}" typography: "{typography.body}" found-line-label: backgroundColor: "{colors.night}" textColor: "{colors.hint}" typography: "{typography.body}" state-word: backgroundColor: "{colors.night}" textColor: "{colors.glow}" typography: "{typography.small}" state-word-needs-you: backgroundColor: "{colors.night}" textColor: "{colors.warm}" typography: "{typography.small}" focus-ring: backgroundColor: "{colors.night}" textColor: "{colors.mist}" orb-halo: backgroundColor: "{colors.halo}" orb-halo-violet: backgroundColor: "{colors.halo-violet}" orb-heart: backgroundColor: "{colors.heart}" orb-heart-core: backgroundColor: "{colors.heart-core}" water: backgroundColor: "{colors.ink}" sky-wash: backgroundColor: "{colors.sky-glow}"


Overview

Allen's look is a night sky with one calm light in the middle. The sky is the stage and Allen is the only actor. Everything a person reads sits in the centre or in one bar at the bottom. There are no windows, menus, tabs, sidebars or progress bars. Every change eases in and nothing cuts.

This file is the one place the look is written down. The native kernel (boot and setup), the aienos-run windows on Windows, macOS and Linux, the Try page on aienos.com and the docs read their values from the three files generated from it (docs/design/tokens/allen_tokens.h, allen_tokens.rs, allen-tokens.css). Change a value here, run cargo run -p allen-design-tokens -- generate, and every surface follows. A test fails if the generated files fall behind this one.

Where the values come from: the colours, sizes, clocks and curves are read from the iMac kernel's drawing code (native/kernel/ui/ on feat/allen-boot-everywhere, the same bytes the iMac runs, commit 0930240), not from screenshots. Each token below names its source line. The web font, glass panels and entrance motion come from the Allen design-language skill.

Colors

Light on dark, cool blues for everything calm, one warm colour for what is lit or alive.

There is no red and no green. Nothing on a first-run screen is an error; a problem is a sentence in Primary with its state word in Warm.

Typography

Allen's own typeface is drawn in pen strokes by the kernel (allen_font.c); there is no font file. Web and runner surfaces use Quicksand (OFL), the nearest match. Weight and size carry the hierarchy; one family only.

RoleKernel cap height at 1080pKernel stroke weightWeb size / weight
voice (what Allen says)19 px100027 px / 400
body (choices, found lines)15 px115021 px / 500
small (hints, state words)11 px125016 px / 500
title ("Allen is ready.")web onlyn/a40 px / 300
native-type:
  voice-cap: 19px
  body-cap: 15px
  small-cap: 11px
  voice-weight: "1000"
  body-weight: "1150"
  small-weight: "1250"
  line: 40px
  wrap: 900px

Native surfaces (the kernel and anything that draws through it) use the native-type tokens with Allen's stroke typeface. Mockups in docs/design/screens/ draw their words with the same strokes, exported from allen_font.c, so what a builder sees in a mockup is what the kernel can draw.

Web sizes are the kernel cap height divided by 0.70, Quicksand's cap height as a share of its size (INFERRED from the font's published metrics; not measured on a rendered glyph yet). Allen's line height is 40 px (allen_ui.c 186) and his text wraps at 900 px (allen_ui.c 191).

Layout

Every Allen surface lays out on a 1920 by 1080 design grid scaled by k = min(width / 1920, height / 1080) (allen_ui.c scale_for), so a phone, a laptop and a 5K iMac show the same picture.

Elevation & Depth

Depth comes from light, not shadows. The sky is the floor. Glass panels sit just above it with a 1 px edge in Glow at 14% to 16% and an 18 px backdrop blur, and only where a group of choices needs holding together. Allen's mind is the brightest thing on screen. Nothing else glows unless it is lit or needs the person.

Shapes

Round and soft. Fields and buttons are pills (rounded.pill). Choice rows use rounded.md (14 px). Panels use rounded.panel (22 px). There are no sharp corners, no icons in rounded squares and no dividing rules.

Components

Motion

Motion explains a change and then stops. The tokens are in the block below; the generator reads it.

motion:
  ease-smooth: "cubic-bezier(0.3333, 0, 0.6667, 1)"
  ease-out: "cubic-bezier(0.3333, 1, 0.6667, 1)"
  ease-enter: "cubic-bezier(0.22, 0.61, 0.36, 1)"
  frame: 16ms
  letter: 35ms
  letter-cool: 900ms
  word-rise: 600ms
  words-fade: 450ms
  read-base: 6000ms
  read-per-letter: 70ms
  state-blend: 700ms
  choice-lit: 100ms
  dawn: 900ms
  dusk: 4000ms
  dusk-fallback: 1400ms
  bar-rest: 9000ms
  bar-rise: 900ms
  caret-breath: 1100ms
  caret-hold: 500ms
  mind-form: 3000ms
  enter-rise: 10px
  enter-blur: 3px
heartbeat:
  breath-period: 5500ms
  breath-depth: "0.030"
  think-pulse-period: 900ms
  heart-idle: "0.195"
  heart-listen: "0.273"
  heart-think: "0.469"
  heart-speak: "0.313"
  heart-ease-speak: 80ms
  heart-ease: 400ms

Boot sequence

The night is one clock, identical on every machine. Values from night.h and chirp.h.

boot:
  holes-appear: 2600ms
  fade-end: 6800ms
  spiral: 6000ms
  merge: 12000ms
  ripple-run: 3600ms
  gone: 15200ms
  allen-born: 12300ms
  allen-formed: 15300ms
  centre-x: "0.50"
  centre-y: "0.40"
sound:
  chirp-rate: 48000Hz
  chirp-from: 200Hz
  chirp-to: 1000Hz
  chirp-peak: "0.70"
  chirp-in: 40ms
  chirp-rise: 600ms
  chirp-start: 11400ms
  chirp-end: 12300ms

Sound

There is one sound: the chirp of two black holes merging, raised into hearing (200 Hz rising to 1000 Hz over 0.6 s, loudness following pitch to the ⅔ power, peak 70% of full scale at the merger, a 0.3 s ring). It is made from the formula at boot; there is no sound file.

Voice

Every word a person reads goes through the humanizer skill. Allen is a person speaking to one other person.

Accessibility

Contrast is measured by the generator (cargo run -p allen-design-tokens -- check), WCAG 2.2 relative luminance, on the solid colours; a pair below its floor fails the build.

contrast:
  primary-on-night: "7.0"
  hint-on-night: "4.5"
  faint-on-night: "4.5"
  mist-on-panel: "4.5"
  primary-on-lit: "4.5"
  warm-on-night: "4.5"
  glow-on-night: "4.5"
  primary-on-panel: "7.0"
  warm-soft-on-lit: "4.5"
drawn-alpha:
  hint: "1.0"
  faint: "1.0"
kernel-today-alpha:
  hint: "0.586"
  faint: "0.430"
reduced-motion:
  night: still
  letter: 0ms
  word-rise: 0ms
  state-blend: 150ms
  dusk: 400ms
  breath-depth: "0"
  think-pulse-period: 0ms
keys:
  next: ArrowDown ArrowRight Tab
  previous: ArrowUp ArrowLeft Shift+Tab
  choose: Enter Space
  not-now: Escape
  speak: any letter

Do's and Don'ts