@cbrl/design 0.6.0 → 0.6.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 +4 -2
- package/dist/components/typography.d.ts +1 -1
- package/dist/tokens.css +4 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -41,8 +41,10 @@ import { ThemeProvider, Toaster } from '@cbrl/design'
|
|
|
41
41
|
|
|
42
42
|
### Surfaces and elevation
|
|
43
43
|
|
|
44
|
-
Light mode paints the page (`--background`) and the sidebar a soft gray
|
|
45
|
-
|
|
44
|
+
Light mode paints the page (`--background`) and the sidebar a soft gray
|
|
45
|
+
(`oklch(0.985 0 0)`, a step lighter than the `0.97` hover fills `--accent` and
|
|
46
|
+
`--sidebar-accent`, so hover stays visible), and cards and popovers white, so
|
|
47
|
+
content surfaces stand out. In dark mode the
|
|
46
48
|
popover is a step lighter than the card (shadows barely show on dark). Use
|
|
47
49
|
`shadow-popup` for floating surfaces that sit over content (event popups,
|
|
48
50
|
detail cards):
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { VariantProps } from "class-variance-authority";
|
|
3
3
|
declare const typographyVariants: (props?: ({
|
|
4
|
-
variant?: "blockquote" | "code" | "h1" | "h2" | "h3" | "h4" | "p" | "small" | "
|
|
4
|
+
variant?: "blockquote" | "code" | "h1" | "h2" | "h3" | "h4" | "p" | "small" | "muted" | "pageTitle" | "lead" | "large" | null | undefined;
|
|
5
5
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
6
6
|
declare function Typography({ variant, as, className, ...props }: VariantProps<typeof typographyVariants> & {
|
|
7
7
|
as?: React.ElementType;
|
package/dist/tokens.css
CHANGED
|
@@ -19,9 +19,10 @@
|
|
|
19
19
|
/*
|
|
20
20
|
* Surfaces (light): the page and the sidebar around it are a soft gray so
|
|
21
21
|
* white cards and popups stand out from it (like shadcn's own site). Card
|
|
22
|
-
* and popover stay white.
|
|
22
|
+
* and popover stay white. Kept a step lighter than `--accent` /
|
|
23
|
+
* `--sidebar-accent` (0.97) so hover and active fills stay visible.
|
|
23
24
|
*/
|
|
24
|
-
--background: oklch(0.
|
|
25
|
+
--background: oklch(0.985 0 0);
|
|
25
26
|
--foreground: oklch(0.145 0 0);
|
|
26
27
|
--card: oklch(1 0 0);
|
|
27
28
|
--card-foreground: oklch(0.145 0 0);
|
|
@@ -45,7 +46,7 @@
|
|
|
45
46
|
--chart-4: oklch(0.371 0 0);
|
|
46
47
|
--chart-5: oklch(0.269 0 0);
|
|
47
48
|
--radius: 0.625rem;
|
|
48
|
-
--sidebar: oklch(0.
|
|
49
|
+
--sidebar: oklch(0.985 0 0);
|
|
49
50
|
--sidebar-foreground: oklch(0.145 0 0);
|
|
50
51
|
--sidebar-primary: oklch(0.205 0 0);
|
|
51
52
|
--sidebar-primary-foreground: oklch(0.985 0 0);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cbrl/design",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.1",
|
|
4
4
|
"description": "Design system on Radix + Tailwind v4: shadcn-style components, layout shells and design tokens with an overridable brand accent.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Kayron Cabral",
|