@vvedantb/ui 0.17.0 → 0.17.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
CHANGED
|
@@ -1083,6 +1083,8 @@ Use this when the app defines shadcn-style variables as space-separated channels
|
|
|
1083
1083
|
|
|
1084
1084
|
Shared CSS that is safe without `tokens.css`: `compat-shadcn-rgb.css`, `dialog.css`, `utilities.css`, `scrollbar-thin.css` (reads `--scrollbar`, which the compat file defines), `clear-input.css` and `motion.css` (import them yourself; `tokens.css` is what imports them otherwise), `modal.css` and `tabs.css` (both need the motion variables listed in `tokens/README.md` on the app `:root`, because `tokens.css` sets them), and `animations.css` (not with the Tailwind preset). `base.css` and `tabs-pills.css` read raw `--accent`, `--foreground`, `--muted`, `--segment` and `--default`; skip them unless the app defines those as full colour values.
|
|
1085
1085
|
|
|
1086
|
+
`text-muted` (the exceptions above) reads `--muted-foreground` under the compat file, so it stays grey text. `bg-muted` and `border-muted` still read the app's `--muted` fill (0.17.1).
|
|
1087
|
+
|
|
1086
1088
|
The compat file defines `.glass-panel-strong` for toasts, dialogs and hover cards as the solid popover colour (`rgb(var(--popover))`, as `bg-overlay`), the same as `tokens.css`. Before 0.15.0 it was `rgb(var(--card) / 0.95)` with a 12px blur. The rule is in `@layer components`, so an app `.glass-panel-strong` rule after the import wins.
|
|
1087
1089
|
|
|
1088
1090
|
A fixture that renders the main components against sample light and dark RGB variables is in `tokens/examples/compat-shadcn-rgb/`.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vvedantb/ui",
|
|
3
|
-
"version": "0.17.
|
|
3
|
+
"version": "0.17.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Shared React 19 UI for web apps: one JavaScript entry (primitives, shell pieces, app helpers including the Convex and Clerk provider, VITE env parsing and ensure-user, artifact viewers over the @vvedantb/server artifacts core, native tokens), design-token CSS, shared Tailwind v4 CSS and a Tailwind preset.",
|
|
6
6
|
"type": "module",
|
|
@@ -26,6 +26,11 @@
|
|
|
26
26
|
* `--color-sidebar-accent` (sidebar nav row fill) reads the app's
|
|
27
27
|
* `--sidebar-accent` when it is defined, else `--secondary`.
|
|
28
28
|
*
|
|
29
|
+
* `text-muted` is grey text in tokens.css, but shadcn's `--muted` is a fill.
|
|
30
|
+
* `--text-color-muted` points the text utility (and its variants and opacity
|
|
31
|
+
* modifiers) at `--muted-foreground`. `bg-muted` and `border-muted` keep
|
|
32
|
+
* `--muted`.
|
|
33
|
+
*
|
|
29
34
|
* `--color-card` and `--color-muted` are references to `--card` and `--muted`.
|
|
30
35
|
* `SonnerToaster sonnerVars` reads them, along with `--color-border` and
|
|
31
36
|
* `--color-foreground`. An app that already maps those names keeps its own
|
|
@@ -38,6 +43,7 @@
|
|
|
38
43
|
@theme inline {
|
|
39
44
|
--color-card: rgb(var(--card));
|
|
40
45
|
--color-muted: rgb(var(--muted));
|
|
46
|
+
--text-color-muted: rgb(var(--muted-foreground));
|
|
41
47
|
--color-default: rgb(var(--secondary));
|
|
42
48
|
--color-default-foreground: rgb(var(--secondary-foreground));
|
|
43
49
|
--color-surface: rgb(var(--card));
|