@sniptide/ui 0.0.0-stage → 0.1.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/LICENSE +661 -0
- package/README.md +43 -2
- package/package.json +55 -4
- package/postcss.config.mjs +6 -0
- package/src/components/alert-dialog.tsx +59 -0
- package/src/components/avatar.tsx +25 -0
- package/src/components/badge.tsx +30 -0
- package/src/components/button.tsx +56 -0
- package/src/components/dialog.tsx +45 -0
- package/src/components/dropdown-menu.tsx +118 -0
- package/src/components/input.tsx +17 -0
- package/src/components/kbd.tsx +17 -0
- package/src/components/label.tsx +15 -0
- package/src/components/logo.tsx +48 -0
- package/src/components/progress.tsx +14 -0
- package/src/components/segmented-control.tsx +49 -0
- package/src/components/select.tsx +68 -0
- package/src/components/separator.tsx +18 -0
- package/src/components/sheet.tsx +32 -0
- package/src/components/stripes.tsx +65 -0
- package/src/components/switch.tsx +21 -0
- package/src/components/table.tsx +45 -0
- package/src/components/tabs.tsx +32 -0
- package/src/components/textarea.tsx +17 -0
- package/src/components/tooltip.tsx +32 -0
- package/src/hooks/.gitkeep +0 -0
- package/src/lib/.gitkeep +0 -0
- package/src/lib/utils.ts +1 -0
- package/src/styles/globals.css +133 -0
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
|
|
3
|
+
import { Select as SelectPrimitive } from "@base-ui/react/select"
|
|
4
|
+
import { cn } from "cn"
|
|
5
|
+
import { CheckIcon, ChevronDownIcon } from "lucide-react"
|
|
6
|
+
|
|
7
|
+
const Select = SelectPrimitive.Root
|
|
8
|
+
|
|
9
|
+
function SelectTrigger({ className, children, ...props }: SelectPrimitive.Trigger.Props) {
|
|
10
|
+
return (
|
|
11
|
+
<SelectPrimitive.Trigger
|
|
12
|
+
data-slot="select-trigger"
|
|
13
|
+
className={cn(
|
|
14
|
+
"inline-flex h-9 items-center gap-2 border border-input bg-background px-3 text-sm text-foreground outline-none select-none focus-visible:border-primary data-popup-open:border-foreground disabled:opacity-50 [&_svg]:size-4 [&_svg]:shrink-0",
|
|
15
|
+
className,
|
|
16
|
+
)}
|
|
17
|
+
{...props}
|
|
18
|
+
>
|
|
19
|
+
{children}
|
|
20
|
+
<SelectPrimitive.Icon className="ml-auto text-muted-foreground">
|
|
21
|
+
<ChevronDownIcon className="size-3.5" />
|
|
22
|
+
</SelectPrimitive.Icon>
|
|
23
|
+
</SelectPrimitive.Trigger>
|
|
24
|
+
)
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
const SelectValue = SelectPrimitive.Value
|
|
28
|
+
|
|
29
|
+
function SelectContent({ className, children, ...props }: SelectPrimitive.Popup.Props) {
|
|
30
|
+
return (
|
|
31
|
+
<SelectPrimitive.Portal>
|
|
32
|
+
<SelectPrimitive.Positioner className="z-50" sideOffset={6} alignItemWithTrigger={false}>
|
|
33
|
+
<SelectPrimitive.Popup
|
|
34
|
+
data-slot="select-content"
|
|
35
|
+
className={cn(
|
|
36
|
+
"max-h-[var(--available-height)] min-w-[var(--anchor-width)] overflow-y-auto py-1 border border-foreground bg-popover text-popover-foreground shadow-[4px_4px_0_0_var(--foreground)] outline-none origin-[var(--transform-origin)] transition-[scale,opacity] duration-100 data-starting-style:scale-[0.98] data-starting-style:opacity-0 data-ending-style:scale-[0.98] data-ending-style:opacity-0",
|
|
37
|
+
className,
|
|
38
|
+
)}
|
|
39
|
+
{...props}
|
|
40
|
+
>
|
|
41
|
+
<SelectPrimitive.List>{children}</SelectPrimitive.List>
|
|
42
|
+
</SelectPrimitive.Popup>
|
|
43
|
+
</SelectPrimitive.Positioner>
|
|
44
|
+
</SelectPrimitive.Portal>
|
|
45
|
+
)
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
function SelectItem({ className, children, ...props }: SelectPrimitive.Item.Props) {
|
|
49
|
+
return (
|
|
50
|
+
<SelectPrimitive.Item
|
|
51
|
+
data-slot="select-item"
|
|
52
|
+
className={cn(
|
|
53
|
+
"grid h-8 cursor-default grid-cols-[1fr_1rem] items-center gap-2 px-3 text-sm outline-none select-none data-highlighted:bg-muted",
|
|
54
|
+
className,
|
|
55
|
+
)}
|
|
56
|
+
{...props}
|
|
57
|
+
>
|
|
58
|
+
<SelectPrimitive.ItemText className="flex items-center gap-2">
|
|
59
|
+
{children}
|
|
60
|
+
</SelectPrimitive.ItemText>
|
|
61
|
+
<SelectPrimitive.ItemIndicator>
|
|
62
|
+
<CheckIcon className="size-4" />
|
|
63
|
+
</SelectPrimitive.ItemIndicator>
|
|
64
|
+
</SelectPrimitive.Item>
|
|
65
|
+
)
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export { Select, SelectContent, SelectItem, SelectTrigger, SelectValue }
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Separator as SeparatorPrimitive } from "@base-ui/react/separator"
|
|
2
|
+
import { cn } from "cn"
|
|
3
|
+
|
|
4
|
+
function Separator({ className, orientation = "horizontal", ...props }: SeparatorPrimitive.Props) {
|
|
5
|
+
return (
|
|
6
|
+
<SeparatorPrimitive
|
|
7
|
+
data-slot="separator"
|
|
8
|
+
orientation={orientation}
|
|
9
|
+
className={cn(
|
|
10
|
+
"shrink-0 bg-border data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:w-px data-[orientation=vertical]:self-stretch",
|
|
11
|
+
className,
|
|
12
|
+
)}
|
|
13
|
+
{...props}
|
|
14
|
+
/>
|
|
15
|
+
)
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export { Separator }
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
|
|
3
|
+
import { Dialog as SheetPrimitive } from "@base-ui/react/dialog"
|
|
4
|
+
import { cn } from "cn"
|
|
5
|
+
|
|
6
|
+
const Sheet = SheetPrimitive.Root
|
|
7
|
+
const SheetTrigger = SheetPrimitive.Trigger
|
|
8
|
+
const SheetClose = SheetPrimitive.Close
|
|
9
|
+
const SheetTitle = SheetPrimitive.Title
|
|
10
|
+
|
|
11
|
+
function SheetContent({
|
|
12
|
+
className,
|
|
13
|
+
side = "left",
|
|
14
|
+
...props
|
|
15
|
+
}: SheetPrimitive.Popup.Props & { side?: "left" | "right" }) {
|
|
16
|
+
return (
|
|
17
|
+
<SheetPrimitive.Portal>
|
|
18
|
+
<SheetPrimitive.Backdrop className="fixed inset-0 z-40 bg-foreground/30 transition-opacity data-ending-style:opacity-0 data-starting-style:opacity-0" />
|
|
19
|
+
<SheetPrimitive.Popup
|
|
20
|
+
data-slot="sheet-content"
|
|
21
|
+
data-side={side}
|
|
22
|
+
className={cn(
|
|
23
|
+
"fixed inset-y-0 z-50 flex w-72 max-w-[85vw] flex-col bg-background outline-none transition-transform duration-200 data-[side=left]:left-0 data-[side=left]:border-r data-[side=right]:right-0 data-[side=right]:border-l data-[side=left]:data-starting-style:-translate-x-full data-[side=left]:data-ending-style:-translate-x-full data-[side=right]:data-starting-style:translate-x-full data-[side=right]:data-ending-style:translate-x-full",
|
|
24
|
+
className,
|
|
25
|
+
)}
|
|
26
|
+
{...props}
|
|
27
|
+
/>
|
|
28
|
+
</SheetPrimitive.Portal>
|
|
29
|
+
)
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export { Sheet, SheetClose, SheetContent, SheetTitle, SheetTrigger }
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { cn } from "@sniptide/ui/lib/utils"
|
|
2
|
+
|
|
3
|
+
// Barcode stripes from the Paper auth screens' brand panel (720×900 artboard units).
|
|
4
|
+
const ink: [number, number, number?, number?][] = [
|
|
5
|
+
[0, 1],
|
|
6
|
+
[5, 2],
|
|
7
|
+
[11, 3],
|
|
8
|
+
[18, 4],
|
|
9
|
+
[32, 36],
|
|
10
|
+
[140, 1],
|
|
11
|
+
[145, 2],
|
|
12
|
+
[151, 3],
|
|
13
|
+
[158, 4],
|
|
14
|
+
[172, 72],
|
|
15
|
+
[244, 1],
|
|
16
|
+
[249, 2],
|
|
17
|
+
[255, 3],
|
|
18
|
+
[262, 4],
|
|
19
|
+
[276, 1],
|
|
20
|
+
[281, 2],
|
|
21
|
+
[287, 3],
|
|
22
|
+
[294, 4],
|
|
23
|
+
[308, 1],
|
|
24
|
+
[313, 2],
|
|
25
|
+
[319, 3],
|
|
26
|
+
[326, 4],
|
|
27
|
+
[340, 48],
|
|
28
|
+
[388, 16, 280, 620],
|
|
29
|
+
[420, 36],
|
|
30
|
+
[456, 1],
|
|
31
|
+
[461, 2],
|
|
32
|
+
[467, 3],
|
|
33
|
+
[474, 4],
|
|
34
|
+
]
|
|
35
|
+
|
|
36
|
+
const accent: [number, number, number?, number?][] = [
|
|
37
|
+
[68, 72, 420, 480],
|
|
38
|
+
[404, 16],
|
|
39
|
+
[488, 24],
|
|
40
|
+
[584, 48],
|
|
41
|
+
[668, 48],
|
|
42
|
+
]
|
|
43
|
+
|
|
44
|
+
export function Stripes({ className }: { className?: string }) {
|
|
45
|
+
return (
|
|
46
|
+
<svg
|
|
47
|
+
viewBox="0 0 720 900"
|
|
48
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
49
|
+
aria-hidden="true"
|
|
50
|
+
preserveAspectRatio="xMinYMid slice"
|
|
51
|
+
className={cn("absolute", className)}
|
|
52
|
+
>
|
|
53
|
+
<g className="fill-foreground">
|
|
54
|
+
{ink.map(([x, width, y = 0, height = 900]) => (
|
|
55
|
+
<rect key={x} x={x} y={y} width={width} height={height} />
|
|
56
|
+
))}
|
|
57
|
+
</g>
|
|
58
|
+
<g className="fill-primary">
|
|
59
|
+
{accent.map(([x, width, y = 0, height = 900]) => (
|
|
60
|
+
<rect key={x} x={x} y={y} width={width} height={height} />
|
|
61
|
+
))}
|
|
62
|
+
</g>
|
|
63
|
+
</svg>
|
|
64
|
+
)
|
|
65
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Switch as SwitchPrimitive } from "@base-ui/react/switch"
|
|
2
|
+
import { cn } from "cn"
|
|
3
|
+
|
|
4
|
+
// 30×18 square toggle from the Paper designs: grey track with a white thumb when off, primary
|
|
5
|
+
// track when on.
|
|
6
|
+
function Switch({ className, ...props }: SwitchPrimitive.Root.Props) {
|
|
7
|
+
return (
|
|
8
|
+
<SwitchPrimitive.Root
|
|
9
|
+
data-slot="switch"
|
|
10
|
+
className={cn(
|
|
11
|
+
"inline-flex h-[18px] w-[30px] shrink-0 items-center bg-input p-0.5 outline-none transition-colors focus-visible:ring-2 focus-visible:ring-ring/40 disabled:pointer-events-none disabled:opacity-50 data-checked:bg-primary",
|
|
12
|
+
className,
|
|
13
|
+
)}
|
|
14
|
+
{...props}
|
|
15
|
+
>
|
|
16
|
+
<SwitchPrimitive.Thumb className="size-3.5 bg-background shadow-[0_1px_2px_rgb(0_0_0/0.15)] transition-[translate,background-color] duration-150 data-checked:translate-x-3 data-checked:bg-primary-foreground data-checked:shadow-none" />
|
|
17
|
+
</SwitchPrimitive.Root>
|
|
18
|
+
)
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export { Switch }
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { cn } from "cn"
|
|
2
|
+
import type * as React from "react"
|
|
3
|
+
|
|
4
|
+
function Table({ className, ...props }: React.ComponentProps<"table">) {
|
|
5
|
+
return (
|
|
6
|
+
<div data-slot="table-container" className="relative w-full overflow-x-auto">
|
|
7
|
+
<table className={cn("w-full caption-bottom text-sm", className)} {...props} />
|
|
8
|
+
</div>
|
|
9
|
+
)
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
function TableHeader({ className, ...props }: React.ComponentProps<"thead">) {
|
|
13
|
+
return <thead className={cn("bg-muted/60 [&_tr]:border-b", className)} {...props} />
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
function TableBody({ className, ...props }: React.ComponentProps<"tbody">) {
|
|
17
|
+
return <tbody className={cn("[&_tr:last-child]:border-0", className)} {...props} />
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
function TableRow({ className, ...props }: React.ComponentProps<"tr">) {
|
|
21
|
+
return (
|
|
22
|
+
<tr
|
|
23
|
+
className={cn("border-b border-border transition-colors hover:bg-muted/40", className)}
|
|
24
|
+
{...props}
|
|
25
|
+
/>
|
|
26
|
+
)
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
function TableHead({ className, ...props }: React.ComponentProps<"th">) {
|
|
30
|
+
return (
|
|
31
|
+
<th
|
|
32
|
+
className={cn(
|
|
33
|
+
"h-9 px-4 text-left align-middle text-[13px] font-normal whitespace-nowrap text-muted-foreground",
|
|
34
|
+
className,
|
|
35
|
+
)}
|
|
36
|
+
{...props}
|
|
37
|
+
/>
|
|
38
|
+
)
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
function TableCell({ className, ...props }: React.ComponentProps<"td">) {
|
|
42
|
+
return <td className={cn("h-14 px-4 align-middle whitespace-nowrap", className)} {...props} />
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export { Table, TableBody, TableCell, TableHead, TableHeader, TableRow }
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
|
|
3
|
+
import { Tabs as TabsPrimitive } from "@base-ui/react/tabs"
|
|
4
|
+
import { cn } from "cn"
|
|
5
|
+
|
|
6
|
+
const Tabs = TabsPrimitive.Root
|
|
7
|
+
const TabsPanel = TabsPrimitive.Panel
|
|
8
|
+
|
|
9
|
+
function TabsList({ className, ...props }: TabsPrimitive.List.Props) {
|
|
10
|
+
return (
|
|
11
|
+
<TabsPrimitive.List
|
|
12
|
+
data-slot="tabs-list"
|
|
13
|
+
className={cn("flex items-center gap-1", className)}
|
|
14
|
+
{...props}
|
|
15
|
+
/>
|
|
16
|
+
)
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
function TabsTab({ className, ...props }: TabsPrimitive.Tab.Props) {
|
|
20
|
+
return (
|
|
21
|
+
<TabsPrimitive.Tab
|
|
22
|
+
data-slot="tabs-tab"
|
|
23
|
+
className={cn(
|
|
24
|
+
"inline-flex h-8 items-center px-3 text-sm whitespace-nowrap text-muted-foreground outline-none select-none hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring/40 data-active:border data-active:border-border data-active:bg-background data-active:text-foreground",
|
|
25
|
+
className,
|
|
26
|
+
)}
|
|
27
|
+
{...props}
|
|
28
|
+
/>
|
|
29
|
+
)
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export { Tabs, TabsList, TabsPanel, TabsTab }
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { cn } from "cn"
|
|
2
|
+
import type * as React from "react"
|
|
3
|
+
|
|
4
|
+
function Textarea({ className, ...props }: React.ComponentProps<"textarea">) {
|
|
5
|
+
return (
|
|
6
|
+
<textarea
|
|
7
|
+
data-slot="textarea"
|
|
8
|
+
className={cn(
|
|
9
|
+
"min-h-24 w-full border border-input bg-background px-3 py-2 text-sm text-foreground outline-none transition-colors placeholder:text-muted-foreground focus-visible:border-primary disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive",
|
|
10
|
+
className,
|
|
11
|
+
)}
|
|
12
|
+
{...props}
|
|
13
|
+
/>
|
|
14
|
+
)
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export { Textarea }
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
|
|
3
|
+
import { Tooltip as TooltipPrimitive } from "@base-ui/react/tooltip"
|
|
4
|
+
import { cn } from "cn"
|
|
5
|
+
|
|
6
|
+
const TooltipProvider = TooltipPrimitive.Provider
|
|
7
|
+
const Tooltip = TooltipPrimitive.Root
|
|
8
|
+
const TooltipTrigger = TooltipPrimitive.Trigger
|
|
9
|
+
|
|
10
|
+
function TooltipContent({
|
|
11
|
+
className,
|
|
12
|
+
side = "top",
|
|
13
|
+
sideOffset = 6,
|
|
14
|
+
...props
|
|
15
|
+
}: TooltipPrimitive.Popup.Props & Pick<TooltipPrimitive.Positioner.Props, "side" | "sideOffset">) {
|
|
16
|
+
return (
|
|
17
|
+
<TooltipPrimitive.Portal>
|
|
18
|
+
<TooltipPrimitive.Positioner className="z-50" side={side} sideOffset={sideOffset}>
|
|
19
|
+
<TooltipPrimitive.Popup
|
|
20
|
+
data-slot="tooltip-content"
|
|
21
|
+
className={cn(
|
|
22
|
+
"bg-foreground px-2 py-1 font-mono text-xs text-background transition-opacity data-ending-style:opacity-0 data-starting-style:opacity-0",
|
|
23
|
+
className,
|
|
24
|
+
)}
|
|
25
|
+
{...props}
|
|
26
|
+
/>
|
|
27
|
+
</TooltipPrimitive.Positioner>
|
|
28
|
+
</TooltipPrimitive.Portal>
|
|
29
|
+
)
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger }
|
|
File without changes
|
package/src/lib/.gitkeep
ADDED
|
File without changes
|
package/src/lib/utils.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { cn } from "cn"
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
@import "tailwindcss";
|
|
2
|
+
@import "tw-animate-css";
|
|
3
|
+
@import "shadcn/tailwind.css";
|
|
4
|
+
|
|
5
|
+
@custom-variant dark (&:is(.dark *));
|
|
6
|
+
@source "../**/*.{ts,tsx}";
|
|
7
|
+
|
|
8
|
+
/* Sniptide palette, taken from the Paper designs. Corners are square everywhere (--radius: 0). */
|
|
9
|
+
:root {
|
|
10
|
+
--background: #ffffff;
|
|
11
|
+
--foreground: #1b1919;
|
|
12
|
+
--card: #ffffff;
|
|
13
|
+
--card-foreground: #1b1919;
|
|
14
|
+
--popover: #ffffff;
|
|
15
|
+
--popover-foreground: #1b1919;
|
|
16
|
+
--primary: #2a26ec;
|
|
17
|
+
--primary-foreground: #ffffff;
|
|
18
|
+
--secondary: #f4f4f4;
|
|
19
|
+
--secondary-foreground: #1b1919;
|
|
20
|
+
--muted: #f4f4f4;
|
|
21
|
+
--muted-foreground: #6b6b6b;
|
|
22
|
+
--accent: #f4f4f4;
|
|
23
|
+
--accent-foreground: #1b1919;
|
|
24
|
+
--destructive: oklch(0.577 0.245 27.325);
|
|
25
|
+
--border: #e8e8e8;
|
|
26
|
+
--input: #e8e8e8;
|
|
27
|
+
--ring: #2a26ec;
|
|
28
|
+
--chart-1: #2a26ec;
|
|
29
|
+
--chart-2: #1b1919;
|
|
30
|
+
--chart-3: #6b6b6b;
|
|
31
|
+
--chart-4: #8a8a8a;
|
|
32
|
+
--chart-5: #e8e8e8;
|
|
33
|
+
--radius: 0rem;
|
|
34
|
+
--sidebar: #fafafa;
|
|
35
|
+
--sidebar-foreground: #1b1919;
|
|
36
|
+
--sidebar-primary: #2a26ec;
|
|
37
|
+
--sidebar-primary-foreground: #ffffff;
|
|
38
|
+
--sidebar-accent: #f4f4f4;
|
|
39
|
+
--sidebar-accent-foreground: #1b1919;
|
|
40
|
+
--sidebar-border: #e8e8e8;
|
|
41
|
+
--sidebar-ring: #2a26ec;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.dark {
|
|
45
|
+
--background: #1b1919;
|
|
46
|
+
--foreground: #f4f4f4;
|
|
47
|
+
--card: #232121;
|
|
48
|
+
--card-foreground: #f4f4f4;
|
|
49
|
+
--popover: #232121;
|
|
50
|
+
--popover-foreground: #f4f4f4;
|
|
51
|
+
--primary: #4b48f0;
|
|
52
|
+
--primary-foreground: #ffffff;
|
|
53
|
+
--secondary: #2c2a2a;
|
|
54
|
+
--secondary-foreground: #f4f4f4;
|
|
55
|
+
--muted: #2c2a2a;
|
|
56
|
+
--muted-foreground: #a3a3a3;
|
|
57
|
+
--accent: #2c2a2a;
|
|
58
|
+
--accent-foreground: #f4f4f4;
|
|
59
|
+
--destructive: oklch(0.704 0.191 22.216);
|
|
60
|
+
--border: #3a3737;
|
|
61
|
+
--input: #3a3737;
|
|
62
|
+
--ring: #4b48f0;
|
|
63
|
+
--chart-1: #4b48f0;
|
|
64
|
+
--chart-2: #f4f4f4;
|
|
65
|
+
--chart-3: #a3a3a3;
|
|
66
|
+
--chart-4: #6b6b6b;
|
|
67
|
+
--chart-5: #3a3737;
|
|
68
|
+
--sidebar: #151313;
|
|
69
|
+
--sidebar-foreground: #f4f4f4;
|
|
70
|
+
--sidebar-primary: #4b48f0;
|
|
71
|
+
--sidebar-primary-foreground: #ffffff;
|
|
72
|
+
--sidebar-accent: #2c2a2a;
|
|
73
|
+
--sidebar-accent-foreground: #f4f4f4;
|
|
74
|
+
--sidebar-border: #3a3737;
|
|
75
|
+
--sidebar-ring: #4b48f0;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
@theme inline {
|
|
79
|
+
--color-background: var(--background);
|
|
80
|
+
--color-foreground: var(--foreground);
|
|
81
|
+
--color-card: var(--card);
|
|
82
|
+
--color-card-foreground: var(--card-foreground);
|
|
83
|
+
--color-popover: var(--popover);
|
|
84
|
+
--color-popover-foreground: var(--popover-foreground);
|
|
85
|
+
--color-primary: var(--primary);
|
|
86
|
+
--color-primary-foreground: var(--primary-foreground);
|
|
87
|
+
--color-secondary: var(--secondary);
|
|
88
|
+
--color-secondary-foreground: var(--secondary-foreground);
|
|
89
|
+
--color-muted: var(--muted);
|
|
90
|
+
--color-muted-foreground: var(--muted-foreground);
|
|
91
|
+
--color-accent: var(--accent);
|
|
92
|
+
--color-accent-foreground: var(--accent-foreground);
|
|
93
|
+
--color-destructive: var(--destructive);
|
|
94
|
+
--color-border: var(--border);
|
|
95
|
+
--color-input: var(--input);
|
|
96
|
+
--color-ring: var(--ring);
|
|
97
|
+
--color-chart-1: var(--chart-1);
|
|
98
|
+
--color-chart-2: var(--chart-2);
|
|
99
|
+
--color-chart-3: var(--chart-3);
|
|
100
|
+
--color-chart-4: var(--chart-4);
|
|
101
|
+
--color-chart-5: var(--chart-5);
|
|
102
|
+
--radius-sm: calc(var(--radius) * 0.6);
|
|
103
|
+
--radius-md: calc(var(--radius) * 0.8);
|
|
104
|
+
--radius-lg: var(--radius);
|
|
105
|
+
--radius-xl: calc(var(--radius) * 1.4);
|
|
106
|
+
--radius-2xl: calc(var(--radius) * 1.8);
|
|
107
|
+
--radius-3xl: calc(var(--radius) * 2.2);
|
|
108
|
+
--radius-4xl: calc(var(--radius) * 2.6);
|
|
109
|
+
--color-sidebar: var(--sidebar);
|
|
110
|
+
--color-sidebar-foreground: var(--sidebar-foreground);
|
|
111
|
+
--color-sidebar-primary: var(--sidebar-primary);
|
|
112
|
+
--color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
|
|
113
|
+
--color-sidebar-accent: var(--sidebar-accent);
|
|
114
|
+
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
|
|
115
|
+
--color-sidebar-border: var(--sidebar-border);
|
|
116
|
+
--color-sidebar-ring: var(--sidebar-ring);
|
|
117
|
+
--font-sans: var(--font-sans);
|
|
118
|
+
--font-heading: var(--font-heading);
|
|
119
|
+
--font-mono: var(--font-mono);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
@layer base {
|
|
123
|
+
* {
|
|
124
|
+
@apply border-border outline-ring/50;
|
|
125
|
+
}
|
|
126
|
+
body {
|
|
127
|
+
@apply bg-background text-foreground;
|
|
128
|
+
}
|
|
129
|
+
button:not(:disabled),
|
|
130
|
+
[role="button"]:not(:disabled) {
|
|
131
|
+
cursor: pointer;
|
|
132
|
+
}
|
|
133
|
+
}
|