@assure-one/design-system 0.1.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/README.md +64 -0
- package/dist/index.d.ts +956 -0
- package/dist/index.js +6268 -0
- package/dist/index.js.map +1 -0
- package/dist/styles.css +2 -0
- package/dist/tokens/index.d.ts +407 -0
- package/dist/tokens/index.js +261 -0
- package/dist/tokens/index.js.map +1 -0
- package/package.json +100 -0
package/README.md
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
# Assure One Design System
|
|
2
|
+
|
|
3
|
+
The single source of truth for visual design across all Assure One products.
|
|
4
|
+
|
|
5
|
+
- **Tokens** — semantic CSS variables (color, type, spacing, motion) consumed by every product.
|
|
6
|
+
- **Primitives** — accessible React components built on Radix + Tailwind 4.
|
|
7
|
+
- **Patterns** — common compositions (DataTable, FormField, EmptyState).
|
|
8
|
+
|
|
9
|
+
## Install
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
pnpm add @assure-one/design-system
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
Import tokens once in your root layout:
|
|
16
|
+
|
|
17
|
+
```ts
|
|
18
|
+
import "@assure-one/design-system/styles.css";
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
Then use components:
|
|
22
|
+
|
|
23
|
+
```tsx
|
|
24
|
+
import { Button } from "@assure-one/design-system";
|
|
25
|
+
|
|
26
|
+
export default function Page() {
|
|
27
|
+
return <Button variant="primary">Click me</Button>;
|
|
28
|
+
}
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
## Develop
|
|
32
|
+
|
|
33
|
+
```bash
|
|
34
|
+
pnpm install
|
|
35
|
+
pnpm storybook # http://localhost:6006
|
|
36
|
+
pnpm build # bundle for publishing
|
|
37
|
+
pnpm typecheck
|
|
38
|
+
pnpm lint
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
## Architecture
|
|
42
|
+
|
|
43
|
+
3-tier token system (W3C Design Tokens spec compatible):
|
|
44
|
+
|
|
45
|
+
```
|
|
46
|
+
reference → system (semantic) → component
|
|
47
|
+
color.navy.700 → color.action.primary.bg → button.primary.bg
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
Components consume **system tokens**, never reference values directly. Themes (light, dark, per-product accent) re-map system → reference without touching component code.
|
|
51
|
+
|
|
52
|
+
## Release
|
|
53
|
+
|
|
54
|
+
We use [Changesets](https://github.com/changesets/changesets). Every PR with a user-visible change includes a changeset:
|
|
55
|
+
|
|
56
|
+
```bash
|
|
57
|
+
pnpm changeset
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
Merging to `main` triggers a "Version Packages" PR. Merging that PR publishes to GitHub Packages.
|
|
61
|
+
|
|
62
|
+
## Status
|
|
63
|
+
|
|
64
|
+
Pre-release. Not yet published. APIs may change.
|