@refinn/core-ui 0.1.3 → 0.1.5
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 +21 -0
- package/dist/index.cjs +2636 -0
- package/dist/index.d.mts +154 -5
- package/dist/index.d.ts +154 -5
- package/dist/index.js +1296 -240
- package/dist/theme.css +446 -526
- package/package.json +7 -7
- package/dist/index.mjs +0 -1540
package/README.md
CHANGED
|
@@ -1,3 +1,24 @@
|
|
|
1
|
+
## Design tokens
|
|
2
|
+
|
|
3
|
+
`src/preset/theme.css` is **generated** — do not edit it by hand.
|
|
4
|
+
|
|
5
|
+
- Base/semantic colors, radius, and shadows come from `tokens/*.json` (Figma export via the
|
|
6
|
+
[lukasoppermann/design-tokens](https://github.com/lukasoppermann/design-tokens) plugin).
|
|
7
|
+
- Component-specific tokens (Button, Checkbox, Toast, typography scale, …) live in
|
|
8
|
+
`src/preset/theme.components.css` and are hand-written — edit that file instead.
|
|
9
|
+
|
|
10
|
+
Workflow when the design team ships a new export:
|
|
11
|
+
|
|
12
|
+
1. Replace `tokens/core.tokens.json` and `tokens/design.tokens.json` with the new files.
|
|
13
|
+
2. Run `npm run build:tokens` and review the diff in `src/preset/theme.css`.
|
|
14
|
+
3. Run `npm run check:tokens` (also runs in CI) — it fails if theme.css is stale or if a
|
|
15
|
+
component still references a `var(--...)` that no longer exists.
|
|
16
|
+
4. Commit and open a PR. A new color family or an existing group's new keys flow through
|
|
17
|
+
automatically (with a console warning); a brand-new component group requires a small edit
|
|
18
|
+
to `scripts/build-theme.mjs` (see `PENDING_GROUPS`, `NAME_OVERRIDES`, `VALUE_OVERRIDES`).
|
|
19
|
+
|
|
20
|
+
---
|
|
21
|
+
|
|
1
22
|
This is a [Next.js](https://nextjs.org) project bootstrapped with [`create-next-app`](https://nextjs.org/docs/app/api-reference/cli/create-next-app).
|
|
2
23
|
|
|
3
24
|
## Getting Started
|