contour-ds 1.7.2 → 1.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (150) hide show
  1. package/README.md +244 -326
  2. package/dist/agent-cookbook.json +960 -0
  3. package/dist/agent-examples.json +65 -0
  4. package/dist/agent-map-wiring.json +152 -0
  5. package/dist/agent-rules.json +16 -0
  6. package/dist/build-manifest.json +344 -126
  7. package/dist/contour-wc-content.esm.js +1939 -0
  8. package/dist/contour-wc-content.esm.min.js +1 -0
  9. package/dist/contour-wc-core.esm.js +3724 -0
  10. package/dist/contour-wc-core.esm.min.js +1 -0
  11. package/dist/contour-wc-dashboard.esm.js +6986 -0
  12. package/dist/contour-wc-dashboard.esm.min.js +1 -0
  13. package/dist/contour-wc-data.esm.js +6572 -0
  14. package/dist/contour-wc-data.esm.min.js +1 -0
  15. package/dist/contour-wc-docs.esm.js +976 -0
  16. package/dist/contour-wc-docs.esm.min.js +1 -0
  17. package/dist/contour-wc-feedback.esm.js +1742 -0
  18. package/dist/contour-wc-feedback.esm.min.js +1 -0
  19. package/dist/contour-wc-forms.esm.js +2437 -0
  20. package/dist/contour-wc-forms.esm.min.js +1 -0
  21. package/dist/contour-wc-interaction.esm.js +1343 -0
  22. package/dist/contour-wc-interaction.esm.min.js +1 -0
  23. package/dist/contour-wc-layout.esm.js +845 -0
  24. package/dist/contour-wc-layout.esm.min.js +1 -0
  25. package/dist/contour-wc-map.esm.js +2411 -0
  26. package/dist/contour-wc-map.esm.min.js +1 -0
  27. package/dist/contour-wc-misc.esm.js +945 -0
  28. package/dist/contour-wc-misc.esm.min.js +1 -0
  29. package/dist/contour-wc-navigation.esm.js +2842 -0
  30. package/dist/contour-wc-navigation.esm.min.js +1 -0
  31. package/dist/contour-wc-ui.esm.js +6519 -0
  32. package/dist/contour-wc-ui.esm.min.js +1 -0
  33. package/dist/contour-wc.esm.js +14435 -5723
  34. package/dist/contour-wc.esm.min.js +1 -1
  35. package/dist/contour-wc.js +14436 -5725
  36. package/dist/contour-wc.min.js +1 -1
  37. package/dist/contour.a11y.json +402 -0
  38. package/dist/contour.code-snippets +4534 -0
  39. package/dist/contour.components.json +4870 -1222
  40. package/dist/contour.css +6672 -4711
  41. package/dist/contour.d.ts +753 -1085
  42. package/dist/contour.esm.js +440 -18
  43. package/dist/contour.esm.min.js +1 -1
  44. package/dist/contour.html-data.json +11343 -0
  45. package/dist/contour.js +440 -18
  46. package/dist/contour.min.css +1 -1
  47. package/dist/contour.min.js +1 -1
  48. package/dist/contour.react.d.ts +422 -0
  49. package/dist/contour.single.html +17 -0
  50. package/dist/contour.single.min.css +1 -0
  51. package/dist/contour.themes.json +56 -12
  52. package/dist/contour.tokens.json +1318 -1053
  53. package/dist/contour.vue.d.ts +420 -0
  54. package/dist/contour.web-types.json +11703 -0
  55. package/dist/custom-elements.json +36120 -0
  56. package/dist/docs/actions.md +16 -6
  57. package/dist/docs/affordances.md +21 -85
  58. package/dist/docs/apireference.md +9 -5
  59. package/dist/docs/colour.md +10 -4
  60. package/dist/docs/componentindex.md +9 -22
  61. package/dist/docs/data.md +39 -58
  62. package/dist/docs/docs.md +12 -7
  63. package/dist/docs/feedback.md +30 -12
  64. package/dist/docs/field.md +28 -13
  65. package/dist/docs/forms.md +35 -19
  66. package/dist/docs/index.json +70 -61
  67. package/dist/docs/install.md +12 -7
  68. package/dist/docs/landing.md +7 -4
  69. package/dist/docs/mapengine.md +30 -8
  70. package/dist/docs/motion.md +12 -6
  71. package/dist/docs/navigation.md +31 -7
  72. package/dist/docs/overlays.md +32 -25
  73. package/dist/docs/overview.md +3 -2
  74. package/dist/docs/patterns.md +20 -10
  75. package/dist/docs/playground.md +11 -4
  76. package/dist/docs/principles.md +8 -6
  77. package/dist/docs/recipes.md +117 -13
  78. package/dist/docs/space.md +10 -6
  79. package/dist/docs/status.md +13 -14
  80. package/dist/docs/surfaces.md +17 -22
  81. package/dist/docs/theming.md +18 -32
  82. package/dist/docs/type.md +12 -5
  83. package/dist/docs/webcomponents.md +75 -33
  84. package/dist/hljs.css +1 -20
  85. package/dist/map-chrome.mapbox.css +68 -92
  86. package/dist/map-chrome.maplibre.css +68 -92
  87. package/dist/registry/items/contour-core.json +2 -2
  88. package/dist/registry/items/contour-data.json +2 -2
  89. package/dist/registry/items/contour-docs.json +2 -2
  90. package/dist/registry/items/contour-landing.json +2 -2
  91. package/dist/registry/registry.json +8 -8
  92. package/dist/surfaces/contour-core.min.css +1 -1
  93. package/dist/surfaces/contour-data.min.css +1 -1
  94. package/dist/surfaces/contour-docs.min.css +1 -1
  95. package/dist/surfaces/contour-landing.min.css +1 -1
  96. package/dist/svg/icons.svg +367 -0
  97. package/dist/wc/behaviours.mjs +222 -192
  98. package/dist/wc/content.mjs +486 -142
  99. package/dist/wc/core.mjs +917 -395
  100. package/dist/wc/dashboard.mjs +252 -25
  101. package/dist/wc/data-chart.mjs +1333 -0
  102. package/dist/wc/data-export.mjs +391 -0
  103. package/dist/wc/data-gauge.mjs +779 -0
  104. package/dist/wc/data-geo.mjs +696 -0
  105. package/dist/wc/data-glyphs.mjs +133 -0
  106. package/dist/wc/data-legend.mjs +431 -0
  107. package/dist/wc/data-readout.mjs +227 -0
  108. package/dist/wc/data-series.mjs +1004 -0
  109. package/dist/wc/data-table.mjs +751 -0
  110. package/dist/wc/data.mjs +15 -3707
  111. package/dist/wc/docs.mjs +113 -19
  112. package/dist/wc/feedback.mjs +320 -116
  113. package/dist/wc/forms-controls.mjs +635 -0
  114. package/dist/wc/forms-field.mjs +547 -0
  115. package/dist/wc/forms-groups.mjs +347 -0
  116. package/dist/wc/forms-input.mjs +292 -0
  117. package/dist/wc/forms.mjs +10 -1122
  118. package/dist/wc/glyph.mjs +204 -0
  119. package/dist/wc/index.mjs +16 -7
  120. package/dist/wc/interaction.mjs +322 -75
  121. package/dist/wc/layout.mjs +100 -29
  122. package/dist/wc/map.mjs +888 -285
  123. package/dist/wc/misc.mjs +137 -26
  124. package/dist/wc/navigation-menu.mjs +735 -0
  125. package/dist/wc/navigation-shell.mjs +495 -0
  126. package/dist/wc/navigation-tree.mjs +995 -0
  127. package/dist/wc/navigation.mjs +9 -1636
  128. package/dist/wc/registration.mjs +1 -8
  129. package/dist/wc/shadow.mjs +285 -113
  130. package/dist/wc/states.mjs +75 -78
  131. package/dist/wc/svg.mjs +209 -34
  132. package/dist/wc/ui-atoms.mjs +608 -0
  133. package/dist/wc/ui-data.mjs +1404 -0
  134. package/dist/wc/ui-feedback.mjs +419 -0
  135. package/dist/wc/ui-inputs.mjs +1570 -0
  136. package/dist/wc/ui-menus.mjs +307 -0
  137. package/dist/wc/ui-overlays.mjs +1605 -0
  138. package/integrations/README.md +25 -5
  139. package/integrations/ai/CLAUDE.md +6 -3
  140. package/integrations/ai/COPILOT.md +14 -0
  141. package/integrations/ai/GEMINI.md +14 -0
  142. package/integrations/ai/WINDSURF.md +14 -0
  143. package/integrations/ai/v0-prompt.md +13 -1
  144. package/integrations/frameworks/README.md +235 -0
  145. package/integrations/native/README.md +0 -3
  146. package/integrations/native/style-dictionary.config.json +1 -1
  147. package/integrations/tailwind/contour-theme.css +71 -13
  148. package/integrations/validate-markup.mjs +172 -0
  149. package/package.json +103 -39
  150. package/dist/wc/ui.mjs +0 -3560
@@ -1,4 +1,4 @@
1
- # Motion that decelerates, never bounces.
1
+ # Motion
2
2
 
3
3
  Section `motion` — marker `05`, position 6 of 27 in the guide.
4
4
  Generated from `index.html`; prose quoted, counts from the inventory, no URL (the project is
@@ -6,9 +6,9 @@ private until v1.0). See `index.json` for the whole set and the shared statement
6
6
 
7
7
  ## What the guide says
8
8
 
9
- Exponential easing for entrances, tight linear curves for continuous motion, and a hard stop for anything the user did not ask for. Every animation respects prefers-reduced-motion.
9
+ Motion that decelerates, never bounces. Exponential easing for entrances, tight linear curves for continuous motion, and a hard stop for anything the user did not ask for. Every animation respects prefers-reduced-motion.
10
10
 
11
- Equivalent contour-* elements are catalogued in §23.
11
+ Equivalent contour-* elements are catalogued in §22.
12
12
 
13
13
  prefers-reduced-motion is an operating-system setting, so it is not the mechanism WCAG 2.2.2 asks for: a reader cannot reach it for one part of one page, and most have never opened it. [data-motion] is the page's own switch. paused holds every animation in its scope on the frame it is on — a spinner stays mid-rotation and still means working. running overrides the media query; leaving the attribute unset gives the choice back to the system.
14
14
 
@@ -20,25 +20,31 @@ State changes on surfaces: border, background, transform.
20
20
 
21
21
  Entrances, reveals and anything that moves the eye across a gap.
22
22
 
23
+ The same blocks as elements. Attributes are the canonical wire format; the full catalogue, with every element and its reactivity, is in Web components.
24
+
23
25
  ## Subsections
24
26
 
25
27
  - Motion a reader can stop
26
- - Web component counterpart
28
+ - Button press
29
+ - Web components
27
30
 
28
31
  ## Blocks documented here
29
32
 
30
- 13 block(s). Their facts live in `../contour.components.json`;
33
+ 16 block(s). Their facts live in `../contour.components.json`;
31
34
  only the names are here, because the same figure in two files is how a document
32
35
  starts disagreeing with itself.
33
36
 
37
+ - `.c-animation-controls`
34
38
  - `.c-badge`
35
39
  - `.c-btn`
36
40
  - `.c-card`
37
41
  - `.c-cluster`
38
42
  - `.c-dot`
43
+ - `.c-eyebrow`
39
44
  - `.c-icon-badge`
40
45
  - `.c-kbd`
41
46
  - `.c-pill`
47
+ - `.c-range`
42
48
  - `.c-row`
43
49
  - `.c-section-head`
44
50
  - `.c-segmented`
@@ -47,4 +53,4 @@ starts disagreeing with itself.
47
53
 
48
54
  ---
49
55
 
50
- Source `index.html` @ `1beb0033376e73f1` · last committed 2026-11-08T12:25:18+01:00 · no URL: the project is private until v1.0.
56
+ Source `index.html` @ `e59a15ba0fa53c75` · last committed 2026-11-29T20:19:21+01:00 · no URL: the project is private until v1.0.
@@ -6,29 +6,49 @@ private until v1.0). See `index.json` for the whole set and the shared statement
6
6
 
7
7
  ## What the guide says
8
8
 
9
- Tabs for peer views, segmented controls for exclusive choices, a toolbar for map-level actions. Each one announces its state to assistive technology.
9
+ Headers, menus, trees, tabs, segmented controls, toolbars, breadcrumbs, pagination and disclosures — the controls that move a reader between views. Each announces its state to assistive technology.
10
10
 
11
- Equivalent contour-* elements are catalogued in §23.
11
+ Equivalent contour-* elements are catalogued in §22.
12
+
13
+ The bar above and the links below: brand, navigation and the actions that stay reachable.
12
14
 
13
15
  The bar that holds the brand, the section links and the actions. It sticks to the top of the page; below 48 rem the links move into a drawer.
14
16
 
17
+ The headings of the page being read, with the current one marked. The guide's own rail is the same idea, numbered and built from the page.
18
+
19
+ On this page
20
+
21
+ The end of the page: the brand, a line about what this is, and the links that stay reachable.
22
+
23
+ A design system for spatial interfaces. One set of rules for three surfaces.
24
+
25
+ Hierarchies and disclosures: a menu for commands, a tree for layers, a disclosure for detail.
26
+
27
+ Tabs for peer views, a segmented control for exclusive choices, a toolbar for map-level actions.
28
+
15
29
  Handles high-degree road networks with predictable memory use.
16
30
 
17
31
  Bidirectional A* with a geographic heuristic. Fastest for point-to-point queries where both endpoints are known.
18
32
 
19
33
  Adaptive barrier SSSP. Scales to very large networks by keeping the frontier small.
20
34
 
21
- The headings of the page being read, with the current one marked. The guide's own rail is the same idea, numbered and built from the page.
35
+ Where the reader is and how to move: a breadcrumb trail and paginated steps.
22
36
 
23
- On this page
37
+ The same blocks as elements. Attributes are the canonical wire format; the full catalogue, with every element and its reactivity, is in Web components.
24
38
 
25
39
  ## Subsections
26
40
 
27
- - Web component counterpart
41
+ - Page chrome
42
+ - Foundations
43
+ - Components
44
+ - Menus and trees
45
+ - View switching
46
+ - Wayfinding
47
+ - Web components
28
48
 
29
49
  ## Blocks documented here
30
50
 
31
- 22 block(s). Their facts live in `../contour.components.json`;
51
+ 26 block(s). Their facts live in `../contour.components.json`;
32
52
  only the names are here, because the same figure in two files is how a document
33
53
  starts disagreeing with itself.
34
54
 
@@ -38,7 +58,11 @@ starts disagreeing with itself.
38
58
  - `.c-breadcrumb`
39
59
  - `.c-btn`
40
60
  - `.c-card`
61
+ - `.c-cluster`
41
62
  - `.c-disclosure`
63
+ - `.c-expandable`
64
+ - `.c-eyebrow`
65
+ - `.c-footer`
42
66
  - `.c-header`
43
67
  - `.c-icon-badge`
44
68
  - `.c-kbd`
@@ -57,4 +81,4 @@ starts disagreeing with itself.
57
81
 
58
82
  ---
59
83
 
60
- Source `index.html` @ `1beb0033376e73f1` · last committed 2026-11-08T12:25:18+01:00 · no URL: the project is private until v1.0.
84
+ Source `index.html` @ `e59a15ba0fa53c75` · last committed 2026-11-29T20:19:21+01:00 · no URL: the project is private until v1.0.
@@ -1,19 +1,25 @@
1
1
  # Overlays
2
2
 
3
- Section `overlays` — marker `11`, position 13 of 27 in the guide.
3
+ Section `overlays` — marker `12`, position 13 of 27 in the guide.
4
4
  Generated from `index.html`; prose quoted, counts from the inventory, no URL (the project is
5
5
  private until v1.0). See `index.json` for the whole set and the shared statement.
6
6
 
7
7
  ## What the guide says
8
8
 
9
- Dialogs for decisions that need focus, a command palette for the whole system, a drawer for drill-down, and tooltips that appear on interest rather than on click.
9
+ Dialogs for decisions that need focus, sheets and drawers for drill-down, popovers and tooltips for interest, a command shell for the whole system, and the live region that announces toasts.
10
10
 
11
- Equivalent contour-* elements are catalogued in §23.
11
+ Equivalent contour-* elements are catalogued in §22.
12
12
 
13
- Hover or focus the panel to strengthen the grip.
13
+ A dialog for the decision that needs focus, and the scrim that dims the page behind it.
14
+
15
+ The route and its isolines will be written to a single .geojson file that opens directly in QGIS, ArcGIS or Turf.
16
+
17
+ The dim behind an open layer. The base scrim pins to the viewport; the inline variant dims its nearest positioned ancestor, so a stage can hold it.
14
18
 
15
19
  Content behind the scrim.
16
20
 
21
+ Drill-down without losing context: a sheet, a drawer, and the side sheet that pins to the viewport edge.
22
+
17
23
  The classic map-tool panel: a scrollable body, a fixed footer, and a grip that collapses it on small screens.
18
24
 
19
25
  Walking instinct lab
@@ -24,53 +30,54 @@ Why this route
24
30
 
25
31
  Crossing at the canal lock costs less than the detour around it.
26
32
 
27
- Modal dialog, hint tooltip, command palette and the toast live region. These ship as overlay primitives; the demo instances live in the page footer.
33
+ Filters
34
+
35
+ Lightweight layers on interest: a popover, a tooltip, a hover card, a dropdown and a context menu.
36
+
37
+ The shell and the list: a popover command shell, and the static palette block it carries.
38
+
39
+ The popover shell the guide's own palette uses: fixed, centred, display only when open. This demo instance carries static rows; the live palette in the page footer builds its index from the page.
40
+
41
+ The live region that announces toasts — empty at load, correct before any script runs.
42
+
43
+ The same blocks as elements. Attributes are the canonical wire format; the full catalogue, with every element and its reactivity, is in Web components.
28
44
 
29
45
  ## Subsections
30
46
 
31
- - Side sheet
47
+ - Modal
48
+ - Panels and drawers
32
49
  - Desire Paths
33
- - Drawer
34
- - Dialog, tooltip, command palette & toast host
35
- - Web component counterpart
36
- - Popover
37
- - Tooltip
38
- - Hover card
39
- - Side sheet
40
- - Dropdown
41
- - Context menu
42
- - Command palette
43
- - Badge overflow
44
- - Web component counterparts
50
+ - Popovers and hints
51
+ - Command
52
+ - Toast host
53
+ - Web components
45
54
 
46
55
  ## Blocks documented here
47
56
 
48
- 28 block(s). Their facts live in `../contour.components.json`;
57
+ 26 block(s). Their facts live in `../contour.components.json`;
49
58
  only the names are here, because the same figure in two files is how a document
50
59
  starts disagreeing with itself.
51
60
 
52
- - `.c-badge`
53
- - `.c-badge-overflow`
54
61
  - `.c-btn`
55
62
  - `.c-callout`
63
+ - `.c-check`
56
64
  - `.c-chip`
65
+ - `.c-cluster`
57
66
  - `.c-command`
58
67
  - `.c-command-palette`
59
68
  - `.c-context-menu`
60
69
  - `.c-dialog`
61
70
  - `.c-drawer`
62
71
  - `.c-dropdown`
72
+ - `.c-eyebrow`
63
73
  - `.c-field`
64
74
  - `.c-hover-card`
65
75
  - `.c-icon-badge`
66
- - `.c-input`
67
76
  - `.c-kbd`
68
77
  - `.c-link`
69
- - `.c-panel`
70
78
  - `.c-popover`
71
79
  - `.c-range`
72
80
  - `.c-readout`
73
- - `.c-resize-handle`
74
81
  - `.c-scrim`
75
82
  - `.c-section-head`
76
83
  - `.c-sheet`
@@ -80,4 +87,4 @@ starts disagreeing with itself.
80
87
 
81
88
  ---
82
89
 
83
- Source `index.html` @ `1beb0033376e73f1` · last committed 2026-11-08T12:25:18+01:00 · no URL: the project is private until v1.0.
90
+ Source `index.html` @ `e59a15ba0fa53c75` · last committed 2026-11-29T20:19:21+01:00 · no URL: the project is private until v1.0.
@@ -10,12 +10,13 @@ A token-driven interface system for three kinds of page: a landing page that has
10
10
 
11
11
  ## Blocks documented here
12
12
 
13
- 1 block(s). Their facts live in `../contour.components.json`;
13
+ 2 block(s). Their facts live in `../contour.components.json`;
14
14
  only the names are here, because the same figure in two files is how a document
15
15
  starts disagreeing with itself.
16
16
 
17
17
  - `.c-btn`
18
+ - `.c-eyebrow`
18
19
 
19
20
  ---
20
21
 
21
- Source `index.html` @ `1beb0033376e73f1` · last committed 2026-11-08T12:25:18+01:00 · no URL: the project is private until v1.0.
22
+ Source `index.html` @ `e59a15ba0fa53c75` · last committed 2026-11-29T20:19:21+01:00 · no URL: the project is private until v1.0.
@@ -8,47 +8,57 @@ private until v1.0). See `index.json` for the whole set and the shared statement
8
8
 
9
9
  Recurring arrangements, documented so a landing page, a documentation site and a dashboard speak the same visual language.
10
10
 
11
- Equivalent contour-* elements are catalogued in §23.
11
+ Equivalent contour-* elements are catalogued in §22.
12
12
 
13
13
  Run routing without dedicated infrastructure and keep the deployment footprint minimal. The data never leaves the browser.
14
14
 
15
15
  Every desire line is the map arguing with the plan.
16
16
 
17
- A filter bar, a table, and an empty/error state composed into one task.
17
+ A filter bar and a table composed into one task. Filtering and the empty/error states are the consumer's wiring; the specimen shows the arrangement.
18
18
 
19
19
  A multi-field form with validity, reset, and submit.
20
20
 
21
- Selecting a row highlights the corresponding map feature and vice versa.
21
+ A map area beside a feature table. The selection sync is the consumer's: listen for contour:select on the table and highlight the matching feature in the engine attached to the map-area seam.
22
22
 
23
- A time slider drives a chart; stale data is badged.
23
+ A time slider emits contour:time-change; the consumer drives the chart from it. The warning badge marks stale data — its state is the consumer's too.
24
24
 
25
- A layer panel controls map-area slots.
25
+ A layer panel emits contour:layer-* events; the consumer's adapter applies them to the engine attached through the map-area seam. The panel never touches the engine itself.
26
26
 
27
- A docs shell with URL-synced section state.
27
+ A docs shell. Use contour-docs-nav for URL-synced current-page state; the shell itself is layout.
28
28
 
29
29
  Documentation content.
30
30
 
31
+ How to use the component.
32
+
33
+ Hidden — the block is not rendered.
34
+
35
+ Shown — same markup, wider profile.
36
+
37
+ The same blocks as elements. Attributes are the canonical wire format; the full catalogue, with every element and its reactivity, is in Web components.
38
+
31
39
  ## Subsections
32
40
 
33
41
  - Fewer servers. Faster interactions.
34
- - Filter + query + empty/error
42
+ - Filter + query
35
43
  - Form validation
36
44
  - Map + table selection
37
45
  - Time slider + chart + stale data
38
46
  - Layer panel + map slot
39
47
  - Documentation page with URL state
40
- - Web component counterpart
48
+ - Web components
41
49
 
42
50
  ## Blocks documented here
43
51
 
44
- 19 block(s). Their facts live in `../contour.components.json`;
52
+ 21 block(s). Their facts live in `../contour.components.json`;
45
53
  only the names are here, because the same figure in two files is how a document
46
54
  starts disagreeing with itself.
47
55
 
56
+ - `.c-advanced`
48
57
  - `.c-badge`
49
58
  - `.c-btn`
50
59
  - `.c-cluster`
51
60
  - `.c-docs-nav`
61
+ - `.c-eyebrow`
52
62
  - `.c-field`
53
63
  - `.c-filter-bar`
54
64
  - `.c-icon-badge`
@@ -67,4 +77,4 @@ starts disagreeing with itself.
67
77
 
68
78
  ---
69
79
 
70
- Source `index.html` @ `1beb0033376e73f1` · last committed 2026-11-08T12:25:18+01:00 · no URL: the project is private until v1.0.
80
+ Source `index.html` @ `e59a15ba0fa53c75` · last committed 2026-11-29T20:19:21+01:00 · no URL: the project is private until v1.0.
@@ -8,18 +8,24 @@ private until v1.0). See `index.json` for the whole set and the shared statement
8
8
 
9
9
  Every decision in the system is a custom property. Change one and watch the component respond — this is the same mechanism a consumer would use to retheme. The playground writes into a .c-theme-scope, a subtree that re-derives the brand layer from its own knobs.
10
10
 
11
- Equivalent contour-* elements are catalogued in §23.
11
+ Equivalent contour-* elements are catalogued in §22.
12
12
 
13
13
  The playground writes directly to the scoped container. Nothing here is a special case — it is the same custom-property contract the tokens expose.
14
14
 
15
+ The dashboard composition grammar — anatomy, docked shell, cross-view contract — and the shared Density profiles panel live in Recipes, beside the dashboard recipe.
16
+
17
+ The same blocks as elements. Attributes are the canonical wire format; the full catalogue, with every element and its reactivity, is in Web components.
18
+
15
19
  ## Subsections
16
20
 
17
21
  - A component under test
18
- - Web component counterpart
22
+ - Dashboard grammar
23
+ - Web components
24
+ - Theme scope
19
25
 
20
26
  ## Blocks documented here
21
27
 
22
- 12 block(s). Their facts live in `../contour.components.json`;
28
+ 13 block(s). Their facts live in `../contour.components.json`;
23
29
  only the names are here, because the same figure in two files is how a document
24
30
  starts disagreeing with itself.
25
31
 
@@ -28,6 +34,7 @@ starts disagreeing with itself.
28
34
  - `.c-card`
29
35
  - `.c-chip`
30
36
  - `.c-dot`
37
+ - `.c-eyebrow`
31
38
  - `.c-field`
32
39
  - `.c-icon-badge`
33
40
  - `.c-kbd`
@@ -38,4 +45,4 @@ starts disagreeing with itself.
38
45
 
39
46
  ---
40
47
 
41
- Source `index.html` @ `1beb0033376e73f1` · last committed 2026-11-08T12:25:18+01:00 · no URL: the project is private until v1.0.
48
+ Source `index.html` @ `e59a15ba0fa53c75` · last committed 2026-11-29T20:19:21+01:00 · no URL: the project is private until v1.0.
@@ -1,4 +1,4 @@
1
- # Six rules that break every tie.
1
+ # Principles
2
2
 
3
3
  Section `principles` — marker `01`, position 2 of 27 in the guide.
4
4
  Generated from `index.html`; prose quoted, counts from the inventory, no URL (the project is
@@ -6,13 +6,13 @@ private until v1.0). See `index.json` for the whole set and the shared statement
6
6
 
7
7
  ## What the guide says
8
8
 
9
- When a decision is not obvious, these decide it. They are ordered by how often they come up.
9
+ Six rules that break every tie. When a decision is not obvious, these decide it. They are ordered by how often they come up.
10
10
 
11
11
  In a dark chart, elevation is expressed by surface lightness and a single hairline. Shadows are reserved for things that genuinely float: menus, dialogs, toasts.
12
12
 
13
13
  Eighty-five percent of the interface is neutral. Tidal marks action and success, Plasma marks live data, Clay marks failure. Nothing is coloured decoratively.
14
14
 
15
- Size and weight alone leave a page flat. Generous space around the thing that matters does the same job, without adding another colour or border.
15
+ Eight categorical hues cannot all be separated by lightness, so every series carries a dash pattern as well as a hue, and the legend previews it.
16
16
 
17
17
  IBM Plex Mono is reserved for data, coordinates, labels and code. If it is prose, it is set in IBM Plex Sans. The split makes machine-read data instantly distinguishable.
18
18
 
@@ -24,22 +24,24 @@ A landing page, a documentation site and a dashboard read as the same product: t
24
24
 
25
25
  - Lighter, not shadowed
26
26
  - Colour is a signal
27
- - Space carries the hierarchy
27
+ - A chart never asks you to tell two colours apart
28
28
  - Mono means "machine"
29
29
  - Obvious, not guessed
30
30
  - One system, three surfaces
31
31
 
32
32
  ## Blocks documented here
33
33
 
34
- 4 block(s). Their facts live in `../contour.components.json`;
34
+ 6 block(s). Their facts live in `../contour.components.json`;
35
35
  only the names are here, because the same figure in two files is how a document
36
36
  starts disagreeing with itself.
37
37
 
38
38
  - `.c-btn`
39
+ - `.c-cluster`
40
+ - `.c-eyebrow`
39
41
  - `.c-feature`
40
42
  - `.c-icon-badge`
41
43
  - `.c-section-head`
42
44
 
43
45
  ---
44
46
 
45
- Source `index.html` @ `1beb0033376e73f1` · last committed 2026-11-08T12:25:18+01:00 · no URL: the project is private until v1.0.
47
+ Source `index.html` @ `e59a15ba0fa53c75` · last committed 2026-11-29T20:19:21+01:00 · no URL: the project is private until v1.0.
@@ -1,4 +1,4 @@
1
- # Three shells, one system.
1
+ # Recipes
2
2
 
3
3
  Section `recipes` — marker `19`, position 20 of 27 in the guide.
4
4
  Generated from `index.html`; prose quoted, counts from the inventory, no URL (the project is
@@ -6,9 +6,67 @@ private until v1.0). See `index.json` for the whole set and the shared statement
6
6
 
7
7
  ## What the guide says
8
8
 
9
- Contour covers landing pages, documentation sites and technical dashboards. The components are shared; the composition, density and type scale change. Below are all three, rendered live.
9
+ Three shells, one system. Contour covers landing pages, documentation sites and technical dashboards. The components are shared; the composition, density and type scale change. Below are all three, rendered live.
10
10
 
11
- Equivalent contour-* elements are catalogued in §23.
11
+ Equivalent contour-* elements are catalogued in §22.
12
+
13
+ The composition skeleton the recipes compose: grouping helpers, the map frame, containers and the dashboard grid.
14
+
15
+ The spatial dashboard skeleton: an app shell, a map area with floating panels, a footer for charts, and the containers that fill them.
16
+
17
+ .c-row — horizontal flex, items centered
18
+
19
+ .c-stack — vertical, gap scales with --space-md
20
+
21
+ Twelve legs, 342 edges, computed in 7 ms.
22
+
23
+ .c-cluster — wrapping, for tags and chips
24
+
25
+ .c-box — padded container, size variants
26
+
27
+ Medium padding, a border, and room for nested content.
28
+
29
+ .c-map-slot — map chrome container
30
+
31
+ .c-map-panel — floating panel over the map
32
+
33
+ Top-right panel
34
+
35
+ Bottom-left panel
36
+
37
+ .c-map-footer — bottom bar for charts and tables
38
+
39
+ Cell 1
40
+
41
+ Cell 2
42
+
43
+ Cell 3
44
+
45
+ .c-container — fixed (fit content) + scrollable (fill space)
46
+
47
+ Fixed container
48
+
49
+ Fits its content, stays put.
50
+
51
+ Scrollable container
52
+
53
+ Fills remaining space
54
+
55
+ And scrolls if needed
56
+
57
+ More content here
58
+
59
+ Even more content
60
+
61
+ Main content area
62
+
63
+ .c-app / .c-app-body — application shell
64
+
65
+ Sidebar
66
+
67
+ Main content area
68
+
69
+ Two composition primitives for a dashboard shell. The grid lays its authored children out in a responsive set of columns; the stack is a vertical rhythm with a shared header. Both take their geometry from custom properties, so the consumer sets the column count and the gap rather than overriding the rule.
12
70
 
13
71
  A page whose only job is to earn a click. Generous type, one primary action, and a hero that shows the product rather than describing it. The contour field runs full-bleed behind everything.
14
72
 
@@ -20,6 +78,12 @@ Millisecond-scale responses with no round trip, so the map feels like a surface
20
78
 
21
79
  Routing, isolines, a MapLibre control and GeoJSON export in one package.
22
80
 
81
+ A landing page is a persuasive argument. Its grammar prioritises storytelling, typography, large-scale composition, editorial rhythm, rich media, persuasive CTA and generous whitespace.
82
+
83
+ The landing shell composes these blocks in a narrative sequence:
84
+
85
+ Landing pages use the fluid display scale for headlines and the fixed UI scale for body text. The display scale responds to viewport width; the UI scale does not.
86
+
23
87
  A reading surface where the URL is the state. A navigation tree on the left, a measured prose column in the middle, an on-this-page rail on the right. Every entry is a real link, so it all works without JavaScript.
24
88
 
25
89
  Getting started
@@ -36,6 +100,12 @@ The first call fetches and parses every tile in range. The search itself takes m
36
100
 
37
101
  On this page
38
102
 
103
+ A documentation site is a reading instrument. Its grammar prioritises findability, reading comfort, technical precision, code discoverability and cross-referencing. Below 56rem the navigation column leaves the page: it carries popover, its controller is a popovertarget button (.c-docs-shell__nav-toggle), and the platform supplies Escape, light dismiss and focus return. node tools/audit/docs-behaviours.mjs asserts the drawer and the TOC scroll-spy in a real scrolling page.
104
+
105
+ The documentation shell composes these blocks in a fixed arrangement:
106
+
107
+ Every component reference in documentation must be a live link to its API reference entry.
108
+
39
109
  A scanning surface. Density is the feature: comfortable by default, one toggle for compact. Every panel reports its own state, and chart colours come from a dedicated token layer so series stay distinguishable.
40
110
 
41
111
  Last 7 days · all profiles
@@ -44,37 +114,69 @@ By route volume
44
114
 
45
115
  48 rows · sorted by latency
46
116
 
117
+ An analytical dashboard is a workspace. Its grammar prioritises density, interpretation, cross-filtering, context preservation, comparison, rapid navigation, monitoring and freshness. The docked variant is .c-workspace-shell: sidebar, central stage, resize handle and inspector as one body grid. Below 64rem the body collapses to one column, the handle is removed and the inspector becomes a popover drawer opened by .c-workspace-shell__inspector-toggle. node tools/audit/workspace-shell.mjs measures both layouts.
118
+
119
+ The dashboard shell composes these 10 blocks into a spatial workspace:
120
+
121
+ Navigation, central stage, resize handle and docked inspector in one body grid. Below 64rem the body is one column, the handle is removed and the inspector becomes a drawer opened by its toggle.
122
+
123
+ Central stage
124
+
125
+ The same blocks as elements. Attributes are the canonical wire format; the full catalogue, with every element and its reactivity, is in Web components.
126
+
47
127
  ## Subsections
48
128
 
129
+ - Shell primitives
130
+ - Layout primitives
131
+ - Dashboard grid and analysis stack
49
132
  - Landing page
133
+ - Landing grammar
134
+ - Landing anatomy
135
+ - Type scale
50
136
  - Documentation site
137
+ - Documentation grammar
138
+ - Documentation anatomy
139
+ - Cross-referencing contract
51
140
  - Technical dashboard
52
- - Web component counterpart
141
+ - Dashboard grammar
142
+ - Dashboard anatomy
143
+ - Docked workspace shell
144
+ - Cross-view interaction contract
145
+ - Density profiles
146
+ - Web components
53
147
 
54
148
  ## Blocks documented here
55
149
 
56
- 40 block(s). Their facts live in `../contour.components.json`;
150
+ 57 block(s). Their facts live in `../contour.components.json`;
57
151
  only the names are here, because the same figure in two files is how a document
58
152
  starts disagreeing with itself.
59
153
 
154
+ - `.c-analysis-stack`
60
155
  - `.c-anchor`
156
+ - `.c-app`
157
+ - `.c-app-body`
61
158
  - `.c-badge`
159
+ - `.c-box`
62
160
  - `.c-breadcrumb`
63
161
  - `.c-btn`
64
162
  - `.c-callout`
65
163
  - `.c-chart`
66
164
  - `.c-chart-grid`
67
165
  - `.c-chip`
166
+ - `.c-cluster`
68
167
  - `.c-code`
69
168
  - `.c-code-tabs`
169
+ - `.c-container`
70
170
  - `.c-dash-freshness`
71
171
  - `.c-dash-kpi-row`
72
172
  - `.c-dash-shell`
73
173
  - `.c-dash-toolbar`
174
+ - `.c-dashboard-grid`
74
175
  - `.c-delta`
75
176
  - `.c-docs-nav`
76
177
  - `.c-docs-shell`
77
178
  - `.c-dot`
179
+ - `.c-eyebrow`
78
180
  - `.c-filter-bar`
79
181
  - `.c-filter-pill`
80
182
  - `.c-icon-badge`
@@ -84,27 +186,29 @@ starts disagreeing with itself.
84
186
  - `.c-landing-features`
85
187
  - `.c-landing-hero`
86
188
  - `.c-legend`
189
+ - `.c-map-footer`
190
+ - `.c-map-panel`
191
+ - `.c-map-slot`
87
192
  - `.c-metrics`
88
193
  - `.c-pager`
89
194
  - `.c-panel`
90
195
  - `.c-prose`
91
196
  - `.c-readout`
92
197
  - `.c-recipe`
198
+ - `.c-resize-handle`
199
+ - `.c-row`
93
200
  - `.c-section-head`
94
201
  - `.c-segmented`
202
+ - `.c-sidebar`
95
203
  - `.c-sparkline`
204
+ - `.c-stack`
96
205
  - `.c-table`
97
206
  - `.c-table-wrap`
207
+ - `.c-tag`
98
208
  - `.c-threshold`
99
209
  - `.c-toc`
100
-
101
- ### Defined by the guide, not the system
102
-
103
- These appear in the specimen markup and in no sheet under `src/css`, so they are not
104
- part of the component contract and nothing in an installed package defines them:
105
-
106
- - `.c-cursor-demo`
210
+ - `.c-workspace-shell`
107
211
 
108
212
  ---
109
213
 
110
- Source `index.html` @ `1beb0033376e73f1` · last committed 2026-11-08T12:25:18+01:00 · no URL: the project is private until v1.0.
214
+ Source `index.html` @ `e59a15ba0fa53c75` · last committed 2026-11-29T20:19:21+01:00 · no URL: the project is private until v1.0.