Skip to content

Latest commit

 

History

History
186 lines (154 loc) · 10.6 KB

DESIGN.md

File metadata and controls

186 lines (154 loc) · 10.6 KB
name Lernstein
description A mineral field atlas for short, source-led offline practice.
colors
mineral-paper specimen-surface field-surface deep-ink measured-copper deep-earth muted-ink measurement-rule dark-paper dark-ink dark-accent
#f5efe5
#fffcf6
#eadfce
#392f27
#b4754d
#79452c
#6d5c4d
#c8b7a3
#241b16
#f5ebde
#e4b487
typography
display body label
fontFamily fontSize fontWeight lineHeight letterSpacing
"Avenir Next", Avenir, "Segoe UI", sans-serif
clamp(29px, 3.2vw, 42px)
760
1.1
-0.045em
fontFamily fontSize fontWeight lineHeight
"Avenir Next", Avenir, "Segoe UI", sans-serif
15px
400
1.5
fontFamily fontSize fontWeight letterSpacing
"Avenir Next", Avenir, "Segoe UI", sans-serif
11px
760
0.11em
rounded
square micro response action specimen-mount workbench pill round
0px
2px
10px
12px
20px
22px
999px
50%
components
button-primary input-answer button-mode-active learning-tab-active specimen-field
backgroundColor textColor rounded padding height
{colors.deep-earth}
#ffffff
{rounded.action}
10px 17px
48px
backgroundColor textColor rounded padding height
{colors.specimen-surface}
{colors.deep-ink}
{rounded.square}
10px 13px
49px
backgroundColor textColor rounded padding height
{colors.specimen-surface}
{colors.deep-earth}
{rounded.pill}
7px 10px
40px
backgroundColor textColor rounded padding height
{colors.mineral-paper}
{colors.deep-ink}
{rounded.square}
0 17px
64px
backgroundColor textColor rounded padding
{colors.mineral-paper}
{colors.deep-ink}
{rounded.square}
14px

Design System: Lernstein

Overview

Creative North Star: "The Mineral Field Atlas"

Lernstein pairs the invitation of a field expedition with the clarity of a mineral study station. The home surface uses a quiet, locally illustrated landscape to make a bounded learning goal feel like a route; the round itself leaves that scenery behind and becomes a precise evidence bench: one complete specimen, a clear question, a useful response, and its source facts. The map frames the journey but never competes with the mineral.

The interface supports short, focused practice on any screen. Photos stay fully visible, study controls retain clear labels, and mobile actions sit within thumb reach without covering the answer. Progress and collection feedback remain local, gentle, and subordinate to learning.

Key Characteristics:

  • Warm mineral-paper surfaces, umber ink, and restrained copper actions.
  • A subtle animated mineral atmosphere on the home surface; a clean, warm evidence bench during a round.
  • Complete source photography, with no crop; a faceted fallback only when a photo is unavailable.
  • Color swatches and property scales represent source facts instead of decoration.
  • Tabler line icons are bundled locally under the MIT license; every icon that carries meaning retains a text label.
  • Light and dark themes keep the same goal → specimen → answer → feedback structure.

Colors

The palette pairs warm paper and dark umber ink with a single copper action color; gemstone hues appear only when they identify a source color.

Primary

  • Measured Copper ({colors.measured-copper}): Active learning tabs, progress, and specimen measurement marks.
  • Deep Earth ({colors.deep-earth}): Primary answer and next-step actions.

Neutral

  • Mineral Paper ({colors.mineral-paper}): Main page field in the light theme.
  • Specimen Surface ({colors.specimen-surface}): Work surfaces, answer controls, and list rows.
  • Field Surface ({colors.field-surface}): The specimen study area.
  • Deep Ink ({colors.deep-ink}): Main reading and heading color.
  • Muted Ink ({colors.muted-ink}): Secondary labels, help text, and measurements.
  • Measurement Rule ({colors.measurement-rule}): Fine separators and scale outlines.
  • Dark Paper ({colors.dark-paper}) and Dark Ink ({colors.dark-ink}): Dark-theme ground and main reading color.
  • Dark Accent ({colors.dark-accent}): Dark-theme active control color.

Named Rules

The Evidence Color Rule. Gemstone hues identify sourced color facts; warm copper identifies actions and study structure. Never use a decorative color as an unsupported mineral property.

Typography

Display Font: Avenir Next (with Avenir, Segoe UI, and sans-serif fallbacks) Body Font: Avenir Next (with system sans-serif fallbacks) Label/Mono Font: None; labels use the same system sans-serif as the rest of the interface.

Character: Compact, direct, and readable at small sizes. Headings are heavy enough to make each study prompt unmistakable; uppercase labels are reserved for specimen metadata and measurement notation.

Hierarchy

  • Display (760, clamp(29px, 3.2vw, 42px), 1.1): The active learning-area title.
  • Headline (710, clamp(22px, 2.2vw, 29px), 1.2): The question being answered.
  • Title (720, 15–20px, 1.2): Navigation and compact section titles.
  • Body (400, 15px, 1.5): Instructions, source facts, and general reading.
  • Label (760, 9–12px, 1.5, tracked uppercase where used): Specimen index, scale labels, and metadata.

Named Rules

The Question First Rule. Keep the prompt larger than its hint, and never let a decorative label compete with the task. The expedition framing belongs to the home surface; the question and specimen own the round.

Layout

The home surface pairs a framed specimen over a subtle animated warm mineral atmosphere with a separate goal-and-mode column. The start action follows its configuration; the learning path, library, and settings stay close and persistent. The active round switches to a focused workbench: specimen above question and response, never beside them. At 760px and below, the specimen scales with the viewport and the answer remains above thumb-zone actions; at 430px, choices and controls become single-column where needed. Learning tabs remain horizontally reachable during setup, while collection rows preserve a readable name and source fact before lower-priority metadata.

Use the 1400px, 1050px, 760px, and 430px breakpoints in styles.css: reflow the crowded header before it overflows, keep the phone navigation fully labeled, and preserve intentional horizontal scrolling only for long learning tabs and workshop tables. Touch controls target at least 44px, and safe-area insets protect the header and sticky round action. Keep the home photograph in its own framed mount above its caption. In a round, images use object-fit: contain and viewport-aware height limits so the complete specimen stays visible without wasting the available area. The round specimen field stays a neutral mineral-paper stage with a fine rule; map artwork remains on the home surface.

Elevation & Depth

The surface is flat at rest. Tonal fields and one-pixel rules separate the warm atmosphere, specimen, controls, and evidence; the atmosphere stays behind the mounted specimen and never overlays its photo or caption. A soft offset shadow belongs only to the faceted fallback. Feedback uses explicit success, retry, and note colors instead of elevation.

Shapes

Shape communicates role: answer fields and measurement marks stay square; answer choices use a modest 10px corner; primary actions use 12px, with the home start action and practice-mode selector using a capsule. The specimen mount and workbench have larger 20–22px corners to distinguish the expedition frame from the focused study surface. Utility controls use a restrained 2px corner, and color swatches remain circular.

Components

Buttons

  • Primary: Deep earth, high-contrast actions with a concise verb and right-arrow cue; the home start action is a capsule, while in-round controls use a compact 12px corner.
  • Mode: Compact icon-plus-label controls; the home practice selector uses a capsule and a clear active surface.
  • Focus: A clearly visible, offset 3px outline in amber.
  • Disabled: The control remains legible while its reduced opacity signals that the answer is already recorded.

Inputs / Fields

  • Answer input: Square field with a 1px measurement rule, a visible label, and a 48px primary submit action.
  • Property selector: Native select with explicit label and a visible source-availability state.
  • Search: Full-width field in the expandable specimen index; filtering text states the number of matches.

Chips

  • Difficult stone: A small, ruled text control; its active state uses amber and a filled star.
  • Color samples: Small circles with accessible names and tooltips, each mapped to an encyclopedia color.

Navigation

  • Learning areas: Text-labeled tabs with a small outlined glyph and a thin copper active rule. The tab strip scrolls horizontally when needed, shows a directional cue, and keeps the selected tab visible.
  • Practice modes: Keyboard, flashcard, choice, matching, and review remain labeled beside their icons.

Signature Components

  • Warm specimen field: A restrained animated mineral atmosphere establishes the home mood; the specimen photo sits in a separate, captioned mount with no image crop.
  • Round evidence bench: The complete specimen leads, followed by its sourced color/property evidence, prompt, answer, and feedback. Keep the primary continuation action near the bottom edge on mobile.
  • Specimen field: A locally sourced photo or faceted SVG rests on a neutral mineral-paper field. Its source link stays adjacent to the answer; numeric properties can add a small, labeled range scale.

Do's and Don'ts

Do:

  • Do keep color and numeric graphics attached to the property they explain.
  • Do link every specimen to its localized source profile.
  • Do show unavailable facts as unavailable rather than filling gaps.
  • Do keep all image and study paths local so they can be cached offline.
  • Do include text alongside every learning-mode icon.
  • Do keep every specimen image fully visible; use containment rather than cropping.
  • Do keep the map on the home surface and let the active learning task take over in a round.

Don't:

  • Don't use a guessed geological formation or a color as if it were a verified fact.
  • Don't turn the learning surface into a crowded game dashboard or competitive scoreboard.
  • Don't add decorative charts, gradients, or nested cards that distract from the active question.
  • Don't let the expedition illustration sit behind an answer control or obscure a specimen caption.