Choose the surface first: black, obsidian, charcoal or tinted
The base surface is the most consequential decision in a dark UI. Classifying the showcase surface of all 139 dark styles in the library:
| Showcase surface | Dark styles | Range |
|---|---|---|
| True black | 30 (22%) | #000000 to #080808 |
| Obsidian | 49 (35%) | up to about #161616 |
| Charcoal | 14 (10%) | about #17 to #2A per channel |
| Tinted dark | 22 (16%) | a dark surface with visible hue |
| Mid-tone or colored | 24 (17%) | a saturated or mid-value field |
What each choice means:
- True black (
#000000). Maximum contrast and, on OLED, pixels that are switched off. Content appears to float on the device itself. Costs: no room below it for a recessed layer, elevation must go lighter only, and fast scrolling can smear where lit pixels meet unlit ones. Best for media, clocks, cameras, instruments and anything viewed in the dark. - Obsidian (about
#0A0A0Ato#161616). Reads as black, behaves like a color. There is room for a darker well and two or three lighter steps, and the OLED smear is gone. The safest default for a dark-first app. - Charcoal (about
#18to#2Aper channel). Softer and more material, closer to the system's elevated dark surfaces. Suits dense, long-session tools where a black field would feel severe. Contrast headroom is smaller, so text colors need more care. - Tinted dark. A deep green, navy, plum or brown instead of grey. The hue becomes the brand, which lets the accent be quieter. It constrains every other color: accents must be chosen against the tint, not against black.
A fifth group in the library does not use a dark neutral at all: a saturated or mid-value field carries the screen, with dark type or panels on top. Those are bold-graphic styles more than dark-mode styles and are left out of the picks below.
Elevation without shadows
A shadow is darker than its surroundings, and on a dark surface there is nothing darker to cast. Dark systems express depth with lightness steps: each raised layer is a few percent lighter than the one beneath. From the Graphite Query spec, the dark surface ladder is #141414 (canvas) → #1E2122 (grid) → #1F1F1F (module) → #2A2C2D (chip).
// Dark surface ladder from the "Graphite Query" DESIGN.md (stringers.io/en/styles/?s=graphite-query)
enum Surface {
static let canvas = Color(hex: 0x141414)
static let grid = Color(hex: 0x1E2122)
static let module = Color(hex: 0x1F1F1F)
static let chip = Color(hex: 0x2A2C2D)
static let hairline = Color(hex: 0x2B2B2B)
static let outline = Color(hex: 0x4A4A4A)
static let ink = Color(hex: 0xF5F5F3)
static let text = Color(hex: 0xD9D9D6)
static let secondary = Color(hex: 0x9A9A97)
static let tertiary = Color(hex: 0x6A6A68)
static let primary = Color(hex: 0x22B8CF)
static let onPrimary = Color(hex: 0x0B2A30)
}Guidelines that hold across the library's dark styles:
- Three surface levels are enough: base, raised (cards, sheets) and overlay (menus, popovers). Each step is roughly 3 to 6 percent lighter.
- Hairlines are light, not dark. A separator is the next surface step up, or white at 8 to 12 percent opacity. 128 of the 139 dark specs define hairline rules.
- Avoid drop shadows on dark surfaces. 80 of the dark specs forbid them on some or all layers. Where a floating element needs lift, use a lighter fill and a faint light rim.
- Do not lighten by transparency over unknown content. Define the raised colors as opaque tokens so they look the same everywhere.
Accent discipline
Color is amplified on dark surfaces. A hue that looks measured on white looks neon on black. The surface, accent and lightest ink for each pick, with the measured contrast between ink and surface:
| Style | Surface | Surface type | Accent | Lightest ink | Contrast |
|---|---|---|---|---|---|
| Onyx Chapters | #5F180E | Tinted dark | none in the palette | #F2F2F4 | 11.6:1 |
| Brass Fretlight | #0B0A08 | Obsidian | #1F6FEB | #1F1C18 | 1.2:1 |
| Ember Ribbon | #0C0807 | Obsidian | #FF7A1A | #FFC56B | 12.8:1 |
| Canted Carousel | #000000 | True black | none in the palette | #FFFFFF | 21.0:1 |
| Midnight Flyer | #171406 | Charcoal | none in the palette | #F2F0EB | 16.2:1 |
| Dust Slant | #0A0A0A | Obsidian | #FF4B0A | #F6F1E7 | 17.6:1 |
| Spearmint Arc | #0E1110 | Obsidian | #F4C152 | #363C3A | 1.7:1 |
| Moss Podium | #0C1A16 | Tinted dark | #4BE38A | #EEF3F0 | 15.9:1 |
| Lunar Ledger | #000000 | True black | none in the palette | #FFFFFF | 21.0:1 |
| Jewel Facet | #102733 | Tinted dark | #8A63C9 | #FFFFFF | 15.4:1 |
| Shard Halo | #1E1E1E | Charcoal | none in the palette | #F8F0D8 | 14.6:1 |
| Baize Folio | #0E3B2C | Tinted dark | none in the palette | #FFFFFF | 12.5:1 |
6 of the 12 show no bright accent in their five-swatch palette: light type on a dark field, with weight and scale doing the work. For the others:
- One accent, used for state. The active tab, the primary action, the live value. Not headings, not decoration.
- Prefer light, slightly desaturated accents. Mint, amber, cyan and soft lime hold their shape on black. Pure red and pure blue at full saturation vibrate against dark grey and fail contrast for text.
- Accent as fill needs dark text on top. Each spec defines an "on-primary" ink for this; white text on a bright mint button is unreadable.
- Semantic colors need dark-mode values. Success, warning and error should be lighter and less saturated than their light-mode versions.
- Glow is a material, not a default. A soft halo behind one hero element can be a signature. On every card it is noise.
OLED readability rules
- Do not set long body text in pure white on pure black. The contrast is 21:1, far more than needed, and bright strokes bloom on OLED, especially for readers with astigmatism. Use an off-white such as
#F2F2F0or#EDEDEDfor body and reserve#FFFFFFfor short, large text. - Keep secondary text at 4.5:1 or better. Mid-grey on charcoal is the most common dark-mode failure. Measure it; do not judge it on a bright desk monitor.
- Avoid thin weights at small sizes. Light text on dark looks thinner than the same weight in dark on light. Go up one weight for small labels.
- Give text room. Slightly more line height and letter spacing than in the light theme improves legibility of light-on-dark text.
- Test in a dark room and in sunlight. Dark themes fail at both ends: glare outdoors, bloom at night.
- Mind true-black scrolling. If lists smear on OLED, raise the base from
#000000to an obsidian value; the difference is invisible at rest. - Dim images and illustrations. Full-brightness photos next to dark surfaces dominate the screen. Many specs call for a slight scrim or reduced brightness on media.
The styles
Curated dark design systems with demo reference screens. Open one for all four screens and the full DESIGN.md.
Onyx ChaptersA black deck where a notched white line counts the chapters
Brass FretlightLamplit guitar lessons that fit your evening
Ember RibbonMolten sound ribbons gliding across a warm-black stage
Canted CarouselLay photos across seams into one long frame
Midnight FlyerLoud flyers on a black wall, each one lighting its own page
Dust SlantLeave yesterday's self behind in the dust
Spearmint ArcPluck a string, watch the mint needle settle
Moss PodiumRanked rows glowing in bottle green, mono gains in neon
Lunar LedgerOne lit moon over a dotted monospace ledger on black
Jewel FacetFaceted jewel-tone squircles on a near-black stage
Shard HaloA matte block token in a yellow halo, paper shards bursting off a black stage
Baize FolioWhite folio sheets laid on green baize, a display serif doing the talking
Building a dark-first app in SwiftUI
If the style is dark only, lock the appearance and do not improvise a light theme:
@main
struct MyApp: App {
var body: some Scene {
WindowGroup {
RootView()
.preferredColorScheme(.dark)
.background(Surface.canvas.ignoresSafeArea())
.tint(Surface.primary)
}
}
}If the spec defines both appearances, define each token once with a light and a dark value, as shown in SwiftUI UI design styles. Either way, set the launch screen background to the base surface so the app does not flash white on start.
With the skill installed, an agent does the translation from the style's DESIGN.md:
npx skills add komako-workshop/stringersThen: "Use Stringers to build this app's UI in the Graphite Query style." See DESIGN.md for Claude Code and Cursor for the full workflow.
Checklist for a dark UI
- Base surface chosen deliberately: true black, obsidian, charcoal or a tint.
- Two or three opaque elevation steps, each lighter than the last; no drop shadows.
- Body text is off-white, at least 7:1 on the base; secondary text at least 4.5:1.
- One accent, light and slightly desaturated, with a defined on-accent ink.
- Semantic colors have their own dark values.
- Separators are light hairlines of one device pixel.
- Status bar, launch screen and keyboard appearance match the theme.
- Checked on a real OLED device at low brightness.
For the opposite approach, see minimalist light mode design systems.