@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.
- package/dist/agent/Accordion.md +1 -1
- package/dist/agent/Alert.md +1 -1
- package/dist/agent/AppShell.md +1 -1
- package/dist/agent/AreaChart.md +2 -2
- package/dist/agent/Article.md +1 -1
- package/dist/agent/Avatar.md +1 -1
- package/dist/agent/Badge.md +1 -1
- package/dist/agent/BarChart.md +2 -2
- package/dist/agent/BarList.md +2 -2
- package/dist/agent/BigNumber.md +2 -2
- package/dist/agent/BoxPlot.md +2 -2
- package/dist/agent/Breadcrumb.md +1 -1
- package/dist/agent/BulletChart.md +2 -2
- package/dist/agent/Button.md +1 -1
- package/dist/agent/Calendar.md +1 -1
- package/dist/agent/Card.md +1 -1
- package/dist/agent/Checkbox.md +1 -1
- package/dist/agent/Collapsible.md +1 -1
- package/dist/agent/Combobox.md +1 -1
- package/dist/agent/Command.md +1 -1
- package/dist/agent/ComposedChart.md +2 -2
- package/dist/agent/ContextMenu.md +1 -1
- package/dist/agent/DatePicker.md +1 -1
- package/dist/agent/Diagram.md +1 -1
- package/dist/agent/Dialog.md +1 -1
- package/dist/agent/DropdownMenu.md +1 -1
- package/dist/agent/EmptyState.md +1 -1
- package/dist/agent/ErrorState.md +1 -1
- package/dist/agent/Facet.md +2 -2
- package/dist/agent/Field.md +1 -1
- package/dist/agent/FigureBand.md +1 -1
- package/dist/agent/FloatingIconButton.md +1 -1
- package/dist/agent/FunnelChart.md +2 -2
- package/dist/agent/Heatmap.md +2 -2
- package/dist/agent/Histogram.md +2 -2
- package/dist/agent/Input.md +1 -1
- package/dist/agent/Kbd.md +1 -1
- package/dist/agent/LineChart.md +2 -2
- package/dist/agent/LinkArrow.md +1 -1
- package/dist/agent/NativeSelect.md +1 -1
- package/dist/agent/NavItem.md +1 -1
- package/dist/agent/Pagination.md +1 -1
- package/dist/agent/PieChart.md +2 -2
- package/dist/agent/Popover.md +1 -1
- package/dist/agent/Progress.md +1 -1
- package/dist/agent/RadarChart.md +2 -2
- package/dist/agent/RadialChart.md +2 -2
- package/dist/agent/RadioGroup.md +1 -1
- package/dist/agent/SankeyChart.md +2 -2
- package/dist/agent/ScatterChart.md +2 -2
- package/dist/agent/ScrollArea.md +1 -1
- package/dist/agent/SearchableMenu.md +1 -1
- package/dist/agent/Select.md +1 -1
- package/dist/agent/Separator.md +1 -1
- package/dist/agent/Sheet.md +1 -1
- package/dist/agent/Skeleton.md +1 -1
- package/dist/agent/Slider.md +1 -1
- package/dist/agent/Sparkline.md +2 -2
- package/dist/agent/Spinner.md +1 -1
- package/dist/agent/StatusDot.md +1 -1
- package/dist/agent/StatusPill.md +1 -1
- package/dist/agent/Steps.md +1 -1
- package/dist/agent/Switch.md +1 -1
- package/dist/agent/Table.md +1 -1
- package/dist/agent/Tabs.md +1 -1
- package/dist/agent/Tag.md +1 -1
- package/dist/agent/Textarea.md +1 -1
- package/dist/agent/Toast.md +1 -1
- package/dist/agent/ToggleGroup.md +1 -1
- package/dist/agent/Tooltip.md +1 -1
- package/dist/agent/TreemapChart.md +2 -2
- package/dist/agent/WaterfallChart.md +2 -2
- package/dist/agent/catalog.json +73 -1
- package/dist/agent/index.md +1 -1
- package/package.json +1 -1
- package/skills/misoto22-design/SKILL.md +43 -5
package/dist/agent/index.md
CHANGED
package/package.json
CHANGED
|
@@ -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
|
|
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
|
|
34
|
-
for all
|
|
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
|
|
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`,
|
|
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
|