Stringers/Guides
Mobile UI Design Systems & DESIGN.md

SwiftUI UI design inspiration: 12 iOS design styles, translated into code

Design inspiration is only useful if it survives the trip into code. This guide takes a real design system from the Stringers library and translates it into SwiftUI, token by token, then shows 12 curated styles across six app types, each with its palette and a link to the full spec.

Updated Data: 301 curated design styles (162 light · 139 dark)By Stringers

301curated design styles in the library
6app types, from minimal utilities to bold graphic apps
12styles shown on this page, a light and a dark per type where available
12type roles in the example style used below

From a design system to SwiftUI

The example throughout is Oat Margin (open the style). Its DESIGN.md defines color roles for light and dark, a type scale, radii and spacing. The goal is one file, Theme.swift, that every view imports, so that no view contains a literal color or font size.

1. Colors: one token, two appearances

Define each color once with its light and dark value, named by role. The initializer below wraps a dynamic UIColor, so the color follows the system appearance without an asset catalog. These values are the style's real tokens:

swift
import SwiftUI

// Tokens from the "Oat Margin" DESIGN.md (stringers.io/en/styles/?s=oat-margin)
extension UIColor {
    convenience init(hex: UInt32) {
        self.init(red: CGFloat((hex >> 16) & 0xFF) / 255, green: CGFloat((hex >> 8) & 0xFF) / 255,
                  blue: CGFloat(hex & 0xFF) / 255, alpha: 1)
    }
}

extension Color {
    init(hex: UInt32) { self.init(uiColor: UIColor(hex: hex)) }
    /// One token, two appearances: resolves with the system light / dark setting.
    init(light: UInt32, dark: UInt32) {
        self.init(uiColor: UIColor { $0.userInterfaceStyle == .dark ? UIColor(hex: dark) : UIColor(hex: light) })
    }
}

enum Theme {
    static let primary = Color(hex: 0xD8523F)
    static let barRest = Color(hex: 0xCDC8BF)
    static let paper = Color(light: 0xF4F1EB, dark: 0x1C1A17)
    static let well = Color(light: 0xE5E1DC, dark: 0x2A2723)
    static let hairline = Color(light: 0xDEDAD2, dark: 0x34302B)
    static let ink = Color(light: 0x2E2B27, dark: 0xEDE8DF)
    static let text = Color(light: 0x3F3B35, dark: 0xD6D0C6)
    static let secondary = Color(light: 0x7A7671, dark: 0x9C968D)
    static let tertiary = Color(light: 0xA39F99, dark: 0x6F6A63)
}

extension Font {
    static let heroFigure = Font.system(size: 84, weight: .bold)
    static let readingTitle = Font.system(size: 34, weight: .bold)
    static let pageTitle = Font.system(size: 33, weight: .bold)
    static let sectionHead = Font.system(size: 20, weight: .bold)
    static let body = Font.system(size: 18.5, weight: .regular)
    static let rowLabel = Font.system(size: 18, weight: .regular)
}

Use them by role: Theme.paper behind everything, Theme.ink for primary text, Theme.secondary for supporting text, Theme.hairline for separators, Theme.primary for the one accent. If you prefer asset catalogs, create a Color Set per role with Any and Dark appearances and expose it as Color("paper"); the rule is the same, roles and not hues.

Two rules keep a palette intact as the app grows:

2. Typography: roles, not sizes

The Font extension above gives each role a name. Three details matter in practice:

swift
struct BodyText: View {
    @ScaledMetric(relativeTo: .body) private var size: CGFloat = 18.5
    let text: String

    var body: some View {
        Text(text)
            .font(.system(size: size, weight: .regular))
            .lineSpacing(size * 0.5)            // DESIGN.md lineHeight 1.5 means roughly 0.5 × size of extra leading
            .foregroundStyle(Theme.text)
    }
}

3. Surfaces: paper, hairlines and materials

How a style separates layers is its most recognizable trait, and the place where a default SwiftUI app drifts into generic cards. Three common families:

swift
// Paper: flat color, separation by a hairline. No shadow.
struct PaperRow: ViewModifier {
    @Environment(\.displayScale) private var scale
    func body(content: Content) -> some View {
        content
            .padding(.vertical, 14)
            .frame(maxWidth: .infinity, alignment: .leading)
            .overlay(alignment: .bottom) {
                Rectangle().fill(Theme.hairline).frame(height: 1 / scale)
            }
    }
}

// Tonal well: a slightly darker inset on the same paper.
struct Well: ViewModifier {
    func body(content: Content) -> some View {
        content
            .padding(16)
            .background(Theme.well, in: RoundedRectangle(cornerRadius: 14, style: .continuous))
    }
}

// Glass: a system material over content, with a lit rim.
struct GlassPanel: ViewModifier {
    func body(content: Content) -> some View {
        content
            .padding(18)
            .background(.ultraThinMaterial, in: RoundedRectangle(cornerRadius: 26, style: .continuous))
            .overlay {
                RoundedRectangle(cornerRadius: 26, style: .continuous)
                    .strokeBorder(.white.opacity(0.5), lineWidth: 0.5)
            }
    }
}

extension View {
    func paperRow() -> some View { modifier(PaperRow()) }
    func well() -> some View { modifier(Well()) }
    func glassPanel() -> some View { modifier(GlassPanel()) }
}

Pick the family the style specifies and use only that one. A hairline is one device pixel (1 / displayScale), not one point. Corners use style: .continuous; the circular default is visibly different at large radii.

4. Spacing and radius as constants

swift
enum Space { static let xs: CGFloat = 4, s: CGFloat = 8, m: CGFloat = 16, l: CGFloat = 24, xl: CGFloat = 40 }
enum Radius { static let chip: CGFloat = 8, card: CGFloat = 14, panel: CGFloat = 26 }

Replace the values with the scales from your style's DESIGN.md. When a view needs a value that is not on the scale, that is a design question, not a reason to type a new number.

5. Let an agent do the translation

With the skill installed, the whole of this section is one request. The agent downloads the style's DESIGN.md, writes Theme.swift from it, and builds screens that reference only tokens:

bash
npx skills add komako-workshop/stringers
text
Use Stringers to build this app's UI in the Oat Margin style. Create Theme.swift first.

How the file works and how to keep an agent on it is covered in DESIGN.md for Claude Code and Cursor.

12 styles across six app types

The library sorts its 301 styles into six app types (a style can belong to two):

App typeStyles
Minimal & Modern140
Dark & Instrument116
Playful & Illustrated97
Bold & Graphic88
Editorial & Print86
Retro & Tactile31

Below are two from each, a light and a dark where the type has both. These are curated design systems with demo reference screens; open one to see all four screens and the full DESIGN.md.

Minimal & Modern

Native mobile UI design style, reference screenNative

Clear glass over a quiet canvas

#F6F6F4 #ECECE9 #0B0B0D #2A2A2E #DCE5EB
Light · Minimal & Modern. Fits: ambient daily readings, light and sky, time and place, companions for the house or the roadOpen style and DESIGN.md →
Fathom Veil mobile UI design style, reference screenFathom Veil

White type afloat on dusk-blue water, behind panes of sea glass

#175E91 #1B5290 #234685 #3C8FC4 #20427F
Dark · Minimal & Modern. Fits: rituals, wind-down routines, nature timing, journals and ambient collections that should lower the pulseOpen style and DESIGN.md →

Editorial & Print

Butter Hatch mobile UI design style, reference screenButter Hatch

Pen-hatched doodles on butter paper, tilted stickers and a fat friendly serif

#F0EAD8 #F7F5EC #D9D2BD #FDFCF7 #1E1C19
Light · Editorial & Print, Playful & Illustrated. Fits: hobby journals, shelves of finished things, practice logs, yearly challengesOpen style and DESIGN.md →
Canted Carousel mobile UI design style, reference screenCanted Carousel

Lay photos across seams into one long frame

#FFFFFF #000000 #1C1C1E #2A2A2D #A1A1A6
Dark · Editorial & Print, Dark & Instrument. Fits: photo carousel makers, editorial collage studios, social story layout editorsOpen style and DESIGN.md →

Dark & Instrument

Onyx Chapters mobile UI design style, reference screenOnyx Chapters

A black deck where a notched white line counts the chapters

#000000 #17171A #2E2E31 #3D3C41 #F2F2F4
Dark · Dark & Instrument, Minimal & Modern. Fits: queues of long items worked through one at a time, each made of named parts: lessons, practice piecesOpen style and DESIGN.md →
Ember Ribbon mobile UI design style, reference screenEmber Ribbon

Molten sound ribbons gliding across a warm-black stage

#FFC56B #FF7A1A #0C0807 #1B1311 #2A1C18
Dark · Dark & Instrument, Bold & Graphic. Fits: music streaming, audio players, ambient playlists, warm dark media and creator appsOpen style and DESIGN.md →

Playful & Illustrated

Moss Chorus mobile UI design style, reference screenMoss Chorus

Hear a bird once, know its name

#8DAA4B #F2473F #FFFFFF #6E8B36 #A9C566
Light · Playful & Illustrated. Fits: bird ID, nature sounds, field guide, offline packsOpen style and DESIGN.md →
Pasture Glass mobile UI design style, reference screenPasture Glass

A fluffy owlet keeps your daily reading place

#5B8CC6 #5A9692 #7DA587 #2A4A73 #F4E6A6
Dark · Playful & Illustrated, Minimal & Modern. Fits: daily reading companions, habit mascots, gentle onboarding flows, mindfulness & reflection appsOpen style and DESIGN.md →

Retro & Tactile

Brushed Reel mobile UI design style, reference screenBrushed Reel

Brushed aluminium faceplate, black readout strip, one red dot

#E8392B #F4F5F6 #DADDE0 #E7E9EB #9EA3A8
Light · Retro & Tactile, Minimal & Modern. Fits: voice recorders and meeting note apps, podcast and audio capture tools, tactile hardware-inspired utilitiesOpen style and DESIGN.md →
Brass Fretlight mobile UI design style, reference screenBrass Fretlight

Lamplit guitar lessons that fit your evening

#F2B03D #1F6FEB #0B0A08 #151311 #1F1C18
Dark · Retro & Tactile, Editorial & Print. Fits: guitar lessons, music practice, instrument tutor, hobby coursesOpen style and DESIGN.md →

Bold & Graphic

Stompbox Gig mobile UI design style, reference screenStompbox Gig

Every practice session is tonight's headline show

#FFD21F #2743E8 #FF5A36 #16C27A #111111
Light · Bold & Graphic, Playful & Illustrated. Fits: guitar and music practice, instrument tutors, band rehearsal logs, playful learning appsOpen style and DESIGN.md →
Midnight Flyer mobile UI design style, reference screenMidnight Flyer

Loud flyers on a black wall, each one lighting its own page

#030303 #262626 #0E0E0E #03241A #F2F0EB
Dark · Bold & Graphic. Fits: catalogues browsed by cover, limited editions, screenings, exhibitionsOpen style and DESIGN.md →

How to choose a style for a SwiftUI app

SwiftUI checklist before you ship a styled app

Browse all 301 design styles

301 curated mobile UI design systems, each with a complete DESIGN.md (color tokens, type scale, spacing, component rules) and four reference screens. Install the skill and tell your agent which style to build in.

Open Mobile UI Design Styles
npx skills add komako-workshop/stringers
★ Star on GitHub

Open Source (MIT) · Star komako-workshop/stringers on GitHub

Frequently asked questions

How do I define light and dark colors in SwiftUI without an asset catalog?

Wrap a dynamic UIColor that returns the light or dark value based on userInterfaceStyle, as in the Color(light:dark:) initializer above. The color then follows the system appearance automatically.

How do I use a serif or rounded system font in SwiftUI?

Pass a design to the system font: Font.system(size: 34, weight: .bold, design: .serif) for New York, .rounded for SF Rounded, .monospaced for SF Mono. No font files are needed.

Do custom font sizes support Dynamic Type in SwiftUI?

Font.system(size:) is fixed. Store the size in a @ScaledMetric(relativeTo:) property so it scales with the user's text size setting.

Where can I find SwiftUI design inspiration with real tokens?

The Stringers library has 301 curated mobile UI styles, each with a palette, reference screens and a DESIGN.md you can translate into a SwiftUI theme.

Related guides