Files
os/DESIGN.md
2026-10-25 14:11:49 +01:00

318 lines
18 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
name: Fennec OS
description: A living-room TV home in tvOS 26 Liquid Glass, on open hardware the family owns.
colors:
fennec-orange: "#ff7a35"
fennec-orange-ink: "#ff9a5c"
state-ok: "#34c759"
state-ok-ink: "#5ee07a"
state-warn: "#ff9f0a"
state-warn-ink: "#ffb340"
state-danger: "#ff453a"
state-danger-ink: "#ff8278"
text-primary: "#ffffff"
text-secondary: "#ffffffb8"
text-tertiary: "#ffffff8f"
ink-on-focus: "#121317"
focus-platter: "#ffffffe0"
glass-smoke: "#0b0c12"
hairline: "#ffffff1f"
night-base: "#050506"
backdrop-highlight: "#9aa4b5"
backdrop-mid: "#2a3140"
backdrop-deep: "#06070a"
typography:
display:
fontFamily: "Onest"
fontSize: "96px"
fontWeight: 700
letterSpacing: "-2px"
clock:
fontFamily: "Onest"
fontSize: "64px"
fontWeight: 600
letterSpacing: "-1px"
headline:
fontFamily: "Onest"
fontSize: "56px"
fontWeight: 700
letterSpacing: "-1px"
title:
fontFamily: "Onest"
fontSize: "40px"
fontWeight: 700
shelf-title:
fontFamily: "Onest"
fontSize: "36px"
fontWeight: 600
body:
fontFamily: "Onest"
fontSize: "28px"
fontWeight: 400
item:
fontFamily: "Onest"
fontSize: "26px"
fontWeight: 600
fact:
fontFamily: "Onest"
fontSize: "26px"
fontWeight: 500
label:
fontFamily: "Onest"
fontSize: "24px"
fontWeight: 500
caption:
fontFamily: "Onest"
fontSize: "22px"
fontWeight: 500
rounded:
track: "8px"
pill-row: "24px"
artwork: "24px"
field: "30px"
platter: "32px"
card: "36px"
sheet: "48px"
pane: "56px"
capsule: "9999px"
spacing:
hairline: "1.5px"
xs: "8px"
icon-gap: "12px"
sm: "16px"
md: "24px"
card-gap: "32px"
fact-gap: "40px"
sheet-pad: "56px"
safe-y: "64px"
row-step: "88px"
safe-x: "96px"
components:
app-card:
rounded: "{rounded.card}"
width: "320px"
height: "192px"
app-card-label:
textColor: "{colors.text-tertiary}"
typography: "{typography.label}"
app-card-label-focused:
textColor: "{colors.text-primary}"
typography: "{typography.label}"
status-capsule:
textColor: "{colors.text-primary}"
typography: "{typography.label}"
rounded: "{rounded.capsule}"
height: "64px"
padding: "0 28px 0 24px"
settings-platter:
backgroundColor: "{colors.glass-smoke}"
rounded: "{rounded.platter}"
padding: "8px"
settings-row:
textColor: "{colors.text-primary}"
typography: "{typography.item}"
height: "88px"
padding: "0 28px"
settings-row-focused:
backgroundColor: "{colors.focus-platter}"
textColor: "{colors.ink-on-focus}"
rounded: "{rounded.pill-row}"
height: "88px"
nav-item:
textColor: "{colors.text-secondary}"
typography: "{typography.item}"
rounded: "{rounded.capsule}"
width: "512px"
height: "80px"
nav-item-focused:
backgroundColor: "{colors.focus-platter}"
textColor: "{colors.ink-on-focus}"
rounded: "{rounded.capsule}"
menu-item-selected:
backgroundColor: "{colors.focus-platter}"
textColor: "{colors.ink-on-focus}"
typography: "{typography.item}"
rounded: "{rounded.capsule}"
height: "72px"
keyboard-chip:
textColor: "{colors.text-secondary}"
typography: "{typography.label}"
rounded: "{rounded.capsule}"
width: "200px"
height: "72px"
keyboard-chip-submit:
backgroundColor: "{colors.fennec-orange}"
textColor: "{colors.text-primary}"
rounded: "{rounded.capsule}"
height: "72px"
text-field:
textColor: "{colors.text-primary}"
rounded: "{rounded.field}"
width: "1200px"
height: "96px"
padding: "0 36px"
details-sheet:
backgroundColor: "{colors.glass-smoke}"
rounded: "{rounded.sheet}"
width: "720px"
padding: "56px"
shelf-artwork:
rounded: "{rounded.artwork}"
width: "402px"
height: "226px"
---
# Design System: Fennec OS
All values are design px on a 1920x1080 grid; the launcher multiplies every length by `u = min(width/1920, height/1080)`. This is a native Slint + OpenGL TV UI, not CSS.
## Overview
**Creative North Star: "The Living Top Shelf"**
Fennec OS is tvOS 26 Liquid Glass on open hardware: a dark, slowly flowing backdrop tinted by the focused app's three-colour palette, with real refracting glass on top. The home screen re-composes around focus. As the focus glides along the app row, the backdrop palette, the shelf content (artwork or the app's name, description and live facts) and the glass lift all move together. Nothing else competes; the screen is mostly backdrop and type.
Glass is the material, not the decoration. It carries exactly three things: **focus** (the lifted card, the white focus platter), **grouping** (one platter per list, the sheet, the pairing pane), and **state** (the status capsule, the pairing status pill). Facts, hints, dates and descriptions sit bare on the backdrop as icon + text. The glass is drawn by a separate OpenGL layer underneath Slint (Snell refraction with per-channel dispersion, squircle bevel, Fresnel, a specular rim facing a key light, a slow light sweep, a soft grounding shadow), so Slint content never sits beneath a pane; covered content fades out entirely.
Density is 10-foot: few elements, big type, generous safe area, one obvious focus at a time.
**Key Characteristics:**
- Palette backdrop per focused app; system chrome stays neutral white-on-dark.
- Glass only for focus, grouping and state; everything else bare.
- Focus = scale lift (cards ×1.12, chips ×1.05, rows ×1.015) plus an inner glow, never a ring or outline.
- Onest throughout, tight negative tracking on large sizes.
- Merged-glass droplets: menus and toasts bud out of the element that spawned them.
- Motion on one expressive ease, `cubic-bezier(0.22, 1, 0.36, 1)`.
## Colors
Neutral white-on-night chrome; colour comes from the focused app's palette and from a small set of system and state hues.
### Primary
- **Fennec Orange** (`fennec-orange`): the system accent. Glows and tints glass that belongs to the system itself: the pairing pane and its step beads, the keyboard text field's glow, the keyboard submit chip. **Fennec Orange Ink** (`fennec-orange-ink`) is its lighter text tone for orange on dark: the caret, the selected keyboard mode, settings option values.
### Secondary (state)
- **Connected Green** (`state-ok`): glass glow/tint for success (pairing done). Text and icon ink on the backdrop use the lighter **Green Ink** (`state-ok-ink`).
- **Caution Amber** (`state-warn`): glass glow/tint for a warning state (no Bluetooth adapter). On the backdrop, icons and text use **Amber Ink** (`state-warn-ink`): low remote battery (≤15%), no network, experimental apps.
- **Danger Red** (`state-danger`): the focus platter tint for destructive settings rows. Unfocused destructive row text uses **Danger Ink** (`state-danger-ink`).
### Per-app accents (data, not tokens)
Every app manifest carries an `accent` and a three-stop `palette` (highlight, mid, deep). The accent tints its card glass (accent × 0.72 at 38% tint, lifting to 50% and toward white when focused) and glows the sheet, menu, toast and launch pane. The palette drives the backdrop shader. When a manifest omits a palette, the fallback is `backdrop-highlight` / `backdrop-mid` / `backdrop-deep`.
### Neutral
- **White** (`text-primary`): titles, focused names, values.
- **Secondary White** (`text-secondary`, 72%): date, category labels, unfocused settings nav, descriptions.
- **Tertiary White** (`text-tertiary`, 56%): unfocused app names, hints and details.
- **Focus Ink** (`ink-on-focus`): text and icons on the white focus platter.
- **Focus Platter** (`focus-platter`, white at ~86–88%): the white glass under a focused row, nav item, menu item, key or chip.
- **Glass Smoke** (`glass-smoke`): the dark tint of grouping glass, at 30% (settings platter), 38% (sheet), 42% (menu) and 48% (pairing pane). Larger, more modal panes are smokier.
- **Hairline** (`hairline`): 1.5 px dividers between platter rows and sheet info rows.
- **Night Base** (`night-base`): the window clear colour under the backdrop.
### Named Rules
**The Borrowed Colour Rule.** Chrome never brings its own hue. Colour comes from the focused app (accent, palette) or carries meaning (orange = system action, green/amber/red = state).
**The Two Tones Rule.** Each state hue has a glass tone and a lighter ink tone. Saturated tones tint and glow glass; text and icons sitting directly on the moving backdrop use the ink tone.
## Typography
**Display / Body Font:** Onest (static 400, 500, 600, 700; OFL; full Hungarian coverage including ő/ű)
**Character:** A friendly geometric grotesque with open counters that reads across a room. Large sizes run bold with tight negative tracking; small sizes stay at 500–600 so they hold up over a moving backdrop.
### Hierarchy
- **Display** (700, 96px, −2px): the focused app's name on the home shelf. One per screen.
- **Clock** (600, 64px, −1px): the time, top-left, anchoring the top bar.
- **Headline** (700, 56px, −1px): screen titles (Settings). The same band runs from 48 to 60 px: keyboard title and launch splash name at 48/−0.8, pairing title at 52, sheet app name at 60/−1.2.
- **Title** (700, 40px): the settings page title. **Shelf title** (600, 36px) heads the Top Shelf row.
- **Body** (400, 28px): app descriptions on the shelf and sheet, capped at 2 lines on the shelf (1040 px measure). 28/700 is used for settings option values.
- **Item** (600, 26px): list and menu items, settings nav, shelf card titles. **Fact** (500, 26px): live facts and the long date.
- **Label** (500–600, 24px): app names under cards (600), the status capsule, toast, subtitles, sheet info rows, keyboard chips. This is the floor for anything the household must read.
- **Caption** (500, 22px): shelf card detail, the keyboard hint, the "Back to close" hint on the splash. Settings row detail runs at 21px. Nothing goes below 20px.
### Named Rules
**The Sofa Floor Rule.** Body text is at least 24px and secondary text at least 20px on the 1080 grid. If text won't fit, cut words; don't shrink the type.
**The Tighten-As-You-Grow Rule.** Tracking goes negative only at 48px and up (about −1/50 of the size). Smaller sizes stay at normal tracking.
## Layout
A fixed 1920x1080 stage scaled uniformly by `u`. Safe area: 96px left and right (`safe-x`), 64px top and bottom (`safe-y`). Lengths sit on an 8px rhythm, with optical exceptions (12px icon-to-text gaps, a 28px row text inset).
**Home.** The top bar has the clock and long date at the left (block at y 44, clock line 88px tall) and the status capsule at the right (y 56, 64 tall, as wide as its content). The Top Shelf fills y ≈ 260–620 and shows either Netflex artwork (four 402×226 cards with 40px gaps, title +20, detail +56) or the hero (display name at y 260, description at y 384, facts row at y 512 with 40px between facts). The app row is at y 760: five 320×192 cards with 32px gaps, names 16px below, rows 296px apart. Lower rows stay hidden while the shelf shows. Moving into a lower row scrolls it to the middle and dims the shelf.
**Settings.** Uses the whole safe area. The headline sits at the top. Categories form a 512px column (80px items, 88px step) starting 184px down. The rows platter starts 608px from the left edge, has 88px rows, shows 7 rows and scrolls once focus passes row 5.
**Sheet.** 720px wide, inset 64px from the right/top/bottom edges, with 56px padding. It has a 128px icon tile, name at +160, category at +240, description at +296, and info rows (80px each) pinned to the bottom.
**Modal pane.** The pairing pane is 1312×720 and centred. Its content column starts 440px in.
## Elevation & Depth
Depth is real optics, not drop shadows. Every glass panel is a refracting slab whose bevel bends the backdrop. Bigger panels are thicker, with a wider bevel, stronger lensing and a deeper shadow. Each panel casts its own soft grounding shadow (ambient strength about 0.26, plus 0.22 when focused). Focus brings light from within, a stronger rim and a slight accent spill. Frost (backdrop blur) rises with the pane's role: about 1.2 for cards and the capsule, 2.2 for the settings platter, 3.0–3.8 for the menu, sheet and pairing pane. Nested glass (beads, pills and focus platters on another pane) sets frost below 0 and lights what is already beneath it.
Slint-drawn shadows appear only on non-glass imagery: shelf artwork (blur 28, y 12, black at 50%) and the illustrated Siri Remote.
### Named Rules
**The Nothing-Under-Glass Rule.** Glass refracts the backdrop, never Slint content. Anything a pane would cover fades out completely before the pane arrives.
**The Lift-Is-Focus Rule.** Focus is shown by scale lift, inner light and a brighter tint, never by an outline or ring. Pressing OK pushes the focused card back in by 5%.
**The Droplet Rule.** A transient surface grows out of its source as merged glass. The context menu buds from the focused card, the toast from the status capsule, and the launch pane from the card that was opened.
## Shapes
Continuous squircle corners everywhere, sized to the panel. Capsules (radius = height/2) are used for status, chips, nav items, menu items and pills. 24px is for focus rows and artwork, 30px for the text field and key lens, 32px for the settings platter and menu, 36px for app cards and the sheet icon tile (scaled with lift), 48px for the sheet, 56px for the pairing pane. Radius grows with panel size. There are no borders on glass; the rim is a lit hairline from the shader. Icons are original vector line drawings on a 32-unit viewbox at 2.2–2.4 stroke (3 for check and alert). App marks are filled, simplified originals.
## Components
### App Card
Coloured glass in the app's accent, with the mark centred at 104px and the name below. At rest the tint is 38% and the name is at 56% white. Focused, the card lifts ×1.12, the tint brightens toward white, light comes from within, and the name turns full white. A long press of OK (520ms) buds out the context menu.
### Status Capsule
Clear glass capsule, 64 tall: remote icon and battery %, a 1.5px divider, then network icon and label. Low battery or no network switches to amber ink. The toast grows out of it as a 640×72 droplet with a dot in the app's accent.
### Facts
Bare icon (30px) + fact text (26/500) lines, 40px apart, under the hero description. Tone `ok` uses green ink and `warn` uses amber ink. Facts are never pills.
### Grouped Platter (settings rows)
One smoke-tinted glass platter per list. Rows are 88px with hairlines between them; the hairline hides next to the focused row. Each row has a title (26/600), optional detail (21) and a right-aligned value (24/400 secondary). Choice and device rows end in a chevron; network rows end in a lock and signal bars. The focused row gets a white focus platter (24px radius, ×1.015) and dark ink. Destructive rows use a red platter with white ink.
### Settings Navigation
No glass at rest. The focused category gets a white capsule with dark ink (×1.03). While the rows have focus, the selected category keeps a faint 10% capsule.
### Context Menu
Smoke glass (42%) merged with the focused card, 432 wide. Items are 72px with an icon, and the selected item is a white capsule with dark ink.
### Details Sheet
Smoke glass slides in from the right (720 wide). It holds the accent-tinted icon tile, the name, category and description. Info rows sit at the bottom as bare key/value lines with hairlines.
### On-screen Keyboard
A tvOS single-row keyboard. It has a 1200×96 glass field with an orange glow and an orange-ink caret, and a faint key track with a white focus lens (86×112). Keys fisheye from 31 to 48px under the lens. Below are mode/action chips, 200×72 capsules. The selected mode has orange ink, the focused chip is a white platter, and the submit chip is Fennec orange glass (34% tint when submit is possible, 8% when not).
### Pairing Guide
A smoke pane with an orange glow. On the left is an illustrated Siri Remote whose relevant buttons pulse in orange. On the right are three numbered steps on orange glass beads, a live status pill (green or amber glass when resolved, three breathing dots while searching) and a "Kihagyás" skip chip.
### Launch Splash
The focused card's glass morphs into a full-screen pane over 900ms. The app mark flies to centre and grows, then the name (48/700) and an accent shimmer inside a 280×16 glass track appear, with a "press Back" caption at the bottom.
## Do's and Don'ts
### Do:
- **Do** express every length on the 1920×1080 grid and multiply by `u`. Keep 96px side and 64px top/bottom safe area.
- **Do** mirror every glass rect's geometry exactly between Slint and the Rust glass layer (`card_rects`, `settings_screen::glass`, `keyboard::glass`).
- **Do** use one grouped platter per list and a white focus platter with `ink-on-focus` for the focused item.
- **Do** show focus with lift (×1.12 cards, ×1.05 chips, ×1.03 nav, ×1.015 rows) plus inner light.
- **Do** animate state with `cubic-bezier(0.22, 1, 0.36, 1)` at 200–600ms. Use the overshoot `cubic-bezier(0.3, 1.18, 0.4, 1)` only for droplets (menu, toast).
- **Do** use Fennec orange only for system actions (pairing, keyboard submit, field focus) and state hues only for state.
- **Do** keep readable text at 24px or more and secondary text at 20px or more.
### Don't:
- **Don't** put glass behind facts, hints, dates or descriptions. Those are bare icon + text on the backdrop.
- **Don't** draw Slint content where a glass pane will sit. Fade it out first.
- **Don't** mark focus with outlines, rings or borders.
- **Don't** give chrome its own hue. Colour comes from the focused app or carries meaning.
- **Don't** use saturated state hues for text on the backdrop. Use the ink tones.
- **Don't** add a second typeface or a system display face. Everything is Onest.
- **Don't** use glyph or emoji icons. Draw vector icons on the 32-unit viewbox.