@misoto22/design 0.6.0 → 0.6.1

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 (76) hide show
  1. package/dist/agent/Accordion.md +1 -1
  2. package/dist/agent/Alert.md +1 -1
  3. package/dist/agent/AppShell.md +1 -1
  4. package/dist/agent/AreaChart.md +2 -2
  5. package/dist/agent/Article.md +1 -1
  6. package/dist/agent/Avatar.md +1 -1
  7. package/dist/agent/Badge.md +1 -1
  8. package/dist/agent/BarChart.md +2 -2
  9. package/dist/agent/BarList.md +2 -2
  10. package/dist/agent/BigNumber.md +2 -2
  11. package/dist/agent/BoxPlot.md +2 -2
  12. package/dist/agent/Breadcrumb.md +1 -1
  13. package/dist/agent/BulletChart.md +2 -2
  14. package/dist/agent/Button.md +1 -1
  15. package/dist/agent/Calendar.md +1 -1
  16. package/dist/agent/Card.md +1 -1
  17. package/dist/agent/Checkbox.md +1 -1
  18. package/dist/agent/Collapsible.md +1 -1
  19. package/dist/agent/Combobox.md +1 -1
  20. package/dist/agent/Command.md +1 -1
  21. package/dist/agent/ComposedChart.md +2 -2
  22. package/dist/agent/ContextMenu.md +1 -1
  23. package/dist/agent/DatePicker.md +1 -1
  24. package/dist/agent/Diagram.md +1 -1
  25. package/dist/agent/Dialog.md +1 -1
  26. package/dist/agent/DropdownMenu.md +1 -1
  27. package/dist/agent/EmptyState.md +1 -1
  28. package/dist/agent/ErrorState.md +1 -1
  29. package/dist/agent/Facet.md +2 -2
  30. package/dist/agent/Field.md +1 -1
  31. package/dist/agent/FigureBand.md +1 -1
  32. package/dist/agent/FloatingIconButton.md +1 -1
  33. package/dist/agent/FunnelChart.md +2 -2
  34. package/dist/agent/Heatmap.md +2 -2
  35. package/dist/agent/Histogram.md +2 -2
  36. package/dist/agent/Input.md +1 -1
  37. package/dist/agent/Kbd.md +1 -1
  38. package/dist/agent/LineChart.md +2 -2
  39. package/dist/agent/LinkArrow.md +1 -1
  40. package/dist/agent/NativeSelect.md +1 -1
  41. package/dist/agent/NavItem.md +1 -1
  42. package/dist/agent/Pagination.md +1 -1
  43. package/dist/agent/PieChart.md +2 -2
  44. package/dist/agent/Popover.md +1 -1
  45. package/dist/agent/Progress.md +1 -1
  46. package/dist/agent/RadarChart.md +2 -2
  47. package/dist/agent/RadialChart.md +2 -2
  48. package/dist/agent/RadioGroup.md +1 -1
  49. package/dist/agent/SankeyChart.md +2 -2
  50. package/dist/agent/ScatterChart.md +2 -2
  51. package/dist/agent/ScrollArea.md +1 -1
  52. package/dist/agent/SearchableMenu.md +1 -1
  53. package/dist/agent/Select.md +1 -1
  54. package/dist/agent/Separator.md +1 -1
  55. package/dist/agent/Sheet.md +1 -1
  56. package/dist/agent/Skeleton.md +1 -1
  57. package/dist/agent/Slider.md +1 -1
  58. package/dist/agent/Sparkline.md +2 -2
  59. package/dist/agent/Spinner.md +1 -1
  60. package/dist/agent/StatusDot.md +1 -1
  61. package/dist/agent/StatusPill.md +1 -1
  62. package/dist/agent/Steps.md +1 -1
  63. package/dist/agent/Switch.md +1 -1
  64. package/dist/agent/Table.md +1 -1
  65. package/dist/agent/Tabs.md +1 -1
  66. package/dist/agent/Tag.md +1 -1
  67. package/dist/agent/Textarea.md +1 -1
  68. package/dist/agent/Toast.md +1 -1
  69. package/dist/agent/ToggleGroup.md +1 -1
  70. package/dist/agent/Tooltip.md +1 -1
  71. package/dist/agent/TreemapChart.md +2 -2
  72. package/dist/agent/WaterfallChart.md +2 -2
  73. package/dist/agent/catalog.json +73 -1
  74. package/dist/agent/index.md +1 -1
  75. package/package.json +1 -1
  76. package/skills/misoto22-design/SKILL.md +43 -5
@@ -1,4 +1,4 @@
1
- # @misoto22/design 0.6.0
1
+ # @misoto22/design 0.6.1
2
2
 
3
3
  > Monochrome design system: portable CSS tokens and accessible React 19
4
4
  > primitives. Components ship compiled — import them, do not copy them.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@misoto22/design",
3
- "version": "0.6.0",
3
+ "version": "0.6.1",
4
4
  "private": false,
5
5
  "description": "Monochrome design system — CSS tokens and accessible React primitives",
6
6
  "license": "MIT",
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: misoto22-design
3
- description: Builds UI with @misoto22/design — a monochrome design system of CSS tokens and 52 accessible React primitives. Use when a project imports '@misoto22/design', sets data-mode / data-surface / data-radius / data-accent, or uses cn(), CONTROL_BASE, or isInvalid. Also applies when adding a component, theming, or fixing a form, table, dialog, or toast in such a project.
3
+ description: Builds UI with @misoto22/design — a monochrome design system of CSS tokens and 72 accessible React primitives, charts included. Use when a project imports '@misoto22/design' or '@misoto22/design/charts', sets data-mode / data-surface / data-radius / data-density, or uses cn(), CONTROL_BASE, or isInvalid. Also applies when adding a component, theming, plotting data, or fixing a form, table, dialog, or toast in such a project.
4
4
  allowed-tools: Bash(npx misoto22-design *), Bash(pnpm exec misoto22-design *), Bash(bunx misoto22-design *)
5
5
  ---
6
6
 
@@ -14,6 +14,41 @@ import { Button, Field, Input } from '@misoto22/design'
14
14
  import '@misoto22/design/styles.css'
15
15
  ```
16
16
 
17
+ ## Two entry points
18
+
19
+ The root entry has no dependencies a consumer has to install. Everything that
20
+ plots data lives behind a second specifier, because it needs a rendering engine
21
+ and an animation runtime that nothing else in the package does:
22
+
23
+ ```tsx
24
+ import { AreaChart, BarList, BigNumber } from '@misoto22/design/charts'
25
+ ```
26
+
27
+ ```bash
28
+ pnpm add recharts motion # optional peers, only for the charts entry
29
+ ```
30
+
31
+ That separation is the reason an app that renders a Badge never resolves
32
+ `recharts` — so importing a chart from the root specifier does not render a
33
+ blank component, it throws. `docs <Component>` prints the right line for each
34
+ one; the `Import:` header is derived from the tree the component lives in, not
35
+ written by hand.
36
+
37
+ Some of the charts need no engine at all — `Heatmap` is a `<table>`,
38
+ `Sparkline` is one `<path>`, `BarList`, `BigNumber` and `BulletChart` are plain
39
+ HTML — but they ship from the charts entry all the same, so the boundary stays
40
+ one line rather than a list to memorise.
41
+
42
+ One more, for surfaces that cannot read a custom property — an OpenGraph card, a
43
+ `theme-color`, a canvas:
44
+
45
+ ```ts
46
+ import { TOKENS } from '@misoto22/design/tokens'
47
+ ```
48
+
49
+ Never for styling a component. A literal in a stylesheet is a value that stops
50
+ following the theme, and every one of these mirrors a token that does.
51
+
17
52
  ## What this project has installed
18
53
 
19
54
  ```
@@ -30,8 +65,8 @@ npx misoto22-design docs Button
30
65
  ```
31
66
 
32
67
  Run that before writing against a component you have not used in this session.
33
- The median component is ~500 tokens and the largest is ~1,300, against ~28,000
34
- for all fifty-two. It is generated from the installed source, so it cannot be
68
+ The median component is ~500 tokens and the largest is ~1,300, against far more
69
+ for all seventy-two. It is generated from the installed source, so it cannot be
35
70
  out of date the way the website can.
36
71
 
37
72
  It also resolves parts and types, not just components: `docs CardBody`,
@@ -63,9 +98,12 @@ you are about to do that thing, not before.
63
98
  `border-(--border-color)`.
64
99
  - **Never write a `dark:` variant.** Dark mode is a value swap behind
65
100
  `data-mode="dark"`; a `dark:` override fights it and wins in only one theme.
66
- - **Theme with the seven `data-*` axes**, set on any element, not just `:root`.
101
+ - **Theme with the `data-*` axes**, set on any element, not just `:root`.
67
102
  `data-mode`, `data-surface`, `data-radius`, `data-rules`, `data-type`,
68
- `data-motion`, `data-density`, plus `data-accent`.
103
+ `data-motion`, `data-density`, `data-table-density`, `data-chart-palette`.
104
+ There is no `data-accent` — `--accent` is a custom property, re-pointed in
105
+ CSS. `npx misoto22-design docs --installed` prints the current list; it is
106
+ read out of the stylesheets rather than kept by hand here.
69
107
  - **Durations and radii come from tokens.** `duration-(--duration-fast)`,
70
108
  `rounded-(--radius)` — not `duration-150`, not `rounded-lg`.
71
109
  - **No blurred shadow.** `--shadow*` resolves to `none` on purpose. Depth is a