@vvedantb/ui 0.57.0 → 0.58.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.
|
@@ -28,9 +28,11 @@ export function railTileStateClass(active, grouped = false) {
|
|
|
28
28
|
|
|
29
29
|
/**
|
|
30
30
|
* `Sidebar.RailGroup` trough: the segmented tabs bar (`bg-default`) as a column.
|
|
31
|
-
*
|
|
31
|
+
* Its radius is the tile radius (`rounded-lg`, the theme `--radius`) plus the
|
|
32
|
+
* 4px padding, so the trough corners stay concentric with the pill at any
|
|
33
|
+
* `--radius`. A plain `rounded-xl` is a fixed 12px, smaller than a 16px pill.
|
|
32
34
|
*/
|
|
33
|
-
export const railGroupClass = "relative isolate flex flex-col items-center gap-1 rounded-
|
|
35
|
+
export const railGroupClass = "relative isolate flex flex-col items-center gap-1 rounded-[calc(var(--radius-lg)+0.25rem)] bg-default p-1";
|
|
34
36
|
|
|
35
37
|
/** The `RailGroup` sliding pill: the segmented tabs pill, with the tile radius. */
|
|
36
38
|
export const railGroupPillClass = "t-tabs-pill rounded-lg bg-segment";
|
|
@@ -246,6 +246,27 @@
|
|
|
246
246
|
--radius: 1rem;
|
|
247
247
|
--field-radius: min(var(--radius), 0.625rem);
|
|
248
248
|
}
|
|
249
|
+
|
|
250
|
+
/* Neutral: soft-dark grey surfaces. Opt in with `<html class="dark neutral">`;
|
|
251
|
+
status and accent colours come from `.dark`. */
|
|
252
|
+
.dark.neutral {
|
|
253
|
+
--background: rgb(34 35 37);
|
|
254
|
+
--border: rgb(78 79 82);
|
|
255
|
+
--default: rgb(68 69 72);
|
|
256
|
+
--field-background: rgb(48 49 52);
|
|
257
|
+
--field-placeholder: rgb(159 160 162);
|
|
258
|
+
--foreground: rgb(250 250 250);
|
|
259
|
+
--muted: rgb(159 160 162);
|
|
260
|
+
--overlay: rgb(48 49 52);
|
|
261
|
+
--scrollbar: rgb(159 160 162);
|
|
262
|
+
--segment: rgb(68 69 72);
|
|
263
|
+
--separator: rgb(58 59 62);
|
|
264
|
+
--surface: rgb(48 49 52);
|
|
265
|
+
--surface-secondary: rgb(58 59 62);
|
|
266
|
+
--surface-tertiary: rgb(68 69 72);
|
|
267
|
+
--surface-card: rgb(48 49 52);
|
|
268
|
+
--sidebar-accent: rgb(58 59 62);
|
|
269
|
+
}
|
|
249
270
|
}
|
|
250
271
|
|
|
251
272
|
@layer base {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vvedantb/ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.58.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Shared React 19 UI for web apps: one main 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), third-party brand logos (also @vvedantb/ui/logos), motion-driven animated SVG icons (@vvedantb/ui/icons/animated), a client entry without @vvedantb/server, convex or Clerk for Chrome extensions, design-token CSS, shared Tailwind v4 CSS, a Tailwind preset and packaged Instrument Sans fonts.",
|
|
6
6
|
"type": "module",
|
|
@@ -30,9 +30,12 @@ export function railTileStateClass(active: boolean, grouped = false): string {
|
|
|
30
30
|
|
|
31
31
|
/**
|
|
32
32
|
* `Sidebar.RailGroup` trough: the segmented tabs bar (`bg-default`) as a column.
|
|
33
|
-
*
|
|
33
|
+
* Its radius is the tile radius (`rounded-lg`, the theme `--radius`) plus the
|
|
34
|
+
* 4px padding, so the trough corners stay concentric with the pill at any
|
|
35
|
+
* `--radius`. A plain `rounded-xl` is a fixed 12px, smaller than a 16px pill.
|
|
34
36
|
*/
|
|
35
|
-
export const railGroupClass =
|
|
37
|
+
export const railGroupClass =
|
|
38
|
+
"relative isolate flex flex-col items-center gap-1 rounded-[calc(var(--radius-lg)+0.25rem)] bg-default p-1";
|
|
36
39
|
|
|
37
40
|
/** The `RailGroup` sliding pill: the segmented tabs pill, with the tile radius. */
|
|
38
41
|
export const railGroupPillClass = "t-tabs-pill rounded-lg bg-segment";
|
package/tokens/src/tokens.css
CHANGED
|
@@ -246,6 +246,27 @@
|
|
|
246
246
|
--radius: 1rem;
|
|
247
247
|
--field-radius: min(var(--radius), 0.625rem);
|
|
248
248
|
}
|
|
249
|
+
|
|
250
|
+
/* Neutral: soft-dark grey surfaces. Opt in with `<html class="dark neutral">`;
|
|
251
|
+
status and accent colours come from `.dark`. */
|
|
252
|
+
.dark.neutral {
|
|
253
|
+
--background: rgb(34 35 37);
|
|
254
|
+
--border: rgb(78 79 82);
|
|
255
|
+
--default: rgb(68 69 72);
|
|
256
|
+
--field-background: rgb(48 49 52);
|
|
257
|
+
--field-placeholder: rgb(159 160 162);
|
|
258
|
+
--foreground: rgb(250 250 250);
|
|
259
|
+
--muted: rgb(159 160 162);
|
|
260
|
+
--overlay: rgb(48 49 52);
|
|
261
|
+
--scrollbar: rgb(159 160 162);
|
|
262
|
+
--segment: rgb(68 69 72);
|
|
263
|
+
--separator: rgb(58 59 62);
|
|
264
|
+
--surface: rgb(48 49 52);
|
|
265
|
+
--surface-secondary: rgb(58 59 62);
|
|
266
|
+
--surface-tertiary: rgb(68 69 72);
|
|
267
|
+
--surface-card: rgb(48 49 52);
|
|
268
|
+
--sidebar-accent: rgb(58 59 62);
|
|
269
|
+
}
|
|
249
270
|
}
|
|
250
271
|
|
|
251
272
|
@layer base {
|