@designa8/vibedesign-v6 1.6.7
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 +66 -0
- package/dist/fonts/inter/Inter-Italic[opsz,wght].ttf +0 -0
- package/dist/fonts/inter/Inter[opsz,wght].ttf +0 -0
- package/dist/index.cjs +3231 -0
- package/dist/index.js +3201 -0
- package/dist/styles.css +1810 -0
- package/package.json +109 -0
- package/src/atoms/AppLayout/AppLayout.tsx +537 -0
- package/src/atoms/AppLayout/index.ts +2 -0
- package/src/atoms/AppLayout/preview.tsx +75 -0
- package/src/atoms/AppSidebar/AppSidebar.tsx +399 -0
- package/src/atoms/AppSidebar/index.ts +2 -0
- package/src/atoms/AppSidebar/preview.tsx +214 -0
- package/src/atoms/AuthScreen/AuthScreen.tsx +226 -0
- package/src/atoms/AuthScreen/index.ts +2 -0
- package/src/atoms/AuthScreen/preview.tsx +10 -0
- package/src/atoms/Button/Button.tsx +71 -0
- package/src/atoms/Button/index.ts +2 -0
- package/src/atoms/Button/preview.tsx +71 -0
- package/src/atoms/ChatScreen/ChatScreen.tsx +629 -0
- package/src/atoms/ChatScreen/index.ts +2 -0
- package/src/atoms/ChatScreen/preview.tsx +239 -0
- package/src/atoms/Chip/Chip.tsx +121 -0
- package/src/atoms/Chip/index.ts +2 -0
- package/src/atoms/Chip/preview.tsx +99 -0
- package/src/atoms/FilterTabBar/FilterTabBar.tsx +95 -0
- package/src/atoms/FilterTabBar/index.ts +2 -0
- package/src/atoms/FilterTabBar/preview.tsx +92 -0
- package/src/atoms/Input/Input.tsx +139 -0
- package/src/atoms/Input/index.ts +2 -0
- package/src/atoms/Input/preview.tsx +97 -0
- package/src/atoms/Modal/Modal.tsx +144 -0
- package/src/atoms/Modal/index.ts +2 -0
- package/src/atoms/Modal/preview.tsx +111 -0
- package/src/atoms/NavItem/NavItem.tsx +316 -0
- package/src/atoms/NavItem/index.ts +2 -0
- package/src/atoms/NavItem/preview.tsx +125 -0
- package/src/atoms/PromptInputBar/PromptInputBar.tsx +626 -0
- package/src/atoms/PromptInputBar/index.ts +2 -0
- package/src/atoms/PromptInputBar/preview.tsx +85 -0
- package/src/atoms/TopNavbar/TopNavbar.tsx +400 -0
- package/src/atoms/TopNavbar/index.ts +2 -0
- package/src/atoms/TopNavbar/preview.tsx +117 -0
- package/src/atoms/UpgradeCard/UpgradeCard.tsx +65 -0
- package/src/atoms/UpgradeCard/index.ts +2 -0
- package/src/atoms/UpgradeCard/preview.tsx +25 -0
- package/src/atoms/WorkspaceMenu/WorkspaceMenu.tsx +216 -0
- package/src/atoms/WorkspaceMenu/index.ts +2 -0
- package/src/atoms/WorkspaceMenu/preview.tsx +44 -0
- package/src/index.ts +16 -0
- package/src/tokens.css +165 -0
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { UpgradeCard } from "./UpgradeCard";
|
|
3
|
+
|
|
4
|
+
export default function UpgradeCardPreview() {
|
|
5
|
+
return (
|
|
6
|
+
<div className="w-full max-w-3xl mx-auto p-lg space-y-lg">
|
|
7
|
+
{/* Default — matches the reference */}
|
|
8
|
+
<UpgradeCard />
|
|
9
|
+
|
|
10
|
+
{/* Custom copy variant */}
|
|
11
|
+
<UpgradeCard
|
|
12
|
+
eyebrow="Card – Teams"
|
|
13
|
+
title="Invite your team"
|
|
14
|
+
subtitle="Collaborate with up to 10 members"
|
|
15
|
+
/>
|
|
16
|
+
|
|
17
|
+
{/* No eyebrow variant */}
|
|
18
|
+
<UpgradeCard
|
|
19
|
+
eyebrow={undefined}
|
|
20
|
+
title="Go unlimited"
|
|
21
|
+
subtitle="Remove all usage limits"
|
|
22
|
+
/>
|
|
23
|
+
</div>
|
|
24
|
+
);
|
|
25
|
+
}
|
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Button } from "../Button";
|
|
3
|
+
|
|
4
|
+
export interface WorkspaceMenuProps
|
|
5
|
+
extends React.HTMLAttributes<HTMLDivElement> {
|
|
6
|
+
/** Workspace display name */
|
|
7
|
+
workspaceName?: string;
|
|
8
|
+
/** Called when Rename is clicked */
|
|
9
|
+
onRename?: () => void;
|
|
10
|
+
/** Called when Delete is clicked */
|
|
11
|
+
onDelete?: () => void;
|
|
12
|
+
/** Start with the dropdown open (useful for preview) */
|
|
13
|
+
defaultOpen?: boolean;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
const RenameIcon = () => (
|
|
17
|
+
<svg
|
|
18
|
+
aria-hidden="true"
|
|
19
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
20
|
+
viewBox="0 0 24 24"
|
|
21
|
+
fill="none"
|
|
22
|
+
stroke="currentColor"
|
|
23
|
+
strokeWidth="2"
|
|
24
|
+
strokeLinecap="round"
|
|
25
|
+
strokeLinejoin="round"
|
|
26
|
+
style={{ width: "16px", height: "16px", flexShrink: 0 }}
|
|
27
|
+
>
|
|
28
|
+
<path d="M12 20h9" />
|
|
29
|
+
<path d="M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4 12.5-12.5z" />
|
|
30
|
+
</svg>
|
|
31
|
+
);
|
|
32
|
+
|
|
33
|
+
const DeleteIcon = () => (
|
|
34
|
+
<svg
|
|
35
|
+
aria-hidden="true"
|
|
36
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
37
|
+
viewBox="0 0 24 24"
|
|
38
|
+
fill="none"
|
|
39
|
+
stroke="currentColor"
|
|
40
|
+
strokeWidth="2"
|
|
41
|
+
strokeLinecap="round"
|
|
42
|
+
strokeLinejoin="round"
|
|
43
|
+
style={{ width: "16px", height: "16px", flexShrink: 0 }}
|
|
44
|
+
>
|
|
45
|
+
<polyline points="3 6 5 6 21 6" />
|
|
46
|
+
<path d="M19 6l-1 14H6L5 6" />
|
|
47
|
+
<path d="M10 11v6" />
|
|
48
|
+
<path d="M14 11v6" />
|
|
49
|
+
<path d="M9 6V4h6v2" />
|
|
50
|
+
</svg>
|
|
51
|
+
);
|
|
52
|
+
|
|
53
|
+
const ChevronIcon = ({ open }: { open: boolean }) => (
|
|
54
|
+
<svg
|
|
55
|
+
aria-hidden="true"
|
|
56
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
57
|
+
viewBox="0 0 24 24"
|
|
58
|
+
fill="none"
|
|
59
|
+
stroke="currentColor"
|
|
60
|
+
strokeWidth="2"
|
|
61
|
+
strokeLinecap="round"
|
|
62
|
+
strokeLinejoin="round"
|
|
63
|
+
style={{
|
|
64
|
+
width: "16px",
|
|
65
|
+
height: "16px",
|
|
66
|
+
flexShrink: 0,
|
|
67
|
+
transition: "transform 180ms ease-in-out",
|
|
68
|
+
transform: open ? "rotate(180deg)" : "rotate(0deg)",
|
|
69
|
+
}}
|
|
70
|
+
>
|
|
71
|
+
<polyline points="6 9 12 15 18 9" />
|
|
72
|
+
</svg>
|
|
73
|
+
);
|
|
74
|
+
|
|
75
|
+
export const WorkspaceMenu = React.forwardRef<
|
|
76
|
+
HTMLDivElement,
|
|
77
|
+
WorkspaceMenuProps
|
|
78
|
+
>(
|
|
79
|
+
(
|
|
80
|
+
{
|
|
81
|
+
workspaceName = "Plasma Design System",
|
|
82
|
+
onRename,
|
|
83
|
+
onDelete,
|
|
84
|
+
defaultOpen = false,
|
|
85
|
+
className,
|
|
86
|
+
...rest
|
|
87
|
+
},
|
|
88
|
+
ref,
|
|
89
|
+
) => {
|
|
90
|
+
const [open, setOpen] = React.useState(defaultOpen);
|
|
91
|
+
const [mounted, setMounted] = React.useState(defaultOpen);
|
|
92
|
+
const [visible, setVisible] = React.useState(false);
|
|
93
|
+
const containerRef = React.useRef<HTMLDivElement>(null);
|
|
94
|
+
|
|
95
|
+
const setRefs = React.useCallback(
|
|
96
|
+
(node: HTMLDivElement | null) => {
|
|
97
|
+
(containerRef as React.MutableRefObject<HTMLDivElement | null>).current = node;
|
|
98
|
+
if (typeof ref === "function") ref(node);
|
|
99
|
+
else if (ref)
|
|
100
|
+
(ref as React.MutableRefObject<HTMLDivElement | null>).current = node;
|
|
101
|
+
},
|
|
102
|
+
[ref],
|
|
103
|
+
);
|
|
104
|
+
|
|
105
|
+
React.useEffect(() => {
|
|
106
|
+
if (open) {
|
|
107
|
+
setMounted(true);
|
|
108
|
+
const raf = requestAnimationFrame(() => {
|
|
109
|
+
requestAnimationFrame(() => setVisible(true));
|
|
110
|
+
});
|
|
111
|
+
return () => cancelAnimationFrame(raf);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
setVisible(false);
|
|
115
|
+
const timer = window.setTimeout(() => setMounted(false), 220);
|
|
116
|
+
return () => window.clearTimeout(timer);
|
|
117
|
+
}, [open]);
|
|
118
|
+
|
|
119
|
+
React.useEffect(() => {
|
|
120
|
+
if (!open) return;
|
|
121
|
+
const handler = (e: MouseEvent) => {
|
|
122
|
+
if (
|
|
123
|
+
containerRef.current &&
|
|
124
|
+
!containerRef.current.contains(e.target as Node)
|
|
125
|
+
) {
|
|
126
|
+
setOpen(false);
|
|
127
|
+
}
|
|
128
|
+
};
|
|
129
|
+
document.addEventListener("mousedown", handler);
|
|
130
|
+
return () => document.removeEventListener("mousedown", handler);
|
|
131
|
+
}, [open]);
|
|
132
|
+
|
|
133
|
+
React.useEffect(() => {
|
|
134
|
+
if (!open) return;
|
|
135
|
+
const handler = (e: KeyboardEvent) => {
|
|
136
|
+
if (e.key === "Escape") setOpen(false);
|
|
137
|
+
};
|
|
138
|
+
document.addEventListener("keydown", handler);
|
|
139
|
+
return () => document.removeEventListener("keydown", handler);
|
|
140
|
+
}, [open]);
|
|
141
|
+
|
|
142
|
+
return (
|
|
143
|
+
<div
|
|
144
|
+
ref={setRefs}
|
|
145
|
+
className={["relative inline-block", className].filter(Boolean).join(" ")}
|
|
146
|
+
{...rest}
|
|
147
|
+
>
|
|
148
|
+
<Button
|
|
149
|
+
type="button"
|
|
150
|
+
variant="secondary"
|
|
151
|
+
size="sm"
|
|
152
|
+
aria-haspopup="menu"
|
|
153
|
+
aria-expanded={open}
|
|
154
|
+
aria-label={`Workspace options: ${workspaceName}`}
|
|
155
|
+
onClick={() => setOpen((v) => !v)}
|
|
156
|
+
className="!gap-sm !pr-sm"
|
|
157
|
+
style={{ minWidth: "200px" }}
|
|
158
|
+
>
|
|
159
|
+
<span className="flex-1 text-left truncate text-body-sm font-weight-heading-sm">
|
|
160
|
+
{workspaceName}
|
|
161
|
+
</span>
|
|
162
|
+
<ChevronIcon open={open} />
|
|
163
|
+
</Button>
|
|
164
|
+
|
|
165
|
+
{mounted && (
|
|
166
|
+
<div
|
|
167
|
+
role="menu"
|
|
168
|
+
aria-label="Workspace actions"
|
|
169
|
+
aria-hidden={!open}
|
|
170
|
+
className={[
|
|
171
|
+
"absolute left-0 mt-xs origin-top rounded-xl bg-surface border border-hairline-soft shadow-card z-10 py-xs overflow-hidden",
|
|
172
|
+
"transition-all duration-200 ease-in-out will-change-transform",
|
|
173
|
+
visible
|
|
174
|
+
? "pointer-events-auto opacity-100 translate-y-0 scale-y-100"
|
|
175
|
+
: "pointer-events-none opacity-0 -translate-y-1 scale-y-95",
|
|
176
|
+
].join(" ")}
|
|
177
|
+
style={{ minWidth: "200px" }}
|
|
178
|
+
>
|
|
179
|
+
<Button
|
|
180
|
+
role="menuitem"
|
|
181
|
+
type="button"
|
|
182
|
+
variant="ghost"
|
|
183
|
+
size="sm"
|
|
184
|
+
onClick={() => {
|
|
185
|
+
setOpen(false);
|
|
186
|
+
onRename?.();
|
|
187
|
+
}}
|
|
188
|
+
className="!w-full !justify-start !rounded-none !px-md !gap-sm text-muted"
|
|
189
|
+
>
|
|
190
|
+
<RenameIcon />
|
|
191
|
+
<span className="text-ink">Rename</span>
|
|
192
|
+
</Button>
|
|
193
|
+
|
|
194
|
+
<Button
|
|
195
|
+
role="menuitem"
|
|
196
|
+
type="button"
|
|
197
|
+
variant="ghost"
|
|
198
|
+
size="sm"
|
|
199
|
+
onClick={() => {
|
|
200
|
+
setOpen(false);
|
|
201
|
+
onDelete?.();
|
|
202
|
+
}}
|
|
203
|
+
className="!w-full !justify-start !rounded-none !px-md !gap-sm"
|
|
204
|
+
style={{ color: "var(--color-semantic-error)" }}
|
|
205
|
+
>
|
|
206
|
+
<DeleteIcon />
|
|
207
|
+
<span>Delete</span>
|
|
208
|
+
</Button>
|
|
209
|
+
</div>
|
|
210
|
+
)}
|
|
211
|
+
</div>
|
|
212
|
+
);
|
|
213
|
+
},
|
|
214
|
+
);
|
|
215
|
+
|
|
216
|
+
WorkspaceMenu.displayName = "WorkspaceMenu";
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { WorkspaceMenu } from "./WorkspaceMenu";
|
|
3
|
+
|
|
4
|
+
export default function WorkspaceMenuPreview() {
|
|
5
|
+
const [renamed, setRenamed] = React.useState(false);
|
|
6
|
+
const [deleted, setDeleted] = React.useState(false);
|
|
7
|
+
|
|
8
|
+
return (
|
|
9
|
+
<div className="w-full max-w-3xl mx-auto p-lg space-y-xxl">
|
|
10
|
+
{/* Closed state */}
|
|
11
|
+
<div className="space-y-sm">
|
|
12
|
+
<p className="text-caption text-muted uppercase tracking-wide">Closed (default)</p>
|
|
13
|
+
<WorkspaceMenu workspaceName="Plasma Design System" />
|
|
14
|
+
</div>
|
|
15
|
+
|
|
16
|
+
{/* Open state */}
|
|
17
|
+
<div className="space-y-sm">
|
|
18
|
+
<p className="text-caption text-muted uppercase tracking-wide">Open (dropdown visible)</p>
|
|
19
|
+
<WorkspaceMenu
|
|
20
|
+
workspaceName="Plasma Design System"
|
|
21
|
+
defaultOpen
|
|
22
|
+
onRename={() => setRenamed(true)}
|
|
23
|
+
onDelete={() => setDeleted(true)}
|
|
24
|
+
/>
|
|
25
|
+
{renamed && (
|
|
26
|
+
<p className="text-caption text-semantic-success mt-xs">
|
|
27
|
+
Rename action triggered
|
|
28
|
+
</p>
|
|
29
|
+
)}
|
|
30
|
+
{deleted && (
|
|
31
|
+
<p className="text-caption text-semantic-error mt-xs">
|
|
32
|
+
Delete action triggered
|
|
33
|
+
</p>
|
|
34
|
+
)}
|
|
35
|
+
</div>
|
|
36
|
+
|
|
37
|
+
{/* Long name truncation */}
|
|
38
|
+
<div className="space-y-sm">
|
|
39
|
+
<p className="text-caption text-muted uppercase tracking-wide">Long name truncation</p>
|
|
40
|
+
<WorkspaceMenu workspaceName="My Very Long Workspace Name That Should Truncate" />
|
|
41
|
+
</div>
|
|
42
|
+
</div>
|
|
43
|
+
);
|
|
44
|
+
}
|
package/src/index.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import "../dist/styles.css";
|
|
2
|
+
|
|
3
|
+
export * from "./atoms/AppLayout";
|
|
4
|
+
export * from "./atoms/AppSidebar";
|
|
5
|
+
export * from "./atoms/AuthScreen";
|
|
6
|
+
export * from "./atoms/Button";
|
|
7
|
+
export * from "./atoms/ChatScreen";
|
|
8
|
+
export * from "./atoms/Chip";
|
|
9
|
+
export * from "./atoms/FilterTabBar";
|
|
10
|
+
export * from "./atoms/Input";
|
|
11
|
+
export * from "./atoms/Modal";
|
|
12
|
+
export * from "./atoms/NavItem";
|
|
13
|
+
export * from "./atoms/PromptInputBar";
|
|
14
|
+
export * from "./atoms/TopNavbar";
|
|
15
|
+
export * from "./atoms/UpgradeCard";
|
|
16
|
+
export * from "./atoms/WorkspaceMenu";
|
package/src/tokens.css
ADDED
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
/* AUTO-GENERATED by atom-server. Do not edit by hand. */
|
|
2
|
+
|
|
3
|
+
@custom-variant dark (&:where([data-theme="dark"], [data-theme="dark"] *));
|
|
4
|
+
|
|
5
|
+
@theme {
|
|
6
|
+
--color-primary: #6B63D6;
|
|
7
|
+
--color-on-primary: #FFFFFF;
|
|
8
|
+
--color-primary-hover: #4E45B8;
|
|
9
|
+
--color-primary-active: #3C359A;
|
|
10
|
+
--color-primary-disabled: #B8B4EC;
|
|
11
|
+
--color-primary-focus: #6B63D6;
|
|
12
|
+
--color-canvas: #FFFFFF;
|
|
13
|
+
--color-surface: #F9F9FB;
|
|
14
|
+
--color-surface-soft: #F3F3F7;
|
|
15
|
+
--color-surface-strong: #E8E8F0;
|
|
16
|
+
--color-ink: #1A1A2E;
|
|
17
|
+
--color-body: #3D3D56;
|
|
18
|
+
--color-muted: #6B6B88;
|
|
19
|
+
--color-muted-soft: #A0A0B8;
|
|
20
|
+
--color-hairline: #DCDCE8;
|
|
21
|
+
--color-hairline-soft: #EBEBF3;
|
|
22
|
+
--color-hairline-strong: #C0C0D0;
|
|
23
|
+
--color-semantic-success: #16A34A;
|
|
24
|
+
--color-semantic-warning: #F59E0B;
|
|
25
|
+
--color-semantic-error: #C0392B;
|
|
26
|
+
--color-semantic-info: #6B63D6;
|
|
27
|
+
--color-scrim: #000000;
|
|
28
|
+
--color-google-blue: #4285F4;
|
|
29
|
+
--color-google-green: #34A853;
|
|
30
|
+
--color-google-yellow: #FBBC05;
|
|
31
|
+
--color-google-red: #EA4335;
|
|
32
|
+
--color-workspace-avatar: #8C2D46;
|
|
33
|
+
--color-logo-orange: #F97316;
|
|
34
|
+
--color-logo-violet: #8B5CF6;
|
|
35
|
+
--color-logo-pink: #EC4899;
|
|
36
|
+
--color-semantic-success-soft: #dcfce7;
|
|
37
|
+
--color-semantic-warning-soft: #fef9c3;
|
|
38
|
+
--color-semantic-error-soft: #fee2e2;
|
|
39
|
+
--font-body: Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
|
|
40
|
+
--font-heading: var(--font-body);
|
|
41
|
+
--font-display-lg: var(--font-body);
|
|
42
|
+
--text-display-lg: 48px;
|
|
43
|
+
--font-weight-display-lg: 700;
|
|
44
|
+
--text-display-lg--font-weight: 700;
|
|
45
|
+
--leading-display-lg: 1.1;
|
|
46
|
+
--text-display-lg--line-height: 1.1;
|
|
47
|
+
--tracking-display-lg: -0.5px;
|
|
48
|
+
--text-display-lg--letter-spacing: -0.5px;
|
|
49
|
+
--font-heading-lg: var(--font-body);
|
|
50
|
+
--text-heading-lg: 32px;
|
|
51
|
+
--font-weight-heading-lg: 700;
|
|
52
|
+
--text-heading-lg--font-weight: 700;
|
|
53
|
+
--leading-heading-lg: 1.2;
|
|
54
|
+
--text-heading-lg--line-height: 1.2;
|
|
55
|
+
--tracking-heading-lg: -0.25px;
|
|
56
|
+
--text-heading-lg--letter-spacing: -0.25px;
|
|
57
|
+
--font-heading-md: var(--font-body);
|
|
58
|
+
--text-heading-md: 24px;
|
|
59
|
+
--font-weight-heading-md: 600;
|
|
60
|
+
--text-heading-md--font-weight: 600;
|
|
61
|
+
--leading-heading-md: 1.3;
|
|
62
|
+
--text-heading-md--line-height: 1.3;
|
|
63
|
+
--tracking-heading-md: 0;
|
|
64
|
+
--text-heading-md--letter-spacing: 0;
|
|
65
|
+
--font-heading-sm: var(--font-body);
|
|
66
|
+
--text-heading-sm: 18px;
|
|
67
|
+
--font-weight-heading-sm: 600;
|
|
68
|
+
--text-heading-sm--font-weight: 600;
|
|
69
|
+
--leading-heading-sm: 1.4;
|
|
70
|
+
--text-heading-sm--line-height: 1.4;
|
|
71
|
+
--tracking-heading-sm: 0;
|
|
72
|
+
--text-heading-sm--letter-spacing: 0;
|
|
73
|
+
--font-body-lg: var(--font-body);
|
|
74
|
+
--text-body-lg: 18px;
|
|
75
|
+
--font-weight-body-lg: 400;
|
|
76
|
+
--text-body-lg--font-weight: 400;
|
|
77
|
+
--leading-body-lg: 1.6;
|
|
78
|
+
--text-body-lg--line-height: 1.6;
|
|
79
|
+
--tracking-body-lg: 0;
|
|
80
|
+
--text-body-lg--letter-spacing: 0;
|
|
81
|
+
--font-body-md: var(--font-body);
|
|
82
|
+
--text-body-md: 16px;
|
|
83
|
+
--font-weight-body-md: 400;
|
|
84
|
+
--text-body-md--font-weight: 400;
|
|
85
|
+
--leading-body-md: 1.5;
|
|
86
|
+
--text-body-md--line-height: 1.5;
|
|
87
|
+
--tracking-body-md: 0;
|
|
88
|
+
--text-body-md--letter-spacing: 0;
|
|
89
|
+
--font-body-sm: var(--font-body);
|
|
90
|
+
--text-body-sm: 14px;
|
|
91
|
+
--font-weight-body-sm: 400;
|
|
92
|
+
--text-body-sm--font-weight: 400;
|
|
93
|
+
--leading-body-sm: 1.5;
|
|
94
|
+
--text-body-sm--line-height: 1.5;
|
|
95
|
+
--tracking-body-sm: 0;
|
|
96
|
+
--text-body-sm--letter-spacing: 0;
|
|
97
|
+
--font-caption: var(--font-body);
|
|
98
|
+
--text-caption: 12px;
|
|
99
|
+
--font-weight-caption: 400;
|
|
100
|
+
--text-caption--font-weight: 400;
|
|
101
|
+
--leading-caption: 1.4;
|
|
102
|
+
--text-caption--line-height: 1.4;
|
|
103
|
+
--tracking-caption: 0;
|
|
104
|
+
--text-caption--letter-spacing: 0;
|
|
105
|
+
--radius-none: 0px;
|
|
106
|
+
--radius-xs: 4px;
|
|
107
|
+
--radius-sm: 8px;
|
|
108
|
+
--radius-md: 12px;
|
|
109
|
+
--radius-lg: 16px;
|
|
110
|
+
--radius-xl: 24px;
|
|
111
|
+
--spacing-xxs: 2px;
|
|
112
|
+
--spacing-xs: 4px;
|
|
113
|
+
--spacing-sm: 8px;
|
|
114
|
+
--spacing-md: 12px;
|
|
115
|
+
--spacing-base: 16px;
|
|
116
|
+
--spacing-lg: 24px;
|
|
117
|
+
--spacing-xl: 32px;
|
|
118
|
+
--spacing-xxl: 48px;
|
|
119
|
+
--spacing-section: 64px;
|
|
120
|
+
--shadow-sm: 0 1px 2px 0 rgba(0,0,0,0.05);
|
|
121
|
+
--shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -1px rgba(0,0,0,0.04);
|
|
122
|
+
--shadow-card: 0 2px 12px 0 rgba(0,0,0,0.07);
|
|
123
|
+
--grid-template-columns-system: repeat(12, minmax(0, 1fr));
|
|
124
|
+
--default-font-family: var(--font-body);
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
:root {
|
|
128
|
+
--grid-columns: 12;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
@utility grid-system {
|
|
132
|
+
display: grid;
|
|
133
|
+
grid-template-columns: var(--grid-template-columns-system, repeat(12, minmax(0, 1fr)));
|
|
134
|
+
gap: var(--spacing-gutter, 1rem);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
@layer base {
|
|
138
|
+
body {
|
|
139
|
+
font-family: var(--font-body, var(--font-sans));
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
/* Un-shadow max-w-* utilities that collide with spacing-step names.
|
|
144
|
+
Tailwind v4 resolves max-w-<name> from the spacing namespace first,
|
|
145
|
+
so --spacing-sm would otherwise turn max-w-sm into max-width: 8px. */
|
|
146
|
+
.max-w-xs { max-width: var(--container-xs, 20rem); }
|
|
147
|
+
.max-w-sm { max-width: var(--container-sm, 24rem); }
|
|
148
|
+
.max-w-md { max-width: var(--container-md, 28rem); }
|
|
149
|
+
.max-w-lg { max-width: var(--container-lg, 32rem); }
|
|
150
|
+
.max-w-xl { max-width: var(--container-xl, 36rem); }
|
|
151
|
+
|
|
152
|
+
[data-theme="dark"] {
|
|
153
|
+
--color-canvas: #0B0B12;
|
|
154
|
+
--color-surface: #15151F;
|
|
155
|
+
--color-surface-soft: #1C1C28;
|
|
156
|
+
--color-surface-strong: #262633;
|
|
157
|
+
--color-ink: #F5F5FA;
|
|
158
|
+
--color-body: #C7C7D4;
|
|
159
|
+
--color-muted: #9A9AAD;
|
|
160
|
+
--color-muted-soft: #6E6E85;
|
|
161
|
+
--color-hairline: #2E2E3D;
|
|
162
|
+
--color-hairline-soft: #242432;
|
|
163
|
+
--color-hairline-strong: #3C3C50;
|
|
164
|
+
--color-primary-disabled: #3D3870;
|
|
165
|
+
}
|