@sarunyu/system-one 4.9.0 → 4.9.2
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/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/style.css +1 -1
- package/llms.txt +6 -5
- package/package.json +1 -1
package/llms.txt
CHANGED
|
@@ -8,19 +8,20 @@ that uses this library. The rules are non-negotiable.
|
|
|
8
8
|
|
|
9
9
|
---
|
|
10
10
|
|
|
11
|
-
## The
|
|
11
|
+
## The 6 rules
|
|
12
12
|
|
|
13
13
|
1. **Use library components for every element it provides.** Never recreate
|
|
14
14
|
Button, Input, Tag, Dropdown, Card, Tab, Checkbox, Toggle, Radio, DateInput, TimeInput,
|
|
15
15
|
Table, SearchInput, TextArea, Chip, Modal, BottomSheet, Alert, Toast, Notification, Badge as raw HTML.
|
|
16
|
-
2. **
|
|
16
|
+
2. **Never override a component's built-in styles.** Every library component manages its own colors, shadows, padding, radius, and typography internally. Only use `className` on library components for **layout** (`w-*`, `max-w-*`, `flex`, `grid`, `gap-*`, `m-*`, `col-span-*`). Never pass `bg-*`, `shadow-*`, `text-*`, `p-*`, `rounded-*`, or `border-*` in `className` on a library component.
|
|
17
|
+
3. **Use design-token classes for color and typography.** Never `text-blue-600`,
|
|
17
18
|
`bg-gray-100`, `text-[#3b82f6]`. The token table below is exhaustive — if a
|
|
18
19
|
color you need is not in it, use `text-foreground` / `bg-card`.
|
|
19
|
-
|
|
20
|
+
4. **Use `@phosphor-icons/react` for all icons.** Never import from `lucide-react`
|
|
20
21
|
or any other icon library. Install with `npm install @phosphor-icons/react`.
|
|
21
22
|
Import named icons: `import { House, MagnifyingGlass, CaretDown } from "@phosphor-icons/react"`.
|
|
22
23
|
Every icon accepts `size`, `weight` (`"regular"` | `"bold"` | `"fill"` | `"duotone"` | `"light"` | `"thin"`), and `className` props.
|
|
23
|
-
|
|
24
|
+
5. **No arbitrary bracket values for spacing / sizing / typography.**
|
|
24
25
|
Use scale utilities, not pixel overrides. The library's shipped stylesheet
|
|
25
26
|
only contains scale utilities + a fixed list of safelisted container widths,
|
|
26
27
|
so any other `[...]` value is a no-op in hosts without Tailwind installed.
|
|
@@ -36,7 +37,7 @@ that uses this library. The rules are non-negotiable.
|
|
|
36
37
|
`max-w-[1440px]`. For any other width, snap to `max-w-{xs…7xl}`.
|
|
37
38
|
- If a design calls for an odd value, snap to the nearest scale step — the
|
|
38
39
|
design system is calibrated for those steps on purpose.
|
|
39
|
-
|
|
40
|
+
6. **Layout is free (within the scale).** Build page structure with plain `<div>`
|
|
40
41
|
+ Tailwind utilities (flex, grid, container, max-w-*, gap-*, p-*, mx-auto).
|
|
41
42
|
The library does NOT ship layout primitives. Do not import `Page`, `Section`,
|
|
42
43
|
`Stack`, `CardGrid`, `Toolbar` — they don't exist.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sarunyu/system-one",
|
|
3
|
-
"version": "4.9.
|
|
3
|
+
"version": "4.9.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A production-ready React design system built for AI-powered web generation tools (Figma Make, Lovable, V0). Tailwind CSS v4 + CSS custom properties for full theming support.",
|
|
6
6
|
"keywords": [
|