iOS apps
Pilwijs
Trust-blue accent with a pale blue-grey canvas, white cards with radius 22 and a soft shadow, navy ink text, rounded-design bold titles and per-chapter system colour tints.
This project keeps its own design (Niels, 30-11-2026). This page records it; the source files below stay the truth. When a value here and the code disagree, the code wins and this page needs an update.
Colour
Also: Chapter tints (system colours per leaflet chapter (what it is, before use, how to use, side effects, storage, contents), icon on 15% tint tile); Dispensing tints (status dot and StatusBadge capsule at 18% fill); Saved (saved (heart) state in My medicines toggle)
Typography
body and UI via text styles; leaflet text follows Dynamic Type with an extra reading-size menu (Standard, Large, Extra large)
Pilwijs: Aa Bb 0123
large titles: medicine name, chapter title, scan sheet title via .fontDesign(.rounded)
Pilwijs: Aa Bb 0123
Type scale
| Name | Value |
|---|---|
medicine name | .largeTitle.weight(.bold) + .fontDesign(.rounded) |
chapter title | .title.weight(.bold) + .fontDesign(.rounded) |
section title | .title2.weight(.bold) + .fontDesign(.rounded) |
leaflet subheading | .title3.weight(.semibold) |
row / card title | .headline |
leaflet body | .body |
badge | .subheadline.weight(.semibold) |
meta | .caption, .footnote |
Shape and space
Radius
- 22 (main cards)
- 24 (scan result card)
- 18 (secondary card)
- 16 (material summary box)
- 14 (medicine icon tile, chapter icon tile)
- 13 (chapter grid icon)
- capsule (status badge, scan hints)
- circle (scan buttons)
Spacing and widths
- screen stack spacing 28 (medicine screen), 20 (chapter screen)
- card padding 16 to 18, 20 for material box
- grid spacing 12
- inner stacks 3, 6, 8, 10, 12, 14
Shadows
- cards: .black.opacity(0.05), radius 10, y 4
- scan result card: .black.opacity(0.25), radius 20, y 8
- scan overlay icon: .black.opacity(0.3), radius 8
Components
- MedicineIcon: pills.fill symbol in tint on a 48x48 tile, accent 14% fill, radius 14
- StatusBadge: capsule with SF Symbol in status tint and Ink label, tint 18% fill
- Chapter grid: 2-column LazyVGrid of Card tiles with a coloured icon tile per chapter
- ReadingSizeMenu: textformat.size menu that clamps Dynamic Type
- Scan screen: black camera background with ultraThinMaterial capsules and circles, white capsule buttons
Where it comes from
- /Users/nielskorte/Projects/Pilwijs/ios/App/Resources/Assets.xcassets/AccentColor.colorset/Contents.json
- /Users/nielskorte/Projects/Pilwijs/ios/App/Resources/Assets.xcassets/Canvas.colorset/Contents.json
- /Users/nielskorte/Projects/Pilwijs/ios/App/Resources/Assets.xcassets/Card.colorset/Contents.json
- /Users/nielskorte/Projects/Pilwijs/ios/App/Resources/Assets.xcassets/Ink.colorset/Contents.json
- /Users/nielskorte/Projects/Pilwijs/ios/App/Views/Components.swift
- /Users/nielskorte/Projects/Pilwijs/ios/App/Views/MedicineScreen.swift
- /Users/nielskorte/Projects/Pilwijs/ios/App/Views/ChapterScreen.swift
- /Users/nielskorte/Projects/Pilwijs/ios/App/Views/ScanScreen.swift
- /Users/nielskorte/Projects/Pilwijs/ios/App/Model/Presentation.swift
- /Users/nielskorte/Projects/Pilwijs/CLAUDE.md
Notes
- CLAUDE.md states the blue theme was chosen as 'blue = trust in healthcare' (build of 4 October 2026).
- Gradient hex values are rounded conversions of the Swift float components.