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 +12 -6
- package/dist/ad-logo.webp +0 -0
- package/dist/advi-ui.cjs.js +2 -2
- package/dist/advi-ui.cjs.js.map +1 -1
- package/dist/advi-ui.css +1 -1
- package/dist/advi-ui.es.js +1799 -1685
- package/dist/advi-ui.es.js.map +1 -1
- package/dist/apple-touch-icon.png +0 -0
- package/dist/base.css +1 -0
- package/dist/base.css.d.ts +1 -0
- package/dist/favicon-16x16.png +0 -0
- package/dist/favicon-32x32.png +0 -0
- package/dist/favicon.ico +0 -0
- package/dist/icons.svg +1 -0
- package/dist/src/components/ui/menu.d.ts +30 -0
- package/dist/src/index.d.ts +1 -0
- package/dist/theme/default.css +1 -0
- package/dist/theme/midnight.css +1 -0
- package/dist/theme-default.css.d.ts +1 -0
- package/dist/theme-midnight.css.d.ts +1 -0
- package/package.json +18 -6
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/
|
|
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
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
-
|
|
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
|
|
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
|