SPB Git

Repository Public License

design-system.md 6.0 KB

# Design System

ORIX Camera uses two layers of tokens.

Layer File Scope
ORIXDesign Packages/ORIXCameraKit/Sources/ORIXDesign/ the ORIX family system: adaptive light and dark palette, spacing, radii, type, motion, haptics, shared components
Instrument App/Sources/DesignSystem/CameraTheme.swift the camera's instrument surfaces, always dark around the viewfinder

The camera screen forces a dark colour scheme: a viewfinder must not be surrounded by a bright interface. The library and Settings follow the system appearance (systemAppearance()); the editor's canvas is dark, as in most photo editors.

# Colour

# Instrument (camera screen, editor)

Token Hex Use
body #05070E the camera's body, behind everything
panel #10131F sheets of controls, cards
panelRaised #1A1E2E selected chips, pills
hairline white 10 % borders
text / textDim / textFaint #F2F4FB / #A3AAC2 / #6F7690 three levels of text
accent #A78BFA violet: selection, brand
manual #FBBF24 amber: anything under manual control
record #FF453A recording, failure
good / warn / bad #34D399 / #FBBF24 / #FF6B76 level, warnings

# ORIX palette (library, settings)

Adaptive pairs (light / dark): canvas #F4F5FA / #0A0D18, surface #FFFFFF / #141828, raised surface #EEF0F7 / #1D2236, hairline, three text levels, success, warning, danger. The camera's accent pair is violet #7C3AED / #A78BFA with amber #D97706 / #FBBF24.

# The amber rule

Amber means the user is in control. Violet means selection.

  • A readout chip is white while the camera decides the value and amber once the user has set it (manual ISO or shutter, a non-zero EV, manual focus, locked white balance, zoom above 1×).
  • The dial's needle is amber. The selected mode is amber. An active top-bar button is amber.
  • A RAW format name in the top bar is amber.
  • Violet marks selection inside option groups and the brand.

Colour is never the only signal: a manual parameter also changes its label or value (AF → MF, AUTO → 3200K).

# Type

Style Definition Use
Instrument.readout system rounded, semibold, monospaced digits, built on a text style technical values that change continuously (they must not jitter)
Instrument.label caption 2, rounded, bold chip labels, pills, badges
Font.orixDisplay … orixMono Dynamic Type styles library, settings, sheets

Most text is built on Dynamic Type styles. A few viewfinder elements use fixed sizes (lens labels, the ruler's tick labels, badge icons): 13 occurrences, listed as a gap in the accessibility document.

# Space, radius, motion

Token Values
ORIX.Space 4, 8, 12, 16, 20, 28, 40
ORIX.Radius chip 10, control 14, card 20, hero 28
ORIX.Motion quick (snappy 0.22 s), standard (smooth 0.35 s), expressive (spring)
Minimum touch target 44 points

Camera rules for motion:

  • Nothing animated may delay a capture. The shutter flash is a 0.22 s overlay that runs after the capture has been requested.
  • State changes use snappy between 0.2 and 0.25 s.
  • The level and the audio meter use short linear animations so they follow the signal instead of easing behind it.
  • The histogram is not animated by SwiftUI: its temporal smoothing is part of the data path.

# Haptics

ORIXHaptics, used only when Settings → Haptics is on.

Call When
tick each stop of a dial, a mode or tool change, a toggle
press shutter, start of a recording or multi-frame capture
success a capture saved, a sequence finished
warning a recoverable problem (dropped frames, Photos refused)
failure a capture or save failed

# Components

# Camera (CameraTheme.swift, CameraControls.swift, MonitorOverlays.swift)

Component Role
ReadoutChip label over value; amber when manual; outlined when its dial is open; dimmed when the camera lacks the capability
RulerDial horizontal ruler over discrete stops, 13 points per stop, a haptic tick per stop, fading ticks toward the edges; adjustable for VoiceOver
ShutterButton photo, record, recording, stop and busy looks; progress ring for timed captures; press-and-hold for burst
ModeSelector horizontal, centred on the selection; disabled while capturing
LensSelector one round button per physical lens with its computed magnification
InstrumentIconButton, PillButton 44-point icon and capsule buttons
MonitorBadge status on the picture: REC, frames, heat, stabilisation, SIMULATOR
HistogramView, LevelView, FocusReticle, GridOverlayView, AspectMaskView, SafeFramingView, HintChips, AudioMeter overlays laid out on the picture rectangle
StateCard permission denied, start failure, interruption

# Shared (ORIXDesign/Components.swift)

orixCard, orixLift, primary / secondary / tile button styles, ORIXGlyph, ORIXSectionHeader, ORIXChip, ORIXEmptyState, ORIXBanner, ORIXProgressBar, and ORIXMark (the camera mark drawn in code, used on the welcome screen).

# Layout

  • Portrait (iPhone, iPad portrait): top bar, picture, then the deck: analysis panel or creative tools, the open dial, the parameter strip, the mode selector, the shutter row. The shutter, the library and the camera switch stay within thumb reach.
  • Wide (iPad landscape, width above 1.15 × height): the picture on the left, the same controls in a side column at most 400 points wide.
  • Auto mode replaces the parameter strip with a single exposure-compensation slider.
  • Overlays are positioned from MonitorRenderer.imageRect, so they follow the picture through any aspect ratio.

The iPhone interface is portrait-only; the iPad supports all four orientations.

# Icon and brand

See icon-design.md and brand-guidelines.md.

Files main
Menu

Theme