Pivlu
Back to library
Dark telemetryDark

Petrol Dive Log

Deep teal charts represent a recalled descent through bands of depth.

Download DESIGN.md

Screen previews

Petrol Dive Log · Home
Home
Petrol Dive Log · Detail & insights
Detail & insights
Petrol Dive Log · Onboarding & paywall
Onboarding & paywall
Petrol Dive Log · Settings
Settings

Semantic palette

Design specification

Petrol Dive Log

Dark telemetry · Dark preview · petrol-divelog

Design intent

Deep teal charts represent a recalled descent through bands of depth.

Design rule. Put the surface line at the top of the graph and spell out the direction of increasing depth.

Semantic palette

The first column of HEX values drives the dark preview. Use the light column when the appearance changes.

TokenDefaultAlternateRole
background#0D2326#EDF6EFScreen canvas
surface#173237#FAFEFDPrimary cards, fields and settings rows
text#E6F6F2#1D322DBody text, headings and key figures
muted#ABD1CB#496563Supporting labels, axes and timestamps
accent#66E4B4#3A7963Primary action, focus and current data
on_accent#000000#FFFFFFAction labels and icons on accent fills
secondary#537F83#ACBBBASupporting artwork, comparison series and selected fills
border#34545B#CCD3D1Card outlines, dividers and field boundaries

Type hierarchy

Display family "Noto Sans", "Noto Sans CJK SC", sans-serif. Interface family "Noto Sans", "Noto Sans CJK SC", sans-serif. Font tracking is relative to the display size.

RoleSize / line heightWeightTreatment
Screen title40 / 41 px650Display, -0.04 em tracking
Section title19 / 24 px650Display, natural wrapping
Body and list15 / 22 px400Interface, sentence case
Caption and status12 / 16 px400Interface, pair states with labels
Metric54 / 54 px650Display, tabular lining figures

Shape and spacing

Use a 6 px spacing step, with 12 px between groups and 24 px horizontal screen insets. Feature cards use a 13 px radius. Nested input and icon containers use 8 px. Reserve at least 44 × 44 pt on iOS or 48 × 48 dp on Android for touch controls. The baseline is a 390 × 844 logical canvas.

Use one faint soft shadow for panels and keep list rows on a common plane. Align the metric and waveform on the bottom edge and preserve a reading zone for each.

Core components

  • Home. Lead with “Last descent” and the key measure 18.4 (meters maximum). Put Entry point · Deepest point · Surface stop in the first list with a visible row label and trailing state.
  • Detail. Pair the chart with a readable summary. The longest stop came during the ascent. Give the figure its unit, time window and a textual equivalent for users who skip the chart.
  • Upgrade. Build the section around “Keep a dive journal”. Present billing interval and price together, then a primary action and visible restore and dismissal controls.
  • Settings. Use a profile group, labeled settings rows and plain-language switch states. Place destructive actions in a separate group with confirmation.

Use tabular figures for metrics. Pair monitoring alerts with a state label and shape, and draw trend lines at least 2 px wide.

Appearance and accessibility

Switch the complete token set on an appearance change. Preserve the hierarchy, spacing and chart labels. Verify 4.5:1 contrast for regular text and 3:1 for large text and focus indicators. If a chart series is hard to tell apart, add a point marker, dash or inline label. Test larger type, wrapping and reduced motion before shipping.

Originality checklist

  • Check that the first screen still communicates DEPTH's purpose when its title is hidden.
  • Keep one leading action in the first viewport and use the palette roles consistently.
  • Replace generic decorative marks with a visual that clarifies the task or data.
  • Check long labels, empty states and the light appearance with real content.

Implementation

  • iOS SwiftUI. Define semantic colors in an asset catalog with two appearances. Use @ScaledMetric for type-linked spacing, ViewThatFits for crowded metric rows, and accessibilityLabel plus a summary for charts. Extend row hit areas with contentShape(Rectangle()).
  • Flutter. Use paired ThemeData values and a ThemeExtension for chart tokens. Define spacing and radius in the theme and let TextScaler drive text growth. Add Semantics for indicators and actions.
  • React Native. Map useColorScheme() to one semantic palette. Keep shared values in StyleSheet.create. Use FlatList for long lists, hitSlop to enlarge compact actions and meaningful accessibility roles and values.