@sarunyu/system-one 4.7.1 → 4.7.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.
Files changed (2) hide show
  1. package/llms.txt +6 -17
  2. package/package.json +1 -1
package/llms.txt CHANGED
@@ -86,26 +86,15 @@ Two issues arise:
86
86
  `@layer base`. Let the library supply these — they resolve to standard
87
87
  white/dark/gray values that work correctly with the library's components.
88
88
 
89
- 2. **Brand overrides must be in a separate file imported after the library**
90
- the library emits its design tokens as unlayered CSS. Any override in
91
- `index.css` (even at the bottom) loses because the library is imported
92
- after `index.css`. Put brand overrides in a dedicated file imported last:
89
+ 2. **Do NOT create a `theme-overrides.css`** unless the user explicitly asks
90
+ to change the brand color. The library's default P1 blue works out of the
91
+ box. An overrides file is only needed when a custom brand palette is
92
+ required see the Theming section below.
93
93
 
94
- ```css
95
- /* src/theme-overrides.css */
96
- :root {
97
- --primary-action: #4f46e5;
98
- --primary-action-hover: #4338ca;
99
- --primary-action-active: #3730a3;
100
- --font-sans: "Inter", system-ui, sans-serif;
101
- }
102
- ```
103
-
104
- The `src/main.tsx` import order for Lovable:
94
+ The `src/main.tsx` import order for Lovable (two lines only):
105
95
  ```tsx
106
96
  import "./index.css"; /* Tailwind v3 layers first */
107
- import "@sarunyu/system-one/styles.css"; /* library — flat/unlayered CSS, beats any @layer */
108
- import "./theme-overrides.css"; /* brand overrides — last, so they win */
97
+ import "@sarunyu/system-one/styles.css"; /* library — unlayered, beats any @layer */
109
98
  ```
110
99
 
111
100
  ## Dark mode
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sarunyu/system-one",
3
- "version": "4.7.1",
3
+ "version": "4.7.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": [