advi-ui 0.2.4 → 0.4.0

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 CHANGED
@@ -63,7 +63,8 @@ Import components and styles once at the root of your app:
63
63
 
64
64
  ```tsx
65
65
  import { Button } from "advi-ui";
66
- import "advi-ui/styles";
66
+ import "advi-ui/base"; // component styles + Tailwind base, no colors
67
+ import "advi-ui/theme/default"; // a built-in color theme — or supply your own, see THEMING.md
67
68
  import "advi-ui/fonts"; // optional — self-hosted Raleway, Unbounded, Rubik
68
69
 
69
70
  export default function App() {
@@ -71,10 +72,15 @@ export default function App() {
71
72
  }
72
73
  ```
73
74
 
74
- The style import brings in:
75
- - All component styles (SCSS, BEM `vi-*` namespace)
76
- - CSS custom properties for light and dark mode
77
- - Tailwind base layer
75
+ `advi-ui/base` brings in all component styles (SCSS, BEM `vi-*` namespace)
76
+ and the Tailwind base layer no color values. Colors come from a separate
77
+ theme import: `advi-ui/theme/default` (stock shadcn palette) or
78
+ `advi-ui/theme/midnight` (dark teal + burnt orange), or your own `:root`
79
+ block defining the same variables. See [THEMING.md](./THEMING.md) for the
80
+ full variable contract and how to build a custom theme.
81
+
82
+ `advi-ui/styles` still works as a single import equal to `base` +
83
+ `theme/default`, for existing consumers who don't need a different theme.
78
84
 
79
85
  The fonts import is separate and optional — it's a small CSS file (`@font-face` declarations with `unicode-range`), so the browser only downloads the specific weight/subset files it actually needs for the text on the page, not the whole font family. Skip it if you'd rather supply your own fonts or use `font-raleway`/`font-unbounded`/`font-rubik` Tailwind classes with fonts you already load.
80
86
 
@@ -109,7 +115,7 @@ document.documentElement.classList.toggle("dark");
109
115
 
110
116
  ## Design Tokens
111
117
 
112
- All colors and typography are defined as CSS custom properties in `src/styles/global.scss` and override-able via the `.dark` class. SCSS variables live in `src/styles/_variables.scss`.
118
+ All colors are semantic CSS custom properties, supplied by a theme import and override-able via the `.dark` class — see [THEMING.md](./THEMING.md) for the full contract.
113
119
 
114
120
  ### Fonts
115
121
 
Binary file