@spunto/design-system 0.15.0 → 0.15.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 +25 -0
- package/package.json +1 -1
- package/styles.css +5 -2
package/README.md
CHANGED
|
@@ -4,6 +4,16 @@ Spunto's shared design system — the warm/flame **tokens**, JS **color constant
|
|
|
4
4
|
and the base **UI primitives** used across Spunto apps (the dashboard and Spunto
|
|
5
5
|
Lite). One source of truth so replicated features stay visually consistent.
|
|
6
6
|
|
|
7
|
+
> **Built on [shadcn/ui](https://ui.shadcn.com).** This package is an adaptation of
|
|
8
|
+
> shadcn/ui, not a design system written from scratch. Its token names and structure,
|
|
9
|
+
> its `cva` + `cn` variant pattern, and most of its primitives were copied from
|
|
10
|
+
> shadcn/ui (the Base UI variant) and then restyled for the Spunto palette and
|
|
11
|
+
> extended with Spunto-specific components. Full credit for the original design and
|
|
12
|
+
> API goes to [shadcn](https://github.com/shadcn) and the
|
|
13
|
+
> [shadcn-ui/ui](https://github.com/shadcn-ui/ui) contributors — MIT licensed, and
|
|
14
|
+
> the reason this package exists at all. If you're not tied to Spunto's look, use
|
|
15
|
+
> shadcn/ui directly.
|
|
16
|
+
|
|
7
17
|
## Usage
|
|
8
18
|
|
|
9
19
|
Import the tokens once in your app's entry CSS, right after Tailwind:
|
|
@@ -323,6 +333,21 @@ Adding a component = add its entry to `content/components.ts` + a demo file in
|
|
|
323
333
|
`showcase/src/demos/`; the visual page and its `.md` are then produced
|
|
324
334
|
automatically (see `showcase/vite-plugin-llms.ts`).
|
|
325
335
|
|
|
336
|
+
## Credits
|
|
337
|
+
|
|
338
|
+
- **[shadcn/ui](https://ui.shadcn.com)** ([shadcn-ui/ui](https://github.com/shadcn-ui/ui), MIT) —
|
|
339
|
+
**the base of this package.** The token contract (`--background`/`--foreground`,
|
|
340
|
+
`--card`, `--muted-foreground`, `--primary`, `--ring`…), the `cn` helper, the
|
|
341
|
+
`cva` variant pattern and most primitives here started as shadcn/ui components
|
|
342
|
+
(Base UI variant) and were restyled, not reinvented. The parts that are ours are
|
|
343
|
+
the palette values, the `Build`/`Ship`/`Run` semantics, and the Spunto-specific
|
|
344
|
+
components (`Terminal`, `TerminalPanel`, `ImagePull`, and everything under the
|
|
345
|
+
domain sub-exports).
|
|
346
|
+
- **[Base UI](https://base-ui.com)** (MIT) — the unstyled primitives underneath.
|
|
347
|
+
- **[Tailwind CSS](https://tailwindcss.com)** (MIT) — the styling pipeline.
|
|
348
|
+
- **[xterm.js](https://xtermjs.org)** (MIT) — the terminal surface.
|
|
349
|
+
- **[lucide](https://lucide.dev)** (ISC) — the icons.
|
|
350
|
+
|
|
326
351
|
## Peer requirements
|
|
327
352
|
|
|
328
353
|
- React 19+, and a **Tailwind CSS v4** pipeline in the consuming app.
|
package/package.json
CHANGED
package/styles.css
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* @spunto/design-system — design tokens (warm
|
|
2
|
+
* @spunto/design-system — design tokens (warm, brand: flame).
|
|
3
|
+
*
|
|
4
|
+
* Token names and structure follow shadcn/ui (https://ui.shadcn.com, MIT) — the
|
|
5
|
+
* base this whole design system is built on. Only the values are ours.
|
|
3
6
|
*
|
|
4
7
|
* Import AFTER `@import "tailwindcss"` in your app's entry CSS:
|
|
5
8
|
* @import "tailwindcss";
|
|
@@ -206,7 +209,7 @@
|
|
|
206
209
|
--radius-4xl: calc(var(--radius) * 3.5);
|
|
207
210
|
}
|
|
208
211
|
|
|
209
|
-
/* ─── Light mode — Warm cream
|
|
212
|
+
/* ─── Light mode — Warm cream ───────────────────────────────────────────── */
|
|
210
213
|
:root {
|
|
211
214
|
--background: oklch(0.975 0.012 82);
|
|
212
215
|
--foreground: oklch(0.20 0.018 55);
|