Yokan / rebuild
Course 1 8624561

design.json

.impeccable/design.json

configuration / resource133 lines
1{2  "schemaVersion": 2,3  "generatedAt": "2026-08-28T00:00:00Z",4  "title": "Design System: Yokan",5  "extensions": {6    "colorMeta": {7      "primary-light": {8        "role": "primary",9        "displayName": "Blue delight light",10        "canonical": "#1565C0",11        "roleHint": "Default light-mode primary; active scheme may replace it."12      },13      "primary-dark": {14        "role": "primary",15        "displayName": "Blue delight dark",16        "canonical": "#90CAF9",17        "roleHint": "Default dark-mode primary; active scheme may replace it."18      }19    },20    "typographyMeta": {21      "app-family": {22        "displayName": "Global app family",23        "purpose": "Applied to every inherited Material 3 typography role; user-selectable from bundled families."24      }25    },26    "motion": [27      {28        "name": "expansion",29        "value": "150ms",30        "purpose": "Expand and shrink mode bars."31      },32      {33        "name": "loading-pulse",34        "value": "900ms",35        "purpose": "Reversing loading halo and scale pulse."36      }37    ],38    "breakpoints": [39      { "name": "compact-edge", "value": "<720dp" },40      { "name": "content-wide", "value": "720dp" },41      { "name": "content-wider", "value": "1100dp" },42      { "name": "content-largest", "value": "1400dp" }43    ],44    "behavior": {45      "colorModes": ["light", "dark", "pure-black"],46      "uiScale": { "min": 0.75, "max": 2.0 },47      "navigation": ["navigation-bar", "navigation-rail"],48      "backGesture": "iOS edge-origin horizontal back with settle animation"49    }50  },51  "components": [52    {53      "name": "Primary Button",54      "kind": "button",55      "refersTo": "button-primary",56      "description": "Default action button with a 46dp pill silhouette.",57      "html": "<button class=\"ds-btn-primary\">ADD TO SHELF</button>",58      "css": ".ds-btn-primary { height: 46px; padding: 0 20px; border: 0; border-radius: 999px; background: #1565C0; color: #ffffff; font: inherit; transition: filter 150ms ease; } .ds-btn-primary:hover { filter: brightness(1.08); } .ds-btn-primary:focus-visible { outline: 2px solid #1565C0; outline-offset: 2px; } .ds-btn-primary:active { filter: brightness(0.94); }"59    },60    {61      "name": "Outlined Button",62      "kind": "button",63      "refersTo": "button-outlined",64      "description": "Secondary pill action with a semantic outline.",65      "html": "<button class=\"ds-btn-outlined\">CANCEL</button>",66      "css": ".ds-btn-outlined { height: 46px; padding: 0 20px; border: 1px solid #777777; border-radius: 999px; background: transparent; color: #111111; font: inherit; transition: background 150ms ease, border-color 150ms ease; } .ds-btn-outlined:hover { background: rgba(21,101,192,0.08); border-color: #1565C0; } .ds-btn-outlined:focus-visible { outline: 2px solid #1565C0; outline-offset: 2px; } .ds-btn-outlined:active { background: rgba(21,101,192,0.14); }"67    },68    {69      "name": "Card",70      "kind": "card",71      "refersTo": "card",72      "description": "Interactive media shelf surface with modest state lift.",73      "html": "<article class=\"ds-card\"><strong>Living media shelf</strong><span>Continue reading</span></article>",74      "css": ".ds-card { display: grid; gap: 8px; padding: 16px; border: 1px solid rgba(17,17,17,0.16); border-radius: 16px; background: #f3f3f3; box-shadow: 0 1px 2px rgba(0,0,0,0.12); transition: border-color 150ms ease, box-shadow 150ms ease; } .ds-card:hover { border-color: rgba(21,101,192,0.6); box-shadow: 0 3px 6px rgba(0,0,0,0.16); } .ds-card:active { border-color: #1565C0; box-shadow: 0 6px 12px rgba(0,0,0,0.2); }"75    },76    {77      "name": "Top App Bar",78      "kind": "nav",79      "description": "Transparent Material top bar with optional back affordance and actions.",80      "html": "<header class=\"ds-topbar\"><button aria-label=\"Back\" class=\"ds-back\">‹</button><span>Yokan</span><button aria-label=\"Search\" class=\"ds-action\">⌕</button></header>",81      "css": ".ds-topbar { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 16px; background: transparent; color: #111111; font: inherit; } .ds-topbar span { flex: 1; font-weight: 600; } .ds-back, .ds-action { border: 0; border-radius: 999px; background: transparent; color: #111111; font: inherit; cursor: pointer; } .ds-back:hover, .ds-action:hover { background: rgba(21,101,192,0.08); } .ds-back:focus-visible, .ds-action:focus-visible { outline: 2px solid #1565C0; outline-offset: 2px; }"82    },83    {84      "name": "Segmented Tabs",85      "kind": "chip",86      "description": "Single-choice segmented control for short option lists.",87      "html": "<div class=\"ds-tabs\" role=\"tablist\"><button class=\"ds-tab is-selected\" role=\"tab\">MANGA</button><button class=\"ds-tab\" role=\"tab\">ANIME</button></div>",88      "css": ".ds-tabs { display: inline-flex; } .ds-tab { min-height: 40px; padding: 0 16px; border: 1px solid #777777; background: transparent; color: #111111; font: inherit; } .ds-tab:first-child { border-radius: 8px 0 0 8px; } .ds-tab:last-child { border-radius: 0 8px 8px 0; } .ds-tab.is-selected { background: rgba(21,101,192,0.16); color: #1565C0; } .ds-tab:hover { background: rgba(21,101,192,0.08); } .ds-tab:focus-visible { outline: 2px solid #1565C0; outline-offset: 2px; }"89    },90    {91      "name": "List / Section Row",92      "kind": "custom",93      "description": "Full-width row with optional supporting text and trailing content.",94      "html": "<div class=\"ds-list-row\"><span class=\"ds-row-copy\"><strong>Updates</strong><small>New chapters available</small></span><span aria-hidden=\"true\">›</span></div>",95      "css": ".ds-list-row { display: flex; align-items: center; gap: 16px; min-height: 56px; padding: 8px 16px; color: #111111; cursor: pointer; transition: background 150ms ease; } .ds-row-copy { display: grid; gap: 4px; flex: 1; } .ds-row-copy small { color: #393939; } .ds-list-row:hover { background: rgba(21,101,192,0.08); } .ds-list-row:focus-visible { outline: 2px solid #1565C0; outline-offset: -2px; }"96    },97    {98      "name": "Search Field",99      "kind": "input",100      "refersTo": "search-field",101      "description": "Single-line outlined search field with leading search affordance.",102      "html": "<label class=\"ds-search\"><span aria-hidden=\"true\">⌕</span><input placeholder=\"Search library\" /></label>",103      "css": ".ds-search { display: flex; align-items: center; gap: 12px; min-height: 52px; max-height: 56px; padding: 0 16px; border: 1px solid rgba(17,17,17,0.7); border-radius: 12px; background: rgba(207,207,207,0.28); color: #111111; } .ds-search:focus-within { border-color: rgba(21,101,192,0.72); background: rgba(207,207,207,0.46); } .ds-search input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: inherit; font: inherit; } .ds-search input::placeholder { color: #393939; }"104    },105    {106      "name": "Dialog",107      "kind": "custom",108      "refersTo": "dialog",109      "description": "Bounded modal surface for confirmation and choices.",110      "html": "<section class=\"ds-dialog\" role=\"dialog\" aria-labelledby=\"ds-dialog-title\"><h2 id=\"ds-dialog-title\">Choose a font</h2><p>Pick the family used across Yokan.</p><button class=\"ds-btn-primary\">DONE</button></section>",111      "css": ".ds-dialog { width: min(520px, calc(100vw - 32px)); padding: 24px; border-radius: 28px; background: #fcfcfc; color: #111111; } .ds-dialog p { color: #393939; } .ds-dialog .ds-btn-primary { margin-top: 16px; }"112    },113    {114      "name": "Adaptive Navigation",115      "kind": "nav",116      "description": "Bottom navigation on compact layouts and rail navigation on wider layouts.",117      "html": "<nav class=\"ds-navigation\" aria-label=\"Main navigation\"><a class=\"is-selected\" href=\"#library\">▣<span>Library</span></a><a href=\"#browse\">⌕<span>Browse</span></a><a href=\"#more\">⋯<span>More</span></a></nav>",118      "css": ".ds-navigation { display: flex; justify-content: space-around; min-height: 80px; padding: 8px; background: #f3f3f3; } .ds-navigation a { display: grid; justify-items: center; gap: 4px; min-width: 64px; padding: 8px; border-radius: 16px; color: #393939; text-decoration: none; } .ds-navigation a.is-selected { background: rgba(21,101,192,0.16); color: #1565C0; } .ds-navigation a:hover { background: rgba(21,101,192,0.08); } .ds-navigation a:focus-visible { outline: 2px solid #1565C0; outline-offset: 2px; } @media (min-width: 720px) { .ds-navigation { width: 100px; min-height: 100vh; display: grid; align-content: start; justify-content: stretch; } .ds-navigation a { min-height: 65px; } }"119    }120  ],121  "narrative": {122    "northStar": "Living media shelf",123    "overview": "Yokan is a media shelf that feels alive without becoming noisy: content is organized into calm sections, while expressive Material 3 color roles bring the shelf's current theme forward. The default Blue delight palette reads vivid and expressive; alternate FlexScheme palettes and Material You can change those roles at runtime.\n\nThe component feel is softly tactile. Surfaces respond with modest tonal and shadow elevation, controls use friendly rounded silhouettes, and navigation adapts between a bottom bar and a rail. The app supports light, dark, and pure-black presentation, plus a user-controlled UI scale from .75x to 2x.",124    "keyCharacteristics": ["Living media shelf: organized, browsable, and content-led.", "Vivid and expressive default Blue delight palette.", "Softly tactile Material 3 surfaces and controls.", "Configurable appearance without hard-coding runtime-derived roles."],125    "rules": [126      { "name": "The Living Palette Rule", "body": "Keep color assignments semantic and let the selected FlexScheme or Material You source generate the active roles.", "section": "colors" },127      { "name": "The One Family Rule", "body": "Use the selected global family consistently; do not introduce a screen-specific typeface.", "section": "typography" },128      { "name": "The Soft Lift Rule", "body": "Elevation should be modest at rest and become noticeable only as a response to hover or press.", "section": "elevation" }129    ],130    "dos": ["Do use Material 3 semantic roles so FlexScheme and Material You remain user-selectable.", "Do preserve the 4/8/12/16/28dp shape scale and 46dp pill buttons.", "Do use adaptive navigation: NavigationBar for compact layouts and NavigationRail for wider layouts.", "Do support light, dark, and pure-black modes and the .75x–2x UI scale."],131    "donts": ["Don't hard-code secondary, tertiary, neutral, surface, or on-color values that are runtime-derived.", "Don't introduce fixed typography sizes where Material 3 defaults are inherited.", "Don't confuse the independent documentation site with this authoritative app visual system."]132  }133}134

Search chapters, reference and source filenames.