Skip to content

A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.

Migrate to Tailwind CSS v4 (#5979)

Trevor Manz5449b1c3b5ab
diff --git a/frontend/.storybook/sb.css b/frontend/.storybook/sb.css
index e09e2c595a..e10f162f4c 100644
--- a/frontend/.storybook/sb.css
+++ b/frontend/.storybook/sb.css
@@ -1,3 +1,5 @@
+@reference "../src/css/globals.css";
+
.sbdocs-content {
display: flex;
gap: 20px;
diff --git a/frontend/.stylelintrc.cjs b/frontend/.stylelintrc.cjs
index cadb6597b8..ce13331ca3 100644
--- a/frontend/.stylelintrc.cjs
+++ b/frontend/.stylelintrc.cjs
@@ -9,7 +9,10 @@ module.exports = {
"selector-id-pattern": null,
"no-descending-specificity": null,
// Turn off rules from the standard config
- "at-rule-no-unknown": [true, { ignoreAtRules: ["tailwind"] }],
+ "at-rule-no-unknown": [
+ true,
+ { ignoreAtRules: ["tailwind", "reference", "config", "theme"] },
+ ],
"font-family-no-missing-generic-family-keyword": null,
"number-max-precision": null,
// Force font-size to be in rem
diff --git a/frontend/package.json b/frontend/package.json
index a3cca708e5..32d0e35de1 100644
--- a/frontend/package.json
+++ b/frontend/package.json
@@ -79,6 +79,7 @@
"@radix-ui/react-use-callback-ref": "~1.1.1",
"@radix-ui/react-use-controllable-state": "~1.2.2",
"@replit/codemirror-vim": "^6.3.0",
+ "@tailwindcss/postcss": "^4.1.11",
"@tailwindcss/typography": "^0.5.16",
"@tanstack/react-table": "^8.21.3",
"@textea/json-viewer": "^4.0.1",
@@ -206,7 +207,6 @@
"@typescript-eslint/parser": "^7.15.0",
"@vitejs/plugin-react": "^4.7.0",
"@vitejs/plugin-react-swc": "^3.11.0",
- "autoprefixer": "^10.4.21",
"babel-plugin-react-compiler": "19.1.0-rc.2",
"blob-polyfill": "^7.0.20220408",
"cross-env": "^7.0.3",
@@ -229,11 +229,11 @@
"storybook": "^9.0.18",
"stylelint": "^16.21.0",
"stylelint-config-standard": "^36.0.1",
- "tailwindcss": "^3.4.17",
+ "tailwindcss": "^4.1.11",
"vite": "^6.3.5",
- "vitest": "^3.2.4",
"vite-plugin-top-level-await": "^1.6.0",
"vite-plugin-wasm": "^3.5.0",
- "vite-tsconfig-paths": "^5.1.4"
+ "vite-tsconfig-paths": "^5.1.4",
+ "vitest": "^3.2.4"
}
}
diff --git a/frontend/postcss.config.cjs b/frontend/postcss.config.cjs
index b016a6a9c2..f8939fa448 100644
--- a/frontend/postcss.config.cjs
+++ b/frontend/postcss.config.cjs
@@ -1,8 +1,7 @@
/* Copyright 2024 Marimo. All rights reserved. */
const config = {
plugins: [
- require("tailwindcss/nesting"),
- require("tailwindcss"),
+ require("@tailwindcss/postcss"),
process.env.VITE_MARIMO_ISLANDS === "true"
? require("postcss-plugin-namespace")(".marimo", {
ignore: [".marimo", "html", ".marimo:is(.dark *)"],
@@ -10,7 +9,6 @@ const config = {
: undefined,
process.env.NODE_ENV === "production" ? require("cssnano") : undefined,
require("@csstools/postcss-light-dark-function"),
- require("autoprefixer"),
],
};
diff --git a/frontend/src/components/app-config/app-config-form.tsx b/frontend/src/components/app-config/app-config-form.tsx
index b6a7f49fb2..25735dd4fd 100644
--- a/frontend/src/components/app-config/app-config-form.tsx
+++ b/frontend/src/components/app-config/app-config-form.tsx
@@ -139,7 +139,7 @@ export const AppConfigForm: React.FC = () => {
render={({ field }) => (
<div className="flex flex-col gap-y-1">
<FormItem className="flex flex-row items-center space-x-1 space-y-0">
- <FormLabel className="flex-shrink-0">Custom CSS</FormLabel>
+ <FormLabel className="shrink-0">Custom CSS</FormLabel>
<FormControl>
<Input
{...field}
@@ -170,7 +170,7 @@ export const AppConfigForm: React.FC = () => {
render={({ field }) => (
<div className="flex flex-col gap-y-1">
<FormItem className="flex flex-row items-center space-x-1 space-y-0">
- <FormLabel className="flex-shrink-0">HTML Head</FormLabel>
+ <FormLabel className="shrink-0">HTML Head</FormLabel>
<FormControl>
<Input
{...field}
diff --git a/frontend/src/components/app-config/is-overridden.tsx b/frontend/src/components/app-config/is-overridden.tsx
index 83e25c21cc..4fcee1f39d 100644
--- a/frontend/src/components/app-config/is-overridden.tsx
+++ b/frontend/src/components/app-config/is-overridden.tsx
@@ -50,11 +50,11 @@ export const DisableIfOverridden = ({
<div className="flex flex-col gap-2">
<p>
This setting is overridden by the{" "}
- <Kbd className="inline mx-[1px]">pyproject.toml</Kbd> config.
+ <Kbd className="inline mx-px">pyproject.toml</Kbd> config.
</p>
<p>
To change it, edit the project config{" "}
- <Kbd className="inline mx-[1px]">pyproject.toml</Kbd>
+ <Kbd className="inline mx-px">pyproject.toml</Kbd>
directly.
</p>
</div>
diff --git a/frontend/src/components/app-config/optional-features.tsx b/frontend/src/components/app-config/optional-features.tsx
index 9792757400..2ccdc3f4c6 100644
--- a/frontend/src/components/app-config/optional-features.tsx
+++ b/frontend/src/components/app-config/optional-features.tsx
@@ -158,12 +158,12 @@ export const OptionalFeatures: React.FC = () => {
<TableCell>
{isInstalled ? (
<div className="flex items-center">
- <CheckCircleIcon className="h-4 w-4 text-[var(--grass-10)] mr-2" />
+ <CheckCircleIcon className="h-4 w-4 text-(--grass-10) mr-2" />
<span>Installed</span>
</div>
) : (
<div className="flex items-center">
- <XCircleIcon className="h-4 w-4 text-[var(--red-10)] mr-2" />
+ <XCircleIcon className="h-4 w-4 text-(--red-10) mr-2" />
<InstallButton
packageSpecs={[
...dep.packagesRequired,
diff --git a/frontend/src/components/app-config/user-config-form.tsx b/frontend/src/components/app-config/user-config-form.tsx
index 32f33cf10d..fc0d9d8445 100644
--- a/frontend/src/components/app-config/user-config-form.tsx
+++ b/frontend/src/components/app-config/user-config-form.tsx
@@ -63,25 +63,25 @@ const categories = [
id: "editor",
label: "Editor",
Icon: EditIcon,
- className: "bg-[var(--blue-4)]",
+ className: "bg-(--blue-4)",
},
{
id: "display",
label: "Display",
Icon: MonitorIcon,
- className: "bg-[var(--grass-4)]",
+ className: "bg-(--grass-4)",
},
{
id: "packageManagement",
label: "Package Management",
Icon: PackageIcon,
- className: "bg-[var(--red-4)]",
+ className: "bg-(--red-4)",
},
{
id: "runtime",
label: "Runtime",
Icon: CpuIcon,
- className: "bg-[var(--amber-4)]",
+ className: "bg-(--amber-4)",
},
{
id: "ai",
@@ -93,13 +93,13 @@ const categories = [
id: "optionalDeps",
label: "Optional Dependencies",
Icon: FolderCog2,
- className: "bg-[var(--orange-4)]",
+ className: "bg-(--orange-4)",
},
{
id: "labs",
label: "Labs",
Icon: FlaskConicalIcon,
- className: "bg-[var(--slate-4)]",
+ className: "bg-(--slate-4)",
},
] as const;
@@ -732,7 +732,7 @@ export const UserConfigForm: React.FC = () => {
</div>
}
>
- <AlertTriangleIcon className="w-3 h-3 text-[var(--amber-11)]" />
+ <AlertTriangleIcon className="w-3 h-3 text-(--amber-11)" />
</Tooltip>
</FormDescription>
@@ -1773,7 +1773,7 @@ export const UserConfigForm: React.FC = () => {
<span
className={cn(
category.className,
- "w-8 h-8 rounded flex items-center justify-center text-muted-foreground flex-shrink-0",
+ "w-8 h-8 rounded flex items-center justify-center text-muted-foreground shrink-0",
)}
>
<category.Icon className="w-4 h-4" />
@@ -1854,7 +1854,7 @@ const IsOverridden = ({
</>
}
>
- <span className="text-[var(--amber-12)] text-xs flex items-center gap-1 border rounded px-2 py-1 bg-[var(--amber-2)] border-[var(--amber-6)] ml-1">
+ <span className="text-(--amber-12) text-xs flex items-center gap-1 border rounded px-2 py-1 bg-(--amber-2) border-(--amber-6) ml-1">
<FolderCog2 className="w-3 h-3" />
Overridden by pyproject.toml [{String(overriddenValue)}]
</span>
diff --git a/frontend/src/components/chat/chat-panel.tsx b/frontend/src/components/chat/chat-panel.tsx
index 62e10ffb68..190fa27d46 100644
--- a/frontend/src/components/chat/chat-panel.tsx
+++ b/frontend/src/components/chat/chat-panel.tsx
@@ -81,7 +81,7 @@ const ChatHeader: React.FC<ChatHeaderProps> = ({
const { handleClick } = useOpenSettingsToTab();
return (
- <div className="flex border-b px-2 py-1 justify-between flex-shrink-0 items-center">
+ <div className="flex border-b px-2 py-1 justify-between shrink-0 items-center">
<Tooltip content="New chat">
<Button variant="text" size="icon" onClick={onNewChat}>
<PlusIcon className="h-4 w-4" />
@@ -299,7 +299,7 @@ const ChatInputFooter: React.FC<ChatInputFooterProps> = memo(
<div className="flex items-center gap-2">
<FeatureFlagged feature="mcp_docs">
<Select value={currentMode} onValueChange={handleModeChange}>
- <SelectTrigger className="h-6 text-xs border-border !shadow-none !ring-0 bg-muted hover:bg-muted/30 py-0 px-2 gap-1">
+ <SelectTrigger className="h-6 text-xs border-border shadow-none! ring-0! bg-muted hover:bg-muted/30 py-0 px-2 gap-1">
<SelectValue placeholder="manual" />
</SelectTrigger>
<SelectContent>
@@ -321,7 +321,7 @@ const ChatInputFooter: React.FC<ChatInputFooterProps> = memo(
</Select>
</FeatureFlagged>
<Select value={currentModel} onValueChange={handleModelChange}>
- <SelectTrigger className="h-6 text-xs border-border !shadow-none !ring-0 bg-muted hover:bg-muted/30 py-0 px-2 gap-1">
+ <SelectTrigger className="h-6 text-xs border-border shadow-none! ring-0! bg-muted hover:bg-muted/30 py-0 px-2 gap-1">
<SelectValue placeholder="Model" />
</SelectTrigger>
<SelectContent>
@@ -384,7 +384,7 @@ const ChatInput: React.FC<ChatInputProps> = memo(
};
return (
- <div className="border-t relative flex-shrink-0 min-h-[80px] flex flex-col">
+ <div className="border-t relative shrink-0 min-h-[80px] flex flex-col">
<div className="px-2 py-3 flex-1">
<PromptInput
value={input}
@@ -687,7 +687,7 @@ const ChatPanelBody = () => {
</TooltipProvider>
<div
- className="flex-1 px-3 bg-[var(--slate-1)] gap-4 py-3 flex flex-col overflow-y-auto"
+ className="flex-1 px-3 bg-(--slate-1) gap-4 py-3 flex flex-col overflow-y-auto"
ref={scrollContainerRef}
>
{(!messages || messages.length === 0) && (
diff --git a/frontend/src/components/chat/tool-call-accordion.tsx b/frontend/src/components/chat/tool-call-accordion.tsx
index 7bfb73ee5c..72364a5ef7 100644
--- a/frontend/src/components/chat/tool-call-accordion.tsx
+++ b/frontend/src/components/chat/tool-call-accordion.tsx
@@ -69,7 +69,7 @@ export const ToolCallAccordion: React.FC<ToolCallAccordionProps> = ({
<AccordionItem value="tool-call" className="border-0">
<AccordionTrigger
className={cn(
- "h-6 text-xs border-border !shadow-none !ring-0 bg-muted hover:bg-muted/30 py-0 px-2 gap-1 rounded-sm [&[data-state=open]>svg]:rotate-180",
+ "h-6 text-xs border-border shadow-none! ring-0! bg-muted hover:bg-muted/30 py-0 px-2 gap-1 rounded-sm [&[data-state=open]>svg]:rotate-180",
status === "error" && "text-destructive/80",
status === "success" && "text-green-600/80",
)}
diff --git a/frontend/src/components/data-table/SearchBar.tsx b/frontend/src/components/data-table/SearchBar.tsx
index 26685d3554..ba9a79624d 100644
--- a/frontend/src/components/data-table/SearchBar.tsx
+++ b/frontend/src/components/data-table/SearchBar.tsx
@@ -50,7 +50,7 @@ export const SearchBar = ({
<input
type="text"
ref={ref}
- className="w-full h-full border-none bg-transparent focus:outline-none text-sm"
+ className="w-full h-full border-none bg-transparent focus:outline-hidden text-sm"
value={internalValue}
onKeyDown={(e) => {
if (e.key === "Escape") {
diff --git a/frontend/src/components/data-table/TableActions.tsx b/frontend/src/components/data-table/TableActions.tsx
index 50773b3b99..9ddd19dadc 100644
--- a/frontend/src/components/data-table/TableActions.tsx
+++ b/frontend/src/components/data-table/TableActions.tsx
@@ -105,7 +105,7 @@ export const TableActions = <TData,>({
};
return (
- <div className="flex items-center flex-shrink-0 pt-1">
+ <div className="flex items-center shrink-0 pt-1">
{onSearchQueryChange && enableSearch && (
<Tooltip content="Search">
<Button
diff --git a/frontend/src/components/data-table/column-header.tsx b/frontend/src/components/data-table/column-header.tsx
index 5de560c218..d4132b3c1a 100644
--- a/frontend/src/components/data-table/column-header.tsx
+++ b/frontend/src/components/data-table/column-header.tsx
@@ -96,7 +96,7 @@ export const DataTableColumnHeader = <TData, TValue>({
<DropdownMenuTrigger asChild={true}>
<div
className={cn(
- "group flex items-center my-1 space-between w-full select-none gap-2 border hover:border-border border-transparent hover:bg-[var(--slate-3)] data-[state=open]:bg-[var(--slate-3)] data-[state=open]:border-border rounded px-1 -mx-1",
+ "group flex items-center my-1 space-between w-full select-none gap-2 border hover:border-border border-transparent hover:bg-(--slate-3) data-[state=open]:bg-(--slate-3) data-[state=open]:border-border rounded px-1 -mx-1",
className,
)}
data-testid="data-table-sort-button"
@@ -278,7 +278,7 @@ const NullFilter = <TData, TValue>({
>
<SelectTrigger
className={cn(
- "border-border !shadow-none !ring-0 w-full mb-0.5",
+ "border-border shadow-none! ring-0! w-full mb-0.5",
isNullOrNotNull && "mb-2",
)}
>
@@ -587,7 +587,7 @@ const PopoverFilterByValues = <TData, TValue>({
dataTable = (
<>
- <Command className="text-sm outline-none" shouldFilter={false}>
+ <Command className="text-sm outline-hidden" shouldFilter={false}>
<CommandInput
placeholder="Search"
autoFocus={true}
@@ -618,7 +618,7 @@ const PopoverFilterByValues = <TData, TValue>({
<CommandItem
key={rowIndex}
value={valueString}
- className="[&:not(:last-child)]:border-b rounded-none px-3"
+ className="not-last:border-b rounded-none px-3"
onSelect={() => handleToggle(value)}
>
<Checkbox
diff --git a/frontend/src/components/data-table/column-summary/chart-skeleton.tsx b/frontend/src/components/data-table/column-summary/chart-skeleton.tsx
index fdd945a980..271295824a 100644
--- a/frontend/src/components/data-table/column-summary/chart-skeleton.tsx
+++ b/frontend/src/components/data-table/column-summary/chart-skeleton.tsx
@@ -44,11 +44,11 @@ export const ChartSkeleton: React.FC<Props> = ({ seed, width, height }) => {
const barWidth = width / numBars;
const heights = generateHeights({ numBars, maxHeight: height - 15, seed });
return (
- <div className="flex items-end gap-[1px] pb-2" style={{ width, height }}>
+ <div className="flex items-end gap-px pb-2" style={{ width, height }}>
{heights.map((barHeight, index) => (
<div
key={index}
- className="bg-[var(--slate-5)] animate-pulse"
+ className="bg-(--slate-5) animate-pulse"
style={{ width: barWidth - 2, height: barHeight }}
/>
))}
diff --git a/frontend/src/components/data-table/columns.tsx b/frontend/src/components/data-table/columns.tsx
index 0daf058388..b16ebfe32f 100644
--- a/frontend/src/components/data-table/columns.tsx
+++ b/frontend/src/components/data-table/columns.tsx
@@ -306,7 +306,7 @@ const PopoutColumn = ({
<EmotionCacheProvider container={null}>
<Popover>
<PopoverTrigger
- className={cn(cellStyles, "w-fit outline-none")}
+ className={cn(cellStyles, "w-fit outline-hidden")}
onClick={selectCell}
onMouseDown={(e) => {
// Prevent cell underneath from being selected
@@ -380,7 +380,7 @@ function getCellStyleClass(
return cn(
canSelectCell && "cursor-pointer",
isSelected &&
- "relative before:absolute before:inset-0 before:bg-[var(--blue-3)] before:rounded before:-z-10 before:mx-[-4px] before:my-[-2px]",
+ "relative before:absolute before:inset-0 before:bg-(--blue-3) before:rounded before:-z-10 before:mx-[-4px] before:my-[-2px]",
"w-full",
"text-left",
"truncate",
diff --git a/frontend/src/components/data-table/date-popover.tsx b/frontend/src/components/data-table/date-popover.tsx
index 9936a2e2bb..73c19f432b 100644
--- a/frontend/src/components/data-table/date-popover.tsx
+++ b/frontend/src/components/data-table/date-popover.tsx
@@ -30,7 +30,7 @@ export const DatePopover: React.FC<DatePopoverProps> = ({
([timezone, formattedDate]) => (
<div
key={timezone}
- className="grid grid-cols-[fit-content(40px),1fr] gap-4 items-center justify-items-end"
+ className="grid grid-cols-[fit-content(40px)_1fr] gap-4 items-center justify-items-end"
>
<span className="bg-muted rounded-md py-1 px-2 w-fit ml-auto">
{timezone}
diff --git a/frontend/src/components/data-table/loading-table.tsx b/frontend/src/components/data-table/loading-table.tsx
index 746747afac..8223e0e73b 100644
--- a/frontend/src/components/data-table/loading-table.tsx
+++ b/frontend/src/components/data-table/loading-table.tsx
@@ -31,7 +31,7 @@ export const LoadingTable = ({
<TableRow key={i}>
{Array.from({ length: NUM_COLUMNS }).map((_, j) => (
<TableHead key={j}>
- <div className="h-4 bg-[var(--slate-5)] animate-pulse rounded-md w-[70%]" />
+ <div className="h-4 bg-(--slate-5) animate-pulse rounded-md w-[70%]" />
</TableHead>
))}
</TableRow>
@@ -42,7 +42,7 @@ export const LoadingTable = ({
<TableRow key={i}>
{Array.from({ length: NUM_COLUMNS }).map((_, j) => (
<TableCell key={j}>
- <div className="h-4 bg-[var(--slate-5)] animate-pulse rounded-md w-[90%]" />
+ <div className="h-4 bg-(--slate-5) animate-pulse rounded-md w-[90%]" />
</TableCell>
))}
</TableRow>
@@ -50,7 +50,7 @@ export const LoadingTable = ({
</TableBody>
</Table>
</div>
- <div className="flex align-items justify-between flex-shrink-0 h-8" />
+ <div className="flex align-items justify-between shrink-0 h-8" />
</div>
);
};
diff --git a/frontend/src/components/data-table/pagination.tsx b/frontend/src/components/data-table/pagination.tsx
index b8698232eb..730ecbb72b 100644
--- a/frontend/src/components/data-table/pagination.tsx
+++ b/frontend/src/components/data-table/pagination.tsx
@@ -136,7 +136,7 @@ export const DataTablePagination = <TData,>({
value={pageSize.toString()}
onValueChange={(value) => table.setPageSize(Number(value))}
>
- <SelectTrigger className="w-11 h-[18px] !shadow-none !hover:shadow-none !ring-0 border-border text-xs p-1">
+ <SelectTrigger className="w-11 h-[18px] shadow-none! !hover:shadow-none ring-0! border-border text-xs p-1">
<SelectValue />
</SelectTrigger>
<SelectContent>
@@ -199,7 +199,7 @@ export const DataTablePagination = <TData,>({
handlePageChange(() => table.setPageIndex(page))
}
/>
- <span className="flex-shrink-0">of {prettyNumber(totalPages)}</span>
+ <span className="shrink-0">of {prettyNumber(totalPages)}</span>
</div>
<Button
size="xs"
diff --git a/frontend/src/components/data-table/range-focus/cell-selection-indicator.tsx b/frontend/src/components/data-table/range-focus/cell-selection-indicator.tsx
index 4015ad0503..46f20606ef 100644
--- a/frontend/src/components/data-table/range-focus/cell-selection-indicator.tsx
+++ b/frontend/src/components/data-table/range-focus/cell-selection-indicator.tsx
@@ -25,8 +25,8 @@ export const CellRangeSelectionIndicator = memo<CellSelectionIndicatorProps>(
data-cell-id={cellId}
className={cn(
"absolute inset-0 pointer-events-none",
- isSelected && "bg-[var(--green-3)]",
- isCopied && "bg-[var(--green-4)] transition-colors duration-150",
+ isSelected && "bg-(--green-3)",
+ isCopied && "bg-(--green-4) transition-colors duration-150",
className,
)}
/>
diff --git a/frontend/src/components/data-table/renderers.tsx b/frontend/src/components/data-table/renderers.tsx
index 3484ff0d28..61b387045e 100644
--- a/frontend/src/components/data-table/renderers.tsx
+++ b/frontend/src/components/data-table/renderers.tsx
@@ -106,7 +106,7 @@ export const DataTableBody = <TData,>({
tabIndex={0}
key={cell.id}
className={cn(
- "whitespace-pre truncate max-w-[300px] outline-none",
+ "whitespace-pre truncate max-w-[300px] outline-hidden",
cell.column.getColumnWrapping &&
cell.column.getColumnWrapping() === "wrap" &&
"whitespace-pre-wrap min-w-[200px]",
@@ -154,7 +154,7 @@ export const DataTableBody = <TData,>({
"border-t h-6",
rowViewerPanelOpen && "cursor-pointer",
isRowViewedInPanel &&
- "bg-[var(--blue-3)] hover:bg-[var(--blue-3)] data-[state=selected]:bg-[var(--blue-4)]",
+ "bg-(--blue-3) hover:bg-(--blue-3) data-[state=selected]:bg-(--blue-4)",
)}
onClick={() => handleRowClick(row)}
>
diff --git a/frontend/src/components/data-table/row-viewer-panel/row-viewer.tsx b/frontend/src/components/data-table/row-viewer-panel/row-viewer.tsx
index e29f50ec63..01fda8f3cd 100644
--- a/frontend/src/components/data-table/row-viewer-panel/row-viewer.tsx
+++ b/frontend/src/components/data-table/row-viewer-panel/row-viewer.tsx
@@ -244,7 +244,7 @@ export const RowViewerPanel: React.FC<RowViewerPanelProps> = ({
return (
<div
- className="flex flex-col gap-3 mt-4 focus:outline-none"
+ className="flex flex-col gap-3 mt-4 focus:outline-hidden"
ref={panelRef}
tabIndex={-1}
>
diff --git a/frontend/src/components/datasets/icons.tsx b/frontend/src/components/datasets/icons.tsx
index 3722044544..1b696176a2 100644
--- a/frontend/src/components/datasets/icons.tsx
+++ b/frontend/src/components/datasets/icons.tsx
@@ -35,21 +35,21 @@ export function getDataTypeColor(
): string {
switch (dataType) {
case "boolean":
- return "bg-[var(--orange-4)]";
+ return "bg-(--orange-4)";
case "date":
case "time":
case "datetime":
case "temporal":
- return "bg-[var(--grass-4)] dark:bg-[var(--grass-5)]";
+ return "bg-(--grass-4) dark:bg-(--grass-5)";
case "number":
case "integer":
- return "bg-[var(--purple-4)]";
+ return "bg-(--purple-4)";
case "string":
- return "bg-[var(--blue-4)]";
+ return "bg-(--blue-4)";
case "unknown":
- return "bg-[var(--slate-4)] dark:bg-[var(--slate-6)]";
+ return "bg-(--slate-4) dark:bg-(--slate-6)";
default:
logNever(dataType);
- return "bg-[var(--slate-4)] dark:bg-[var(--slate-6)]";
+ return "bg-(--slate-4) dark:bg-(--slate-6)";
}
}
diff --git a/frontend/src/components/datasources/components.tsx b/frontend/src/components/datasources/components.tsx
index 260d86377e..023f590f5e 100644
--- a/frontend/src/components/datasources/components.tsx
+++ b/frontend/src/components/datasources/components.tsx
@@ -17,7 +17,7 @@ export const DatasourceLabel: React.FC<{
children: React.ReactNode;
}> = ({ children }) => {
return (
- <div className="flex gap-1.5 items-center font-bold px-2 py-1.5 text-muted-foreground bg-[var(--slate-2)] text-sm">
+ <div className="flex gap-1.5 items-center font-bold px-2 py-1.5 text-muted-foreground bg-(--slate-2) text-sm">
{children}
</div>
);
@@ -58,7 +58,7 @@ export const LoadingState: React.FC<{
return (
<div
className={cn(
- "text-sm bg-blue-50 dark:bg-[var(--accent)] text-blue-500 dark:text-blue-50 flex items-center gap-2 p-2 h-8",
+ "text-sm bg-blue-50 dark:bg-(--accent) text-blue-500 dark:text-blue-50 flex items-center gap-2 p-2 h-8",
className,
)}
>
diff --git a/frontend/src/components/datasources/datasources.tsx b/frontend/src/components/datasources/datasources.tsx
index e7ac060597..850273a9d5 100644
--- a/frontend/src/components/datasources/datasources.tsx
+++ b/frontend/src/components/datasources/datasources.tsx
@@ -143,7 +143,7 @@ export const DataSources: React.FC = () => {
return (
<Command
- className="border-b bg-background rounded-none h-full pb-10 overflow-auto outline-none"
+ className="border-b bg-background rounded-none h-full pb-10 overflow-auto outline-hidden"
shouldFilter={false}
>
<div className="flex items-center w-full">
@@ -761,7 +761,7 @@ const DatasetColumnItem: React.FC<{
</span>
</CommandItem>
{isExpanded && (
- <div className="pl-10 pr-2 py-2 bg-[var(--slate-1)] shadow-inner border-b">
+ <div className="pl-10 pr-2 py-2 bg-(--slate-1) shadow-inner border-b">
<ErrorBoundary>
<DatasetColumnPreview
table={table}
diff --git a/frontend/src/components/debugger/debugger-code.tsx b/frontend/src/components/debugger/debugger-code.tsx
index 68d960262f..988f492a1a 100644
--- a/frontend/src/components/debugger/debugger-code.tsx
+++ b/frontend/src/components/debugger/debugger-code.tsx
@@ -48,7 +48,7 @@ const DebuggerOutput: React.FC<{
ref={ref}
theme="dark"
value={props.code}
- className={"[&>*]:outline-none [&>.cm-editor]:pr-0 overflow-hidden dark"}
+ className={"*:outline-hidden [&>.cm-editor]:pr-0 overflow-hidden dark"}
readOnly={true}
editable={false}
basicSetup={{
@@ -91,7 +91,7 @@ const DebuggerInput: React.FC<{
minHeight="18px"
theme="dark"
className={
- "debugger-input [&>*]:outline-none cm-focused [&>.cm-editor]:pr-0 overflow-hidden dark border-t-4"
+ "debugger-input *:outline-hidden cm-focused [&>.cm-editor]:pr-0 overflow-hidden dark border-t-4"
}
value={value}
autoFocus={true}
@@ -146,7 +146,7 @@ export const DebuggerControls: React.FC<{
onClear?: () => void;
}> = ({ onSubmit, onClear }) => {
const buttonClasses = cn(
- "m-0 w-9 h-8 bg-[var(--slate-2)] text-[var(--slate-11)] hover:text-[var(--blue-11)] rounded-none hover:bg-[var(--sky-3)] hover:border-[var(--blue-8)]",
+ "m-0 w-9 h-8 bg-(--slate-2) text-(--slate-11) hover:text-(--blue-11) rounded-none hover:bg-(--sky-3) hover:border-(--blue-8)",
"first:rounded-l-lg first:border-l border-t border-b hover:border",
"last:rounded-r-lg last:border-r",
);
@@ -173,7 +173,7 @@ export const DebuggerControls: React.FC<{
onClick={() => onSubmit("c")}
className={cn(
buttonClasses,
- "text-[var(--grass-11)] hover:text-[var(--grass-11)] hover:bg-[var(--grass-3)] hover:border-[var(--grass-8)]",
+ "text-(--grass-11) hover:text-(--grass-11) hover:bg-(--grass-3) hover:border-(--grass-8)",
)}
>
<PlayIcon fontSize={36} className={iconClasses} />
@@ -209,7 +209,7 @@ export const DebuggerControls: React.FC<{
data-testid="debugger-clear-button"
className={cn(
buttonClasses,
- "text-[var(--red-11)] hover:text-[var(--red-11)] hover:bg-[var(--red-2)] hover:border-[var(--red-8)]",
+ "text-(--red-11) hover:text-(--red-11) hover:bg-(--red-2) hover:border-(--red-8)",
)}
onClick={onClear}
>
diff --git a/frontend/src/components/dependency-graph/dependency-graph.css b/frontend/src/components/dependency-graph/dependency-graph.css
index 317985b749..4667cb837d 100644
--- a/frontend/src/components/dependency-graph/dependency-graph.css
+++ b/frontend/src/components/dependency-graph/dependency-graph.css
@@ -1,3 +1,5 @@
+@reference "../../css/globals.css";
+
.react-flow__pane.react-flow__pane {
cursor: default;
}
diff --git a/frontend/src/components/dependency-graph/panels.tsx b/frontend/src/components/dependency-graph/panels.tsx
index 6594da891e..de72a4d85b 100644
--- a/frontend/src/components/dependency-graph/panels.tsx
+++ b/frontend/src/components/dependency-graph/panels.tsx
@@ -269,7 +269,7 @@ export const GraphSelectionPanel: React.FC<{
position="bottom-left"
className="max-h-[90%] flex flex-col w-[calc(100%-5rem)]"
>
- <div className="min-h-[100px] shadow-md rounded-md border max-w-[550px] border-primary/40 my-4 min-w-[240px] bg-[var(--slate-1)] text-muted-foreground/80 flex flex-col overflow-y-auto">
+ <div className="min-h-[100px] shadow-md rounded-md border max-w-[550px] border-primary/40 my-4 min-w-[240px] bg-(--slate-1) text-muted-foreground/80 flex flex-col overflow-y-auto">
{renderSelection()}
</div>
</Panel>
diff --git a/frontend/src/components/editor/Cell.tsx b/frontend/src/components/editor/Cell.tsx
index a813a0d02e..5b19bd296f 100644
--- a/frontend/src/components/editor/Cell.tsx
+++ b/frontend/src/components/editor/Cell.tsx
@@ -565,7 +565,7 @@ const EditableCellComponent = ({
className={cn(
className,
navigationProps.className,
- "focus:ring-1 focus:ring-[var(--blue-7)] focus:ring-offset-0",
+ "focus:ring-1 focus:ring-(--blue-7) focus:ring-offset-0",
)}
ref={cellContainerRef}
{...cellDomProps(cellId, cellData.name)}
@@ -1008,7 +1008,7 @@ const SetupCellComponent = ({
const className = clsx(
"marimo-cell",
"hover-actions-parent z-10 border shadow-sm",
- "!border-[var(--blue-5)] !rounded-sm",
+ "border-(--blue-5)! rounded-sm!",
{
"needs-run": needsRun,
"has-error": cellRuntime.errored,
diff --git a/frontend/src/components/editor/Disconnected.tsx b/frontend/src/components/editor/Disconnected.tsx
index 031e2541a1..b29d81038c 100644
--- a/frontend/src/components/editor/Disconnected.tsx
+++ b/frontend/src/components/editor/Disconnected.tsx
@@ -52,7 +52,7 @@ export const Disconnected = ({
onClick={handleTakeover}
variant="outline"
data-testid="takeover-button"
- className="flex-shrink-0"
+ className="shrink-0"
>
<ArrowRightSquareIcon className="w-4 h-4 mr-2" />
Take over session
@@ -65,7 +65,7 @@ export const Disconnected = ({
}
return (
- <div className="font-mono text-center text-base text-[var(--red-11)]">
+ <div className="font-mono text-center text-base text-(--red-11)">
<p>{reason}</p>
</div>
);
diff --git a/frontend/src/components/editor/Output.tsx b/frontend/src/components/editor/Output.tsx
index ba5c283097..615873324b 100644
--- a/frontend/src/components/editor/Output.tsx
+++ b/frontend/src/components/editor/Output.tsx
@@ -195,7 +195,7 @@ export const OutputRenderer: React.FC<{
href="https://github.com/manzt/anywidget"
target="_blank"
rel="noopener noreferrer"
- className="underline hover:text-[var(--amber-12)]"
+ className="underline hover:text-(--amber-12)"
>
anywidget
</a>
@@ -253,7 +253,7 @@ const MimeBundleOutputRenderer: React.FC<{
return (
<Tabs defaultValue={first} orientation="vertical">
<div className="flex">
- <TabsList className="self-start max-h-none flex flex-col gap-2 mr-4 flex-shrink-0">
+ <TabsList className="self-start max-h-none flex flex-col gap-2 mr-4 shrink-0">
{mimeEntries.map(([mime]) => (
<TabsTrigger
key={mime}
@@ -397,7 +397,7 @@ const ExpandableOutput = React.memo(
<>
<div>
<div className="relative print:hidden">
- <div className="absolute -right-9 top-1 z-[1] flex flex-col gap-1">
+ <div className="absolute -right-9 top-1 z-1 flex flex-col gap-1">
<Tooltip content="Fullscreen" side="left">
<Button
data-testid="fullscreen-output-button"
@@ -442,7 +442,7 @@ const ExpandableOutput = React.memo(
data-cell-role="output"
className={cn(
"relative fullscreen:bg-background fullscreen:flex fullscreen:items-center fullscreen:justify-center",
- "fullscreen:[align-items:safe_center]",
+ "fullscreen:items-center-safe",
props.className,
)}
ref={containerRef}
diff --git a/frontend/src/components/editor/SortableCell.tsx b/frontend/src/components/editor/SortableCell.tsx
index ad262275a8..fafbe4f7f0 100644
--- a/frontend/src/components/editor/SortableCell.tsx
+++ b/frontend/src/components/editor/SortableCell.tsx
@@ -128,7 +128,7 @@ const SortableCellInternal = React.forwardRef(
{...listeners}
onMouseDown={Events.preventFocus}
data-testid="drag-button"
- className="py-[1px] cursor-grab opacity-50 hover:opacity-100 hover-action hover:bg-muted rounded border border-transparent hover:border-border active:bg-accent"
+ className="py-px cursor-grab opacity-50 hover:opacity-100 hover-action hover:bg-muted rounded border border-transparent hover:border-border active:bg-accent"
>
<GripVerticalIcon strokeWidth={1} size={20} />
</div>
@@ -147,7 +147,7 @@ const SortableCellInternal = React.forwardRef(
className={cn(
props.className,
isMoving && "is-moving",
- "outline-none rounded-lg",
+ "outline-hidden rounded-lg",
)}
style={style}
>
diff --git a/frontend/src/components/editor/actions/name-cell-input.tsx b/frontend/src/components/editor/actions/name-cell-input.tsx
index c4245a7667..4403e79555 100644
--- a/frontend/src/components/editor/actions/name-cell-input.tsx
+++ b/frontend/src/components/editor/actions/name-cell-input.tsx
@@ -78,7 +78,7 @@ export const NameCellContentEditable: React.FC<{
<Tooltip content="Click to rename">
<span
className={cn(
- "outline-none border hover:border-cyan-500/40 focus:border-cyan-500/40",
+ "outline-hidden border hover:border-cyan-500/40 focus:border-cyan-500/40",
className,
)}
contentEditable={true}
diff --git a/frontend/src/components/editor/ai/add-cell-with-ai.tsx b/frontend/src/components/editor/ai/add-cell-with-ai.tsx
index 53406a8101..45847e02f5 100644
--- a/frontend/src/components/editor/ai/add-cell-with-ai.tsx
+++ b/frontend/src/components/editor/ai/add-cell-with-ai.tsx
@@ -103,7 +103,7 @@ export const AddCellWithAI: React.FC<{
const inputComponent = (
<div className="flex items-center px-3">
- <SparklesIcon className="size-4 text-[var(--blue-11)]" />
+ <SparklesIcon className="size-4 text-(--blue-11)" />
<DropdownMenu modal={false}>
<DropdownMenuTrigger asChild={true}>
<Button
@@ -174,7 +174,7 @@ export const AddCellWithAI: React.FC<{
onClose();
}}
>
- <span className="text-[var(--grass-11)] opacity-100">Accept</span>
+ <span className="text-(--grass-11) opacity-100">Accept</span>
</Button>
)}
<Button variant="text" size="sm" className="mb-0" onClick={onClose}>
@@ -189,9 +189,8 @@ export const AddCellWithAI: React.FC<{
{!completion && (
<span className="text-xs text-muted-foreground px-3 flex flex-col gap-1">
<span>
- You can mention{" "}
- <span className="text-[var(--cyan-11)]">@dataframe</span> or{" "}
- <span className="text-[var(--cyan-11)]">@sql_table</span> to pull
+ You can mention <span className="text-(--cyan-11)">@dataframe</span>{" "}
+ or <span className="text-(--cyan-11)">@sql_table</span> to pull
additional context such as column names.
</span>
<span>Code from other cells is automatically included.</span>
diff --git a/frontend/src/components/editor/ai/ai-completion-editor.tsx b/frontend/src/components/editor/ai/ai-completion-editor.tsx
index 283b95da43..2fe971ec6a 100644
--- a/frontend/src/components/editor/ai/ai-completion-editor.tsx
+++ b/frontend/src/components/editor/ai/ai-completion-editor.tsx
@@ -146,10 +146,7 @@ export const AiCompletionEditor: React.FC<Props> = ({
>
{enabled && (
<>
- <SparklesIcon
- className="text-[var(--blue-10)] flex-shrink-0"
- size={16}
- />
+ <SparklesIcon className="text-(--blue-10) shrink-0" size={16} />
<PromptInput
inputRef={inputRef}
theme={theme}
@@ -192,9 +189,7 @@ export const AiCompletionEditor: React.FC<Props> = ({
setCompletion("");
}}
>
- <span className="text-[var(--grass-11)] opacity-100">
- Accept
- </span>
+ <span className="text-(--grass-11) opacity-100">Accept</span>
</Button>
)}
<div className="h-full w-px bg-border mx-2" />
@@ -227,7 +222,7 @@ export const AiCompletionEditor: React.FC<Props> = ({
setCompletion("");
}}
>
- <XIcon className="text-[var(--red-10)]" size={16} />
+ <XIcon className="text-(--red-10)" size={16} />
</Button>
</>
)}
diff --git a/frontend/src/components/editor/alerts/connecting-alert.tsx b/frontend/src/components/editor/alerts/connecting-alert.tsx
index 1aa7f71ff1..57b6b3017f 100644
--- a/frontend/src/components/editor/alerts/connecting-alert.tsx
+++ b/frontend/src/components/editor/alerts/connecting-alert.tsx
@@ -19,7 +19,7 @@ export const ConnectingAlert: React.FC = () => {
(isConnecting && (
<>
<DelayMount milliseconds={SHORT_DELAY_MS}>
- <div className="absolute top-4 m-0 flex items-center min-h-[28px] left-1/2 transform -translate-x-1/2 z-[200] ">
+ <div className="absolute top-4 m-0 flex items-center min-h-[28px] left-1/2 transform -translate-x-1/2 z-200 ">
<Tooltip content="Connecting to a marimo runtime">
<div className="flex items-center">
<LoadingEllipsis size={5} className="text-yellow-500" />
diff --git a/frontend/src/components/editor/alerts/floating-alert.tsx b/frontend/src/components/editor/alerts/floating-alert.tsx
index b82f1f9fa0..d36e52d691 100644
--- a/frontend/src/components/editor/alerts/floating-alert.tsx
+++ b/frontend/src/components/editor/alerts/floating-alert.tsx
@@ -24,7 +24,7 @@ export const FloatingAlert: React.FC<FloatingAlertProps> = ({
}
const body = (
- <div className="flex flex-col gap-4 mb-5 fixed top-5 left-1/2 transform -translate-x-1/2 z-[200] opacity-95">
+ <div className="flex flex-col gap-4 mb-5 fixed top-5 left-1/2 transform -translate-x-1/2 z-200 opacity-95">
<Banner
kind={kind}
className="flex flex-col rounded py-2 px-4 animate-in slide-in-from-top w-fit"
diff --git a/frontend/src/components/editor/cell/PendingDeleteConfirmation.tsx b/frontend/src/components/editor/cell/PendingDeleteConfirmation.tsx
index 24be72f24e..178899840e 100644
--- a/frontend/src/components/editor/cell/PendingDeleteConfirmation.tsx
+++ b/frontend/src/components/editor/cell/PendingDeleteConfirmation.tsx
@@ -25,16 +25,14 @@ export const PendingDeleteConfirmation: React.FC<{ cellId: CellId }> = ({
<div
className={cn(
"px-3 py-1.5",
- "bg-[var(--amber-2)] border-t border-[var(--amber-6)]",
+ "bg-(--amber-2) border-t border-(--amber-6)",
"animate-in slide-in-from-top-2 duration-200",
)}
data-testid={`pending-delete-${cellId}`}
>
<div className="flex items-center gap-2">
- <AlertTriangleIcon className="w-3 h-3 text-[var(--amber-11)] flex-shrink-0" />
- <span className="text-[var(--amber-11)] text-xs">
- Pending deletion
- </span>
+ <AlertTriangleIcon className="w-3 h-3 text-(--amber-11) shrink-0" />
+ <span className="text-(--amber-11) text-xs">Pending deletion</span>
</div>
</div>
);
@@ -59,32 +57,27 @@ export const PendingDeleteConfirmation: React.FC<{ cellId: CellId }> = ({
<div
className={cn(
"px-4 py-3",
- "bg-[var(--amber-2)] border-t border-[var(--amber-6)]",
+ "bg-(--amber-2) border-t border-(--amber-6)",
"animate-in slide-in-from-top-2 duration-200",
)}
data-testid={`pending-delete-${cellId}`}
>
<div className="flex items-start gap-3">
- <AlertTriangleIcon className="w-4 h-4 text-[var(--amber-11)] mt-0.5 flex-shrink-0" />
+ <AlertTriangleIcon className="w-4 h-4 text-(--amber-11) mt-0.5 shrink-0" />
<div className="flex-1">
<div className="font-code text-sm text-[0.84375rem]">
- <p className="text-[var(--amber-11)] font-medium">
- {warningMessage}
- </p>
+ <p className="text-(--amber-11) font-medium">{warningMessage}</p>
{hasDependencies &&
[...pendingDelete.defs.entries()].map(([varName, cells]) => (
<div key={varName}>
- <p className="text-[var(--amber-11)] mt-2">
+ <p className="text-(--amber-11) mt-2">
'<span className="font-mono">{varName}</span>' is referenced
by:
</p>
<ul className="list-disc">
{cells.map((id) => (
- <li
- key={id}
- className="my-0.5 ml-8 text-[var(--amber-11)]/60"
- >
+ <li key={id} className="my-0.5 ml-8 text-(--amber-11)/60">
<CellLink cellId={id} />
</li>
))}
@@ -95,7 +88,7 @@ export const PendingDeleteConfirmation: React.FC<{ cellId: CellId }> = ({
{/* Only show buttons for single cell - multi-cell uses toast */}
{pendingDelete.shouldConfirmDelete && (
<>
- <p className="text-[var(--amber-11)] mt-2 mb-3">
+ <p className="text-(--amber-11) mt-2 mb-3">
Are you sure you want to delete?
</p>
<FocusScope autoFocus={true}>
@@ -110,7 +103,7 @@ export const PendingDeleteConfirmation: React.FC<{ cellId: CellId }> = ({
size="xs"
variant="ghost"
onClick={() => pendingDelete.cancel()}
- className="text-[var(--amber-11)] hover:bg-[var(--amber-4)] hover:text-[var(--amber-11)]"
+ className="text-(--amber-11) hover:bg-(--amber-4) hover:text-(--amber-11)"
>
Cancel
</Button>
@@ -118,7 +111,7 @@ export const PendingDeleteConfirmation: React.FC<{ cellId: CellId }> = ({
size="xs"
variant="secondary"
onClick={() => pendingDelete.confirm()}
- className="bg-[var(--amber-11)] hover:bg-[var(--amber-12)] text-white border-[var(--amber-11)]"
+ className="bg-(--amber-11) hover:bg-(--amber-12) text-white border-(--amber-11)"
>
Delete
</Button>
diff --git a/frontend/src/components/editor/cell/cell-actions.tsx b/frontend/src/components/editor/cell/cell-actions.tsx
index e984d4d733..cd2f553445 100644
--- a/frontend/src/components/editor/cell/cell-actions.tsx
+++ b/frontend/src/components/editor/cell/cell-actions.tsx
@@ -87,7 +87,7 @@ const CellActionsDropdownInternal = (
</div>
)}
<div className="flex-1">{action.label}</div>
- <div className="flex-shrink-0 text-sm">
+ <div className="shrink-0 text-sm">
{action.hotkey && renderMinimalShortcut(action.hotkey)}
{action.rightElement}
</div>
@@ -107,7 +107,7 @@ const CellActionsDropdownInternal = (
key={action.label}
// Disable with classname instead of disabled prop
// otherwise the tooltip doesn't work
- className={cn(action.disabled && "!opacity-50")}
+ className={cn(action.disabled && "opacity-50!")}
onSelect={() => {
if (action.disableClick || action.disabled) {
return;
diff --git a/frontend/src/components/editor/cell/cell-context-menu.tsx b/frontend/src/components/editor/cell/cell-context-menu.tsx
index 0eeae2529f..700c0c0e6e 100644
--- a/frontend/src/components/editor/cell/cell-context-menu.tsx
+++ b/frontend/src/components/editor/cell/cell-context-menu.tsx
@@ -203,7 +203,7 @@ export const CellActionsContextMenu = ({
</div>
)}
<div className="flex-1">{action.label}</div>
- <div className="flex-shrink-0 text-sm">
+ <div className="shrink-0 text-sm">
{action.hotkey && renderMinimalShortcut(action.hotkey)}
{action.rightElement}
</div>
@@ -221,7 +221,7 @@ export const CellActionsContextMenu = ({
return (
<ContextMenuItem
key={action.label}
- className={action.disabled ? "!opacity-50" : ""}
+ className={action.disabled ? "opacity-50!" : ""}
onSelect={(evt) => {
if (action.disableClick || action.disabled) {
return;
diff --git a/frontend/src/components/editor/cell/collapse.tsx b/frontend/src/components/editor/cell/collapse.tsx
index 39c46d4d72..5d70187a38 100644
--- a/frontend/src/components/editor/cell/collapse.tsx
+++ b/frontend/src/components/editor/cell/collapse.tsx
@@ -44,9 +44,9 @@ export const CollapseToggle: React.FC<Props> = (props) => {
const Arrow = ({ isCollapsed }: { isCollapsed: boolean }) => {
return isCollapsed ? (
- <ChevronRightIcon className="w-5 h-5 flex-shrink-0" />
+ <ChevronRightIcon className="w-5 h-5 shrink-0" />
) : (
- <ChevronDownIcon className="w-5 h-5 flex-shrink-0" />
+ <ChevronDownIcon className="w-5 h-5 shrink-0" />
);
};
@@ -68,7 +68,7 @@ export const CollapsedCellBanner: React.FC<{
<Toolbar
center={
<>
- <ChevronsUpDownIcon className="w-4 h-4 flex-shrink-0" />
+ <ChevronsUpDownIcon className="w-4 h-4 shrink-0" />
<span className="text-sm text-gray-500">
{count} {count === 1 ? "cell" : "cells"} collapsed
</span>
@@ -78,17 +78,17 @@ export const CollapsedCellBanner: React.FC<{
<>
{states.errored && (
<Tooltip content="Has errors" delayDuration={100}>
- <AlertOctagonIcon className="w-4 h-4 flex-shrink-0 text-destructive" />
+ <AlertOctagonIcon className="w-4 h-4 shrink-0 text-destructive" />
</Tooltip>
)}
{states.stale && (
<Tooltip content="Has stale cells" delayDuration={100}>
- <RefreshCcw className="w-4 h-4 flex-shrink-0 text-[var(--yellow-11)]" />
+ <RefreshCcw className="w-4 h-4 shrink-0 text-(--yellow-11)" />
</Tooltip>
)}
{states.runningOrQueued && (
<Tooltip content="Running" delayDuration={100}>
- <Loader2Icon className="w-4 h-4 flex-shrink-0 animate-spin" />
+ <Loader2Icon className="w-4 h-4 shrink-0 animate-spin" />
</Tooltip>
)}
</>
diff --git a/frontend/src/components/editor/cell/toolbar.tsx b/frontend/src/components/editor/cell/toolbar.tsx
index 717b9825e5..de539d9067 100644
--- a/frontend/src/components/editor/cell/toolbar.tsx
+++ b/frontend/src/components/editor/cell/toolbar.tsx
@@ -8,17 +8,16 @@ import { cn } from "@/utils/cn";
import { Events } from "@/utils/events";
const toolbarItemVariants = cva(
- "rounded-full shadow-xsSolid border p-[5px] transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 [&>svg]:size-3 active:shadow-none bg-background",
+ "rounded-full shadow-xs-solid border p-[5px] transition-colors focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2 [&>svg]:size-3 active:shadow-none bg-background",
{
variants: {
variant: {
default: "hover:bg-accent hover:text-accent-foreground",
- stale:
- "bg-[var(--yellow-3)] hover:bg-[var(--yellow-4)] text-[var(--yellow-11)]",
+ stale: "bg-(--yellow-3) hover:bg-(--yellow-4) text-(--yellow-11)",
green:
- "hover:bg-[var(--grass-2)] hover:text-[var(--grass-11)] hover:border-[var(--grass-7)],",
+ "hover:bg-(--grass-2) hover:text-(--grass-11) hover:border-[var(--grass-7)],",
disabled: "opacity-50 cursor-not-allowed",
- danger: "hover:bg-[var(--red-3)] hover:text-[var(--red-11)]",
+ danger: "hover:bg-(--red-3) hover:text-(--red-11)",
},
},
defaultVariants: {
diff --git a/frontend/src/components/editor/chrome/panels/logs-panel.tsx b/frontend/src/components/editor/chrome/panels/logs-panel.tsx
index bee3b968b7..47ee419a61 100644
--- a/frontend/src/components/editor/chrome/panels/logs-panel.tsx
+++ b/frontend/src/components/editor/chrome/panels/logs-panel.tsx
@@ -47,13 +47,12 @@ export const LogsPanel: React.FC = () => {
};
export const LogViewer: React.FC<Props> = ({ logs, className }) => {
- const hover =
- "opacity-70 group-hover:bg-[var(--gray-3)] group-hover:opacity-100";
+ const hover = "opacity-70 group-hover:bg-(--gray-3) group-hover:opacity-100";
return (
<div className={cn("flex flex-col", className)}>
<pre className="grid text-xs font-mono gap-1 whitespace-break-spaces font-semibold align-left">
<div
- className="grid grid-cols-[30px,1fr]"
+ className="grid grid-cols-[30px_1fr]"
style={{ whiteSpace: "pre-wrap" }}
>
{logs.map((log, index) => (
@@ -80,11 +79,11 @@ function formatLog(log: CellLog) {
return (
<>
- <span className="flex-shrink-0 text-[var(--gray-10)] dark:text-[var(--gray-11)]">
+ <span className="shrink-0 text-(--gray-10) dark:text-(--gray-11)">
[{timestamp}]
</span>
- <span className={cn("flex-shrink-0", color)}>{level}</span>
- <span className="flex-shrink-0 text-[var(--gray-10)]">
+ <span className={cn("shrink-0", color)}>{level}</span>
+ <span className="shrink-0 text-(--gray-10)">
(<CellLink cellId={log.cellId} />)
</span>
{log.message}
@@ -93,6 +92,6 @@ function formatLog(log: CellLog) {
}
const levelColor: Record<CellLog["level"], string> = {
- stdout: "text-[var(--grass-9)]",
- stderr: "text-[var(--red-9)]",
+ stdout: "text-(--grass-9)",
+ stderr: "text-(--red-9)",
};
diff --git a/frontend/src/components/editor/chrome/panels/outline-panel.css b/frontend/src/components/editor/chrome/panels/outline-panel.css
index c7250c0f84..bea6be47fb 100644
--- a/frontend/src/components/editor/chrome/panels/outline-panel.css
+++ b/frontend/src/components/editor/chrome/panels/outline-panel.css
@@ -1,3 +1,5 @@
+@reference "../../../../css/globals.css";
+
.outline-item-highlight {
text-decoration: underline;
@apply decoration-primary;
diff --git a/frontend/src/components/editor/chrome/panels/outline-panel.tsx b/frontend/src/components/editor/chrome/panels/outline-panel.tsx
index 1d989ae5e2..6cf0c4e64b 100644
--- a/frontend/src/components/editor/chrome/panels/outline-panel.tsx
+++ b/frontend/src/components/editor/chrome/panels/outline-panel.tsx
@@ -22,7 +22,7 @@ export const OutlinePanel: React.FC = () => {
if (items.length === 0) {
return (
<PanelEmptyState
- title="No outline"
+ title="No outline-solid"
description="Add markdown headings to your notebook to create an outline."
icon={<ScrollTextIcon />}
/>
diff --git a/frontend/src/components/editor/chrome/panels/outline/floating-outline.tsx b/frontend/src/components/editor/chrome/panels/outline/floating-outline.tsx
index f11fc710b5..119a1f9d4d 100644
--- a/frontend/src/components/editor/chrome/panels/outline/floating-outline.tsx
+++ b/frontend/src/components/editor/chrome/panels/outline/floating-outline.tsx
@@ -30,7 +30,7 @@ export const FloatingOutline: React.FC = () => {
onMouseEnter={() => setIsHovered(true)}
onMouseLeave={() => setIsHovered(false)}
className={cn(
- "fixed top-[25vh] right-8 z-[10000]",
+ "fixed top-[25vh] right-8 z-10000",
// Hide on small screens
"hidden md:block",
)}
diff --git a/frontend/src/components/editor/chrome/panels/outline/useActiveOutline.tsx b/frontend/src/components/editor/chrome/panels/outline/useActiveOutline.tsx
index 7ea5bb7510..baabc2d2d2 100644
--- a/frontend/src/components/editor/chrome/panels/outline/useActiveOutline.tsx
+++ b/frontend/src/components/editor/chrome/panels/outline/useActiveOutline.tsx
@@ -133,7 +133,7 @@ export function findOutlineElements(items: OutlineItem[]) {
export function scrollToOutlineItem(item: OutlineItem, index: number) {
const element = findOutlineItem(item, index);
if (!element) {
- Logger.warn("Could not find element for outline item", item);
+ Logger.warn("Could not find element for outline-solid item", item);
return;
}
diff --git a/frontend/src/components/editor/chrome/panels/packages-panel.tsx b/frontend/src/components/editor/chrome/panels/packages-panel.tsx
index 917d573b53..bb8bb2a9d3 100644
--- a/frontend/src/components/editor/chrome/panels/packages-panel.tsx
+++ b/frontend/src/components/editor/chrome/panels/packages-panel.tsx
@@ -135,7 +135,7 @@ export const PackagesPanel: React.FC = () => {
</div>
<div className="flex items-center gap-2">
<div
- className="items-center border px-2 py-0.5 text-xs transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 text-foreground rounded-sm text-ellipsis block overflow-hidden max-w-fit font-medium"
+ className="items-center border px-2 py-0.5 text-xs transition-colors focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2 text-foreground rounded-sm text-ellipsis block overflow-hidden max-w-fit font-medium"
title={isSandbox ? "sandbox" : "project"}
>
{isSandbox ? "sandbox" : "project"}
@@ -518,7 +518,7 @@ const DependencyTreeNode: React.FC<{
<div
className={cn(
"flex items-center group cursor-pointer text-sm whitespace-nowrap",
- "hover:bg-[var(--slate-2)] focus:bg-[var(--slate-2)] focus:outline-none",
+ "hover:bg-(--slate-2) focus:bg-(--slate-2) focus:outline-hidden",
hasChildren && "select-none",
isTopLevel ? "px-2 py-0.5" : "",
)}
@@ -533,12 +533,12 @@ const DependencyTreeNode: React.FC<{
{/* Expand/collapse arrow */}
{hasChildren ? (
isExpanded ? (
- <ChevronDownIcon className="w-4 h-4 mr-2 flex-shrink-0" />
+ <ChevronDownIcon className="w-4 h-4 mr-2 shrink-0" />
) : (
- <ChevronRightIcon className="w-4 h-4 mr-2 flex-shrink-0" />
+ <ChevronRightIcon className="w-4 h-4 mr-2 shrink-0" />
)
) : (
- <div className="w-4 mr-2 flex-shrink-0" />
+ <div className="w-4 mr-2 shrink-0" />
)}
{/* Package info */}
@@ -558,7 +558,7 @@ const DependencyTreeNode: React.FC<{
return (
<div
key={index}
- className="items-center border px-2 py-0.5 text-xs transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 text-foreground rounded-sm text-ellipsis block overflow-hidden max-w-fit font-medium border-orange-300 dark:border-orange-700 text-orange-700 dark:text-orange-300"
+ className="items-center border px-2 py-0.5 text-xs transition-colors focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2 text-foreground rounded-sm text-ellipsis block overflow-hidden max-w-fit font-medium border-orange-300 dark:border-orange-700 text-orange-700 dark:text-orange-300"
title="cycle"
>
cycle
@@ -569,7 +569,7 @@ const DependencyTreeNode: React.FC<{
return (
<div
key={index}
- className="items-center border px-2 py-0.5 text-xs transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 text-foreground rounded-sm text-ellipsis block overflow-hidden max-w-fit font-medium border-blue-300 dark:border-blue-700 text-blue-700 dark:text-blue-300"
+ className="items-center border px-2 py-0.5 text-xs transition-colors focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2 text-foreground rounded-sm text-ellipsis block overflow-hidden max-w-fit font-medium border-blue-300 dark:border-blue-700 text-blue-700 dark:text-blue-300"
title={tag.value}
>
{tag.value}
@@ -580,7 +580,7 @@ const DependencyTreeNode: React.FC<{
return (
<div
key={index}
- className="items-center border px-2 py-0.5 text-xs transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 text-foreground rounded-sm text-ellipsis block overflow-hidden max-w-fit font-medium border-green-300 dark:border-green-700 text-green-700 dark:text-green-300"
+ className="items-center border px-2 py-0.5 text-xs transition-colors focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2 text-foreground rounded-sm text-ellipsis block overflow-hidden max-w-fit font-medium border-green-300 dark:border-green-700 text-green-700 dark:text-green-300"
title={tag.value}
>
{tag.value}
diff --git a/frontend/src/components/editor/chrome/panels/snippets-panel.css b/frontend/src/components/editor/chrome/panels/snippets-panel.css
index a04d027018..86eb24a655 100644
--- a/frontend/src/components/editor/chrome/panels/snippets-panel.css
+++ b/frontend/src/components/editor/chrome/panels/snippets-panel.css
@@ -1,3 +1,5 @@
+@reference "../../../../css/globals.css";
+
.snippet-viewer {
h1 {
text-align: left;
diff --git a/frontend/src/components/editor/chrome/wrapper/app-chrome.tsx b/frontend/src/components/editor/chrome/wrapper/app-chrome.tsx
index 295f597030..63daae844d 100644
--- a/frontend/src/components/editor/chrome/wrapper/app-chrome.tsx
+++ b/frontend/src/components/editor/chrome/wrapper/app-chrome.tsx
@@ -125,7 +125,7 @@ export const AppChrome: React.FC<PropsWithChildren> = ({ children }) => {
<ErrorBoundary>
<div className="flex flex-col h-full flex-1 overflow-hidden mr-[-4px]">
<div className="p-3 border-b flex justify-between items-center">
- <div className="text-sm text-[var(--slate-11)] uppercase tracking-wide font-semibold flex-1">
+ <div className="text-sm text-(--slate-11) uppercase tracking-wide font-semibold flex-1">
{selectedPanel}
</div>
<Button
@@ -168,8 +168,8 @@ export const AppChrome: React.FC<PropsWithChildren> = ({ children }) => {
collapsedSize={0}
collapsible={true}
className={cn(
- "dark:bg-[var(--slate-1)] no-print print:hidden hide-on-fullscreen",
- isSidebarOpen && "border-r border-l border-[var(--slate-7)]",
+ "dark:bg-(--slate-1) no-print print:hidden hide-on-fullscreen",
+ isSidebarOpen && "border-r border-l border-(--slate-7)",
)}
minSize={10}
// We can't make the default size greater than 0, otherwise it will start open
@@ -198,8 +198,8 @@ export const AppChrome: React.FC<PropsWithChildren> = ({ children }) => {
collapsedSize={0}
collapsible={true}
className={cn(
- "dark:bg-[var(--slate-1)] no-print print:hidden hide-on-fullscreen",
- isTerminalOpen && "border-[var(--slate-7)]",
+ "dark:bg-(--slate-1) no-print print:hidden hide-on-fullscreen",
+ isTerminalOpen && "border-(--slate-7)",
)}
minSize={10}
// We can't make the default size greater than 0, otherwise it will start open
diff --git a/frontend/src/components/editor/chrome/wrapper/footer-item.tsx b/frontend/src/components/editor/chrome/wrapper/footer-item.tsx
index c662d3bb68..d95d0aaba3 100644
--- a/frontend/src/components/editor/chrome/wrapper/footer-item.tsx
+++ b/frontend/src/components/editor/chrome/wrapper/footer-item.tsx
@@ -19,8 +19,8 @@ export const FooterItem: React.FC<FooterItemProps> = forwardRef<
ref={ref}
className={cn(
"h-full flex items-center p-2 text-sm shadow-inset font-mono cursor-pointer rounded",
- !selected && "hover:bg-[var(--sage-3)]",
- selected && "bg-[var(--sage-4)]",
+ !selected && "hover:bg-(--sage-3)",
+ selected && "bg-(--sage-4)",
className,
)}
{...rest}
diff --git a/frontend/src/components/editor/chrome/wrapper/footer-items/backend-status.tsx b/frontend/src/components/editor/chrome/wrapper/footer-items/backend-status.tsx
index 6ec14f7127..f0f3a9b2b5 100644
--- a/frontend/src/components/editor/chrome/wrapper/footer-items/backend-status.tsx
+++ b/frontend/src/components/editor/chrome/wrapper/footer-items/backend-status.tsx
@@ -78,10 +78,10 @@ export const BackendConnection: React.FC = () => {
if (connection === WebSocketState.OPEN) {
if (data?.isHealthy) {
- return <CheckCircle2Icon className="w-4 h-4 text-[var(--green-9)]" />;
+ return <CheckCircle2Icon className="w-4 h-4 text-(--green-9)" />;
}
if (data?.lastChecked) {
- return <AlertCircleIcon className="w-4 h-4 text-[var(--yellow-9)]" />;
+ return <AlertCircleIcon className="w-4 h-4 text-(--yellow-9)" />;
}
return <CheckCircle2Icon className="w-4 h-4" />;
}
diff --git a/frontend/src/components/editor/chrome/wrapper/footer-items/machine-stats.tsx b/frontend/src/components/editor/chrome/wrapper/footer-items/machine-stats.tsx
index 2dff18bff0..c00eff844e 100644
--- a/frontend/src/components/editor/chrome/wrapper/footer-items/machine-stats.tsx
+++ b/frontend/src/components/editor/chrome/wrapper/footer-items/machine-stats.tsx
@@ -141,7 +141,7 @@ const GPUBar: React.FC<{ gpus: GPU[] }> = ({ gpus }) => {
>
<div className="flex items-center gap-1" data-testid="gpu-bar">
<MicrochipIcon className="w-4 h-4" />
- <Bar percent={avgPercent} colorClassName="bg-[var(--grass-9)]" />
+ <Bar percent={avgPercent} colorClassName="bg-(--grass-9)" />
</div>
</Tooltip>
);
@@ -152,7 +152,7 @@ const Bar: React.FC<{ percent: number; colorClassName?: string }> = ({
colorClassName,
}) => {
return (
- <div className="h-3 w-20 bg-[var(--slate-4)] rounded-lg overflow-hidden border">
+ <div className="h-3 w-20 bg-(--slate-4) rounded-lg overflow-hidden border">
<div
className={cn("h-full bg-primary", colorClassName)}
style={{ width: `${percent}%` }}
diff --git a/frontend/src/components/editor/chrome/wrapper/footer.tsx b/frontend/src/components/editor/chrome/wrapper/footer.tsx
index 9a54346683..89d4f96ed1 100644
--- a/frontend/src/components/editor/chrome/wrapper/footer.tsx
+++ b/frontend/src/components/editor/chrome/wrapper/footer.tsx
@@ -46,7 +46,7 @@ export const Footer: React.FC = () => {
data-testid="footer-errors"
>
{renderIcon(errorPanel, errorCount > 0 ? "text-destructive" : "")}
- <span className="ml-1 font-mono mt-[0.125rem]">{errorCount}</span>
+ <span className="ml-1 font-mono mt-0.5">{errorCount}</span>
</FooterItem>
<IfCapability capability="terminal">
@@ -77,7 +77,7 @@ export const Footer: React.FC = () => {
</Tooltip>
</ShowInKioskMode>
- <div className="flex items-center flex-shrink-0 min-w-0">
+ <div className="flex items-center shrink-0 min-w-0">
<MachineStats />
<MinimapStatusIcon />
<AIStatusIcon />
diff --git a/frontend/src/components/editor/chrome/wrapper/minimap.tsx b/frontend/src/components/editor/chrome/wrapper/minimap.tsx
index 7c28f428c0..01dc00a15a 100644
--- a/frontend/src/components/editor/chrome/wrapper/minimap.tsx
+++ b/frontend/src/components/editor/chrome/wrapper/minimap.tsx
@@ -71,7 +71,7 @@ const MinimapCell: React.FC<MinimapCellProps> = (props) => {
"h-[21px] pl-[51px] font-inherit",
isSelected
? "text-primary-foreground"
- : "text-[var(--gray-8)] hover:text-[var(--gray-9)]",
+ : "text-(--gray-8) hover:text-(--gray-9)",
)}
onClick={handleClick}
// Prevent the default mousedown behavior to avoid blur events on the currently
@@ -81,7 +81,7 @@ const MinimapCell: React.FC<MinimapCellProps> = (props) => {
>
<div
className={cn(
- "group-hover:bg-[var(--gray-2)] flex h-full w-full px-0.5 items-center rounded",
+ "group-hover:bg-(--gray-2) flex h-full w-full px-0.5 items-center rounded",
isSelected && "bg-primary group-hover:bg-primary",
)}
>
@@ -100,7 +100,7 @@ const MinimapCell: React.FC<MinimapCellProps> = (props) => {
</div>
<svg
className={cn(
- "absolute overflow-visible top-[10.5px] left-[calc(var(--spacing-extra-small,8px)_+_17px)] pointer-events-none",
+ "absolute overflow-visible top-[10.5px] left-[calc(var(--spacing-extra-small,8px)+17px)] pointer-events-none",
isSelected ? "z-30" : "z-20",
getTextColor({ cell, selectedCell }),
)}
@@ -144,7 +144,7 @@ const MinimapInternal: React.FC<{
return (
<div
className={cn(
- "fixed top-14 right-5 z-50 bg-background/95 backdrop-blur supports-[backdrop-filter]:bg-background/60 rounded-lg border shadow-lg w-64 flex flex-col max-h-[58vh]",
+ "fixed top-14 right-5 z-50 bg-background/95 backdrop-blur-sm supports-backdrop-filter:bg-background/60 rounded-lg border shadow-lg w-64 flex flex-col max-h-[58vh]",
"motion-safe:transition-transform motion-safe:duration-200 motion-safe:ease-in-out",
open ? "translate-x-0" : "translate-x-[calc(100%+20px)]",
)}
@@ -169,7 +169,7 @@ const MinimapInternal: React.FC<{
{/* Subtle visual divider between nodes */}
{isColumnBoundary && (
<div
- className="absolute left-5 w-[36px] h-px bg-[var(--gray-4)] pointer-events-none"
+ className="absolute left-5 w-[36px] h-px bg-(--gray-4) pointer-events-none"
aria-hidden="true"
/>
)}
@@ -428,7 +428,7 @@ function getTextColor({
return "text-primary";
}
- return "text-[var(--gray-8)]";
+ return "text-(--gray-8)";
}
/**
diff --git a/frontend/src/components/editor/chrome/wrapper/sidebar.tsx b/frontend/src/components/editor/chrome/wrapper/sidebar.tsx
index 055a9e4b78..15ba9a69fb 100644
--- a/frontend/src/components/editor/chrome/wrapper/sidebar.tsx
+++ b/frontend/src/components/editor/chrome/wrapper/sidebar.tsx
@@ -62,11 +62,11 @@ const QueuedOrRunningStack = () => {
side="right"
delayDuration={200}
>
- <div className="flex flex-col-reverse gap-[1px] overflow-hidden">
+ <div className="flex flex-col-reverse gap-px overflow-hidden">
{Array.from({ length: count }).map((_, index) => (
<div
key={index.toString()}
- className="flex-shrink-0 h-1 w-2 bg-[var(--grass-6)] border border-[var(--grass-7)]"
+ className="shrink-0 h-1 w-2 bg-(--grass-6) border border-(--grass-7)"
/>
))}
</div>
@@ -86,9 +86,9 @@ const SidebarItem: React.FC<
<Tooltip content={tooltip} side="right" delayDuration={200}>
<button
className={cn(
- "flex items-center p-2 text-sm mx-[1px] shadow-inset font-mono cursor-pointer rounded",
- !selected && "hover:bg-[var(--sage-3)]",
- selected && "bg-[var(--sage-4)]",
+ "flex items-center p-2 text-sm mx-px shadow-inset font-mono cursor-pointer rounded",
+ !selected && "hover:bg-(--sage-3)",
+ selected && "bg-(--sage-4)",
className,
)}
{...rest}
diff --git a/frontend/src/components/editor/columns/cell-column.tsx b/frontend/src/components/editor/columns/cell-column.tsx
index ffd0b7c447..0ca6dbc506 100644
--- a/frontend/src/components/editor/columns/cell-column.tsx
+++ b/frontend/src/components/editor/columns/cell-column.tsx
@@ -80,7 +80,7 @@ const ResizableComponent = ({
return (
<div
ref={ref}
- className={`w-[3px] cursor-col-resize transition-colors duration-200 z-[100]
+ className={`w-[3px] cursor-col-resize transition-colors duration-200 z-100
relative before:content-[''] before:absolute before:inset-y-0 before:-left-[3px]
before:right-[-3px] before:w-[9px] before:z-[-1]
hover/column:bg-[var(--slate-3)] dark:hover/column:bg-[var(--slate-5)]
diff --git a/frontend/src/components/editor/columns/sortable-column.tsx b/frontend/src/components/editor/columns/sortable-column.tsx
index d7b162c37b..e75ce95d61 100644
--- a/frontend/src/components/editor/columns/sortable-column.tsx
+++ b/frontend/src/components/editor/columns/sortable-column.tsx
@@ -65,7 +65,7 @@ const SortableColumnInternal = React.forwardRef(
const { deleteColumn, moveColumn, addColumn } = useCellActions();
- const buttonClasses = "hover:bg-[var(--gray-3)] aspect-square p-0 w-7 h-7";
+ const buttonClasses = "hover:bg-(--gray-3) aspect-square p-0 w-7 h-7";
const handleScrollAppRight = () => {
const app = document.getElementById("App");
@@ -106,7 +106,7 @@ const SortableColumnInternal = React.forwardRef(
</Button>
</Tooltip>
<div
- className="flex gap-2 h-full flex-grow cursor-grab active:cursor-grabbing items-center justify-center"
+ className="flex gap-2 h-full grow cursor-grab active:cursor-grabbing items-center justify-center"
data-testid="column-drag-spacer"
{...attributes}
{...listeners}
@@ -161,7 +161,7 @@ const SortableColumnInternal = React.forwardRef(
isOver && "bg-accent/20", // Add a background color when dragging over
)}
>
- <div className="bg-[var(--slate-1)] rounded-lg">
+ <div className="bg-(--slate-1) rounded-lg">
{dragHandle}
{props.children}
</div>
diff --git a/frontend/src/components/editor/controls/Controls.tsx b/frontend/src/components/editor/controls/Controls.tsx
index 47cebe8fb9..c79c80b2f5 100644
--- a/frontend/src/components/editor/controls/Controls.tsx
+++ b/frontend/src/components/editor/controls/Controls.tsx
@@ -204,7 +204,7 @@ const StopControlButton = ({
<Tooltip content={renderShortcut("global.interrupt")}>
<Button
className={cn(
- !showInterrupt && "inactive-button active:shadow-xsSolid",
+ !showInterrupt && "inactive-button active:shadow-xs-solid",
)}
data-testid="interrupt-button"
size="medium"
@@ -219,7 +219,7 @@ const StopControlButton = ({
};
const topRightControls =
- "absolute top-3 right-5 m-0 flex items-center space-x-3 min-h-[28px] no-print pointer-events-auto z-30 print:hidden";
+ "absolute top-3 right-5 m-0 flex items-center gap-2 min-h-[28px] no-print pointer-events-auto z-30 print:hidden";
const bottomRightControls =
"absolute bottom-5 right-5 flex flex-col gap-2 items-center no-print pointer-events-auto z-30 print:hidden";
diff --git a/frontend/src/components/editor/controls/keyboard-shortcuts.tsx b/frontend/src/components/editor/controls/keyboard-shortcuts.tsx
index 6ecba51925..c6d9beb928 100644
--- a/frontend/src/components/editor/controls/keyboard-shortcuts.tsx
+++ b/frontend/src/components/editor/controls/keyboard-shortcuts.tsx
@@ -217,7 +217,7 @@ export const KeyboardShortcuts: React.FC = () => {
return (
<div
key={action}
- className="grid grid-cols-[auto,2fr,3fr] gap-2 items-center"
+ className="grid grid-cols-[auto_2fr_3fr] gap-2 items-center"
>
{hotkeys.isEditable(action) ? (
<EditIcon
diff --git a/frontend/src/components/editor/database/add-database-form.tsx b/frontend/src/components/editor/database/add-database-form.tsx
index 5521fdb974..52e4768e95 100644
--- a/frontend/src/components/editor/database/add-database-form.tsx
+++ b/frontend/src/components/editor/database/add-database-form.tsx
@@ -233,7 +233,7 @@ const DatabaseSchemaSelector: React.FC<{
<button
type="button"
key={name}
- className="py-3 flex flex-col items-center justify-center gap-1 transition-all hover:scale-105 hover:brightness-110 rounded shadow-smSolid hover:shadow-mdSolid"
+ className="py-3 flex flex-col items-center justify-center gap-1 transition-all hover:scale-105 hover:brightness-110 rounded shadow-sm-solid hover:shadow-md-solid"
style={{ backgroundColor: color }}
onClick={() => onSelect(schema)}
>
diff --git a/frontend/src/components/editor/documentation.css b/frontend/src/components/editor/documentation.css
index 767aeed089..a592c9c4bf 100644
--- a/frontend/src/components/editor/documentation.css
+++ b/frontend/src/components/editor/documentation.css
@@ -1,3 +1,5 @@
+@reference "../../css/globals.css";
+
.cm-tooltip .documentation,
.docs-documentation {
line-height: normal;
diff --git a/frontend/src/components/editor/file-tree/file-explorer.tsx b/frontend/src/components/editor/file-tree/file-explorer.tsx
index ee1a24b264..da3e30383e 100644
--- a/frontend/src/components/editor/file-tree/file-explorer.tsx
+++ b/frontend/src/components/editor/file-tree/file-explorer.tsx
@@ -121,7 +121,7 @@ export const FileExplorer: React.FC<{
if (openFile) {
return (
<>
- <div className="flex items-center pl-1 pr-3 flex-shrink-0 border-b justify-between">
+ <div className="flex items-center pl-1 pr-3 shrink-0 border-b justify-between">
<Button
onClick={() => setOpenFile(null)}
data-testid="file-explorer-back-button"
@@ -233,7 +233,7 @@ const Toolbar = ({
});
return (
- <div className="flex items-center justify-end px-2 flex-shrink-0 border-b">
+ <div className="flex items-center justify-end px-2 shrink-0 border-b">
<Tooltip content="Add file">
<Button
data-testid="file-explorer-add-file-button"
@@ -314,7 +314,7 @@ const Show = ({
{node.data.name}
{node.data.isMarimoFile && !isWasm() && (
<span
- className="flex-shrink-0 ml-2 text-sm hidden group-hover:inline hover:underline"
+ className="shrink-0 ml-2 text-sm hidden group-hover:inline hover:underline"
onClick={onOpenMarimoFile}
>
open <ExternalLinkIcon className="inline ml-1" size={12} />
@@ -619,11 +619,11 @@ const Node = ({ node, style, dragHandle }: NodeRendererProps<FileInfo>) => {
{node.data.isMarimoFile ? (
<img
src={marimoIcon}
- className="w-5 h-5 flex-shrink-0 mr-2 filter grayscale"
+ className="w-5 h-5 shrink-0 mr-2 filter grayscale"
alt="Marimo"
/>
) : (
- <Icon className="w-5 h-5 flex-shrink-0 mr-2" strokeWidth={1.5} />
+ <Icon className="w-5 h-5 shrink-0 mr-2" strokeWidth={1.5} />
)}
{node.isEditing ? (
<Edit node={node} />
@@ -659,13 +659,13 @@ const Node = ({ node, style, dragHandle }: NodeRendererProps<FileInfo>) => {
const FolderArrow = ({ node }: { node: NodeApi<FileInfo> }) => {
if (!node.data.isDirectory) {
- return <span className="w-5 h-5 flex-shrink-0" />;
+ return <span className="w-5 h-5 shrink-0" />;
}
return node.isOpen ? (
- <ChevronDownIcon className="w-5 h-5 flex-shrink-0" />
+ <ChevronDownIcon className="w-5 h-5 shrink-0" />
) : (
- <ChevronRightIcon className="w-5 h-5 flex-shrink-0" />
+ <ChevronRightIcon className="w-5 h-5 shrink-0" />
);
};
diff --git a/frontend/src/components/editor/header/filename-input.css b/frontend/src/components/editor/header/filename-input.css
index 651c500997..c5b033308b 100644
--- a/frontend/src/components/editor/header/filename-input.css
+++ b/frontend/src/components/editor/header/filename-input.css
@@ -1,11 +1,13 @@
+@reference "../../../css/globals.css";
+
.missing-filename {
text-align: center;
- @apply shadow-mdSolid shadow-stale;
+ @apply shadow-md-solid shadow-stale;
}
.missing-filename:hover,
.missing-filename:focus {
- @apply shadow-lgSolid shadow-stale;
+ @apply shadow-lg-solid shadow-stale;
}
.filename {
@@ -15,5 +17,5 @@
.filename:hover,
.filename:focus {
- @apply border shadow-lgSolid;
+ @apply border shadow-lg-solid;
}
diff --git a/frontend/src/components/editor/header/status.tsx b/frontend/src/components/editor/header/status.tsx
index 2dd8e9758c..8c44c46108 100644
--- a/frontend/src/components/editor/header/status.tsx
+++ b/frontend/src/components/editor/header/status.tsx
@@ -39,7 +39,7 @@ const topLeftStatus = "no-print pointer-events-auto hover:cursor-pointer";
const DisconnectedIcon = () => (
<Tooltip content="App disconnected">
<div className={topLeftStatus}>
- <UnlinkIcon className="w-[25px] h-[25px] text-[var(--red-11)]" />
+ <UnlinkIcon className="w-[25px] h-[25px] text-(--red-11)" />
</div>
</Tooltip>
);
@@ -47,7 +47,7 @@ const DisconnectedIcon = () => (
const LockedIcon = () => (
<Tooltip content="Notebook locked">
<div className={topLeftStatus}>
- <LockIcon className="w-[25px] h-[25px] text-[var(--blue-11)]" />
+ <LockIcon className="w-[25px] h-[25px] text-(--blue-11)" />
</div>
</Tooltip>
);
diff --git a/frontend/src/components/editor/inputs/Inputs.css b/frontend/src/components/editor/inputs/Inputs.css
index 4da76e3d5b..17a8281cbd 100644
--- a/frontend/src/components/editor/inputs/Inputs.css
+++ b/frontend/src/components/editor/inputs/Inputs.css
@@ -1,3 +1,5 @@
+@reference "../../../css/globals.css";
+
/* See https://www.radix-ui.com/docs/colors/palette-composition/understanding-the-scale
*
* We use the above guidelines to inform decisions below, in particular
diff --git a/frontend/src/components/editor/inputs/Inputs.styles.ts b/frontend/src/components/editor/inputs/Inputs.styles.ts
index 199515bf4d..c702c5f497 100644
--- a/frontend/src/components/editor/inputs/Inputs.styles.ts
+++ b/frontend/src/components/editor/inputs/Inputs.styles.ts
@@ -3,7 +3,7 @@ import { cva } from "class-variance-authority";
import "./Inputs.css";
export const button = cva(
- "flex items-center justify-center m-0 leading-none font-medium border border-foreground/10 shadow-xsSolid hover:cursor-pointer active:shadow-none dark:border-border text-sm",
+ "flex items-center justify-center m-0 leading-none font-medium border border-foreground/10 shadow-xs-solid hover:cursor-pointer active:shadow-none dark:border-border text-sm",
{
variants: {
color: {
@@ -18,7 +18,7 @@ export const button = cva(
yellow: "mo-button yellow",
// for actions that will change state but are not destructive
"hint-green": "mo-button hint-green",
- disabled: "mo-button disabled active:shadow-xsSolid",
+ disabled: "mo-button disabled active:shadow-xs-solid",
},
shape: {
rectangle: "rounded",
@@ -62,5 +62,5 @@ export const button = cva(
);
export const input = cva(
- "font-mono w-full flex-1 inline-flex items-center justify-center rounded px-2.5 text-foreground/60 h-[36px] hover:shadow-md hover:cursor-pointer focus:shadow-md focus:outline-none text-[hsl(0, 0%, 43.5%)] bg-transparent hover:bg-background focus:bg-background",
+ "font-mono w-full flex-1 inline-flex items-center justify-center rounded px-2.5 text-foreground/60 h-[36px] hover:shadow-md hover:cursor-pointer focus:shadow-md focus:outline-hidden text-[hsl(0, 0%, 43.5%)] bg-transparent hover:bg-background focus:bg-background",
);
diff --git a/frontend/src/components/editor/navigation/multi-cell-action-toolbar.tsx b/frontend/src/components/editor/navigation/multi-cell-action-toolbar.tsx
index 053a399d03..d1b5406565 100644
--- a/frontend/src/components/editor/navigation/multi-cell-action-toolbar.tsx
+++ b/frontend/src/components/editor/navigation/multi-cell-action-toolbar.tsx
@@ -371,15 +371,15 @@ const MultiCellPendingDeleteBar: React.FC<{ cellIds: CellId[] }> = ({
data-keep-cell-selection={true}
>
<div className="mx-20">
- <div className="bg-[var(--amber-2)] border border-[var(--amber-6)] rounded-lg shadow-lg mt-14 px-4 py-3 animate-in slide-in-from-top-2 duration-200">
+ <div className="bg-(--amber-2) border border-(--amber-6) rounded-lg shadow-lg mt-14 px-4 py-3 animate-in slide-in-from-top-2 duration-200">
<div className="flex items-start gap-3">
- <AlertTriangleIcon className="w-4 h-4 text-[var(--amber-11)] mt-0.5 flex-shrink-0" />
+ <AlertTriangleIcon className="w-4 h-4 text-(--amber-11) mt-0.5 shrink-0" />
<div className="flex-1">
<div className="font-code text-sm text-[0.84375rem]">
- <p className="text-[var(--amber-11)] font-medium">
+ <p className="text-(--amber-11) font-medium">
Some cells in selection may contain expensive operations.
</p>
- <p className="text-[var(--amber-11)] mt-1">
+ <p className="text-(--amber-11) mt-1">
Are you sure you want to delete?
</p>
</div>
@@ -395,7 +395,7 @@ const MultiCellPendingDeleteBar: React.FC<{ cellIds: CellId[] }> = ({
size="xs"
variant="ghost"
onClick={() => pendingDeleteService.clear()}
- className="text-[var(--amber-11)] hover:bg-[var(--amber-4)] hover:text-[var(--amber-11)]"
+ className="text-(--amber-11) hover:bg-(--amber-4) hover:text-(--amber-11)"
>
Cancel
</Button>
@@ -407,7 +407,7 @@ const MultiCellPendingDeleteBar: React.FC<{ cellIds: CellId[] }> = ({
pendingDeleteService.clear();
selectionActions.clear();
}}
- className="bg-[var(--amber-11)] hover:bg-[var(--amber-12)] text-white border-[var(--amber-11)]"
+ className="bg-(--amber-11) hover:bg-(--amber-12) text-white border-(--amber-11)"
>
Delete
</Button>
@@ -454,17 +454,14 @@ const MultiCellActionToolbarInternal = ({ cellIds }: { cellIds: CellId[] }) => {
className="absolute top-12 justify-center flex w-full left-0 right-0 z-50"
data-keep-cell-selection={true}
>
- <div className="bg-background/95 backdrop-blur supports-[backdrop-filter]:bg-background/60 border border-[var(--slate-7)] rounded-lg shadow-lg p-2 overflow-x-auto overflow-y-hidden mx-20 scrollbar-thin">
+ <div className="bg-background/95 backdrop-blur-sm supports-backdrop-filter:bg-background/60 border border-(--slate-7) rounded-lg shadow-lg p-2 overflow-x-auto overflow-y-hidden mx-20 scrollbar-thin">
<div className="flex items-center gap-1">
- <span className="text-sm font-medium text-muted-foreground px-2 flex-shrink-0">
+ <span className="text-sm font-medium text-muted-foreground px-2 shrink-0">
{selectedCount} cells selected
</span>
<Separator />
{actions.map((group, groupIndex) => (
- <div
- key={groupIndex}
- className="flex items-center gap-2 flex-shrink-0"
- >
+ <div key={groupIndex} className="flex items-center gap-2 shrink-0">
{group.map((action) => (
<Button
key={action.label}
@@ -473,7 +470,7 @@ const MultiCellActionToolbarInternal = ({ cellIds }: { cellIds: CellId[] }) => {
}
size="sm"
onClick={() => action.handle(cellIds)}
- className="h-8 px-2 gap-1 flex-shrink-0 flex items-center"
+ className="h-8 px-2 gap-1 shrink-0 flex items-center"
title={action.label}
disabled={isPendingDelete && action.label !== "Delete cells"}
>
diff --git a/frontend/src/components/editor/navigation/navigation.ts b/frontend/src/components/editor/navigation/navigation.ts
index 7130e48e31..4390c55a77 100644
--- a/frontend/src/components/editor/navigation/navigation.ts
+++ b/frontend/src/components/editor/navigation/navigation.ts
@@ -593,7 +593,7 @@ export function useCellNavigationProps(
return mergeProps(focusWithinProps, keyboardProps, {
"data-selected": isSelected,
className:
- "data-[selected=true]:ring-1 data-[selected=true]:ring-[var(--blue-8)] data-[selected=true]:ring-offset-1",
+ "data-[selected=true]:ring-1 data-[selected=true]:ring-(--blue-8) data-[selected=true]:ring-offset-1",
});
}
diff --git a/frontend/src/components/editor/output/CalloutOutput.styles.ts b/frontend/src/components/editor/output/CalloutOutput.styles.ts
index b120a0eaca..e0082fa7c3 100644
--- a/frontend/src/components/editor/output/CalloutOutput.styles.ts
+++ b/frontend/src/components/editor/output/CalloutOutput.styles.ts
@@ -6,14 +6,13 @@ export const calloutStyles = cva(
{
variants: {
kind: {
- neutral: "border-[var(--slate-9)] shadow-[var(--slate-8)]",
+ neutral: "border-(--slate-9) shadow-(--slate-8)",
// @deprecated, use danger instead
- alert: "bg-[var(--red-2)] border-[var(--red-9)] shadow-[var(--red-8)]",
- info: "bg-[var(--sky-1)] border-[var(--sky-8)] shadow-[var(--sky-7)]",
- danger: "bg-[var(--red-2)] border-[var(--red-9)] shadow-[var(--red-8)]",
- warn: "bg-[var(--amber-2)] border-[var(--amber-9)] shadow-[var(--amber-8)]",
- success:
- "bg-[var(--grass-2)] border-[var(--grass-9)] shadow-[var(--grass-8)]",
+ alert: "bg-(--red-2) border-(--red-9) shadow-(--red-8)",
+ info: "bg-(--sky-1) border-(--sky-8) shadow-(--sky-7)",
+ danger: "bg-(--red-2) border-(--red-9) shadow-(--red-8)",
+ warn: "bg-(--amber-2) border-(--amber-9) shadow-(--amber-8)",
+ success: "bg-(--grass-2) border-(--grass-9) shadow-(--grass-8)",
},
},
defaultVariants: {
diff --git a/frontend/src/components/editor/output/ConsoleOutput.tsx b/frontend/src/components/editor/output/ConsoleOutput.tsx
index a5a7d48b45..2d6aadd2f9 100644
--- a/frontend/src/components/editor/output/ConsoleOutput.tsx
+++ b/frontend/src/components/editor/output/ConsoleOutput.tsx
@@ -136,7 +136,7 @@ const ConsoleOutputInternal = (props: Props): React.ReactNode => {
<span>
<ToggleButton
aria-label="Toggle text wrapping"
- className="p-1 rounded bg-transparent text-muted-foreground data-[hovered]:text-foreground data-[selected]:text-foreground"
+ className="p-1 rounded bg-transparent text-muted-foreground data-hovered:text-foreground data-selected:text-foreground"
isSelected={wrapText}
onChange={setWrapText}
>
@@ -153,7 +153,7 @@ const ConsoleOutputInternal = (props: Props): React.ReactNode => {
// biome-ignore lint/a11y/noNoninteractiveTabindex: Needed to capture keypress events
tabIndex={0}
className={cn(
- "console-output-area overflow-hidden rounded-b-lg flex flex-col-reverse w-full gap-1 focus:outline-none",
+ "console-output-area overflow-hidden rounded-b-lg flex flex-col-reverse w-full gap-1 focus:outline-hidden",
stale && "marimo-output-stale",
hasOutputs ? "p-5" : "p-3",
className,
@@ -207,7 +207,7 @@ const ConsoleOutputInternal = (props: Props): React.ReactNode => {
<NameCellContentEditable
value={cellName}
cellId={cellId}
- className="bg-[var(--slate-4)] border-[var(--slate-4)] hover:bg-[var(--slate-5)] dark:border-[var(--sky-5)] dark:bg-[var(--sky-6)] dark:text-[var(--sky-12)] text-[var(--slate-12)] rounded-tl rounded-br-lg absolute right-0 bottom-0 text-xs px-1.5 py-0.5 font-mono"
+ className="bg-(--slate-4) border-(--slate-4) hover:bg-(--slate-5) dark:border-(--sky-5) dark:bg-(--sky-6) dark:text-(--sky-12) text-(--slate-12) rounded-tl rounded-br-lg absolute right-0 bottom-0 text-xs px-1.5 py-0.5 font-mono"
/>
</div>
</div>
@@ -232,7 +232,7 @@ const StdInput = (props: {
autoComplete="off"
autoFocus={true}
icon={<ChevronRightIcon className="w-5 h-5" />}
- className="m-0 h-8 focus-visible:shadow-xsSolid"
+ className="m-0 h-8 focus-visible:shadow-xs-solid"
placeholder="stdin"
// Capture the keydown event to prevent default behavior
onKeyDownCapture={(e) => {
@@ -260,7 +260,7 @@ const StdInputWithResponse = (props: { output: string; response?: string }) => {
return (
<div className="flex gap-2 items-center">
{renderText(props.output)}
- <span className="text-[var(--sky-11)]">{props.response}</span>
+ <span className="text-(--sky-11)">{props.response}</span>
</div>
);
};
diff --git a/frontend/src/components/editor/output/MarimoTracebackOutput.tsx b/frontend/src/components/editor/output/MarimoTracebackOutput.tsx
index 43d9002abb..ff2a8e1fa5 100644
--- a/frontend/src/components/editor/output/MarimoTracebackOutput.tsx
+++ b/frontend/src/components/editor/output/MarimoTracebackOutput.tsx
@@ -87,7 +87,7 @@ export const MarimoTracebackOutput = ({
>
<ChevronDown
className={cn(
- "h-4 w-4 text-muted-foreground transition-transform duration-200 flex-shrink-0",
+ "h-4 w-4 text-muted-foreground transition-transform duration-200 shrink-0",
expanded ? "rotate-180" : "rotate-0",
)}
/>
diff --git a/frontend/src/components/editor/output/Outputs.css b/frontend/src/components/editor/output/Outputs.css
index e750a3d89f..250e731e97 100644
--- a/frontend/src/components/editor/output/Outputs.css
+++ b/frontend/src/components/editor/output/Outputs.css
@@ -1,3 +1,5 @@
+@reference "../../../css/globals.css";
+
.output,
.media,
.stdout,
diff --git a/frontend/src/components/editor/package-alert.tsx b/frontend/src/components/editor/package-alert.tsx
index 16fc3b054b..a708006fda 100644
--- a/frontend/src/components/editor/package-alert.tsx
+++ b/frontend/src/components/editor/package-alert.tsx
@@ -92,7 +92,7 @@ export const PackageAlert: React.FC = () => {
if (isMissingPackageAlert(packageAlert)) {
return (
- <div className="flex flex-col gap-4 mb-5 fixed top-5 left-12 min-w-[400px] z-[200] opacity-95">
+ <div className="flex flex-col gap-4 mb-5 fixed top-5 left-12 min-w-[400px] z-200 opacity-95">
<Banner
kind="danger"
className="flex flex-col rounded py-3 px-5 animate-in slide-in-from-left"
@@ -200,7 +200,7 @@ export const PackageAlert: React.FC = () => {
}
return (
- <div className="flex flex-col gap-4 mb-5 fixed top-5 left-12 min-w-[400px] z-[200] opacity-95">
+ <div className="flex flex-col gap-4 mb-5 fixed top-5 left-12 min-w-[400px] z-200 opacity-95">
<Banner
kind={status === "failed" ? "danger" : "info"}
className="flex flex-col rounded pt-3 pb-4 px-5"
@@ -519,7 +519,7 @@ const ExtrasSelector: React.FC<ExtrasSelectorProps> = ({
)}
title={canSelectExtras ? "Add extras" : "Loading extras..."}
>
- <PlusIcon className="w-3 h-3 flex-shrink-0" />
+ <PlusIcon className="w-3 h-3 shrink-0" />
</button>
</DropdownMenuTrigger>
<DropdownMenuContent
diff --git a/frontend/src/components/editor/renderers/CellArray.tsx b/frontend/src/components/editor/renderers/CellArray.tsx
index c1bd6a8687..984ef22e2d 100644
--- a/frontend/src/components/editor/renderers/CellArray.tsx
+++ b/frontend/src/components/editor/renderers/CellArray.tsx
@@ -272,7 +272,7 @@ const AddCellButtons: React.FC<{
})
}
>
- <SquareCodeIcon className="mr-2 size-4 flex-shrink-0" />
+ <SquareCodeIcon className="mr-2 size-4 shrink-0" />
Python
</Button>
<Button
@@ -291,7 +291,7 @@ const AddCellButtons: React.FC<{
});
}}
>
- <SquareMIcon className="mr-2 size-4 flex-shrink-0" />
+ <SquareMIcon className="mr-2 size-4 shrink-0" />
Markdown
</Button>
<Button
@@ -309,7 +309,7 @@ const AddCellButtons: React.FC<{
});
}}
>
- <DatabaseIcon className="mr-2 size-4 flex-shrink-0" />
+ <DatabaseIcon className="mr-2 size-4 shrink-0" />
SQL
</Button>
<Tooltip
@@ -326,7 +326,7 @@ const AddCellButtons: React.FC<{
disabled={!aiEnabled || !isConnected}
onClick={isAiButtonOpenActions.toggle}
>
- <SparklesIcon className="mr-2 size-4 flex-shrink-0" />
+ <SparklesIcon className="mr-2 size-4 shrink-0" />
Generate with AI
</Button>
</Tooltip>
@@ -341,7 +341,7 @@ const AddCellButtons: React.FC<{
"shadow-sm border border-border rounded transition-all duration-200 overflow-hidden divide-x divide-border flex",
!isAiButtonOpen && "w-fit",
isAiButtonOpen &&
- "opacity-100 w-full max-w-4xl shadow-lg shadow-[var(--blue-3)]",
+ "opacity-100 w-full max-w-4xl shadow-lg shadow-(--blue-3)",
className,
)}
>
diff --git a/frontend/src/components/editor/renderers/grid-layout/grid-layout.tsx b/frontend/src/components/editor/renderers/grid-layout/grid-layout.tsx
index 107f5b39fd..4a8145b3b9 100644
--- a/frontend/src/components/editor/renderers/grid-layout/grid-layout.tsx
+++ b/frontend/src/components/editor/renderers/grid-layout/grid-layout.tsx
@@ -146,7 +146,7 @@ export const GridLayoutRenderer: React.FC<Props> = ({
className={cn(
"w-full mx-auto bg-background flex-1 min-h-full",
// Show grid border and background when editing
- enableInteractions && "bg-[var(--slate-2)] border-r",
+ enableInteractions && "bg-(--slate-2) border-r",
// Disable animations and add padding when reading
isReading && "disable-animation",
!layout.maxWidth && "min-w-[800px]",
@@ -287,15 +287,11 @@ export const GridLayoutRenderer: React.FC<Props> = ({
setIsLocked={setIsLocked}
/>
<div className={cn("relative flex z-10 flex-1 overflow-hidden")}>
- <div
- className={cn(
- "flex-grow overflow-auto transparent-when-disconnected",
- )}
- >
+ <div className={cn("grow overflow-auto transparent-when-disconnected")}>
{grid}
</div>
- <div className="flex-none flex flex-col w-[300px] p-2 pb-20 gap-2 overflow-auto bg-[var(--slate-2)] border-t border-x rounded-t shadow-sm transparent-when-disconnected mx-2 mt-4">
- <div className="text font-bold text-[var(--slate-20)] flex-shrink-0">
+ <div className="flex-none flex flex-col w-[300px] p-2 pb-20 gap-2 overflow-auto bg-(--slate-2) border-t border-x rounded-t shadow-sm transparent-when-disconnected mx-2 mt-4">
+ <div className="text font-bold text-(--slate-20) shrink-0">
Outputs
</div>
{notInGrid.map((cell) => (
@@ -320,7 +316,7 @@ export const GridLayoutRenderer: React.FC<Props> = ({
}}
className={cn(
DRAG_HANDLE,
- "droppable-element bg-background border-border border overflow-hidden p-2 rounded flex-shrink-0",
+ "droppable-element bg-background border-border border overflow-hidden p-2 rounded shrink-0",
)}
>
<GridCell
@@ -530,10 +526,10 @@ const EditableGridCell = React.forwardRef(
className={cn(
className,
"relative z-10 hover:z-20",
- "bg-background border-transparent hover:border-[var(--sky-8)] border",
- popoverOpened && "border-[var(--sky-8)] z-20",
+ "bg-background border-transparent hover:border-(--sky-8) border",
+ popoverOpened && "border-(--sky-8) z-20",
!popoverOpened && "hover-actions-parent",
- isDragging && "bg-[var(--slate-2)] border-border z-20",
+ isDragging && "bg-(--slate-2) border-border z-20",
)}
>
{children}
@@ -589,7 +585,7 @@ const GridHoverActions: React.FC<GridHoverActionsProps> = ({
return (
<div
className={cn(
- "absolute right-0 p-1 bg-[var(--sky-8)] text-white h-6 z-10 flex gap-2",
+ "absolute right-0 p-1 bg-(--sky-8) text-white h-6 z-10 flex gap-2",
!popoverOpened && "hover-action",
display === "top" && "-top-6 rounded-t",
display === "bottom" && "-bottom-6 rounded-b",
diff --git a/frontend/src/components/editor/renderers/vertical-layout/sidebar/sidebar.css b/frontend/src/components/editor/renderers/vertical-layout/sidebar/sidebar.css
index aaac119ace..855d4583b7 100644
--- a/frontend/src/components/editor/renderers/vertical-layout/sidebar/sidebar.css
+++ b/frontend/src/components/editor/renderers/vertical-layout/sidebar/sidebar.css
@@ -1,3 +1,5 @@
+@reference "../../../../../css/globals.css";
+
/* Improve markdown when in the sidebar */
.app-sidebar .markdown {
display: block;
diff --git a/frontend/src/components/editor/renderers/vertical-layout/vertical-layout-wrapper.tsx b/frontend/src/components/editor/renderers/vertical-layout/vertical-layout-wrapper.tsx
index 879fb448e2..af7c1ae0c2 100644
--- a/frontend/src/components/editor/renderers/vertical-layout/vertical-layout-wrapper.tsx
+++ b/frontend/src/components/editor/renderers/vertical-layout/vertical-layout-wrapper.tsx
@@ -28,9 +28,10 @@ export const VerticalLayoutWrapper: React.FC<PropsWithChildren<Props>> = ({
className={cn(
// Large mobile bottom padding due to mobile browser navigation bar
"m-auto pb-24 sm:pb-12",
- appConfig.width === "compact" && "max-w-contentWidth min-w-[400px]",
+ appConfig.width === "compact" &&
+ "max-w-(--content-width) min-w-[400px]",
appConfig.width === "medium" &&
- "max-w-contentWidthMedium min-w-[400px]",
+ "max-w-(--content-width-medium) min-w-[400px]",
appConfig.width === "columns" && "w-fit",
appConfig.width === "full" && "max-w-full",
// Hide the cells for a fake loading effect, to avoid flickering
diff --git a/frontend/src/components/editor/renderers/vertical-layout/vertical-layout.tsx b/frontend/src/components/editor/renderers/vertical-layout/vertical-layout.tsx
index 3f696398fe..0faa17ef1b 100644
--- a/frontend/src/components/editor/renderers/vertical-layout/vertical-layout.tsx
+++ b/frontend/src/components/editor/renderers/vertical-layout/vertical-layout.tsx
@@ -123,7 +123,7 @@ const VerticalLayoutRenderer: React.FC<VerticalLayoutProps> = ({
{sortedColumns.map(([columnIndex, columnCells]) => (
<div
key={columnIndex}
- className="flex-1 flex flex-col gap-2 w-contentWidth"
+ className="flex-1 flex flex-col gap-2 w-(--content-width)"
>
{columnCells.map(renderCell)}
</div>
diff --git a/frontend/src/components/editor/stdin-blocking-alert.tsx b/frontend/src/components/editor/stdin-blocking-alert.tsx
index d1fde59f1b..d9dc2f0b51 100644
--- a/frontend/src/components/editor/stdin-blocking-alert.tsx
+++ b/frontend/src/components/editor/stdin-blocking-alert.tsx
@@ -49,7 +49,7 @@ export const StdinBlockingAlert: React.FC = () => {
}
const body = (
- <div className="flex flex-col gap-4 mb-5 fixed top-5 left-1/2 transform -translate-x-1/2 z-[200] opacity-95">
+ <div className="flex flex-col gap-4 mb-5 fixed top-5 left-1/2 transform -translate-x-1/2 z-200 opacity-95">
<Banner
kind="info"
className="flex flex-col rounded py-2 px-4 animate-in slide-in-from-top w-fit"
diff --git a/frontend/src/components/find-replace/find-replace.tsx b/frontend/src/components/find-replace/find-replace.tsx
index a478c4a965..62eea6ef3d 100644
--- a/frontend/src/components/find-replace/find-replace.tsx
+++ b/frontend/src/components/find-replace/find-replace.tsx
@@ -114,7 +114,7 @@ export const FindReplace: React.FC = () => {
e.preventDefault();
}}
onBlur={() => setIsFocused(false)}
- className="fixed top-0 right-0 w-[500px] flex flex-col bg-[var(--sage-1)] p-4 z-50 mt-2 mr-3 rounded-md shadow-lg border gap-2 print:hidden"
+ className="fixed top-0 right-0 w-[500px] flex flex-col bg-(--sage-1) p-4 z-50 mt-2 mr-3 rounded-md shadow-lg border gap-2 print:hidden"
onKeyDown={(e) => {
if (e.key === "Escape") {
dispatch({ type: "setIsOpen", isOpen: false });
diff --git a/frontend/src/components/icons/copy-icon.tsx b/frontend/src/components/icons/copy-icon.tsx
index 5d06dd2ac2..3fa2a8185e 100644
--- a/frontend/src/components/icons/copy-icon.tsx
+++ b/frontend/src/components/icons/copy-icon.tsx
@@ -37,7 +37,7 @@ export const CopyClipboardIcon: React.FC<Props> = ({
const button = (
<button type="button" onClick={handleCopy} aria-label="Copy to clipboard">
{isCopied ? (
- <CheckIcon className={cn(className, "text-[var(--grass-11)]")} />
+ <CheckIcon className={cn(className, "text-(--grass-11)")} />
) : (
<Copy className={className} />
)}
diff --git a/frontend/src/components/icons/multi-icon.css b/frontend/src/components/icons/multi-icon.css
index 5657538ca4..cc272d8eb3 100644
--- a/frontend/src/components/icons/multi-icon.css
+++ b/frontend/src/components/icons/multi-icon.css
@@ -1,3 +1,5 @@
+@reference "../../css/globals.css";
+
.multi-icon .second-icon {
@apply bg-background;
}
diff --git a/frontend/src/components/pages/home-page.tsx b/frontend/src/components/pages/home-page.tsx
index 4bec24091e..464abb80a7 100644
--- a/frontend/src/components/pages/home-page.tsx
+++ b/frontend/src/components/pages/home-page.tsx
@@ -200,7 +200,7 @@ const WorkspaceNotebooks: React.FC = () => {
/>
{isFetching && <Spinner size="small" />}
</Header>
- <div className="flex flex-col divide-y divide-[var(--slate-3)] border rounded overflow-hidden max-h-[48rem] overflow-y-auto shadow-sm bg-background">
+ <div className="flex flex-col divide-y divide-(--slate-3) border rounded overflow-hidden max-h-192 overflow-y-auto shadow-sm bg-background">
<NotebookFileTree searchText={searchText} files={workspace.files} />
</div>
</div>
@@ -288,7 +288,7 @@ const Node = ({ node, style }: NodeRendererProps<FileInfo>) => {
: guessFileType(node.data.name);
const Icon = FILE_TYPE_ICONS[fileType];
- const iconEl = <Icon className="w-5 h-5 flex-shrink-0" strokeWidth={1.5} />;
+ const iconEl = <Icon className="w-5 h-5 shrink-0" strokeWidth={1.5} />;
const root = use(WorkspaceRootContext);
const renderItem = () => {
@@ -352,13 +352,13 @@ const Node = ({ node, style }: NodeRendererProps<FileInfo>) => {
const FolderArrow = ({ node }: { node: NodeApi<FileInfo> }) => {
if (!node.data.isDirectory) {
- return <span className="w-5 h-5 flex-shrink-0" />;
+ return <span className="w-5 h-5 shrink-0" />;
}
return node.isOpen ? (
- <ChevronDownIcon className="w-5 h-5 flex-shrink-0" />
+ <ChevronDownIcon className="w-5 h-5 shrink-0" />
) : (
- <ChevronRightIcon className="w-5 h-5 flex-shrink-0" />
+ <ChevronRightIcon className="w-5 h-5 shrink-0" />
);
};
@@ -373,7 +373,7 @@ const NotebookList: React.FC<{
return (
<div className="flex flex-col gap-2">
{header}
- <div className="flex flex-col divide-y divide-[var(--slate-3)] border rounded overflow-hidden max-h-[48rem] overflow-y-auto shadow-sm bg-background">
+ <div className="flex flex-col divide-y divide-(--slate-3) border rounded overflow-hidden max-h-192 overflow-y-auto shadow-sm bg-background">
{files.map((file) => {
return <MarimoFileComponent key={file.path} file={file} />;
})}
@@ -394,7 +394,7 @@ const MarimoFileComponent = ({ file }: { file: MarimoFile }) => {
return (
<a
- className="py-1.5 px-4 hover:bg-[var(--blue-2)] hover:text-primary transition-all duration-300 cursor-pointer group relative flex gap-4 items-center"
+ className="py-1.5 px-4 hover:bg-(--blue-2) hover:text-primary transition-all duration-300 cursor-pointer group relative flex gap-4 items-center"
key={file.path}
href={href.toString()}
target={tabTarget(file.initializationId || file.path)}
@@ -410,7 +410,7 @@ const MarimoFileComponent = ({ file }: { file: MarimoFile }) => {
</span>
<p
title={file.path}
- className="text-sm text-muted-foreground overflow-hidden whitespace-nowrap overflow-ellipsis"
+ className="text-sm text-muted-foreground overflow-hidden whitespace-nowrap text-ellipsis"
>
{file.path}
</p>
@@ -451,7 +451,7 @@ const SessionShutdownButton: React.FC<{ filePath: string }> = ({
<Button
size={"icon"}
variant="outline"
- className="opacity-80 hover:opacity-100 hover:bg-accent text-destructive border-destructive hover:border-destructive hover:text-destructive bg-background hover:bg-[var(--red-1)]"
+ className="opacity-80 hover:opacity-100 hover:bg-accent text-destructive border-destructive hover:border-destructive hover:text-destructive bg-background hover:bg-(--red-1)"
onClick={(e) => {
e.stopPropagation();
e.preventDefault();
@@ -496,7 +496,7 @@ const CreateNewNotebook: React.FC = () => {
return (
<a
className="relative rounded-lg p-6 group
- text-primary hover:bg-[var(--blue-2)] shadow-mdSolid shadow-accent border bg-[var(--blue-1)]
+ text-primary hover:bg-(--blue-2) shadow-md-solid shadow-accent border bg-(--blue-1)
transition-all duration-300 cursor-pointer
"
href={url}
diff --git a/frontend/src/components/pages/run-page.tsx b/frontend/src/components/pages/run-page.tsx
index 2fe7c67ee1..fec8363cf4 100644
--- a/frontend/src/components/pages/run-page.tsx
+++ b/frontend/src/components/pages/run-page.tsx
@@ -43,7 +43,7 @@ const Watermark = () => {
<a
href={Constants.githubPage}
target="_blank"
- className="text-sm text-[var(--grass-11)] font-bold tracking-wide transition-colors bg-[var(--grass-4)] hover:bg-[var(--grass-5)] border-t border-l border-[var(--grass-8)] px-3 py-1 rounded-tl-md flex items-center gap-2"
+ className="text-sm text-(--grass-11) font-bold tracking-wide transition-colors bg-(--grass-4) hover:bg-(--grass-5) border-t border-l border-(--grass-8) px-3 py-1 rounded-tl-md flex items-center gap-2"
>
<span>made with marimo</span>
<img src={marimoIcon} alt="marimo" className="h-4 w-auto" />
diff --git a/frontend/src/components/scratchpad/scratchpad.tsx b/frontend/src/components/scratchpad/scratchpad.tsx
index aa2eecb085..4d4f4d90cf 100644
--- a/frontend/src/components/scratchpad/scratchpad.tsx
+++ b/frontend/src/components/scratchpad/scratchpad.tsx
@@ -128,7 +128,7 @@ export const ScratchPad: React.FC = () => {
// so we don't have to re-render the entire editor and outputs.
return (
<>
- <div className="overflow-auto flex-shrink-0 max-h-[40%]">
+ <div className="overflow-auto shrink-0 max-h-[40%]">
<CellEditor
theme={theme}
showPlaceholder={false}
@@ -149,7 +149,7 @@ export const ScratchPad: React.FC = () => {
setLanguageAdapter={setLanguageAdapter}
/>
</div>
- <div className="flex-1 overflow-auto flex-shrink-0">
+ <div className="flex-1 overflow-auto shrink-0">
<OutputArea
allowExpand={false}
output={output}
@@ -159,7 +159,7 @@ export const ScratchPad: React.FC = () => {
loading={false}
/>
</div>
- <div className="overflow-auto flex-shrink-0 max-h-[35%]">
+ <div className="overflow-auto shrink-0 max-h-[35%]">
<ConsoleOutput
consoleOutputs={consoleOutputs}
className="overflow-auto"
@@ -218,14 +218,14 @@ export const ScratchPad: React.FC = () => {
scratchpad aren't saved to notebook memory, and the code is not saved in
the notebook file.
</p>
- <div className="flex items-center flex-shrink-0">
+ <div className="flex items-center shrink-0">
<Tooltip content={renderShortcut("cell.run")}>
<Button
data-testid="scratchpad-run-button"
onClick={handleRun}
disabled={historyVisible}
variant="text"
- // className="bg-[var(--grass-3)] hover:bg-[var(--grass-4)] rounded-none"
+ // className="bg-(--grass-3) hover:bg-(--grass-4) rounded-none"
size="xs"
>
<PlayIcon color="var(--grass-11)" size={16} />
@@ -263,7 +263,7 @@ export const ScratchPad: React.FC = () => {
<Button
size="xs"
variant="text"
- className={cn(historyVisible && "bg-[var(--sky-3)] rounded-none")}
+ className={cn(historyVisible && "bg-(--sky-3) rounded-none")}
onClick={() => setHistoryVisible(!historyVisible)}
disabled={history.length === 0}
>
diff --git a/frontend/src/components/static-html/static-banner.tsx b/frontend/src/components/static-html/static-banner.tsx
index 95f5129399..47263bf932 100644
--- a/frontend/src/components/static-html/static-banner.tsx
+++ b/frontend/src/components/static-html/static-banner.tsx
@@ -36,7 +36,7 @@ export const StaticBanner: React.FC = () => {
return (
<div
- className="px-4 py-2 bg-[var(--sky-2)] border-b border-[var(--sky-7)] text-[var(--sky-11)] flex justify-between items-center gap-4 no-print text-sm"
+ className="px-4 py-2 bg-(--sky-2) border-b border-(--sky-7) text-(--sky-11) flex justify-between items-center gap-4 no-print text-sm"
data-testid="static-notebook-banner"
>
<span>
@@ -44,13 +44,13 @@ export const StaticBanner: React.FC = () => {
<a
href={Constants.githubPage}
target="_blank"
- className="text-[var(--sky-11)] font-medium underline"
+ className="text-(--sky-11) font-medium underline"
>
marimo
</a>{" "}
notebook - Run or edit for full interactivity
</span>
- <span className="flex-shrink-0">
+ <span className="shrink-0">
<StaticBannerDialog code={code} />
</span>
</div>
@@ -88,15 +88,15 @@ const StaticBannerDialog = ({ code }: { code: string }) => {
<a
href={Constants.githubPage}
target="_blank"
- className="text-[var(--sky-11)] hover:underline font-medium"
+ className="text-(--sky-11) hover:underline font-medium"
>
marimo
</a>{" "}
notebook. To run interactively:
</p>
- <div className="rounded-lg p-3 border bg-[var(--sky-2)] border-[var(--sky-7)]">
- <div className="font-mono text-[var(--sky-11)] leading-relaxed">
+ <div className="rounded-lg p-3 border bg-(--sky-2) border-(--sky-7)">
+ <div className="font-mono text-(--sky-11) leading-relaxed">
pip install marimo
<br />
marimo edit {filename}
@@ -104,29 +104,29 @@ const StaticBannerDialog = ({ code }: { code: string }) => {
</div>
{!href.endsWith(".html") && (
- <div className="rounded-lg p-3 border bg-[var(--sky-2)] border-[var(--sky-7)]">
- <div className="text-sm text-[var(--sky-12)] mb-1">
+ <div className="rounded-lg p-3 border bg-(--sky-2) border-(--sky-7)">
+ <div className="text-sm text-(--sky-12) mb-1">
Or run directly from URL:
</div>
- <div className="font-mono text-[var(--sky-11)] break-all">
+ <div className="font-mono text-(--sky-11) break-all">
marimo edit {window.location.href}
</div>
</div>
)}
- <div className="pt-3 border-t border-[var(--sky-7)]">
- <p className="text-sm text-[var(--sky-12)] mb-2">
+ <div className="pt-3 border-t border-(--sky-7)">
+ <p className="text-sm text-(--sky-12) mb-2">
<strong>Try in browser with WebAssembly:</strong>{" "}
<a
href={wasmLink}
target="_blank"
- className="text-[var(--sky-11)] hover:underline break-all"
+ className="text-(--sky-11) hover:underline break-all"
rel="noreferrer"
>
{wasmLink.slice(0, 50)}...
</a>
</p>
- <p className="text-sm text-[var(--sky-12)]">
+ <p className="text-sm text-(--sky-12)">
Note: WebAssembly may not work for all notebooks. Additionally,
some dependencies may not be available in the browser.
</p>
diff --git a/frontend/src/components/terminal/terminal.tsx b/frontend/src/components/terminal/terminal.tsx
index 9d6f072787..4649145279 100644
--- a/frontend/src/components/terminal/terminal.tsx
+++ b/frontend/src/components/terminal/terminal.tsx
@@ -101,7 +101,7 @@ const TerminalComponent: React.FC<{
}, []);
return (
- <div className="relative w-full h-[calc(100%-4px)] dark bg-[var(--slate-1)]">
+ <div className="relative w-full h-[calc(100%-4px)] dark bg-(--slate-1)">
<div className="w-full h-full" ref={terminalRef} />
</div>
);
diff --git a/frontend/src/components/tracing/tracing.tsx b/frontend/src/components/tracing/tracing.tsx
index 085362c85f..a3f7b229dc 100644
--- a/frontend/src/components/tracing/tracing.tsx
+++ b/frontend/src/components/tracing/tracing.tsx
@@ -359,23 +359,23 @@ const TraceRow: React.FC<TraceRowProps> = ({
return (
<div
className={cn(
- "flex flex-row gap-2 py-1 px-1 opacity-70 hover:bg-[var(--gray-3)] hover:opacity-100",
- hovered && "bg-[var(--gray-3)] opacity-100",
+ "flex flex-row gap-2 py-1 px-1 opacity-70 hover:bg-(--gray-3) hover:opacity-100",
+ hovered && "bg-(--gray-3) opacity-100",
)}
onMouseEnter={handleMouseEnter}
onMouseLeave={handleMouseLeave}
>
- <span className="text-[var(--gray-10)] dark:text-[var(--gray-11)]">
+ <span className="text-(--gray-10) dark:text-(--gray-11)">
[{formatLogTimestamp(cellRun.startTime)}]
</span>
- <span className="text-[var(--gray-10)] w-16">
+ <span className="text-(--gray-10) w-16">
(<CellLink cellId={cellRun.cellId} />)
</span>
<span className="w-40 truncate -ml-1">{cellRun.code}</span>
<div className="flex flex-row gap-1 w-16 justify-end -ml-2">
<Tooltip content={elapsedTimeTooltip}>
- <span className="text-[var(--gray-10)] dark:text-[var(--gray-11)]">
+ <span className="text-(--gray-10) dark:text-(--gray-11)">
{elapsedTimeStr}
</span>
</Tooltip>
diff --git a/frontend/src/components/ui/alert-dialog.tsx b/frontend/src/components/ui/alert-dialog.tsx
index 1ed1591415..c4405088ae 100644
--- a/frontend/src/components/ui/alert-dialog.tsx
+++ b/frontend/src/components/ui/alert-dialog.tsx
@@ -31,7 +31,7 @@ const AlertDialogOverlay = React.forwardRef<
>(({ className, children, ...props }, ref) => (
<AlertDialogPrimitive.Overlay
className={cn(
- "fixed inset-0 z-50 bg-background/80 backdrop-blur-sm transition-opacity animate-in fade-in",
+ "fixed inset-0 z-50 bg-background/80 backdrop-blur-xs transition-opacity animate-in fade-in",
className,
)}
{...props}
diff --git a/frontend/src/components/ui/alert.tsx b/frontend/src/components/ui/alert.tsx
index 0777c93ede..f5b12b0315 100644
--- a/frontend/src/components/ui/alert.tsx
+++ b/frontend/src/components/ui/alert.tsx
@@ -13,7 +13,7 @@ const alertVariants = cva(
default: "bg-background text-foreground",
destructive:
"text-destructive border-destructive/50 dark:border-destructive [&>svg]:text-destructive text-destructive",
- info: "bg-[var(--sky-2)] border-[var(--sky-7)] text-[var(--sky-11)]",
+ info: "bg-(--sky-2) border-(--sky-7) text-(--sky-11)",
},
},
defaultVariants: {
diff --git a/frontend/src/components/ui/aria-popover.tsx b/frontend/src/components/ui/aria-popover.tsx
index 2770dacb1c..fc474a3f16 100644
--- a/frontend/src/components/ui/aria-popover.tsx
+++ b/frontend/src/components/ui/aria-popover.tsx
@@ -17,11 +17,11 @@ const Popover = ({ className, offset = 4, ...props }: AriaPopoverProps) => (
offset={offset}
className={composeRenderProps(className, (className) =>
cn(
- "z-50 rounded-md border bg-popover text-popover-foreground shadow-md outline-none",
+ "z-50 rounded-md border bg-popover text-popover-foreground shadow-md outline-hidden",
/* Entering */
- "data-[entering]:animate-in data-[entering]:fade-in-0 data-[entering]:zoom-in-95",
+ "data-entering:animate-in data-entering:fade-in-0 data-entering:zoom-in-95",
/* Exiting */
- "data-[exiting]:animate-out data-[exiting]:fade-out-0 data-[exiting]:zoom-out-95",
+ "data-exiting:animate-out data-exiting:fade-out-0 data-exiting:zoom-out-95",
/* Placement */
"data-[placement=bottom]:slide-in-from-top-2 data-[placement=left]:slide-in-from-right-2 data-[placement=right]:slide-in-from-left-2 data-[placement=top]:slide-in-from-bottom-2",
className,
@@ -33,7 +33,10 @@ const Popover = ({ className, offset = 4, ...props }: AriaPopoverProps) => (
const PopoverDialog = ({ className, ...props }: AriaDialogProps) => {
return (
- <AriaDialog className={cn("p-4 outline outline-0", className)} {...props} />
+ <AriaDialog
+ className={cn("p-4 outline-solid outline-0", className)}
+ {...props}
+ />
);
};
diff --git a/frontend/src/components/ui/badge.tsx b/frontend/src/components/ui/badge.tsx
index 648dbb8f44..5d71700eae 100644
--- a/frontend/src/components/ui/badge.tsx
+++ b/frontend/src/components/ui/badge.tsx
@@ -6,20 +6,19 @@ import * as React from "react";
import { cn } from "@/utils/cn";
const badgeVariants = cva(
- "inline-flex items-center border rounded-full px-2 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",
+ "inline-flex items-center border rounded-full px-2 py-0.5 text-xs font-semibold transition-colors focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2",
{
variants: {
variant: {
default:
"bg-primary hover:bg-primary/60 border-transparent text-primary-foreground",
- defaultOutline:
- "bg-[var(--blue-2)] border-[var(--blue-8)] text-[var(--blue-11)]",
+ defaultOutline: "bg-(--blue-2) border-(--blue-8) text-(--blue-11)",
secondary:
"bg-secondary hover:bg-secondary/80 border-transparent text-secondary-foreground",
destructive:
- "bg-[var(--red-2)] border-[var(--red-6)] text-[var(--red-9)] hover:bg-[var(--red-3)]",
+ "bg-(--red-2) border-(--red-6) text-(--red-9) hover:bg-(--red-3)",
success:
- "bg-[var(--grass-2)] border-[var(--grass-5)] text-[var(--grass-9)] hover:bg-[var(--grass-3)]",
+ "bg-(--grass-2) border-(--grass-5) text-(--grass-9) hover:bg-(--grass-3)",
outline: "text-foreground",
},
},
diff --git a/frontend/src/components/ui/button.tsx b/frontend/src/components/ui/button.tsx
index ba8fd7b33d..8464a0f175 100644
--- a/frontend/src/components/ui/button.tsx
+++ b/frontend/src/components/ui/button.tsx
@@ -13,7 +13,7 @@ const activeCommon = "active:shadow-none";
const buttonVariants = cva(
cn(
"disabled:opacity-50 disabled:pointer-events-none",
- "inline-flex items-center justify-center rounded-md text-sm font-medium focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-2 ring-offset-background",
+ "inline-flex items-center justify-center rounded-md text-sm font-medium focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-2 ring-offset-background",
),
{
variants: {
@@ -24,23 +24,23 @@ const buttonVariants = cva(
),
destructive: cn(
"border shadow-xs",
- "bg-[var(--red-9)] hover:bg-[var(--red-10)] dark:bg-[var(--red-6)] dark:hover:bg-[var(--red-7)]",
- "text-[var(--red-1)] dark:text-[var(--red-12)]",
- "border-[var(--red-11)]",
+ "bg-(--red-9) hover:bg-(--red-10) dark:bg-(--red-6) dark:hover:bg-(--red-7)",
+ "text-(--red-1) dark:text-(--red-12)",
+ "border-(--red-11)",
activeCommon,
),
success: cn(
"border shadow-xs",
- "bg-[var(--grass-9)] hover:bg-[var(--grass-10)] dark:bg-[var(--grass-6)] dark:hover:bg-[var(--grass-7)]",
- "text-[var(--grass-1)] dark:text-[var(--grass-12)]",
- "border-[var(--grass-11)]",
+ "bg-(--grass-9) hover:bg-(--grass-10) dark:bg-(--grass-6) dark:hover:bg-(--grass-7)",
+ "text-(--grass-1) dark:text-(--grass-12)",
+ "border-(--grass-11)",
activeCommon,
),
warn: cn(
"border shadow-xs",
- "bg-[var(--yellow-9)] hover:bg-[var(--yellow-10)] dark:bg-[var(--yellow-6)] dark:hover:bg-[var(--yellow-7)]",
- "text-[var(--yellow-12)]",
- "border-[var(--yellow-11)]",
+ "bg-(--yellow-9) hover:bg-(--yellow-10) dark:bg-(--yellow-6) dark:hover:bg-(--yellow-7)",
+ "text-(--yellow-12)",
+ "border-(--yellow-11)",
activeCommon,
),
action: cn(
diff --git a/frontend/src/components/ui/calendar.tsx b/frontend/src/components/ui/calendar.tsx
index 6ae114a277..42615c5967 100644
--- a/frontend/src/components/ui/calendar.tsx
+++ b/frontend/src/components/ui/calendar.tsx
@@ -41,7 +41,7 @@ const CalendarHeading = (props: React.HTMLAttributes<HTMLElement>) => {
buttonVariants({ variant: "outline" }),
"size-7 bg-transparent p-0 opacity-50",
/* Hover */
- "data-[hovered]:opacity-100",
+ "data-hovered:opacity-100",
)}
>
{direction === "rtl" ? (
@@ -57,7 +57,7 @@ const CalendarHeading = (props: React.HTMLAttributes<HTMLElement>) => {
buttonVariants({ variant: "outline" }),
"size-7 bg-transparent p-0 opacity-50",
/* Hover */
- "data-[hovered]:opacity-100",
+ "data-hovered:opacity-100",
)}
>
{direction === "rtl" ? (
@@ -116,14 +116,14 @@ const CalendarCell = ({ className, ...props }: AriaCalendarCellProps) => {
renderProps.isDisabled && "text-muted-foreground opacity-50",
/* Selected */
renderProps.isSelected &&
- "bg-primary text-primary-foreground data-[focused]:bg-primary data-[focused]:text-primary-foreground",
+ "bg-primary text-primary-foreground data-focused:bg-primary data-focused:text-primary-foreground",
/* Hover */
renderProps.isHovered &&
renderProps.isSelected &&
(renderProps.isSelectionStart ||
renderProps.isSelectionEnd ||
!isRange) &&
- "data-[hovered]:bg-primary data-[hovered]:text-primary-foreground",
+ "data-hovered:bg-primary data-hovered:text-primary-foreground",
/* Selection Start/End */
renderProps.isSelected &&
isRange &&
@@ -132,7 +132,7 @@ const CalendarCell = ({ className, ...props }: AriaCalendarCellProps) => {
"rounded-none bg-accent text-accent-foreground",
/* Outside Month */
renderProps.isOutsideMonth &&
- "text-muted-foreground opacity-50 data-[selected]:bg-accent/50 data-[selected]:text-muted-foreground data-[selected]:opacity-30",
+ "text-muted-foreground opacity-50 data-selected:bg-accent/50 data-selected:text-muted-foreground data-selected:opacity-30",
/* Current Date */
renderProps.date.compare(today(getLocalTimeZone())) === 0 &&
!renderProps.isSelected &&
@@ -140,7 +140,7 @@ const CalendarCell = ({ className, ...props }: AriaCalendarCellProps) => {
/* Unavailable Date */
renderProps.isUnavailable && "cursor-default text-destructive ",
renderProps.isInvalid &&
- "bg-destructive text-destructive-foreground data-[focused]:bg-destructive data-[hovered]:bg-destructive data-[focused]:text-destructive-foreground data-[hovered]:text-destructive-foreground",
+ "bg-destructive text-destructive-foreground data-focused:bg-destructive data-hovered:bg-destructive data-focused:text-destructive-foreground data-hovered:text-destructive-foreground",
className,
),
)}
diff --git a/frontend/src/components/ui/checkbox.tsx b/frontend/src/components/ui/checkbox.tsx
index 98b8c90013..4a21be04e8 100644
--- a/frontend/src/components/ui/checkbox.tsx
+++ b/frontend/src/components/ui/checkbox.tsx
@@ -13,7 +13,7 @@ const Checkbox = React.forwardRef<
<CheckboxPrimitive.Root
ref={ref}
className={cn(
- "flex items-center justify-center peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",
+ "flex items-center justify-center peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",
className,
)}
{...props}
diff --git a/frontend/src/components/ui/combobox.tsx b/frontend/src/components/ui/combobox.tsx
index 446b273c2c..aa3b459533 100644
--- a/frontend/src/components/ui/combobox.tsx
+++ b/frontend/src/components/ui/combobox.tsx
@@ -170,17 +170,17 @@ export const Combobox = <TValue,>({
<PopoverTrigger asChild={true}>
<div
className={cn(
- "flex h-6 w-fit mb-1 shadow-xsSolid items-center justify-between rounded-sm border border-input bg-transparent px-2 text-sm font-prose ring-offset-background placeholder:text-muted-foreground hover:shadow-smSolid focus:outline-none focus:ring-1 focus:ring-ring focus:border-primary focus:shadow-mdSolid disabled:cursor-not-allowed disabled:opacity-50",
+ "flex h-6 w-fit mb-1 shadow-xs-solid items-center justify-between rounded-sm border border-input bg-transparent px-2 text-sm font-prose ring-offset-background placeholder:text-muted-foreground hover:shadow-sm-solid focus:outline-hidden focus:ring-1 focus:ring-ring focus:border-primary focus:shadow-md-solid disabled:cursor-not-allowed disabled:opacity-50",
className,
)}
aria-expanded={open}
>
<span className="truncate flex-1 min-w-0">{renderValue()}</span>
- <ChevronDownIcon className="ml-3 w-4 h-4 opacity-50 flex-shrink-0" />
+ <ChevronDownIcon className="ml-3 w-4 h-4 opacity-50 shrink-0" />
</div>
</PopoverTrigger>
<PopoverContent
- className="w-full min-w-[var(--radix-popover-trigger-width)] p-0"
+ className="w-full min-w-(--radix-popover-trigger-width) p-0"
align="start"
>
<Command filter={filterFn} shouldFilter={shouldFilter}>
diff --git a/frontend/src/components/ui/command.tsx b/frontend/src/components/ui/command.tsx
index a1bec17e90..27bc963495 100644
--- a/frontend/src/components/ui/command.tsx
+++ b/frontend/src/components/ui/command.tsx
@@ -65,7 +65,7 @@ const CommandInput = React.forwardRef<
<CommandPrimitive.Input
ref={ref}
className={cn(
- "placeholder:text-foreground-muted flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none disabled:cursor-not-allowed disabled:opacity-50",
+ "placeholder:text-foreground-muted flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",
className,
)}
{...props}
diff --git a/frontend/src/components/ui/date-input.tsx b/frontend/src/components/ui/date-input.tsx
index 76693e2d40..c15eadd9de 100644
--- a/frontend/src/components/ui/date-input.tsx
+++ b/frontend/src/components/ui/date-input.tsx
@@ -23,15 +23,15 @@ const DateSegment = ({ className, ...props }: AriaDateSegmentProps) => {
<AriaDateSegment
className={composeRenderProps(className, (className) =>
cn(
- "type-literal:px-0 inline rounded p-0.5 caret-transparent outline outline-0",
+ "type-literal:px-0 inline rounded p-0.5 caret-transparent outline-solid outline-0",
/* Placeholder */
- "data-[placeholder]:text-muted-foreground",
+ "data-placeholder:text-muted-foreground",
/* Disabled */
- "data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50",
+ "data-disabled:cursor-not-allowed data-disabled:opacity-50",
/* Focused */
- "data-[focused]:bg-accent data-[focused]:text-accent-foreground focus:bg-accent focus:text-accent-foreground",
+ "data-focused:bg-accent data-focused:text-accent-foreground focus:bg-accent focus:text-accent-foreground",
/* Invalid */
- "data-[invalid]:data-[focused]:bg-destructive data-[invalid]:data-[focused]:data-[placeholder]:text-destructive-foreground data-[invalid]:data-[focused]:text-destructive-foreground data-[invalid]:data-[placeholder]:text-destructive data-[invalid]:text-destructive",
+ "data-invalid:data-focused:bg-destructive data-invalid:data-focused:data-placeholder:text-destructive-foreground data-invalid:data-focused:text-destructive-foreground data-invalid:data-placeholder:text-destructive data-invalid:text-destructive",
className,
),
)}
diff --git a/frontend/src/components/ui/date-picker.tsx b/frontend/src/components/ui/date-picker.tsx
index e71119899c..11b3aafb36 100644
--- a/frontend/src/components/ui/date-picker.tsx
+++ b/frontend/src/components/ui/date-picker.tsx
@@ -43,7 +43,7 @@ const DatePickerContent = ({
>
<AriaDialog
className={cn(
- "flex w-full flex-col space-y-4 outline-none sm:flex-row sm:space-x-4 sm:space-y-0",
+ "flex w-full flex-col space-y-4 outline-hidden sm:flex-row sm:space-x-4 sm:space-y-0",
className,
)}
{...props}
@@ -86,7 +86,7 @@ const DatePicker = <T extends AriaDateValue>({
}}
className={cn(
buttonVariants({ variant: "text", size: "icon" }),
- "ml-1 size-6 data-[focus-visible]:ring-offset-0",
+ "ml-1 size-6 data-focus-visible:ring-offset-0",
)}
>
<CalendarIcon aria-hidden={true} className="size-4" />
@@ -155,7 +155,7 @@ const DateRangePicker = <T extends AriaDateValue>({
}}
className={cn(
buttonVariants({ variant: "text", size: "icon" }),
- "ml-1 size-6 data-[focus-visible]:ring-offset-0",
+ "ml-1 size-6 data-focus-visible:ring-offset-0",
)}
>
<CalendarIcon aria-hidden={true} className="size-4" />
diff --git a/frontend/src/components/ui/dialog.tsx b/frontend/src/components/ui/dialog.tsx
index 799a57b46b..24a8c2fac2 100644
--- a/frontend/src/components/ui/dialog.tsx
+++ b/frontend/src/components/ui/dialog.tsx
@@ -41,7 +41,7 @@ const DialogOverlay = React.forwardRef<
<DialogPrimitive.Overlay
ref={ref}
className={cn(
- "fixed inset-0 z-50 bg-background/80 backdrop-blur-sm transition-all duration-100 data-[state=closed]:animate-out data-[state=closed]:fade-out data-[state=open]:fade-in",
+ "fixed inset-0 z-50 bg-background/80 backdrop-blur-xs transition-all duration-100 data-[state=closed]:animate-out data-[state=closed]:fade-out data-[state=open]:fade-in",
className,
)}
{...props}
@@ -62,14 +62,14 @@ const DialogContent = React.forwardRef<
<DialogPrimitive.Content
ref={ref}
className={cn(
- "fixed z-50 grid w-full gap-4 rounded-b-lg border bg-background p-6 shadow-sm animate-in data-[state=open]:fade-in-90 data-[state=open]:slide-in-from-bottom-10 sm:max-w-2xl sm:mx-4 sm:rounded-lg sm:zoom-in-90 data-[state=open]:sm:slide-in-from-bottom-0",
+ "fixed z-50 grid w-full gap-4 rounded-b-lg border bg-background p-6 shadow-sm animate-in data-[state=open]:fade-in-90 data-[state=open]:slide-in-from-bottom-10 sm:max-w-2xl sm:mx-4 sm:rounded-lg sm:zoom-in-90 sm:data-[state=open]:slide-in-from-bottom-0",
className,
)}
{...restoreFocus}
{...props}
>
{children}
- <DialogPrimitive.Close className="absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground">
+ <DialogPrimitive.Close className="absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground">
<X className="h-4 w-4" />
<span className="sr-only">Close</span>
</DialogPrimitive.Close>
diff --git a/frontend/src/components/ui/field.tsx b/frontend/src/components/ui/field.tsx
index b8fcb3815d..8eec4e7ae1 100644
--- a/frontend/src/components/ui/field.tsx
+++ b/frontend/src/components/ui/field.tsx
@@ -18,9 +18,9 @@ import { selectStyles } from "./native-select";
const labelVariants = cva([
"text-sm font-medium leading-none",
/* Disabled */
- "data-[disabled]:cursor-not-allowed data-[disabled]:opacity-70",
+ "data-disabled:cursor-not-allowed data-disabled:opacity-70",
/* Invalid */
- "group-data-[invalid]:text-destructive",
+ "group-data-invalid:text-destructive",
]);
const Label = ({ className, ...props }: AriaLabelProps) => (
@@ -53,9 +53,9 @@ const fieldGroupVariants = cva("", {
"relative flex w-full items-center overflow-hidden rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background",
selectStyles(),
/* Focus Within */
- "data-[focus-within]:outline-none data-[focus-within]:ring-2 data-[focus-within]:ring-ring data-[focus-within]:ring-offset-2",
+ "data-focus-within:outline-hidden data-focus-within:ring-2 data-focus-within:ring-ring data-focus-within:ring-offset-2",
/* Disabled */
- "data-[disabled]:opacity-50",
+ "data-disabled:opacity-50",
],
ghost: "",
},
diff --git a/frontend/src/components/ui/input.tsx b/frontend/src/components/ui/input.tsx
index a56de964d0..435b207f0b 100644
--- a/frontend/src/components/ui/input.tsx
+++ b/frontend/src/components/ui/input.tsx
@@ -35,8 +35,8 @@ const Input = React.forwardRef<HTMLInputElement, InputProps>(
<input
type={type}
className={cn(
- "shadow-xsSolid hover:shadow-smSolid disabled:shadow-xsSolid focus-visible:shadow-mdSolid",
- "flex h-6 w-full mb-1 rounded-sm border border-input bg-background px-1.5 py-1 text-sm font-code ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:border-primary disabled:cursor-not-allowed disabled:opacity-50",
+ "shadow-xs-solid hover:shadow-sm-solid disabled:shadow-xs-solid focus-visible:shadow-md-solid",
+ "flex h-6 w-full mb-1 rounded-sm border border-input bg-background px-1.5 py-1 text-sm font-code ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring focus-visible:border-primary disabled:cursor-not-allowed disabled:opacity-50",
icon && "pl-7",
endAdornment && "pr-10",
className,
@@ -135,7 +135,7 @@ export const SearchInput = React.forwardRef<
id={inputId}
ref={ref}
className={cn(
- "placeholder:text-foreground-muted flex h-7 m-1 w-full rounded-md bg-transparent py-3 text-sm outline-none disabled:cursor-not-allowed disabled:opacity-50",
+ "placeholder:text-foreground-muted flex h-7 m-1 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",
className,
)}
{...props}
diff --git a/frontend/src/components/ui/menu-items.tsx b/frontend/src/components/ui/menu-items.tsx
index 3509e180f1..a8724d6948 100644
--- a/frontend/src/components/ui/menu-items.tsx
+++ b/frontend/src/components/ui/menu-items.tsx
@@ -5,7 +5,7 @@ import React from "react";
import { cn } from "@/utils/cn";
export const menuContentCommon = cva(
- "z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md",
+ "z-50 min-w-32 overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md",
{
variants: {
subcontent: {
@@ -16,7 +16,7 @@ export const menuContentCommon = cva(
);
export const menuSubTriggerVariants = cva(
- "flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",
+ "flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",
{
variants: {
inset: {
@@ -27,11 +27,11 @@ export const menuSubTriggerVariants = cva(
);
export const MENU_ITEM_DISABLED =
- "data-[disabled]:pointer-events-none data-[disabled]:opacity-50";
+ "data-disabled:pointer-events-none data-disabled:opacity-50";
export const menuControlVariants = cva(
cn(
- "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground",
+ "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-hidden transition-colors focus:bg-accent focus:text-accent-foreground",
MENU_ITEM_DISABLED,
),
{ variants: {} },
@@ -54,7 +54,7 @@ export const menuLabelVariants = cva("px-2 py-1.5 text-sm font-semibold", {
export const menuItemVariants = cva(
cn(
- "menu-item relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none",
+ "menu-item relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-hidden",
MENU_ITEM_DISABLED,
),
{
@@ -66,11 +66,11 @@ export const menuItemVariants = cva(
default:
"focus:bg-accent focus:text-accent-foreground aria-selected:bg-accent aria-selected:text-accent-foreground",
danger:
- "focus:bg-[var(--red-5)] focus:text-[var(--red-12)] aria-selected:bg-[var(--red-5)] aria-selected:text-[var(--red-12)]",
+ "focus:bg-(--red-5) focus:text-(--red-12) aria-selected:bg-(--red-5) aria-selected:text-(--red-12)",
muted:
"focus:bg-muted/70 focus:text-muted-foreground aria-selected:bg-muted/70 aria-selected:text-muted-foreground",
success:
- "focus:bg-[var(--grass-3)] focus:text-[var(--grass-11)] aria-selected:bg-[var(--grass-3)] aria-selected:text-[var(--grass-11)]",
+ "focus:bg-(--grass-3) focus:text-(--grass-11) aria-selected:bg-(--grass-3) aria-selected:text-(--grass-11)",
disabled: "text-muted-foreground",
},
},
diff --git a/frontend/src/components/ui/native-select.tsx b/frontend/src/components/ui/native-select.tsx
index 76bb7862a6..4a67b3d7b4 100644
--- a/frontend/src/components/ui/native-select.tsx
+++ b/frontend/src/components/ui/native-select.tsx
@@ -6,12 +6,12 @@ import { cn } from "@/utils/cn";
import { Events } from "@/utils/events";
export const selectStyles = cva(
- "flex h-6 w-fit mb-1 items-center justify-between rounded-sm bg-background px-2 text-sm font-prose ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 cursor-pointer",
+ "flex h-6 w-fit mb-1 items-center justify-between rounded-sm bg-background px-2 text-sm font-prose ring-offset-background placeholder:text-muted-foreground focus:outline-hidden focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 cursor-pointer",
{
variants: {
variant: {
default:
- "shadow-xsSolid border border-input hover:shadow-smSolid focus:border-primary focus:shadow-mdSolid disabled:hover:shadow-xsSolid",
+ "shadow-xs-solid border border-input hover:shadow-sm-solid focus:border-primary focus:shadow-md-solid disabled:hover:shadow-xs-solid",
ghost: "opacity-70 hover:opacity-100 focus:opacity-100",
},
},
diff --git a/frontend/src/components/ui/navigation.tsx b/frontend/src/components/ui/navigation.tsx
index 38956a1ae5..06e1c43545 100644
--- a/frontend/src/components/ui/navigation.tsx
+++ b/frontend/src/components/ui/navigation.tsx
@@ -56,7 +56,7 @@ NavigationMenuList.displayName = NavigationMenuPrimitive.List.displayName;
const NavigationMenuItem = NavigationMenuPrimitive.Item;
const navigationMenuTriggerStyle = cva(
- "group inline-flex rounded-md bg-background px-4 py-2 text-lg font-medium text-[var(--slate-12)] transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[active]:bg-accent/50 data-[state=open]:bg-accent/50",
+ "group inline-flex rounded-md bg-background px-4 py-2 text-lg font-medium text-(--slate-12) transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-hidden disabled:pointer-events-none disabled:opacity-50 data-active:bg-accent/50 data-[state=open]:bg-accent/50",
{
variants: {
orientation: {
@@ -81,7 +81,7 @@ const NavigationMenuTrigger = React.forwardRef<
>
{children}{" "}
<ChevronDownIcon
- className="relative top-[1px] ml-1 h-3 w-3 transition duration-300 group-data-[state=open]:rotate-180"
+ className="relative top-px ml-1 h-3 w-3 transition duration-300 group-data-[state=open]:rotate-180"
aria-hidden="true"
/>
</NavigationMenuPrimitive.Trigger>
@@ -112,7 +112,7 @@ const NavigationMenuViewport = React.forwardRef<
<div className={cn("absolute left-0 top-full flex justify-center")}>
<NavigationMenuPrimitive.Viewport
className={cn(
- "origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]",
+ "origin-top-center relative mt-1.5 h-(--radix-navigation-menu-viewport-height) w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-(--radix-navigation-menu-viewport-width)",
className,
)}
ref={ref}
@@ -130,7 +130,7 @@ const NavigationMenuIndicator = React.forwardRef<
<NavigationMenuPrimitive.Indicator
ref={ref}
className={cn(
- "top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in",
+ "top-full z-1 flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in",
className,
)}
{...props}
diff --git a/frontend/src/components/ui/number-field.tsx b/frontend/src/components/ui/number-field.tsx
index f1062d2eb8..9412a6a701 100644
--- a/frontend/src/components/ui/number-field.tsx
+++ b/frontend/src/components/ui/number-field.tsx
@@ -27,10 +27,10 @@ export const NumberField = React.forwardRef<HTMLInputElement, NumberFieldProps>(
>
<div
className={cn(
- "shadow-xsSolid hover:shadow-smSolid hover:focus-within:shadow-mdSolid",
+ "shadow-xs-solid hover:shadow-sm-solid hover:focus-within:shadow-md-solid",
"flex overflow-hidden rounded-sm border border-input bg-background text-sm font-code ring-offset-background",
- "disabled:cursor-not-allowed disabled:opacity-50 disabled:shadow-xsSolid",
- "focus-within:shadow-mdSolid focus-within:outline-none focus-within:ring-1 focus-within:ring-ring focus-within:border-primary",
+ "disabled:cursor-not-allowed disabled:opacity-50 disabled:shadow-xs-solid",
+ "focus-within:shadow-md-solid focus-within:outline-hidden focus-within:ring-1 focus-within:ring-ring focus-within:border-primary",
variant === "default" ? "h-6 w-full mb-1" : "h-4 w-full mb-0.5",
variant === "xs" && "text-xs",
props.className,
@@ -49,7 +49,7 @@ export const NumberField = React.forwardRef<HTMLInputElement, NumberFieldProps>(
"flex-1",
"w-full",
"placeholder:text-muted-foreground",
- "outline-none",
+ "outline-hidden",
"disabled:cursor-not-allowed disabled:opacity-50",
variant === "default" ? "px-1.5" : "px-1",
)}
@@ -62,13 +62,10 @@ export const NumberField = React.forwardRef<HTMLInputElement, NumberFieldProps>(
>
<ChevronUp
aria-hidden={true}
- className={cn(
- "w-3 h-3 -mb-[1px]",
- variant === "xs" && "w-2 h-2",
- )}
+ className={cn("w-3 h-3 -mb-px", variant === "xs" && "w-2 h-2")}
/>
</StepperButton>
- <div className={"h-[1px] flex-shrink-0 divider bg-border z-10"} />
+ <div className={"h-px shrink-0 divider bg-border z-10"} />
<StepperButton
slot="decrement"
isDisabled={props.isDisabled}
@@ -76,10 +73,7 @@ export const NumberField = React.forwardRef<HTMLInputElement, NumberFieldProps>(
>
<ChevronDown
aria-hidden={true}
- className={cn(
- "w-3 h-3 -mt-[1px]",
- variant === "xs" && "w-2 h-2",
- )}
+ className={cn("w-3 h-3 -mt-px", variant === "xs" && "w-2 h-2")}
/>
</StepperButton>
</div>
@@ -95,7 +89,7 @@ const StepperButton = (props: ButtonProps & { variant?: "default" | "xs" }) => {
<Button
{...props}
className={cn(
- "cursor-default text-muted-foreground pressed:bg-muted-foreground group-disabled:text-disabled-foreground outline-none focus-visible:text-primary",
+ "cursor-default text-muted-foreground pressed:bg-muted-foreground group-disabled:text-disabled-foreground outline-hidden focus-visible:text-primary",
"disabled:cursor-not-allowed disabled:opacity-50",
!props.isDisabled && "hover:text-primary hover:bg-muted",
props.variant === "default" ? "px-0.5" : "px-0.25",
diff --git a/frontend/src/components/ui/popover.tsx b/frontend/src/components/ui/popover.tsx
index 4b1df08335..44434e4df0 100644
--- a/frontend/src/components/ui/popover.tsx
+++ b/frontend/src/components/ui/popover.tsx
@@ -37,7 +37,7 @@ const PopoverContent = React.forwardRef<
align={align}
sideOffset={sideOffset}
className={cn(
- "z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none animate-in data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
+ "z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-hidden animate-in data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
className,
scrollable && "overflow-auto",
)}
diff --git a/frontend/src/components/ui/radio-group.tsx b/frontend/src/components/ui/radio-group.tsx
index 410cf2e3e9..ac2ead1e67 100644
--- a/frontend/src/components/ui/radio-group.tsx
+++ b/frontend/src/components/ui/radio-group.tsx
@@ -28,7 +28,7 @@ const RadioGroupItem = React.forwardRef<
<RadioGroupPrimitive.Item
ref={ref}
className={cn(
- "h-[16px] w-[16px] transition-shadow data-[state=unchecked]:shadow-xsSolid rounded-full border border-input text-primary ring-offset-background focus:outline-none focus:shadow-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:border-primary data-[state=checked]:shadow-none",
+ "h-[16px] w-[16px] transition-shadow data-[state=unchecked]:shadow-xs-solid rounded-full border border-input text-primary ring-offset-background focus:outline-hidden focus:shadow-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:border-primary data-[state=checked]:shadow-none",
className,
)}
{...props}
diff --git a/frontend/src/components/ui/range-slider.tsx b/frontend/src/components/ui/range-slider.tsx
index 8ceaf0c2c9..a51595e580 100644
--- a/frontend/src/components/ui/range-slider.tsx
+++ b/frontend/src/components/ui/range-slider.tsx
@@ -28,7 +28,7 @@ const RangeSlider = React.forwardRef<
"relative flex touch-none select-none hover:cursor-pointer",
"data-[orientation=horizontal]:w-full data-[orientation=horizontal]:items-center",
"data-[orientation=vertical]:h-full data-[orientation=vertical]:justify-center",
- "data-[disabled]:cursor-not-allowed",
+ "data-disabled:cursor-not-allowed",
className,
)}
{...props}
@@ -47,7 +47,7 @@ const RangeSlider = React.forwardRef<
"absolute bg-blue-500 dark:bg-primary",
"data-[orientation=horizontal]:h-full",
"data-[orientation=vertical]:w-full",
- "data-[disabled]:opacity-50",
+ "data-disabled:opacity-50",
)}
/>
</SliderPrimitive.Track>
@@ -56,7 +56,7 @@ const RangeSlider = React.forwardRef<
<TooltipTrigger asChild={true}>
<SliderPrimitive.Thumb
data-testid="thumb"
- className="block h-4 w-4 rounded-full shadow-xsSolid border border-blue-500 dark:border-primary dark:bg-accent bg-white hover:bg-blue-300 focus:bg-blue-300 transition-colors focus-visible:outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50"
+ className="block h-4 w-4 rounded-full shadow-xs-solid border border-blue-500 dark:border-primary dark:bg-accent bg-white hover:bg-blue-300 focus:bg-blue-300 transition-colors focus-visible:outline-hidden data-disabled:pointer-events-none data-disabled:opacity-50"
onFocus={openActions.setTrue}
onBlur={openActions.setFalse}
onMouseEnter={openActions.setTrue}
@@ -77,7 +77,7 @@ const RangeSlider = React.forwardRef<
<TooltipTrigger asChild={true}>
<SliderPrimitive.Thumb
data-testid="thumb"
- className="block h-4 w-4 rounded-full shadow-xsSolid border border-blue-500 dark:border-primary dark:bg-accent bg-white hover:bg-blue-300 focus:bg-blue-300 transition-colors focus-visible:outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50"
+ className="block h-4 w-4 rounded-full shadow-xs-solid border border-blue-500 dark:border-primary dark:bg-accent bg-white hover:bg-blue-300 focus:bg-blue-300 transition-colors focus-visible:outline-hidden data-disabled:pointer-events-none data-disabled:opacity-50"
onFocus={openActions.setTrue}
onBlur={openActions.setFalse}
onMouseEnter={openActions.setTrue}
diff --git a/frontend/src/components/ui/scroll-area.tsx b/frontend/src/components/ui/scroll-area.tsx
index 6ebe583af6..1c7ef6b6cf 100644
--- a/frontend/src/components/ui/scroll-area.tsx
+++ b/frontend/src/components/ui/scroll-area.tsx
@@ -32,9 +32,9 @@ const ScrollBar = React.forwardRef<
className={cn(
"flex touch-none select-none transition-colors",
orientation === "vertical" &&
- "h-full w-2.5 border-l border-l-transparent p-[1px]",
+ "h-full w-2.5 border-l border-l-transparent p-px",
orientation === "horizontal" &&
- "h-2.5 flex-col border-t border-t-transparent p-[1px]",
+ "h-2.5 flex-col border-t border-t-transparent p-px",
className,
)}
{...props}
diff --git a/frontend/src/components/ui/select.tsx b/frontend/src/components/ui/select.tsx
index d54b7ac82f..3ee93e7858 100644
--- a/frontend/src/components/ui/select.tsx
+++ b/frontend/src/components/ui/select.tsx
@@ -69,7 +69,7 @@ const SelectContent = React.forwardRef<
<SelectPrimitive.Content
ref={ref}
className={cn(
- "max-h-[300px] relative z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
+ "max-h-[300px] relative z-50 min-w-32 overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
position === "popper" &&
"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
className,
@@ -85,7 +85,7 @@ const SelectContent = React.forwardRef<
className={cn(
"p-1",
position === "popper" &&
- "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]",
+ "h-(--radix-select-trigger-height) w-full min-w-(--radix-select-trigger-width)",
)}
>
{children}
@@ -121,7 +121,7 @@ const SelectItem = React.forwardRef<
<SelectPrimitive.Item
ref={ref}
className={cn(
- "relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground",
+ "relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground",
MENU_ITEM_DISABLED,
className,
)}
diff --git a/frontend/src/components/ui/sheet.tsx b/frontend/src/components/ui/sheet.tsx
index c0f4e5c14c..efc09bb209 100644
--- a/frontend/src/components/ui/sheet.tsx
+++ b/frontend/src/components/ui/sheet.tsx
@@ -67,7 +67,7 @@ const SheetContent = React.forwardRef<
{...props}
>
{children}
- <SheetPrimitive.Close className="absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary">
+ <SheetPrimitive.Close className="absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary">
<Cross2Icon className="h-4 w-4" />
<span className="sr-only">Close</span>
</SheetPrimitive.Close>
diff --git a/frontend/src/components/ui/slider.tsx b/frontend/src/components/ui/slider.tsx
index efa63a680d..2c6d2cf934 100644
--- a/frontend/src/components/ui/slider.tsx
+++ b/frontend/src/components/ui/slider.tsx
@@ -28,7 +28,7 @@ const Slider = React.forwardRef<
"relative flex touch-none select-none hover:cursor-pointer",
"data-[orientation=horizontal]:w-full data-[orientation=horizontal]:items-center",
"data-[orientation=vertical]:h-full data-[orientation=vertical]:justify-center",
- "data-[disabled]:cursor-not-allowed",
+ "data-disabled:cursor-not-allowed",
className,
)}
{...props}
@@ -47,7 +47,7 @@ const Slider = React.forwardRef<
"absolute bg-blue-500 dark:bg-primary",
"data-[orientation=horizontal]:h-full",
"data-[orientation=vertical]:w-full",
- "data-[disabled]:opacity-50",
+ "data-disabled:opacity-50",
)}
/>
</SliderPrimitive.Track>
@@ -56,7 +56,7 @@ const Slider = React.forwardRef<
<TooltipTrigger asChild={true}>
<SliderPrimitive.Thumb
data-testid="thumb"
- className="block h-4 w-4 rounded-full shadow-xsSolid border border-blue-500 dark:border-primary dark:bg-accent bg-white hover:bg-blue-300 focus:bg-blue-300 transition-colors focus-visible:outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50"
+ className="block h-4 w-4 rounded-full shadow-xs-solid border border-blue-500 dark:border-primary dark:bg-accent bg-white hover:bg-blue-300 focus:bg-blue-300 transition-colors focus-visible:outline-hidden data-disabled:pointer-events-none data-disabled:opacity-50"
onFocus={openActions.setTrue}
onBlur={openActions.setFalse}
onMouseEnter={openActions.setTrue}
diff --git a/frontend/src/components/ui/switch.tsx b/frontend/src/components/ui/switch.tsx
index 2180fdf3c8..d136e4ad21 100644
--- a/frontend/src/components/ui/switch.tsx
+++ b/frontend/src/components/ui/switch.tsx
@@ -6,12 +6,12 @@ import * as React from "react";
import { cn } from "@/utils/cn";
const switchVariants = cva(
- "peer inline-flex shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",
+ "peer inline-flex shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",
{
variants: {
size: {
- default: "h-[1.5rem] w-[2.75rem] mb-1",
- sm: "h-[1.125rem] w-[2.125rem]",
+ default: "h-6 w-11 mb-1",
+ sm: "h-4.5 w-8.5",
},
},
defaultVariants: {
diff --git a/frontend/src/components/ui/table.tsx b/frontend/src/components/ui/table.tsx
index 65fd5c7b55..882e6601f1 100644
--- a/frontend/src/components/ui/table.tsx
+++ b/frontend/src/components/ui/table.tsx
@@ -60,7 +60,7 @@ const TableRow = React.forwardRef<
<tr
ref={ref}
className={cn(
- "border-b transition-colors bg-background hover:bg-[var(--slate-2)] data-[state=selected]:bg-[var(--slate-3)]",
+ "border-b transition-colors bg-background hover:bg-(--slate-2) data-[state=selected]:bg-(--slate-3)",
className,
)}
{...props}
diff --git a/frontend/src/components/ui/tabs.tsx b/frontend/src/components/ui/tabs.tsx
index 80ac3b0574..025b30bcd8 100644
--- a/frontend/src/components/ui/tabs.tsx
+++ b/frontend/src/components/ui/tabs.tsx
@@ -29,7 +29,7 @@ const TabsTrigger = React.forwardRef<
<TabsPrimitive.Trigger
ref={ref}
className={cn(
- "inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm",
+ "inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1 text-sm font-medium ring-offset-background transition-all focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm",
className,
)}
{...props}
@@ -44,7 +44,7 @@ const TabsContent = React.forwardRef<
<TabsPrimitive.Content
ref={ref}
className={cn(
- "mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-2",
+ "mt-2 ring-offset-background focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-2",
className,
)}
{...props}
diff --git a/frontend/src/components/ui/textarea.tsx b/frontend/src/components/ui/textarea.tsx
index 69a0b0ff3c..ed924944aa 100644
--- a/frontend/src/components/ui/textarea.tsx
+++ b/frontend/src/components/ui/textarea.tsx
@@ -17,8 +17,8 @@ const Textarea = React.forwardRef<HTMLTextAreaElement, TextareaProps>(
<div className="relative">
<textarea
className={cn(
- "shadow-xsSolid hover:shadow-smSolid disabled:shadow-xsSolid focus-visible:shadow-mdSolid",
- "flex w-full mb-1 rounded-sm border border-input bg-background px-3 py-2 text-sm font-code ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:border-accent disabled:cursor-not-allowed disabled:opacity-50 min-h-[1.5rem]",
+ "shadow-xs-solid hover:shadow-sm-solid disabled:shadow-xs-solid focus-visible:shadow-md-solid",
+ "flex w-full mb-1 rounded-sm border border-input bg-background px-3 py-2 text-sm font-code ring-offset-background placeholder:text-muted-foreground focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring focus-visible:border-accent disabled:cursor-not-allowed disabled:opacity-50 min-h-6",
className,
)}
onClick={Events.stopPropagation()}
diff --git a/frontend/src/components/ui/toast.tsx b/frontend/src/components/ui/toast.tsx
index bcfafa7415..0d47a1e418 100644
--- a/frontend/src/components/ui/toast.tsx
+++ b/frontend/src/components/ui/toast.tsx
@@ -16,7 +16,7 @@ const ToastViewport = React.forwardRef<
<ToastPrimitives.Viewport
ref={ref}
className={cn(
- "fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:w-fit md:max-w-[420px]",
+ "fixed top-0 z-100 flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:w-fit md:max-w-[420px]",
className,
)}
{...props}
@@ -25,13 +25,13 @@ const ToastViewport = React.forwardRef<
ToastViewport.displayName = ToastPrimitives.Viewport.displayName;
const toastVariants = cva(
- "data-[swipe=move]:transition-none group relative pointer-events-auto flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full data-[state=closed]:slide-out-to-right-full",
+ "data-[swipe=move]:transition-none group relative pointer-events-auto flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=move]:translate-x-(--radix-toast-swipe-move-x) data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-(--radix-toast-swipe-end-x) data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=open]:slide-in-from-top-full sm:data-[state=open]:slide-in-from-bottom-full data-[state=closed]:slide-out-to-right-full",
{
variants: {
variant: {
default: "bg-background border",
danger:
- "group destructive text-error border-destructive bg-[var(--red-1)] shadow-mdSolid shadow-error",
+ "group destructive text-error border-destructive bg-(--red-1) shadow-md-solid shadow-error",
},
},
defaultVariants: {
@@ -66,7 +66,7 @@ const ToastAction = React.forwardRef<
<ToastPrimitives.Action
ref={ref}
className={cn(
- "inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-destructive/30 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",
+ "inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-destructive/30 hover:group-[.destructive]:border-destructive/30 hover:group-[.destructive]:bg-destructive hover:group-[.destructive]:text-destructive-foreground focus:group-[.destructive]:ring-destructive",
className,
)}
{...props}
@@ -81,7 +81,7 @@ const ToastClose = React.forwardRef<
<ToastPrimitives.Close
ref={ref}
className={cn(
- "absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-500 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",
+ "absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-hidden focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 hover:group-[.destructive]:text-red-500 focus:group-[.destructive]:ring-red-400 focus:group-[.destructive]:ring-offset-red-600",
className,
)}
toast-close=""
diff --git a/frontend/src/components/ui/toggle.tsx b/frontend/src/components/ui/toggle.tsx
index 975d988632..56ddb7c009 100644
--- a/frontend/src/components/ui/toggle.tsx
+++ b/frontend/src/components/ui/toggle.tsx
@@ -8,7 +8,7 @@ import { cn } from "@/utils/cn";
const toggleVariants = cva(
cn(
- "inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",
+ "inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",
"data-[state=on]:bg-muted data-[state=on]:text-muted-foreground",
),
{
diff --git a/frontend/src/components/ui/typography.tsx b/frontend/src/components/ui/typography.tsx
index 2800f60a8b..acd8e2f8dc 100644
--- a/frontend/src/components/ui/typography.tsx
+++ b/frontend/src/components/ui/typography.tsx
@@ -76,10 +76,7 @@ const P = React.forwardRef<
>(({ className, ...props }, ref) => {
return (
<p
- className={cn(
- "leading-7 text-foreground [&:not(:first-child)]:mt-6",
- className,
- )}
+ className={cn("leading-7 text-foreground not-first:mt-6", className)}
ref={ref}
{...props}
/>
diff --git a/frontend/src/core/cells/logs.ts b/frontend/src/core/cells/logs.ts
index 57224e1fe5..7d326b2063 100644
--- a/frontend/src/core/cells/logs.ts
+++ b/frontend/src/core/cells/logs.ts
@@ -70,7 +70,7 @@ export function getCellLogsForMessage(cell: CellMessage): CellLog[] {
title: "An internal error occurred",
description: "See console for details.",
className:
- "text-xs text-background bg-[var(--red-10)] py-2 pl-3 [&>*]:flex [&>*]:gap-3",
+ "text-xs text-background bg-(--red-10) py-2 pl-3 *:flex *:gap-3",
});
}
}
diff --git a/frontend/src/core/codemirror/copilot/copilot-config.tsx b/frontend/src/core/codemirror/copilot/copilot-config.tsx
index aa2cba7179..9191ce0715 100644
--- a/frontend/src/core/codemirror/copilot/copilot-config.tsx
+++ b/frontend/src/core/codemirror/copilot/copilot-config.tsx
@@ -149,7 +149,7 @@ export const CopilotConfig = memo(() => {
return (
<div className="flex items-center gap-5">
<Label className="font-normal flex items-center">
- <div className="inline-flex items-center justify-center bg-[var(--grass-7)] rounded-full p-1 mr-2">
+ <div className="inline-flex items-center justify-center bg-(--grass-7) rounded-full p-1 mr-2">
<CheckIcon className="h-3 w-3 text-white" />
</div>
Connected
diff --git a/frontend/src/core/codemirror/language/panel/markdown.tsx b/frontend/src/core/codemirror/language/panel/markdown.tsx
index 077e1328af..19aed2c4be 100644
--- a/frontend/src/core/codemirror/language/panel/markdown.tsx
+++ b/frontend/src/core/codemirror/language/panel/markdown.tsx
@@ -37,30 +37,24 @@ export const MarkdownQuotePrefixTooltip: React.FC = () => {
<div className="flex flex-col gap-3.5">
<section className="flex flex-col gap-0.5">
<header className="flex items-center gap-1">
- <code className="text-xs px-1 py-0.5 bg-[var(--slate-2)] rounded">
- r
- </code>
+ <code className="text-xs px-1 py-0.5 bg-(--slate-2) rounded">r</code>
<span className="font-semibold">Raw String</span>
</header>
<p className="text-sm text-muted-foreground">
Write LaTeX without escaping special characters
</p>
- <pre className="text-xs bg-[var(--slate-2)] p-2 rounded">
- \alpha \beta
- </pre>
+ <pre className="text-xs bg-(--slate-2) p-2 rounded">\alpha \beta</pre>
</section>
<section className="flex flex-col gap-0.5">
<header className="flex items-center gap-1">
- <code className="text-xs px-1 py-0.5 bg-[var(--slate-2)] rounded">
- f
- </code>
+ <code className="text-xs px-1 py-0.5 bg-(--slate-2) rounded">f</code>
<span className="font-semibold">Format String</span>
</header>
<p className="text-sm text-muted-foreground">
Interpolate Python values
</p>
- <pre className="text-xs bg-[var(--slate-2)] p-2 rounded">
+ <pre className="text-xs bg-(--slate-2) p-2 rounded">
Hello {"{name}"}! 😁
</pre>
</section>
diff --git a/frontend/src/core/codemirror/language/panel/panel.tsx b/frontend/src/core/codemirror/language/panel/panel.tsx
index 3766e245e1..f6c4feeb3b 100644
--- a/frontend/src/core/codemirror/language/panel/panel.tsx
+++ b/frontend/src/core/codemirror/language/panel/panel.tsx
@@ -86,7 +86,7 @@ export const LanguagePanelComponent: React.FC<{
sanitizeAndTriggerUpdate(e);
}
}}
- className="min-w-14 w-auto border border-border rounded px-1 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring"
+ className="min-w-14 w-auto border border-border rounded px-1 focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring"
/>
<span {...spanProps} />
</label>
diff --git a/frontend/src/core/codemirror/language/panel/sql.tsx b/frontend/src/core/codemirror/language/panel/sql.tsx
index 78b97dc906..2d45840d97 100644
--- a/frontend/src/core/codemirror/language/panel/sql.tsx
+++ b/frontend/src/core/codemirror/language/panel/sql.tsx
@@ -88,7 +88,7 @@ export const SQLEngineSelect: React.FC<SelectProps> = ({
return (
<div className="flex flex-row gap-1 items-center">
<Select value={selectedEngine} onValueChange={handleSelectEngine}>
- <SelectTrigger className="text-xs border-border !shadow-none !ring-0 h-4.5 px-1.5">
+ <SelectTrigger className="text-xs border-border shadow-none! ring-0! h-4.5 px-1.5">
<SelectValue placeholder="Select an engine" />
</SelectTrigger>
<SelectContent>
diff --git a/frontend/src/core/codemirror/rtc/loro/colors.ts b/frontend/src/core/codemirror/rtc/loro/colors.ts
index ec14e9f9f2..288f8a05b2 100644
--- a/frontend/src/core/codemirror/rtc/loro/colors.ts
+++ b/frontend/src/core/codemirror/rtc/loro/colors.ts
@@ -1,20 +1,20 @@
/* Copyright 2024 Marimo. All rights reserved. */
export const COLORS = [
- "bg-[var(--amber-6)]",
- "bg-[var(--blue-6)]",
- "bg-[var(--crimson-6)]",
- "bg-[var(--cyan-6)]",
- "bg-[var(--grass-6)]",
- "bg-[var(--gray-6)]",
- "bg-[var(--green-6)]",
- "bg-[var(--lime-6)]",
- "bg-[var(--orange-6)]",
- "bg-[var(--purple-6)]",
- "bg-[var(--red-6)]",
- "bg-[var(--sage-6)]",
- "bg-[var(--sky-6)]",
- "bg-[var(--slate-6)]",
+ "bg-(--amber-6)",
+ "bg-(--blue-6)",
+ "bg-(--crimson-6)",
+ "bg-(--cyan-6)",
+ "bg-(--grass-6)",
+ "bg-(--gray-6)",
+ "bg-(--green-6)",
+ "bg-(--lime-6)",
+ "bg-(--orange-6)",
+ "bg-(--purple-6)",
+ "bg-(--red-6)",
+ "bg-(--sage-6)",
+ "bg-(--sky-6)",
+ "bg-(--slate-6)",
] as const;
/**
diff --git a/frontend/src/core/islands/islands.css b/frontend/src/core/islands/islands.css
index 101ab18370..4b188276d7 100644
--- a/frontend/src/core/islands/islands.css
+++ b/frontend/src/core/islands/islands.css
@@ -7,6 +7,8 @@
@import url("../../css/md-tooltip.css");
@import url("../../css/table.css");
+@reference "../../css/globals.css";
+
.marimo {
@apply bg-background text-foreground;
}
diff --git a/frontend/src/css/admonition.css b/frontend/src/css/admonition.css
index 9e17073ebc..95b84fd608 100644
--- a/frontend/src/css/admonition.css
+++ b/frontend/src/css/admonition.css
@@ -1,3 +1,5 @@
+@reference "../css/globals.css";
+
.admonition {
--admonition-bg: var(--blue-2);
--admonition-border: var(--blue-8);
diff --git a/frontend/src/css/app/Cell.css b/frontend/src/css/app/Cell.css
index 79343bc55b..24fd4c2860 100644
--- a/frontend/src/css/app/Cell.css
+++ b/frontend/src/css/app/Cell.css
@@ -1,3 +1,5 @@
+@reference "../../css/globals.css";
+
/*
* Cell can have many states:
* - interactive (can hover, focus, click), while in edit mode
@@ -12,7 +14,7 @@
width: 100%;
border: 1px solid var(--gray-4);
- @apply divide-y divide-[var(--gray-5)] shadow-smSolid shadow-shade;
+ @apply divide-y divide-[var(--gray-5)] shadow-sm-solid shadow-shade;
&:focus-visible {
/* focus-visible outlines the entire cell body in black, but the cell's
@@ -59,14 +61,14 @@
}
&:hover {
- @apply shadow-mdSolid shadow-shade;
+ @apply shadow-md-solid shadow-shade;
}
&:focus-within {
border: 1px solid var(--gray-5);
/* a sharp box shadow with a slight blur to outline the element */
- @apply shadow-lgSolid shadow-shade;
+ @apply shadow-lg-solid shadow-shade;
/* a little bit of motion
*
@@ -110,10 +112,10 @@
&.disabled.has-error,
&.disabled:hover,
&.disabled.has-error:hover {
- @apply shadow-smSolid shadow-shade;
+ @apply shadow-sm-solid shadow-shade;
&:focus-within {
- @apply shadow-lgSolid shadow-shade;
+ @apply shadow-lg-solid shadow-shade;
}
.output-area,
@@ -128,16 +130,16 @@
&.has-error,
&.error-outline {
outline: 1px solid var(--red-4);
- @apply shadow-mdSolid shadow-[var(--red-8)];
+ @apply shadow-md-solid shadow-[var(--red-8)];
}
&.has-error:hover {
- @apply shadow-lgSolid shadow-[var(--red-8)];
+ @apply shadow-lg-solid shadow-[var(--red-8)];
}
&.has-error:focus-within,
&.has-error:focus-within:hover {
- @apply shadow-xlSolid shadow-[var(--red-8)];
+ @apply shadow-xl-solid shadow-[var(--red-8)];
}
&.error-outline,
@@ -150,15 +152,15 @@
&.needs-run {
/* TODO(akshayka): Can give this an outline to make more visible. */
outline: none;
- @apply divide-stale shadow-mdSolid shadow-stale;
+ @apply divide-stale shadow-md-solid shadow-stale;
&:hover {
- @apply shadow-lgSolid shadow-stale;
+ @apply shadow-lg-solid shadow-stale;
}
&:focus-within:hover,
&:focus-within {
- @apply shadow-xlSolid shadow-stale;
+ @apply shadow-xl-solid shadow-stale;
}
&:focus-within .cm-editor {
@@ -210,7 +212,14 @@
/* Borderless styles for Cell */
&.borderless {
- @apply borderless-common;
+ border-color: transparent;
+ box-shadow: none;
+
+ /* Apply the original styles */
+ &:hover {
+ border: 1px solid var(--gray-4);
+ @apply shadow-sm-solid shadow-shade;
+ }
}
/* -------------------------- Shoulders/Buttons ---------------------------- */
@@ -234,22 +243,18 @@
@apply bg-background;
}
-.borderless-common {
- border-color: transparent;
- box-shadow: none;
-
- /* Apply the original styles */
- &:hover {
- border: 1px solid var(--gray-4);
- @apply shadow-smSolid shadow-shade;
- }
-}
-
.dark .marimo-cell {
@apply border-border;
&.borderless {
- @apply borderless-common;
+ border-color: transparent;
+ box-shadow: none;
+
+ /* Apply the original styles */
+ &:hover {
+ border: 1px solid var(--gray-4);
+ @apply shadow-sm-solid shadow-shade;
+ }
}
}
diff --git a/frontend/src/css/app/codemirror-completions.css b/frontend/src/css/app/codemirror-completions.css
index 2b3dc7b63c..dbfadf3301 100644
--- a/frontend/src/css/app/codemirror-completions.css
+++ b/frontend/src/css/app/codemirror-completions.css
@@ -1,4 +1,5 @@
/* -- Autocomplete Styling -- */
+@reference "../../css/globals.css";
#root {
/* Base styling for autocomplete container */
diff --git a/frontend/src/css/app/codemirror.css b/frontend/src/css/app/codemirror.css
index f114c58c55..0882692466 100644
--- a/frontend/src/css/app/codemirror.css
+++ b/frontend/src/css/app/codemirror.css
@@ -1,3 +1,5 @@
+@reference "../globals.css";
+
.light .cm-selectionBackground {
/* This is the background for selected text when focused,
but we want to use it when not in focus either because we
diff --git a/frontend/src/css/app/print.css b/frontend/src/css/app/print.css
index 48d2505896..6336138e2e 100644
--- a/frontend/src/css/app/print.css
+++ b/frontend/src/css/app/print.css
@@ -1,3 +1,5 @@
+@reference "../globals.css";
+
/* Hide on print
To hide an element on print, add the class `no-print` to it.
When printing, the class `printing` is added to the body element to enable this rule. */
diff --git a/frontend/src/css/common.css b/frontend/src/css/common.css
index e5e1a8cd1d..c809414b24 100644
--- a/frontend/src/css/common.css
+++ b/frontend/src/css/common.css
@@ -1,3 +1,5 @@
+@reference "../css/globals.css";
+
/* Hover actions */
/* Ignore for touch devices */
diff --git a/frontend/src/css/globals.css b/frontend/src/css/globals.css
index 8afe926f81..1a748f9aaa 100644
--- a/frontend/src/css/globals.css
+++ b/frontend/src/css/globals.css
@@ -1,37 +1,37 @@
-@import url("@radix-ui/colors/amber-dark.css");
-@import url("@radix-ui/colors/amber.css");
-@import url("@radix-ui/colors/blue-dark.css");
-@import url("@radix-ui/colors/blue.css");
-@import url("@radix-ui/colors/crimson-dark.css");
-@import url("@radix-ui/colors/crimson.css");
-@import url("@radix-ui/colors/cyan-dark.css");
-@import url("@radix-ui/colors/cyan.css");
-@import url("@radix-ui/colors/grass-dark.css");
-@import url("@radix-ui/colors/grass.css");
-@import url("@radix-ui/colors/gray-dark.css");
-@import url("@radix-ui/colors/gray.css");
-@import url("@radix-ui/colors/green-dark.css");
-@import url("@radix-ui/colors/green.css");
-@import url("@radix-ui/colors/lime-dark.css");
-@import url("@radix-ui/colors/lime.css");
-@import url("@radix-ui/colors/orange-dark.css");
-@import url("@radix-ui/colors/orange.css");
-@import url("@radix-ui/colors/purple-dark.css");
-@import url("@radix-ui/colors/purple.css");
-@import url("@radix-ui/colors/red-dark.css");
-@import url("@radix-ui/colors/red.css");
-@import url("@radix-ui/colors/sage-dark.css");
-@import url("@radix-ui/colors/sage.css");
-@import url("@radix-ui/colors/sky-dark.css");
-@import url("@radix-ui/colors/sky.css");
-@import url("@radix-ui/colors/slate-dark.css");
-@import url("@radix-ui/colors/slate.css");
-@import url("@radix-ui/colors/yellow-dark.css");
-@import url("@radix-ui/colors/yellow.css");
+@import url("@radix-ui/colors/amber-dark.css") layer(base);
+@import url("@radix-ui/colors/amber.css") layer(base);
+@import url("@radix-ui/colors/blue-dark.css") layer(base);
+@import url("@radix-ui/colors/blue.css") layer(base);
+@import url("@radix-ui/colors/crimson-dark.css") layer(base);
+@import url("@radix-ui/colors/crimson.css") layer(base);
+@import url("@radix-ui/colors/cyan-dark.css") layer(base);
+@import url("@radix-ui/colors/cyan.css") layer(base);
+@import url("@radix-ui/colors/grass-dark.css") layer(base);
+@import url("@radix-ui/colors/grass.css") layer(base);
+@import url("@radix-ui/colors/gray-dark.css") layer(base);
+@import url("@radix-ui/colors/gray.css") layer(base);
+@import url("@radix-ui/colors/green-dark.css") layer(base);
+@import url("@radix-ui/colors/green.css") layer(base);
+@import url("@radix-ui/colors/lime-dark.css") layer(base);
+@import url("@radix-ui/colors/lime.css") layer(base);
+@import url("@radix-ui/colors/orange-dark.css") layer(base);
+@import url("@radix-ui/colors/orange.css") layer(base);
+@import url("@radix-ui/colors/purple-dark.css") layer(base);
+@import url("@radix-ui/colors/purple.css") layer(base);
+@import url("@radix-ui/colors/red-dark.css") layer(base);
+@import url("@radix-ui/colors/red.css") layer(base);
+@import url("@radix-ui/colors/sage-dark.css") layer(base);
+@import url("@radix-ui/colors/sage.css") layer(base);
+@import url("@radix-ui/colors/sky-dark.css") layer(base);
+@import url("@radix-ui/colors/sky.css") layer(base);
+@import url("@radix-ui/colors/slate-dark.css") layer(base);
+@import url("@radix-ui/colors/slate.css") layer(base);
+@import url("@radix-ui/colors/yellow-dark.css") layer(base);
+@import url("@radix-ui/colors/yellow.css") layer(base);
+/* stylelint-disable-next-line import-notation */
+@import "tailwindcss";
-@tailwind base;
-@tailwind components;
-@tailwind utilities;
+@config '../../tailwind.config.cjs';
@layer base {
:root {
@@ -132,3 +132,45 @@
text-decoration: underline;
}
}
+
+@theme {
+ /* Migrated from tailwind.config.cjs - theme.extend.boxShadow */
+ --shadow-none: none;
+ --shadow-xxs: 0px 0px 2px 0px var(--base-shadow-darker);
+ /* biome-ignore format: biome and stylelint have conflicting rules */
+ --shadow-xs: 1px 1px 2px 0px var(--base-shadow), 0px 0px 2px 0px
+ hsl(0deg 0% 25% / var(--base-shadow-opacity));
+ /* biome-ignore format: biome and stylelint have conflicting rules */
+ --shadow-sm: 2px 2px 2px 0px var(--base-shadow), 0px 0px 2px 0px
+ hsl(0deg 0% 25% / var(--base-shadow-opacity));
+ /* biome-ignore format: biome and stylelint have conflicting rules */
+ --shadow-md: 4px 4px 4px 0px var(--base-shadow), 0 0px 4px 0px
+ hsl(0deg 0% 60% / var(--base-shadow-opacity));
+ /* biome-ignore format: biome and stylelint have conflicting rules */
+ --shadow-lg: 5px 6px 4px 0px var(--base-shadow), 0 0px 4px 0px
+ hsl(0deg 0% 75% / var(--base-shadow-opacity));
+ /* biome-ignore format: biome and stylelint have conflicting rules */
+ --shadow-xl: 8px 9px 4px 0px var(--base-shadow), 0 0px 6px 0px
+ hsl(0deg 0% 85% / var(--base-shadow-opacity));
+ /* biome-ignore format: biome and stylelint have conflicting rules */
+ --shadow-2xl: 10px 12px 10px 0px var(--base-shadow), 0 0px 8px 0px
+ hsl(0deg 0% 90% / var(--base-shadow-opacity));
+ /* biome-ignore format: biome and stylelint have conflicting rules */
+ --shadow-xs-solid: 1px 1px 0px 0px var(--base-shadow-darker), 0px 0px 2px 0px
+ hsl(0deg 0% 50% / 20%);
+ /* biome-ignore format: biome and stylelint have conflicting rules */
+ --shadow-sm-solid: 2px 2px 0px 0px var(--base-shadow-darker), 0px 0px 2px 0px
+ hsl(0deg 0% 50% / 20%);
+ /* biome-ignore format: biome and stylelint have conflicting rules */
+ --shadow-md-solid: 4px 4px 0px 0px var(--base-shadow-darker), 0 0px 2px 0px
+ hsl(0deg 0% 60% / 50%);
+ /* biome-ignore format: biome and stylelint have conflicting rules */
+ --shadow-lg-solid: 5px 6px 0px 0px var(--base-shadow-darker), 0 0px 4px 0px
+ hsl(0deg 0% 75% / 50%);
+ /* biome-ignore format: biome and stylelint have conflicting rules */
+ --shadow-xl-solid: 7px 8px 0px 0px var(--base-shadow-darker), 0 0px 4px 0px
+ hsl(0deg 0% 85% / 50%);
+ /* biome-ignore format: biome and stylelint have conflicting rules */
+ --shadow-2xl-solid: 10px 12px 0px 0px var(--base-shadow-darker), 0 0px 8px 0px
+ hsl(0deg 0% 90% / 50%);
+}
diff --git a/frontend/src/css/md-tooltip.css b/frontend/src/css/md-tooltip.css
index 6ae900ebee..2739ed42ef 100644
--- a/frontend/src/css/md-tooltip.css
+++ b/frontend/src/css/md-tooltip.css
@@ -1,3 +1,5 @@
+@reference "../css/globals.css";
+
/*
This allows you to create a basic tooltip using the data-tooltip attribute
e.g. <span data-tooltip="Hello, World!">Hover me</span>
diff --git a/frontend/src/css/md.css b/frontend/src/css/md.css
index 328184441e..4803a5ec3c 100644
--- a/frontend/src/css/md.css
+++ b/frontend/src/css/md.css
@@ -1,3 +1,5 @@
+@reference "../css/globals.css";
+
.markdown p:first-child,
.markdown .paragraph:first-child {
/* This is needed when markdown is used inside buttons or labels */
diff --git a/frontend/src/css/progress.css b/frontend/src/css/progress.css
index ee3e0c3d9d..75c81a5469 100644
--- a/frontend/src/css/progress.css
+++ b/frontend/src/css/progress.css
@@ -1,4 +1,5 @@
/* Copyright 2024 Marimo. All rights reserved. */
+@reference "../css/globals.css";
/*
* Global styling for progress bars to ensure consistent appearance
diff --git a/frontend/src/css/table.css b/frontend/src/css/table.css
index 666b8df914..f6fa070813 100644
--- a/frontend/src/css/table.css
+++ b/frontend/src/css/table.css
@@ -1,3 +1,5 @@
+@reference "../css/globals.css";
+
.markdown table,
table.dataframe {
display: block;
diff --git a/frontend/src/plugins/impl/CodeEditorPlugin.tsx b/frontend/src/plugins/impl/CodeEditorPlugin.tsx
index f515a11129..ac4a773133 100644
--- a/frontend/src/plugins/impl/CodeEditorPlugin.tsx
+++ b/frontend/src/plugins/impl/CodeEditorPlugin.tsx
@@ -101,7 +101,7 @@ const CodeEditorComponent = (props: CodeEditorComponentProps) => {
<TooltipProvider>
<Labeled label={props.label} align="top" fullWidth={true}>
<LazyAnyLanguageCodeMirror
- className={`cm [&>*]:outline-none border rounded overflow-hidden ${finalTheme}`}
+ className={`cm *:outline-hidden border rounded overflow-hidden ${finalTheme}`}
theme={finalTheme === "dark" ? "dark" : "light"}
minHeight={minHeight}
maxHeight={maxHeight}
diff --git a/frontend/src/plugins/impl/FileBrowserPlugin.tsx b/frontend/src/plugins/impl/FileBrowserPlugin.tsx
index f673c06f0c..9d2937e9a0 100644
--- a/frontend/src/plugins/impl/FileBrowserPlugin.tsx
+++ b/frontend/src/plugins/impl/FileBrowserPlugin.tsx
@@ -413,7 +413,7 @@ export const FileBrowser = ({
if (multiple) {
return (
- <div className="grid grid-cols-2 items-center border-1">
+ <div className="grid grid-cols-2 items-center border">
<div className="justify-self-start mb-1">{labelText}</div>
<div className="justify-self-end">
<Button
diff --git a/frontend/src/plugins/impl/FileUploadPlugin.tsx b/frontend/src/plugins/impl/FileUploadPlugin.tsx
index 6f2d02fd77..be2a397d46 100644
--- a/frontend/src/plugins/impl/FileUploadPlugin.tsx
+++ b/frontend/src/plugins/impl/FileUploadPlugin.tsx
@@ -231,7 +231,7 @@ export const FileUpload = (props: FileUploadProps): JSX.Element => {
return (
<section>
- <div className="flex flex-col items-start justify-start flex-grow gap-3">
+ <div className="flex flex-col items-start justify-start grow gap-3">
<div
className={cn(
"hover:text-primary",
@@ -240,21 +240,21 @@ export const FileUpload = (props: FileUploadProps): JSX.Element => {
"border rounded-sm",
"text-sm text-muted-foreground",
"hover:cursor-pointer",
- "active:shadow-xsSolid",
- "focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:border-accent",
+ "active:shadow-xs-solid",
+ "focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring focus-visible:border-accent",
!isFocused && "border-input/60 border-dashed",
isFocused && "border-solid",
)}
{...getRootProps()}
>
<input {...getInputProps()} />
- <div className="flex flex-col items-center justify-center flex-grow gap-3">
+ <div className="flex flex-col items-center justify-center grow gap-3">
{uploaded ? (
<span>To re-upload: {renderHTML({ html: label })}</span>
) : (
<span className="mt-0">{renderHTML({ html: label })}</span>
)}
- <div className="flex flex-row items-center justify-center flex-grow gap-3">
+ <div className="flex flex-row items-center justify-center grow gap-3">
<Upload
strokeWidth={1.4}
className={cn(
diff --git a/frontend/src/plugins/impl/FormPlugin.tsx b/frontend/src/plugins/impl/FormPlugin.tsx
index fa3628ac90..b3f73f24a6 100644
--- a/frontend/src/plugins/impl/FormPlugin.tsx
+++ b/frontend/src/plugins/impl/FormPlugin.tsx
@@ -144,9 +144,8 @@ export const FormWrapper = <T,>({
>
<div
className={cn("flex flex-col gap-4 rounded-lg py-4 px-8", {
- "bg-[var(--gray-1)] shadow-md border border-input": bordered,
- "bg-[var(--amber-1)] border-[var(--amber-7)]":
- !synchronized && bordered,
+ "bg-(--gray-1) shadow-md border border-input": bordered,
+ "bg-(--amber-1) border-(--amber-7)": !synchronized && bordered,
})}
onKeyDown={(evt) => {
// Handle enter + ctrl/meta key
diff --git a/frontend/src/plugins/impl/RefreshPlugin.tsx b/frontend/src/plugins/impl/RefreshPlugin.tsx
index c37408326f..760643cb64 100644
--- a/frontend/src/plugins/impl/RefreshPlugin.tsx
+++ b/frontend/src/plugins/impl/RefreshPlugin.tsx
@@ -117,7 +117,7 @@ const RefreshComponent = ({ setValue, data }: IPluginProps<Value, Data>) => {
return (
<Labeled label={data.label}>
- <span className="inline-flex items-center text-secondary-foreground rounded shadow-smSolid">
+ <span className="inline-flex items-center text-secondary-foreground rounded shadow-sm-solid">
<Button
data-testid="marimo-plugin-refresh-button"
variant="secondary"
diff --git a/frontend/src/plugins/impl/chat/chat-ui.tsx b/frontend/src/plugins/impl/chat/chat-ui.tsx
index dd72060060..16eae4cc6a 100644
--- a/frontend/src/plugins/impl/chat/chat-ui.tsx
+++ b/frontend/src/plugins/impl/chat/chat-ui.tsx
@@ -247,10 +247,10 @@ export const Chatbot: React.FC<Props> = (props) => {
return (
<div
- className="flex flex-col h-full bg-[var(--slate-1)] rounded-lg shadow border border-[var(--slate-6)] overflow-hidden relative"
+ className="flex flex-col h-full bg-(--slate-1) rounded-lg shadow border border-(--slate-6) overflow-hidden relative"
style={{ maxHeight: props.maxHeight }}
>
- <div className="absolute top-0 right-0 flex justify-end z-10 border border-[var(--slate-6)] bg-inherit rounded-bl-lg">
+ <div className="absolute top-0 right-0 flex justify-end z-10 border border-(--slate-6) bg-inherit rounded-bl-lg">
<Button
variant="text"
size="icon"
@@ -264,7 +264,7 @@ export const Chatbot: React.FC<Props> = (props) => {
</Button>
</div>
<div
- className="flex-grow overflow-y-auto gap-4 pt-8 pb-4 px-2 flex flex-col"
+ className="grow overflow-y-auto gap-4 pt-8 pb-4 px-2 flex flex-col"
ref={scrollContainerRef}
>
{messages.length === 0 && (
@@ -287,8 +287,8 @@ export const Chatbot: React.FC<Props> = (props) => {
<div
className={`max-w-[80%] p-3 rounded-lg ${
message.role === "user"
- ? "bg-[var(--sky-11)] text-[var(--slate-1)]"
- : "bg-[var(--slate-4)] text-[var(--slate-12)]"
+ ? "bg-(--sky-11) text-(--slate-1)"
+ : "bg-(--slate-4) text-(--slate-12)"
}`}
>
<p
@@ -306,16 +306,16 @@ export const Chatbot: React.FC<Props> = (props) => {
title: "Copied to clipboard",
});
}}
- className="text-xs text-[var(--slate-9)] hover:text-[var(--slate-11)]"
+ className="text-xs text-(--slate-9) hover:text-(--slate-11)"
>
<ClipboardIcon className="h-3 w-3" />
</button>
<button
type="button"
onClick={() => handleDelete(message.id)}
- className="text-xs text-[var(--slate-9)] hover:text-[var(--slate-11)]"
+ className="text-xs text-(--slate-9) hover:text-(--slate-11)"
>
- <Trash2Icon className="h-3 w-3 text-[var(--red-9)]" />
+ <Trash2Icon className="h-3 w-3 text-(--red-9)" />
</button>
</div>
</div>
@@ -328,7 +328,7 @@ export const Chatbot: React.FC<Props> = (props) => {
variant="link"
size="sm"
onClick={() => stop()}
- className="text-[var(--red-9)] hover:text-[var(--red-11)]"
+ className="text-(--red-9) hover:text-(--red-11)"
>
Stop
</Button>
@@ -352,7 +352,7 @@ export const Chatbot: React.FC<Props> = (props) => {
});
}}
ref={formRef}
- className="flex w-full border-t border-[var(--slate-6)] px-2 py-1 items-center"
+ className="flex w-full border-t border-(--slate-6) px-2 py-1 items-center"
>
{props.showConfigurationControls && (
<ConfigPopup config={config} onChange={setConfig} />
@@ -391,7 +391,7 @@ export const Chatbot: React.FC<Props> = (props) => {
{files && files.length === 1 && (
<span
title={files[0].name}
- className="text-sm text-[var(--slate-11)] truncate flex-shrink-0 w-24"
+ className="text-sm text-(--slate-11) truncate shrink-0 w-24"
>
{files[0].name}
</span>
@@ -399,7 +399,7 @@ export const Chatbot: React.FC<Props> = (props) => {
{files && files.length > 1 && (
<span
title={[...files].map((f) => f.name).join("\n")}
- className="text-sm text-[var(--slate-11)] truncate flex-shrink-0"
+ className="text-sm text-(--slate-11) truncate shrink-0"
>
{files.length} files
</span>
@@ -453,7 +453,7 @@ export const Chatbot: React.FC<Props> = (props) => {
disabled={isLoading || !input}
variant="outline"
size="sm"
- className="text-[var(--slate-11)]"
+ className="text-(--slate-11)"
>
<SendIcon className="h-5 w-5" />
</Button>
diff --git a/frontend/src/plugins/impl/common/error-banner.tsx b/frontend/src/plugins/impl/common/error-banner.tsx
index ed6659da35..160e6e80c1 100644
--- a/frontend/src/plugins/impl/common/error-banner.tsx
+++ b/frontend/src/plugins/impl/common/error-banner.tsx
@@ -65,9 +65,9 @@ const bannerStyle = cva(
variants: {
kind: {
danger:
- "text-error border-[var(--red-6)] shadow-mdSolid shadow-error bg-[var(--red-1)]",
- info: "text-primary border-[var(--blue-6)] shadow-mdSolid shadow-accent bg-[var(--blue-1)]",
- warn: "border-[var(--yellow-6)] bg-[var(--yellow-2)] dark:bg-[var(--yellow-4)] text-[var(--yellow-11)] dark:text-[var(--yellow-12)]",
+ "text-error border-(--red-6) shadow-md-solid shadow-error bg-(--red-1)",
+ info: "text-primary border-(--blue-6) shadow-md-solid shadow-accent bg-(--blue-1)",
+ warn: "border-(--yellow-6) bg-(--yellow-2) dark:bg-(--yellow-4) text-(--yellow-11) dark:text-(--yellow-12)",
},
clickable: {
true: "cursor-pointer",
@@ -77,17 +77,17 @@ const bannerStyle = cva(
{
clickable: true,
kind: "danger",
- className: "hover:bg-[var(--red-3)]",
+ className: "hover:bg-(--red-3)",
},
{
clickable: true,
kind: "info",
- className: "hover:bg-[var(--blue-3)]",
+ className: "hover:bg-(--blue-3)",
},
{
clickable: true,
kind: "warn",
- className: "hover:bg-[var(--yellow-3)]",
+ className: "hover:bg-(--yellow-3)",
},
],
defaultVariants: {
diff --git a/frontend/src/plugins/impl/data-explorer/ConnectedDataExplorerComponent.tsx b/frontend/src/plugins/impl/data-explorer/ConnectedDataExplorerComponent.tsx
index f452d1b7af..613d1fd395 100644
--- a/frontend/src/plugins/impl/data-explorer/ConnectedDataExplorerComponent.tsx
+++ b/frontend/src/plugins/impl/data-explorer/ConnectedDataExplorerComponent.tsx
@@ -244,8 +244,8 @@ const HorizontalCarouselItem = ({
children: React.ReactNode;
}): React.ReactNode => {
return (
- <div className="flex-shrink-0 bg-card shadow-md border overflow-hidden rounded snap-start">
- <div className="flex flex-row justify-between items-center bg-[var(--slate-3)] py-0.5 px-2">
+ <div className="shrink-0 bg-card shadow-md border overflow-hidden rounded snap-start">
+ <div className="flex flex-row justify-between items-center bg-(--slate-3) py-0.5 px-2">
<div className="text-sm font-medium">{title}</div>
{actions}
</div>
diff --git a/frontend/src/plugins/impl/data-explorer/components/column-summary.tsx b/frontend/src/plugins/impl/data-explorer/components/column-summary.tsx
index a7efa20b81..b428ccf527 100644
--- a/frontend/src/plugins/impl/data-explorer/components/column-summary.tsx
+++ b/frontend/src/plugins/impl/data-explorer/components/column-summary.tsx
@@ -52,7 +52,7 @@ export const ColumnSummary: React.FC<Props> = ({ schema }) => {
<span className="text-muted-foreground font-semibold">
{fields.length > 0 ? fields.length : "No"} fields
</span>
- <div className="hidden lg:grid grid-cols-2 xl:grid-cols-3 gap-2 p-2 bg-[var(--slate-1)] border rounded lg:items-center items-start w-fit grid-flow-dense max-h-[300px] overflow-auto">
+ <div className="hidden lg:grid grid-cols-2 xl:grid-cols-3 gap-2 p-2 bg-(--slate-1) border rounded lg:items-center items-start w-fit grid-flow-dense max-h-[300px] overflow-auto">
{fieldsToShow.map((field) => {
const cardinality = schema.cardinality({
channel: "x",
@@ -62,7 +62,7 @@ export const ColumnSummary: React.FC<Props> = ({ schema }) => {
<span
key={field}
className={cn(
- "hover:bg-muted self-start px-2 py-2 rounded flex flex-row gap-1 items-center cursor-pointer lg:justify-center text-sm truncate flex-shrink-0 overflow-hidden",
+ "hover:bg-muted self-start px-2 py-2 rounded flex flex-row gap-1 items-center cursor-pointer lg:justify-center text-sm truncate shrink-0 overflow-hidden",
selectedField === field && "bg-muted",
)}
onClick={() => {
diff --git a/frontend/src/plugins/impl/data-explorer/components/query-form.tsx b/frontend/src/plugins/impl/data-explorer/components/query-form.tsx
index ab7586db52..1b50304db0 100644
--- a/frontend/src/plugins/impl/data-explorer/components/query-form.tsx
+++ b/frontend/src/plugins/impl/data-explorer/components/query-form.tsx
@@ -87,7 +87,7 @@ export const QueryForm: React.FC<Props> = ({ schema, mark }) => {
);
return (
- <div className="grid gap-x-2 gap-y-4 justify-items-start py-3 pl-4 pr-2 bg-[var(--slate-1)] border rounded items-center grid-template-columns-[repeat(2,_minmax(0,_min-content))] self-start">
+ <div className="grid gap-x-2 gap-y-4 justify-items-start py-3 pl-4 pr-2 bg-(--slate-1) border rounded items-center grid-template-columns-[repeat(2,_minmax(0,_min-content))] self-start">
<span className="col-span-2 flex items-center justify-between w-full">
<div className="text-sm font-semibold">Encodings</div>
</span>
@@ -156,7 +156,7 @@ const FieldSelect = ({
return (
<>
- <Label className="text-[var(--slate-11)] font-semibold">{label}</Label>
+ <Label className="text-(--slate-11) font-semibold">{label}</Label>
<div className="flex flex-row gap-1 h-[26px]">
<Select
value={field}
diff --git a/frontend/src/plugins/impl/data-frames/DataFramePlugin.tsx b/frontend/src/plugins/impl/data-frames/DataFramePlugin.tsx
index 76d2cf618e..3e08d2f691 100644
--- a/frontend/src/plugins/impl/data-frames/DataFramePlugin.tsx
+++ b/frontend/src/plugins/impl/data-frames/DataFramePlugin.tsx
@@ -206,7 +206,7 @@ export const DataFrameComponent = memo(
SQL Code
</TabsTrigger>
)}
- <div className="flex-grow" />
+ <div className="grow" />
</TabsList>
{isPending && <Spinner size="small" />}
</div>
diff --git a/frontend/src/plugins/impl/data-frames/forms/__tests__/__snapshots__/form.test.tsx.snap b/frontend/src/plugins/impl/data-frames/forms/__tests__/__snapshots__/form.test.tsx.snap
index 1132282004..5164aebc80 100644
--- a/frontend/src/plugins/impl/data-frames/forms/__tests__/__snapshots__/form.test.tsx.snap
+++ b/frontend/src/plugins/impl/data-frames/forms/__tests__/__snapshots__/form.test.tsx.snap
@@ -32,7 +32,7 @@ exports[`renderZodSchema > should render a form aggregate 1`] = `
aria-controls="radix-«r25»"
aria-expanded="false"
aria-haspopup="dialog"
- class="flex h-6 w-fit mb-1 shadow-xsSolid items-center justify-between rounded-sm border border-input bg-transparent px-2 text-sm font-prose ring-offset-background placeholder:text-muted-foreground hover:shadow-smSolid focus:outline-none focus:ring-1 focus:ring-ring focus:border-primary focus:shadow-mdSolid disabled:cursor-not-allowed disabled:opacity-50 min-w-[180px]"
+ class="flex h-6 w-fit mb-1 shadow-xs-solid items-center justify-between rounded-sm border border-input bg-transparent px-2 text-sm font-prose ring-offset-background placeholder:text-muted-foreground hover:shadow-sm-solid focus:outline-hidden focus:ring-1 focus:ring-ring focus:border-primary focus:shadow-md-solid disabled:cursor-not-allowed disabled:opacity-50 min-w-[180px]"
data-state="closed"
type="button"
>
@@ -43,7 +43,7 @@ exports[`renderZodSchema > should render a form aggregate 1`] = `
</span>
<svg
aria-hidden="true"
- class="lucide lucide-chevron-down ml-3 w-4 h-4 opacity-50 flex-shrink-0"
+ class="lucide lucide-chevron-down ml-3 w-4 h-4 opacity-50 shrink-0"
fill="none"
height="24"
stroke="currentColor"
@@ -87,7 +87,7 @@ exports[`renderZodSchema > should render a form aggregate 1`] = `
aria-controls="radix-«r27»"
aria-expanded="false"
aria-haspopup="dialog"
- class="flex h-6 w-fit mb-1 shadow-xsSolid items-center justify-between rounded-sm border border-input bg-transparent px-2 text-sm font-prose ring-offset-background placeholder:text-muted-foreground hover:shadow-smSolid focus:outline-none focus:ring-1 focus:ring-ring focus:border-primary focus:shadow-mdSolid disabled:cursor-not-allowed disabled:opacity-50 min-w-[180px]"
+ class="flex h-6 w-fit mb-1 shadow-xs-solid items-center justify-between rounded-sm border border-input bg-transparent px-2 text-sm font-prose ring-offset-background placeholder:text-muted-foreground hover:shadow-sm-solid focus:outline-hidden focus:ring-1 focus:ring-ring focus:border-primary focus:shadow-md-solid disabled:cursor-not-allowed disabled:opacity-50 min-w-[180px]"
data-state="closed"
type="button"
>
@@ -98,7 +98,7 @@ exports[`renderZodSchema > should render a form aggregate 1`] = `
</span>
<svg
aria-hidden="true"
- class="lucide lucide-chevron-down ml-3 w-4 h-4 opacity-50 flex-shrink-0"
+ class="lucide lucide-chevron-down ml-3 w-4 h-4 opacity-50 shrink-0"
fill="none"
height="24"
stroke="currentColor"
@@ -153,7 +153,7 @@ exports[`renderZodSchema > should render a form column_conversion 1`] = `
aria-autocomplete="none"
aria-controls="radix-«re»"
aria-expanded="false"
- class="flex h-6 w-fit items-center justify-between rounded-sm bg-background px-2 text-sm font-prose ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 cursor-pointer shadow-xsSolid border border-input hover:shadow-smSolid focus:border-primary focus:shadow-mdSolid disabled:hover:shadow-xsSolid mb-0 min-w-[180px]"
+ class="flex h-6 w-fit items-center justify-between rounded-sm bg-background px-2 text-sm font-prose ring-offset-background placeholder:text-muted-foreground focus:outline-hidden focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 cursor-pointer shadow-xs-solid border border-input hover:shadow-sm-solid focus:border-primary focus:shadow-md-solid disabled:hover:shadow-xs-solid mb-0 min-w-[180px]"
data-placeholder=""
data-state="closed"
dir="ltr"
@@ -202,7 +202,7 @@ exports[`renderZodSchema > should render a form column_conversion 1`] = `
aria-autocomplete="none"
aria-controls="radix-«rg»"
aria-expanded="false"
- class="flex h-6 w-fit items-center justify-between rounded-sm bg-background px-2 text-sm font-prose ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 cursor-pointer shadow-xsSolid border border-input hover:shadow-smSolid focus:border-primary focus:shadow-mdSolid disabled:hover:shadow-xsSolid mb-0 min-w-[180px]"
+ class="flex h-6 w-fit items-center justify-between rounded-sm bg-background px-2 text-sm font-prose ring-offset-background placeholder:text-muted-foreground focus:outline-hidden focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 cursor-pointer shadow-xs-solid border border-input hover:shadow-sm-solid focus:border-primary focus:shadow-md-solid disabled:hover:shadow-xs-solid mb-0 min-w-[180px]"
data-placeholder=""
data-state="closed"
dir="ltr"
@@ -262,7 +262,7 @@ exports[`renderZodSchema > should render a form column_conversion 1`] = `
>
<button
aria-checked="false"
- class="h-[16px] w-[16px] transition-shadow data-[state=unchecked]:shadow-xsSolid rounded-full border border-input text-primary ring-offset-background focus:outline-none focus:shadow-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:border-primary data-[state=checked]:shadow-none"
+ class="h-[16px] w-[16px] transition-shadow data-[state=unchecked]:shadow-xs-solid rounded-full border border-input text-primary ring-offset-background focus:outline-hidden focus:shadow-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:border-primary data-[state=checked]:shadow-none"
data-radix-collection-item=""
data-state="unchecked"
id="errors-ignore"
@@ -283,7 +283,7 @@ exports[`renderZodSchema > should render a form column_conversion 1`] = `
>
<button
aria-checked="false"
- class="h-[16px] w-[16px] transition-shadow data-[state=unchecked]:shadow-xsSolid rounded-full border border-input text-primary ring-offset-background focus:outline-none focus:shadow-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:border-primary data-[state=checked]:shadow-none"
+ class="h-[16px] w-[16px] transition-shadow data-[state=unchecked]:shadow-xs-solid rounded-full border border-input text-primary ring-offset-background focus:outline-hidden focus:shadow-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:border-primary data-[state=checked]:shadow-none"
data-radix-collection-item=""
data-state="unchecked"
id="errors-raise"
@@ -335,7 +335,7 @@ exports[`renderZodSchema > should render a form expand_dict 1`] = `
aria-autocomplete="none"
aria-controls="radix-«r2p»"
aria-expanded="false"
- class="flex h-6 w-fit items-center justify-between rounded-sm bg-background px-2 text-sm font-prose ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 cursor-pointer shadow-xsSolid border border-input hover:shadow-smSolid focus:border-primary focus:shadow-mdSolid disabled:hover:shadow-xsSolid mb-0 min-w-[180px]"
+ class="flex h-6 w-fit items-center justify-between rounded-sm bg-background px-2 text-sm font-prose ring-offset-background placeholder:text-muted-foreground focus:outline-hidden focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 cursor-pointer shadow-xs-solid border border-input hover:shadow-sm-solid focus:border-primary focus:shadow-md-solid disabled:hover:shadow-xs-solid mb-0 min-w-[180px]"
data-placeholder=""
data-state="closed"
dir="ltr"
@@ -404,7 +404,7 @@ exports[`renderZodSchema > should render a form explode_columns 1`] = `
aria-controls="radix-«r2n»"
aria-expanded="false"
aria-haspopup="dialog"
- class="flex h-6 w-fit mb-1 shadow-xsSolid items-center justify-between rounded-sm border border-input bg-transparent px-2 text-sm font-prose ring-offset-background placeholder:text-muted-foreground hover:shadow-smSolid focus:outline-none focus:ring-1 focus:ring-ring focus:border-primary focus:shadow-mdSolid disabled:cursor-not-allowed disabled:opacity-50 min-w-[180px]"
+ class="flex h-6 w-fit mb-1 shadow-xs-solid items-center justify-between rounded-sm border border-input bg-transparent px-2 text-sm font-prose ring-offset-background placeholder:text-muted-foreground hover:shadow-sm-solid focus:outline-hidden focus:ring-1 focus:ring-ring focus:border-primary focus:shadow-md-solid disabled:cursor-not-allowed disabled:opacity-50 min-w-[180px]"
data-state="closed"
type="button"
>
@@ -415,7 +415,7 @@ exports[`renderZodSchema > should render a form explode_columns 1`] = `
</span>
<svg
aria-hidden="true"
- class="lucide lucide-chevron-down ml-3 w-4 h-4 opacity-50 flex-shrink-0"
+ class="lucide lucide-chevron-down ml-3 w-4 h-4 opacity-50 shrink-0"
fill="none"
height="24"
stroke="currentColor"
@@ -473,7 +473,7 @@ exports[`renderZodSchema > should render a form filter_rows 1`] = `
>
<button
aria-checked="false"
- class="h-[16px] w-[16px] transition-shadow data-[state=unchecked]:shadow-xsSolid rounded-full border border-input text-primary ring-offset-background focus:outline-none focus:shadow-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:border-primary data-[state=checked]:shadow-none"
+ class="h-[16px] w-[16px] transition-shadow data-[state=unchecked]:shadow-xs-solid rounded-full border border-input text-primary ring-offset-background focus:outline-hidden focus:shadow-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:border-primary data-[state=checked]:shadow-none"
data-radix-collection-item=""
data-state="unchecked"
id="operation-keep_rows"
@@ -494,7 +494,7 @@ exports[`renderZodSchema > should render a form filter_rows 1`] = `
>
<button
aria-checked="false"
- class="h-[16px] w-[16px] transition-shadow data-[state=unchecked]:shadow-xsSolid rounded-full border border-input text-primary ring-offset-background focus:outline-none focus:shadow-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:border-primary data-[state=checked]:shadow-none"
+ class="h-[16px] w-[16px] transition-shadow data-[state=unchecked]:shadow-xs-solid rounded-full border border-input text-primary ring-offset-background focus:outline-hidden focus:shadow-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:border-primary data-[state=checked]:shadow-none"
data-radix-collection-item=""
data-state="unchecked"
id="operation-remove_rows"
@@ -534,7 +534,7 @@ exports[`renderZodSchema > should render a form filter_rows 1`] = `
</div>
<div>
<button
- class="disabled:opacity-50 disabled:pointer-events-none inline-flex items-center justify-center font-medium focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-2 ring-offset-background opacity-80 hover:opacity-100 active:opacity-100 h-7 px-2 rounded-md text-xs hover:text-accent-foreground"
+ class="disabled:opacity-50 disabled:pointer-events-none inline-flex items-center justify-center font-medium focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-2 ring-offset-background opacity-80 hover:opacity-100 active:opacity-100 h-7 px-2 rounded-md text-xs hover:text-accent-foreground"
data-testid="marimo-plugin-data-frames-add-array-item"
>
<svg
@@ -599,7 +599,7 @@ exports[`renderZodSchema > should render a form group_by 1`] = `
aria-controls="radix-«r1p»"
aria-expanded="false"
aria-haspopup="dialog"
- class="flex h-6 w-fit mb-1 shadow-xsSolid items-center justify-between rounded-sm border border-input bg-transparent px-2 text-sm font-prose ring-offset-background placeholder:text-muted-foreground hover:shadow-smSolid focus:outline-none focus:ring-1 focus:ring-ring focus:border-primary focus:shadow-mdSolid disabled:cursor-not-allowed disabled:opacity-50 min-w-[180px]"
+ class="flex h-6 w-fit mb-1 shadow-xs-solid items-center justify-between rounded-sm border border-input bg-transparent px-2 text-sm font-prose ring-offset-background placeholder:text-muted-foreground hover:shadow-sm-solid focus:outline-hidden focus:ring-1 focus:ring-ring focus:border-primary focus:shadow-md-solid disabled:cursor-not-allowed disabled:opacity-50 min-w-[180px]"
data-state="closed"
type="button"
>
@@ -610,7 +610,7 @@ exports[`renderZodSchema > should render a form group_by 1`] = `
</span>
<svg
aria-hidden="true"
- class="lucide lucide-chevron-down ml-3 w-4 h-4 opacity-50 flex-shrink-0"
+ class="lucide lucide-chevron-down ml-3 w-4 h-4 opacity-50 shrink-0"
fill="none"
height="24"
stroke="currentColor"
@@ -648,7 +648,7 @@ exports[`renderZodSchema > should render a form group_by 1`] = `
aria-autocomplete="none"
aria-controls="radix-«r1r»"
aria-expanded="false"
- class="flex h-6 w-fit items-center justify-between rounded-sm bg-background px-2 text-sm font-prose ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 cursor-pointer shadow-xsSolid border border-input hover:shadow-smSolid focus:border-primary focus:shadow-mdSolid disabled:hover:shadow-xsSolid mb-0 min-w-[180px]"
+ class="flex h-6 w-fit items-center justify-between rounded-sm bg-background px-2 text-sm font-prose ring-offset-background placeholder:text-muted-foreground focus:outline-hidden focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 cursor-pointer shadow-xs-solid border border-input hover:shadow-sm-solid focus:border-primary focus:shadow-md-solid disabled:hover:shadow-xs-solid mb-0 min-w-[180px]"
data-placeholder=""
data-state="closed"
dir="ltr"
@@ -699,7 +699,7 @@ exports[`renderZodSchema > should render a form group_by 1`] = `
aria-checked="false"
aria-describedby="«r1s»-form-item-description"
aria-invalid="false"
- class="flex items-center justify-center peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground"
+ class="flex items-center justify-center peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground"
data-state="unchecked"
data-testid="marimo-plugin-data-frames-boolean-checkbox"
id="«r1s»-form-item"
@@ -743,7 +743,7 @@ exports[`renderZodSchema > should render a form rename_column 1`] = `
aria-autocomplete="none"
aria-controls="radix-«r6»"
aria-expanded="false"
- class="flex h-6 w-fit items-center justify-between rounded-sm bg-background px-2 text-sm font-prose ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 cursor-pointer shadow-xsSolid border border-input hover:shadow-smSolid focus:border-primary focus:shadow-mdSolid disabled:hover:shadow-xsSolid mb-0 min-w-[180px]"
+ class="flex h-6 w-fit items-center justify-between rounded-sm bg-background px-2 text-sm font-prose ring-offset-background placeholder:text-muted-foreground focus:outline-hidden focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 cursor-pointer shadow-xs-solid border border-input hover:shadow-sm-solid focus:border-primary focus:shadow-md-solid disabled:hover:shadow-xs-solid mb-0 min-w-[180px]"
data-placeholder=""
data-state="closed"
dir="ltr"
@@ -788,7 +788,7 @@ exports[`renderZodSchema > should render a form rename_column 1`] = `
<input
aria-describedby="«r7»-form-item-description"
aria-invalid="false"
- class="shadow-xsSolid hover:shadow-smSolid disabled:shadow-xsSolid focus-visible:shadow-mdSolid flex h-6 w-full rounded-sm border border-input bg-background px-1.5 py-1 text-sm font-code ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:border-primary disabled:cursor-not-allowed disabled:opacity-50 my-0"
+ class="shadow-xs-solid hover:shadow-sm-solid disabled:shadow-xs-solid focus-visible:shadow-md-solid flex h-6 w-full rounded-sm border border-input bg-background px-1.5 py-1 text-sm font-code ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring focus-visible:border-primary disabled:cursor-not-allowed disabled:opacity-50 my-0"
id="«r7»-form-item"
name="new_column_id"
/>
@@ -826,14 +826,14 @@ exports[`renderZodSchema > should render a form sample_rows 1`] = `
data-rac=""
>
<div
- class="shadow-xsSolid hover:shadow-smSolid hover:focus-within:shadow-mdSolid flex overflow-hidden rounded-sm border border-input bg-background text-sm font-code ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 disabled:shadow-xsSolid focus-within:shadow-mdSolid focus-within:outline-none focus-within:ring-1 focus-within:ring-ring focus-within:border-primary h-6 w-full my-0"
+ class="shadow-xs-solid hover:shadow-sm-solid hover:focus-within:shadow-md-solid flex overflow-hidden rounded-sm border border-input bg-background text-sm font-code ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 disabled:shadow-xs-solid focus-within:shadow-md-solid focus-within:outline-hidden focus-within:ring-1 focus-within:ring-ring focus-within:border-primary h-6 w-full my-0"
>
<input
aria-describedby="«r28»-form-item-description"
aria-roledescription="Number field"
autocomplete="off"
autocorrect="off"
- class="flex-1 w-full placeholder:text-muted-foreground outline-none disabled:cursor-not-allowed disabled:opacity-50 px-1.5"
+ class="flex-1 w-full placeholder:text-muted-foreground outline-hidden disabled:cursor-not-allowed disabled:opacity-50 px-1.5"
data-rac=""
id="«r28»-form-item"
inputmode="numeric"
@@ -849,7 +849,7 @@ exports[`renderZodSchema > should render a form sample_rows 1`] = `
<button
aria-controls="«r28»-form-item"
aria-label="Increase"
- class="cursor-default text-muted-foreground pressed:bg-muted-foreground group-disabled:text-disabled-foreground outline-none focus-visible:text-primary disabled:cursor-not-allowed disabled:opacity-50 hover:text-primary hover:bg-muted px-0.5"
+ class="cursor-default text-muted-foreground pressed:bg-muted-foreground group-disabled:text-disabled-foreground outline-hidden focus-visible:text-primary disabled:cursor-not-allowed disabled:opacity-50 hover:text-primary hover:bg-muted px-0.5"
data-rac=""
data-react-aria-pressable="true"
id="react-aria-«r2f»"
@@ -859,7 +859,7 @@ exports[`renderZodSchema > should render a form sample_rows 1`] = `
>
<svg
aria-hidden="true"
- class="lucide lucide-chevron-up w-3 h-3 -mb-[1px]"
+ class="lucide lucide-chevron-up w-3 h-3 -mb-px"
fill="none"
height="24"
stroke="currentColor"
@@ -876,12 +876,12 @@ exports[`renderZodSchema > should render a form sample_rows 1`] = `
</svg>
</button>
<div
- class="h-[1px] flex-shrink-0 divider bg-border z-10"
+ class="h-px shrink-0 divider bg-border z-10"
/>
<button
aria-controls="«r28»-form-item"
aria-label="Decrease"
- class="cursor-default text-muted-foreground pressed:bg-muted-foreground group-disabled:text-disabled-foreground outline-none focus-visible:text-primary disabled:cursor-not-allowed disabled:opacity-50 hover:text-primary hover:bg-muted px-0.5"
+ class="cursor-default text-muted-foreground pressed:bg-muted-foreground group-disabled:text-disabled-foreground outline-hidden focus-visible:text-primary disabled:cursor-not-allowed disabled:opacity-50 hover:text-primary hover:bg-muted px-0.5"
data-rac=""
data-react-aria-pressable="true"
id="react-aria-«r2g»"
@@ -891,7 +891,7 @@ exports[`renderZodSchema > should render a form sample_rows 1`] = `
>
<svg
aria-hidden="true"
- class="lucide lucide-chevron-down w-3 h-3 -mt-[1px]"
+ class="lucide lucide-chevron-down w-3 h-3 -mt-px"
fill="none"
height="24"
stroke="currentColor"
@@ -921,7 +921,7 @@ exports[`renderZodSchema > should render a form sample_rows 1`] = `
class="flex flex-row align-start"
>
<button
- class="disabled:opacity-50 disabled:pointer-events-none inline-flex items-center justify-center font-medium focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-2 ring-offset-background bg-secondary text-secondary-foreground hover:bg-secondary/80 border border-input shadow-xs active:shadow-none h-7 px-2 rounded-md text-xs"
+ class="disabled:opacity-50 disabled:pointer-events-none inline-flex items-center justify-center font-medium focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-2 ring-offset-background bg-secondary text-secondary-foreground hover:bg-secondary/80 border border-input shadow-xs active:shadow-none h-7 px-2 rounded-md text-xs"
data-testid="marimo-plugin-data-frames-random-number-button"
>
<svg
@@ -972,7 +972,7 @@ exports[`renderZodSchema > should render a form sample_rows 1`] = `
aria-checked="false"
aria-describedby="«r2l»-form-item-description"
aria-invalid="false"
- class="flex items-center justify-center peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground"
+ class="flex items-center justify-center peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground"
data-state="unchecked"
data-testid="marimo-plugin-data-frames-boolean-checkbox"
id="«r2l»-form-item"
@@ -1019,7 +1019,7 @@ exports[`renderZodSchema > should render a form select_columns 1`] = `
aria-controls="radix-«r4»"
aria-expanded="false"
aria-haspopup="dialog"
- class="flex h-6 w-fit mb-1 shadow-xsSolid items-center justify-between rounded-sm border border-input bg-transparent px-2 text-sm font-prose ring-offset-background placeholder:text-muted-foreground hover:shadow-smSolid focus:outline-none focus:ring-1 focus:ring-ring focus:border-primary focus:shadow-mdSolid disabled:cursor-not-allowed disabled:opacity-50 min-w-[180px]"
+ class="flex h-6 w-fit mb-1 shadow-xs-solid items-center justify-between rounded-sm border border-input bg-transparent px-2 text-sm font-prose ring-offset-background placeholder:text-muted-foreground hover:shadow-sm-solid focus:outline-hidden focus:ring-1 focus:ring-ring focus:border-primary focus:shadow-md-solid disabled:cursor-not-allowed disabled:opacity-50 min-w-[180px]"
data-state="closed"
type="button"
>
@@ -1030,7 +1030,7 @@ exports[`renderZodSchema > should render a form select_columns 1`] = `
</span>
<svg
aria-hidden="true"
- class="lucide lucide-chevron-down ml-3 w-4 h-4 opacity-50 flex-shrink-0"
+ class="lucide lucide-chevron-down ml-3 w-4 h-4 opacity-50 shrink-0"
fill="none"
height="24"
stroke="currentColor"
@@ -1070,7 +1070,7 @@ exports[`renderZodSchema > should render a form shuffle_rows 1`] = `
class="flex flex-row align-start"
>
<button
- class="disabled:opacity-50 disabled:pointer-events-none inline-flex items-center justify-center font-medium focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-2 ring-offset-background bg-secondary text-secondary-foreground hover:bg-secondary/80 border border-input shadow-xs active:shadow-none h-7 px-2 rounded-md text-xs"
+ class="disabled:opacity-50 disabled:pointer-events-none inline-flex items-center justify-center font-medium focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-2 ring-offset-background bg-secondary text-secondary-foreground hover:bg-secondary/80 border border-input shadow-xs active:shadow-none h-7 px-2 rounded-md text-xs"
data-testid="marimo-plugin-data-frames-random-number-button"
>
<svg
@@ -1135,7 +1135,7 @@ exports[`renderZodSchema > should render a form sort_column 1`] = `
aria-autocomplete="none"
aria-controls="radix-«r1e»"
aria-expanded="false"
- class="flex h-6 w-fit items-center justify-between rounded-sm bg-background px-2 text-sm font-prose ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 cursor-pointer shadow-xsSolid border border-input hover:shadow-smSolid focus:border-primary focus:shadow-mdSolid disabled:hover:shadow-xsSolid mb-0 min-w-[180px]"
+ class="flex h-6 w-fit items-center justify-between rounded-sm bg-background px-2 text-sm font-prose ring-offset-background placeholder:text-muted-foreground focus:outline-hidden focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 cursor-pointer shadow-xs-solid border border-input hover:shadow-sm-solid focus:border-primary focus:shadow-md-solid disabled:hover:shadow-xs-solid mb-0 min-w-[180px]"
data-placeholder=""
data-state="closed"
dir="ltr"
@@ -1187,7 +1187,7 @@ exports[`renderZodSchema > should render a form sort_column 1`] = `
aria-checked="false"
aria-describedby="«r1f»-form-item-description"
aria-invalid="false"
- class="flex items-center justify-center peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground"
+ class="flex items-center justify-center peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground"
data-state="unchecked"
data-testid="marimo-plugin-data-frames-boolean-checkbox"
id="«r1f»-form-item"
@@ -1226,7 +1226,7 @@ exports[`renderZodSchema > should render a form sort_column 1`] = `
>
<button
aria-checked="false"
- class="h-[16px] w-[16px] transition-shadow data-[state=unchecked]:shadow-xsSolid rounded-full border border-input text-primary ring-offset-background focus:outline-none focus:shadow-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:border-primary data-[state=checked]:shadow-none"
+ class="h-[16px] w-[16px] transition-shadow data-[state=unchecked]:shadow-xs-solid rounded-full border border-input text-primary ring-offset-background focus:outline-hidden focus:shadow-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:border-primary data-[state=checked]:shadow-none"
data-radix-collection-item=""
data-state="unchecked"
id="na_position-first"
@@ -1247,7 +1247,7 @@ exports[`renderZodSchema > should render a form sort_column 1`] = `
>
<button
aria-checked="false"
- class="h-[16px] w-[16px] transition-shadow data-[state=unchecked]:shadow-xsSolid rounded-full border border-input text-primary ring-offset-background focus:outline-none focus:shadow-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:border-primary data-[state=checked]:shadow-none"
+ class="h-[16px] w-[16px] transition-shadow data-[state=unchecked]:shadow-xs-solid rounded-full border border-input text-primary ring-offset-background focus:outline-hidden focus:shadow-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:border-primary data-[state=checked]:shadow-none"
data-radix-collection-item=""
data-state="unchecked"
id="na_position-last"
@@ -1302,7 +1302,7 @@ exports[`renderZodSchema > should render a form unique 1`] = `
aria-controls="radix-«r30»"
aria-expanded="false"
aria-haspopup="dialog"
- class="flex h-6 w-fit mb-1 shadow-xsSolid items-center justify-between rounded-sm border border-input bg-transparent px-2 text-sm font-prose ring-offset-background placeholder:text-muted-foreground hover:shadow-smSolid focus:outline-none focus:ring-1 focus:ring-ring focus:border-primary focus:shadow-mdSolid disabled:cursor-not-allowed disabled:opacity-50 min-w-[180px]"
+ class="flex h-6 w-fit mb-1 shadow-xs-solid items-center justify-between rounded-sm border border-input bg-transparent px-2 text-sm font-prose ring-offset-background placeholder:text-muted-foreground hover:shadow-sm-solid focus:outline-hidden focus:ring-1 focus:ring-ring focus:border-primary focus:shadow-md-solid disabled:cursor-not-allowed disabled:opacity-50 min-w-[180px]"
data-state="closed"
type="button"
>
@@ -1313,7 +1313,7 @@ exports[`renderZodSchema > should render a form unique 1`] = `
</span>
<svg
aria-hidden="true"
- class="lucide lucide-chevron-down ml-3 w-4 h-4 opacity-50 flex-shrink-0"
+ class="lucide lucide-chevron-down ml-3 w-4 h-4 opacity-50 shrink-0"
fill="none"
height="24"
stroke="currentColor"
@@ -1351,7 +1351,7 @@ exports[`renderZodSchema > should render a form unique 1`] = `
aria-autocomplete="none"
aria-controls="radix-«r32»"
aria-expanded="false"
- class="flex h-6 w-fit items-center justify-between rounded-sm bg-background px-2 text-sm font-prose ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 cursor-pointer shadow-xsSolid border border-input hover:shadow-smSolid focus:border-primary focus:shadow-mdSolid disabled:hover:shadow-xsSolid mb-0 min-w-[180px]"
+ class="flex h-6 w-fit items-center justify-between rounded-sm bg-background px-2 text-sm font-prose ring-offset-background placeholder:text-muted-foreground focus:outline-hidden focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 cursor-pointer shadow-xs-solid border border-input hover:shadow-sm-solid focus:border-primary focus:shadow-md-solid disabled:hover:shadow-xs-solid mb-0 min-w-[180px]"
data-placeholder=""
data-state="closed"
dir="ltr"
@@ -1405,7 +1405,7 @@ exports[`renders custom forms column_id 1`] = `
aria-autocomplete="none"
aria-controls="radix-«r39»"
aria-expanded="false"
- class="flex h-6 w-fit items-center justify-between rounded-sm bg-background px-2 text-sm font-prose ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 cursor-pointer shadow-xsSolid border border-input hover:shadow-smSolid focus:border-primary focus:shadow-mdSolid disabled:hover:shadow-xsSolid mb-0 min-w-[180px]"
+ class="flex h-6 w-fit items-center justify-between rounded-sm bg-background px-2 text-sm font-prose ring-offset-background placeholder:text-muted-foreground focus:outline-hidden focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 cursor-pointer shadow-xs-solid border border-input hover:shadow-sm-solid focus:border-primary focus:shadow-md-solid disabled:hover:shadow-xs-solid mb-0 min-w-[180px]"
data-placeholder=""
data-state="closed"
dir="ltr"
@@ -1461,7 +1461,7 @@ exports[`renders custom forms column_id_array 1`] = `
aria-controls="radix-«r3g»"
aria-expanded="false"
aria-haspopup="dialog"
- class="flex h-6 w-fit mb-1 shadow-xsSolid items-center justify-between rounded-sm border border-input bg-transparent px-2 text-sm font-prose ring-offset-background placeholder:text-muted-foreground hover:shadow-smSolid focus:outline-none focus:ring-1 focus:ring-ring focus:border-primary focus:shadow-mdSolid disabled:cursor-not-allowed disabled:opacity-50 min-w-[180px]"
+ class="flex h-6 w-fit mb-1 shadow-xs-solid items-center justify-between rounded-sm border border-input bg-transparent px-2 text-sm font-prose ring-offset-background placeholder:text-muted-foreground hover:shadow-sm-solid focus:outline-hidden focus:ring-1 focus:ring-ring focus:border-primary focus:shadow-md-solid disabled:cursor-not-allowed disabled:opacity-50 min-w-[180px]"
data-state="closed"
type="button"
>
@@ -1472,7 +1472,7 @@ exports[`renders custom forms column_id_array 1`] = `
</span>
<svg
aria-hidden="true"
- class="lucide lucide-chevron-down ml-3 w-4 h-4 opacity-50 flex-shrink-0"
+ class="lucide lucide-chevron-down ml-3 w-4 h-4 opacity-50 shrink-0"
fill="none"
height="24"
stroke="currentColor"
@@ -1511,7 +1511,7 @@ exports[`renders custom forms column_id_dot_array 1`] = `
aria-controls="radix-«r3i»"
aria-expanded="false"
aria-haspopup="dialog"
- class="flex h-6 w-fit mb-1 shadow-xsSolid items-center justify-between rounded-sm border border-input bg-transparent px-2 text-sm font-prose ring-offset-background placeholder:text-muted-foreground hover:shadow-smSolid focus:outline-none focus:ring-1 focus:ring-ring focus:border-primary focus:shadow-mdSolid disabled:cursor-not-allowed disabled:opacity-50 min-w-[180px]"
+ class="flex h-6 w-fit mb-1 shadow-xs-solid items-center justify-between rounded-sm border border-input bg-transparent px-2 text-sm font-prose ring-offset-background placeholder:text-muted-foreground hover:shadow-sm-solid focus:outline-hidden focus:ring-1 focus:ring-ring focus:border-primary focus:shadow-md-solid disabled:cursor-not-allowed disabled:opacity-50 min-w-[180px]"
data-state="closed"
type="button"
>
@@ -1522,7 +1522,7 @@ exports[`renders custom forms column_id_dot_array 1`] = `
</span>
<svg
aria-hidden="true"
- class="lucide lucide-chevron-down ml-3 w-4 h-4 opacity-50 flex-shrink-0"
+ class="lucide lucide-chevron-down ml-3 w-4 h-4 opacity-50 shrink-0"
fill="none"
height="24"
stroke="currentColor"
@@ -1564,7 +1564,7 @@ exports[`renders custom forms column_id_optional 1`] = `
aria-autocomplete="none"
aria-controls="radix-«r3k»"
aria-expanded="false"
- class="flex h-6 w-fit items-center justify-between rounded-sm bg-background px-2 text-sm font-prose ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 cursor-pointer shadow-xsSolid border border-input hover:shadow-smSolid focus:border-primary focus:shadow-mdSolid disabled:hover:shadow-xsSolid mb-0 min-w-[180px]"
+ class="flex h-6 w-fit items-center justify-between rounded-sm bg-background px-2 text-sm font-prose ring-offset-background placeholder:text-muted-foreground focus:outline-hidden focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 cursor-pointer shadow-xs-solid border border-input hover:shadow-sm-solid focus:border-primary focus:shadow-md-solid disabled:hover:shadow-xs-solid mb-0 min-w-[180px]"
data-placeholder=""
data-state="closed"
dir="ltr"
diff --git a/frontend/src/plugins/impl/data-frames/forms/datatype-icon.tsx b/frontend/src/plugins/impl/data-frames/forms/datatype-icon.tsx
index 1c592f55c7..7a747db966 100644
--- a/frontend/src/plugins/impl/data-frames/forms/datatype-icon.tsx
+++ b/frontend/src/plugins/impl/data-frames/forms/datatype-icon.tsx
@@ -36,7 +36,7 @@ export const DataTypeIcon: React.FC<Props> = ({ type }) => {
};
return (
- <div className="border p-[1px] border-border bg-[var(--slate-2)] flex items-center justify-center rounded">
+ <div className="border p-px border-border bg-(--slate-2) flex items-center justify-center rounded">
{renderIcon()}
</div>
);
diff --git a/frontend/src/plugins/impl/data-frames/panel.tsx b/frontend/src/plugins/impl/data-frames/panel.tsx
index e3f45025c3..d61c3c280e 100644
--- a/frontend/src/plugins/impl/data-frames/panel.tsx
+++ b/frontend/src/plugins/impl/data-frames/panel.tsx
@@ -162,7 +162,7 @@ export const TransformPanel: React.FC<Props> = ({
/>
)}
{(selectedTransform === undefined || !selectedTransformSchema) && (
- <div className="flex flex-col items-center justify-center flex-grow gap-3">
+ <div className="flex flex-col items-center justify-center grow gap-3">
<MousePointerSquareDashedIcon className="w-8 h-8 text-muted-foreground" />
<AddTransformDropdown onAdd={handleAddTransform}>
<Button
@@ -199,7 +199,7 @@ export const Sidebar: React.FC<SidebarProps> = ({
}) => {
return (
<div className="flex flex-col overflow-y-hidden w-[180px] shadow-xs h-full">
- <div className="flex flex-col overflow-y-auto flex-grow">
+ <div className="flex flex-col overflow-y-auto grow">
{items.map((item, idx) => {
return (
<div
@@ -215,7 +215,7 @@ export const Sidebar: React.FC<SidebarProps> = ({
},
)}
>
- <div className="flex-grow text-ellipsis">
+ <div className="grow text-ellipsis">
{Strings.startCase(item.type)}
</div>
<Trash2Icon
@@ -229,7 +229,7 @@ export const Sidebar: React.FC<SidebarProps> = ({
);
})}
</div>
- <div className="flex flex-row flex-shrink-0">
+ <div className="flex flex-row shrink-0">
<AddTransformDropdown onAdd={onAdd}>
<Button
data-testid="marimo-plugin-data-frames-add-transform"
diff --git a/frontend/src/plugins/impl/vega/vega.css b/frontend/src/plugins/impl/vega/vega.css
index 7195d70ee9..b41ef038b5 100644
--- a/frontend/src/plugins/impl/vega/vega.css
+++ b/frontend/src/plugins/impl/vega/vega.css
@@ -1,3 +1,5 @@
+@reference "../../../css/globals.css";
+
.vega-embed {
width: 100%;
flex: 1;
diff --git a/frontend/src/plugins/layout/NavigationMenuPlugin.tsx b/frontend/src/plugins/layout/NavigationMenuPlugin.tsx
index 87c8f3bea9..0dd8f3968b 100644
--- a/frontend/src/plugins/layout/NavigationMenuPlugin.tsx
+++ b/frontend/src/plugins/layout/NavigationMenuPlugin.tsx
@@ -198,7 +198,7 @@ const ListItem = React.forwardRef<
<a
ref={ref}
className={cn(
- "block select-none space-y-1 rounded-md p-3 leading-none no-underline outline-none transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground",
+ "block select-none space-y-1 rounded-md p-3 leading-none no-underline outline-hidden transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground",
className,
)}
{...props}
diff --git a/frontend/src/plugins/layout/ProgressPlugin.tsx b/frontend/src/plugins/layout/ProgressPlugin.tsx
index 29f3a9a71d..811a775b5f 100644
--- a/frontend/src/plugins/layout/ProgressPlugin.tsx
+++ b/frontend/src/plugins/layout/ProgressPlugin.tsx
@@ -74,7 +74,7 @@ export const ProgressComponent = ({
return (
<div className="flex gap-3 text-sm text-muted-foreground items-baseline">
<Progress value={clampProgress((progress / total) * 100)} />
- <span className="flex-shrink-0">
+ <span className="shrink-0">
{progress} / {total}
</span>
</div>
diff --git a/frontend/src/plugins/layout/navigation-menu.css b/frontend/src/plugins/layout/navigation-menu.css
index 6045e311a3..4ff207f3e2 100644
--- a/frontend/src/plugins/layout/navigation-menu.css
+++ b/frontend/src/plugins/layout/navigation-menu.css
@@ -1,3 +1,5 @@
+@reference "../../css/globals.css";
+
/* This will hide text and only show icons when the sidebar is collapsed */
.auto-collapse-nav[data-orientation="vertical"] {
container-type: inline-size;
diff --git a/frontend/src/stories/colors.stories.tsx b/frontend/src/stories/colors.stories.tsx
index 9dcf1f08c2..4434bf68ff 100644
--- a/frontend/src/stories/colors.stories.tsx
+++ b/frontend/src/stories/colors.stories.tsx
@@ -112,19 +112,19 @@ const COLORED_SHADOWS = [
];
const SOLID_SHADOWS = [
- "shadow-xsSolid",
- "shadow-smSolid",
- "shadow-mdSolid",
- "shadow-lgSolid",
- "shadow-xlSolid",
- "shadow-2xlSolid",
+ "shadow-xs-solid",
+ "shadow-sm-solid",
+ "shadow-md-solid",
+ "shadow-lg-solid",
+ "shadow-xl-solid",
+ "shadow-2xl-solid",
];
const MISC = [
- "shadow-smSolid shadow-accent",
- "shadow-mdSolid shadow-accent",
- "shadow-smSolid shadow-error",
- "shadow-mdSolid shadow-error",
+ "shadow-sm-solid shadow-accent",
+ "shadow-md-solid shadow-accent",
+ "shadow-sm-solid shadow-error",
+ "shadow-md-solid shadow-error",
];
export const Shadows: StoryObj = {
diff --git a/frontend/tailwind.config.cjs b/frontend/tailwind.config.cjs
index 84a7c51198..020491e683 100644
--- a/frontend/tailwind.config.cjs
+++ b/frontend/tailwind.config.cjs
@@ -16,46 +16,6 @@ module.exports = {
},
},
extend: {
- boxShadow: {
- none: "none",
- // fuzzy shadows
- xxs: "0px 0px 2px 0px var(--base-shadow-darker)",
- xs: "1px 1px 2px 0px var(--base-shadow), 0px 0px 2px 0px hsl(0deg 0% 25% / var(--base-shadow-opacity))",
- sm: "2px 2px 2px 0px var(--base-shadow), 0px 0px 2px 0px hsl(0deg 0% 25% / var(--base-shadow-opacity))",
- md: "4px 4px 4px 0px var(--base-shadow), 0 0px 4px 0px hsl(0deg 0% 60% / var(--base-shadow-opacity))",
- lg: "5px 6px 4px 0px var(--base-shadow), 0 0px 4px 0px hsl(0deg 0% 75% / var(--base-shadow-opacity))",
- xl: "8px 9px 4px 0px var(--base-shadow), 0 0px 6px 0px hsl(0deg 0% 85% / var(--base-shadow-opacity))",
- "2xl":
- "10px 12px 10px 0px var(--base-shadow), 0 0px 8px 0px hsl(0deg 0% 90% / var(--base-shadow-opacity))",
-
- xsSolid:
- "1px 1px 0px 0px var(--base-shadow-darker), 0px 0px 2px 0px hsl(0deg 0% 50% / 20%)",
- smSolid:
- "2px 2px 0px 0px var(--base-shadow-darker), 0px 0px 2px 0px hsl(0deg 0% 50% / 20%)",
- mdSolid:
- "4px 4px 0px 0px var(--base-shadow-darker), 0 0px 2px 0px hsl(0deg 0% 60% / 50%)",
- lgSolid:
- "5px 6px 0px 0px var(--base-shadow-darker), 0 0px 4px 0px hsl(0deg 0% 75% / 50%)",
- xlSolid:
- "7px 8px 0px 0px var(--base-shadow-darker), 0 0px 4px 0px hsl(0deg 0% 85% / 50%)",
- "2xlSolid":
- "10px 12px 0px 0px var(--base-shadow-darker), 0 0px 8px 0px hsl(0deg 0% 90% / 50%)",
- },
- width: {
- contentWidth: "var(--content-width)",
- contentWidthMedium: "var(--content-width-medium)",
- },
- minWidth: {
- contentWidth: "var(--content-width)",
- contentWidthMedium: "var(--content-width-medium)",
- },
- maxWidth: {
- contentWidth: "var(--content-width)",
- contentWidthMedium: "var(--content-width-medium)",
- },
- padding: {
- 18: "4.5rem",
- },
colors: {
border:
"color-mix(in srgb, var(--border), transparent calc((1 - <alpha-value>) * 100%))",
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 3501b5196c..d80a6f625b 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -27,7 +27,7 @@ importers:
version: 5.8.3
vitest:
specifier: ^3.2.4
frontend:
dependencies:
@@ -229,9 +229,12 @@ importers:
'@replit/codemirror-vim':
specifier: ^6.3.0
version: 6.3.0(@codemirror/[email protected])(@codemirror/[email protected])(@codemirror/[email protected])(@codemirror/[email protected])(@codemirror/[email protected])
+ '@tailwindcss/postcss':
+ specifier: ^4.1.11
+ version: 4.1.11
'@tailwindcss/typography':
specifier: ^0.5.16
- version: 0.5.16([email protected])
+ version: 0.5.16([email protected])
'@tanstack/react-table':
specifier: ^8.21.3
@@ -426,7 +429,7 @@ importers:
version: 2.6.0
tailwindcss-animate:
specifier: ^1.0.7
- version: 1.0.7([email protected])
+ version: 1.0.7([email protected])
thememirror:
specifier: ^2.0.1
version: 2.0.1(@codemirror/[email protected])(@codemirror/[email protected])(@codemirror/[email protected])
@@ -472,7 +475,7 @@ importers:
version: 2.0.6
'@codecov/vite-plugin':
specifier: ^1.9.1
'@csstools/postcss-light-dark-function':
specifier: ^2.0.9
version: 2.0.9([email protected])
@@ -487,7 +490,7 @@ importers:
version: 9.0.18([email protected])([email protected](@testing-library/[email protected]))
'@storybook/react-vite':
specifier: ^9.0.18
'@swc-jotai/react-refresh':
specifier: ^0.3.0
version: 0.3.0
@@ -526,13 +529,10 @@ importers:
'@vitejs/plugin-react':
specifier: ^4.7.0
'@vitejs/plugin-react-swc':
specifier: ^3.11.0
- autoprefixer:
- specifier: ^10.4.21
- version: 10.4.21([email protected])
babel-plugin-react-compiler:
specifier: 19.1.0-rc.2
version: 19.1.0-rc.2
@@ -565,7 +565,7 @@ importers:
version: 54.0.0([email protected])
eslint-plugin-vitest:
specifier: ^0.4.1
jsdom:
specifier: ^24.1.3
version: 24.1.3
@@ -600,23 +600,23 @@ importers:
specifier: ^36.0.1
tailwindcss:
- specifier: ^3.4.17
- version: 3.4.17
+ specifier: ^4.1.11
+ version: 4.1.11
vite:
specifier: ^6.3.5
vite-plugin-top-level-await:
specifier: ^1.6.0
vite-plugin-wasm:
specifier: ^3.5.0
vite-tsconfig-paths:
specifier: ^5.1.4
vitest:
specifier: ^3.2.4
packages/lsp:
dependencies:
@@ -647,13 +647,13 @@ importers:
version: 1.2.8
tsup:
specifier: ^8.5.0
typescript:
specifier: ^5.8.3
version: 5.8.3
vitest:
specifier: ^3.2.4
vscode-ws-jsonrpc:
specifier: ^3.4.0
version: 3.4.0
@@ -1617,6 +1617,10 @@ packages:
resolution: {integrity: sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==}
engines: {node: '>=12'}
+ '@isaacs/[email protected]':
+ resolution: {integrity: sha512-wgm9Ehl2jpeqP3zw/7mo3kRHFp5MEDhqAdwy1fTGkHAwnkGOVsgpvQhL8B5n1qlb01jV3n/bI0ZfZp5lWA1k4w==}
+ engines: {node: '>=18.0.0'}
+
resolution: {integrity: sha512-mo5j5X+jIZmJQveBKeS/clAueipV7KgiX1vMgCxam1RNYiqE1w62n0/tJJnHtjW8ZHcQco5gY85jA3mi0L+nSA==}
engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0}
@@ -3503,6 +3507,94 @@ packages:
resolution: {integrity: sha512-iOOnBRjL4k8Yna/JTjOEOcn9bry0KiOnrOj8ztK/iUU1/SPWXnndX7l+Fa6ssGEOpnScLk5j9GthWX1kzMutTA==}
+ '@tailwindcss/[email protected]':
+ resolution: {integrity: sha512-yzhzuGRmv5QyU9qLNg4GTlYI6STedBWRE7NjxP45CsFYYq9taI0zJXZBMqIC/c8fViNLhmrbpSFS57EoxUmD6Q==}
+
+ '@tailwindcss/[email protected]':
+ resolution: {integrity: sha512-3IfFuATVRUMZZprEIx9OGDjG3Ou3jG4xQzNTvjDoKmU9JdmoCohQJ83MYd0GPnQIu89YoJqvMM0G3uqLRFtetg==}
+ engines: {node: '>= 10'}
+ cpu: [arm64]
+ os: [android]
+
+ '@tailwindcss/[email protected]':
+ resolution: {integrity: sha512-ESgStEOEsyg8J5YcMb1xl8WFOXfeBmrhAwGsFxxB2CxY9evy63+AtpbDLAyRkJnxLy2WsD1qF13E97uQyP1lfQ==}
+ engines: {node: '>= 10'}
+ cpu: [arm64]
+ os: [darwin]
+
+ '@tailwindcss/[email protected]':
+ resolution: {integrity: sha512-EgnK8kRchgmgzG6jE10UQNaH9Mwi2n+yw1jWmof9Vyg2lpKNX2ioe7CJdf9M5f8V9uaQxInenZkOxnTVL3fhAw==}
+ engines: {node: '>= 10'}
+ cpu: [x64]
+ os: [darwin]
+
+ '@tailwindcss/[email protected]':
+ resolution: {integrity: sha512-xdqKtbpHs7pQhIKmqVpxStnY1skuNh4CtbcyOHeX1YBE0hArj2romsFGb6yUmzkq/6M24nkxDqU8GYrKrz+UcA==}
+ engines: {node: '>= 10'}
+ cpu: [x64]
+ os: [freebsd]
+
+ '@tailwindcss/[email protected]':
+ resolution: {integrity: sha512-ryHQK2eyDYYMwB5wZL46uoxz2zzDZsFBwfjssgB7pzytAeCCa6glsiJGjhTEddq/4OsIjsLNMAiMlHNYnkEEeg==}
+ engines: {node: '>= 10'}
+ cpu: [arm]
+ os: [linux]
+
+ '@tailwindcss/[email protected]':
+ resolution: {integrity: sha512-mYwqheq4BXF83j/w75ewkPJmPZIqqP1nhoghS9D57CLjsh3Nfq0m4ftTotRYtGnZd3eCztgbSPJ9QhfC91gDZQ==}
+ engines: {node: '>= 10'}
+ cpu: [arm64]
+ os: [linux]
+
+ '@tailwindcss/[email protected]':
+ resolution: {integrity: sha512-m/NVRFNGlEHJrNVk3O6I9ggVuNjXHIPoD6bqay/pubtYC9QIdAMpS+cswZQPBLvVvEF6GtSNONbDkZrjWZXYNQ==}
+ engines: {node: '>= 10'}
+ cpu: [arm64]
+ os: [linux]
+
+ '@tailwindcss/[email protected]':
+ resolution: {integrity: sha512-YW6sblI7xukSD2TdbbaeQVDysIm/UPJtObHJHKxDEcW2exAtY47j52f8jZXkqE1krdnkhCMGqP3dbniu1Te2Fg==}
+ engines: {node: '>= 10'}
+ cpu: [x64]
+ os: [linux]
+
+ '@tailwindcss/[email protected]':
+ resolution: {integrity: sha512-e3C/RRhGunWYNC3aSF7exsQkdXzQ/M+aYuZHKnw4U7KQwTJotnWsGOIVih0s2qQzmEzOFIJ3+xt7iq67K/p56Q==}
+ engines: {node: '>= 10'}
+ cpu: [x64]
+ os: [linux]
+
+ '@tailwindcss/[email protected]':
+ resolution: {integrity: sha512-Xo1+/GU0JEN/C/dvcammKHzeM6NqKovG+6921MR6oadee5XPBaKOumrJCXvopJ/Qb5TH7LX/UAywbqrP4lax0g==}
+ engines: {node: '>=14.0.0'}
+ cpu: [wasm32]
+ bundledDependencies:
+ - '@napi-rs/wasm-runtime'
+ - '@emnapi/core'
+ - '@emnapi/runtime'
+ - '@tybys/wasm-util'
+ - '@emnapi/wasi-threads'
+ - tslib
+
+ '@tailwindcss/[email protected]':
+ resolution: {integrity: sha512-UgKYx5PwEKrac3GPNPf6HVMNhUIGuUh4wlDFR2jYYdkX6pL/rn73zTq/4pzUm8fOjAn5L8zDeHp9iXmUGOXZ+w==}
+ engines: {node: '>= 10'}
+ cpu: [arm64]
+ os: [win32]
+
+ '@tailwindcss/[email protected]':
+ resolution: {integrity: sha512-YfHoggn1j0LK7wR82TOucWc5LDCguHnoS879idHekmmiR7g9HUtMw9MI0NHatS28u/Xlkfi9w5RJWgz2Dl+5Qg==}
+ engines: {node: '>= 10'}
+ cpu: [x64]
+ os: [win32]
+
+ '@tailwindcss/[email protected]':
+ resolution: {integrity: sha512-Q69XzrtAhuyfHo+5/HMgr1lAiPP/G40OMFAnws7xcFEYqcypZmdW8eGXaOUIeOl1dzPJBPENXgbjsOyhg2nkrg==}
+ engines: {node: '>= 10'}
+
+ '@tailwindcss/[email protected]':
+ resolution: {integrity: sha512-q/EAIIpF6WpLhKEuQSEVMZNMIY8KhWoAemZ9eylNAih9jxMGAYPPWBn3I9QL/2jZ+e7OEz/tZkX5HwbBR4HohA==}
+
'@tailwindcss/[email protected]':
resolution: {integrity: sha512-0wDLwCVF5V3x3b1SGXPCDcdsbDHMBe+lkFzBRaHeLvNi+nrrnZ1lA18u+OTWO8iSWU2GxUOCvlXtDuqftc1oiA==}
peerDependencies:
@@ -4214,13 +4306,6 @@ packages:
resolution: {integrity: sha512-7UvmKalWRt1wgjL1RrGxoSJW/0QZFIegpeGvZG9kjp8vrRu55XTHbwnqq2GpXm9uLbcuhxm3IqX9OB4MZR1b2A==}
- resolution: {integrity: sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==}
- engines: {node: '>= 8'}
-
- resolution: {integrity: sha512-PYjyFOLKQ9y57JvQ6QLo8dAgNqswh8M1RMJYdQduT6xbWSgK36P/Z/v+p888pM69jMMfS8Xd8F6I1kQ/I9HUGg==}
-
resolution: {integrity: sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==}
@@ -4325,13 +4410,6 @@ packages:
resolution: {integrity: sha512-0bDNnY/u6pPwHDMoF0FieU354oBi0a8rD9FcsLwzcGWbc8KS8KPIi7y+s13OlVY+gMWc/9xEMUgNE6Qm8ZllYQ==}
engines: {node: '>=4'}
- resolution: {integrity: sha512-O+A6LWV5LDHSJD3LjHYoNi4VLsj/Whi7k6zG12xTYaU4cQ8oxQGckXNX8cRHK5yOZ/ppVHe0ZBXGzSV9jXdVbQ==}
- engines: {node: ^10 || ^12 || >=14}
- hasBin: true
- peerDependencies:
- postcss: ^8.1.0
-
resolution: {integrity: sha512-wvUjBtSGN7+7SjNpq/9M2Tg350UZD3q62IFZLbRAR1bSMlCo1ZaeW+BJ+D090e4hIIZLBcTDWe4Mh4jvUDajzQ==}
engines: {node: '>= 0.4'}
@@ -4375,10 +4453,6 @@ packages:
resolution: {integrity: sha512-aVNobHnJqLiUelTaHat9DZ1qM2w0C0Eym4LPI/3JxOnSokGVdsl1T1kN7TFvsEAD8G47A6VKQ0TVHqbBnYMJlQ==}
engines: {node: '>=12.0.0'}
- resolution: {integrity: sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==}
- engines: {node: '>=8'}
-
resolution: {integrity: sha512-H0ea4Fd3lS1+sTEB2TgcLoK21lLhwEJzlQv3IN47pJS976Gx4zoWe0ak3q+uYh60ppQxg9F16Ri4tS1sfD4+jA==}
@@ -4462,10 +4536,6 @@ packages:
resolution: {integrity: sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==}
engines: {node: '>=6'}
- resolution: {integrity: sha512-QOSvevhslijgYwRx6Rv7zKdMF8lbRmx+uQGx2+vDc+KI/eBnsy9kit5aj23AgGu3pa4t9AgwbnXWqS+iOY+2aA==}
- engines: {node: '>= 6'}
-
resolution: {integrity: sha512-4nhGqUkc4BqbBBB4Q6zLuD7lzzrHYrjKGeYaEji/3tFR5VdJu9v+LilhGIVe8wxEJPPOeWo7eg8dwY13TZ1BNg==}
engines: {node: '>=0.10.0'}
@@ -4545,14 +4615,14 @@ packages:
resolution: {integrity: sha512-ci2iJH6LeIkvP9eJW6gpueU8cnZhv85ELY8w8WiFtNjMHA5ad6pQLaJo9mEly/9qUyCpvqX8/POVUTf18/HFdw==}
- resolution: {integrity: sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==}
- engines: {node: '>= 8.10.0'}
-
resolution: {integrity: sha512-Qgzu8kfBvo+cA4962jnP1KkS6Dop5NS6g7R5LFYJr4b8Ub94PPQXUksCw9PvXoeXPRRddRNC5C1JQUR2SMGtnA==}
engines: {node: '>= 14.16.0'}
+ resolution: {integrity: sha512-+IxzY9BZOQd/XuYPRmrvEVjF/nqj5kgT4kEq7VofrDoM1MxoRjEWkrCC3EtLi59TVawxTAn+orJwFQcrqEN1+g==}
+ engines: {node: '>=18'}
+
resolution: {integrity: sha512-rNjApaLzuwaOTjCiT8lSDdGN1APCiqkChLMJxJPWLunPAt5fy8xgU9/jNOchV84wfIxrA0lRQB7oCT8jrn/wrQ==}
engines: {node: '>=6.0'}
@@ -5192,15 +5262,16 @@ packages:
resolution: {integrity: sha512-I3JIbrnKPAntNLl1I6TpSQQdQ4AutYzv/sKMFKbepawV/hlH0GmYKhUoOEMd4xqaUHT+Bm0f4127lh5qs1m1tw==}
+ resolution: {integrity: sha512-3UDv+G9CsCKO1WKMGw9fwq/SWJYbI0c5Y7LU1AXYoDdbhE2AHQ6N6Nb34sG8Fj7T5APy8qXDCKuuIHd1BR0tVA==}
+ engines: {node: '>=8'}
+
resolution: {integrity: sha512-ypdmJU/TbBby2Dxibuv7ZLW3Bs1QEmM7nHjEANfohJLvE0XVujisn1qPJcZxg+qDucsr+bP6fLD1rPS3AhJ7EQ==}
resolution: {integrity: sha512-RWmIqhcFf1lRYBvNmr7qTNuyCt/7/ns2jbpp1+PalgE/rDQcBT0fioSMUpJ93irlUhC5hrg4cYqe6U+0ImW0rA==}
- resolution: {integrity: sha512-gxtyfqMg7GKyhQmb056K7M3xszy/myH8w+B4RT+QXBQsvAOdc3XymqDDPHx1BgPgsdAA5SIifona89YtRATDzw==}
-
resolution: {integrity: sha512-IayShXAgj/QMXgB0IWmKx+rOPuGMhqm5w6jvFxmVenXKIzRqTAAsbBPT3kWQeGANj3jGgvcvv4yK6SxqYmikgw==}
@@ -5215,9 +5286,6 @@ packages:
resolution: {integrity: sha512-c68LpLbO+7kP/b1Hr1qs8/BJ09F5khZGTxqxZuhzxpmwJKOgRFHJWIb9/KmqnqHhLdO55aOxFH/EGBvUQbL/RQ==}
- resolution: {integrity: sha512-+HlytyjlPKnIG8XuRG8WvmBP8xs8P71y+SKKS6ZXWoEgLuePxtDoUEiH7WkdePWrQ5JBpE6aoVqfZfJUQkjXwA==}
-
resolution: {integrity: sha512-+PVS2VPTgKFPYWo3vAFEA8WPbTf7/xo43TifH9G8S1KqnrQu0o77A3unrF5yOugy4mIz7K5wAVFHUcha7wsz6A==}
@@ -5691,9 +5759,6 @@ packages:
resolution: {integrity: sha512-qsITQPfmvMOSAdeyZ+12I1c+CKSstAFAwu+97zrnWAbIr5u8wfsExUzCesVLC8NgHuRUqNN4Zy6UPWUTRGslcA==}
engines: {node: '>= 6'}
- resolution: {integrity: sha512-ZsDfxO51wGAXREY55a7la9LScWpwv9RxIrYABrlvOFBlH/ShPnrtsXeuUIfXKKOVicNxQ+o8JTbJvjS4M89yew==}
-
resolution: {integrity: sha512-OMcX/4IC/uqEPVgGeyfN22LJk6AZrMkRZHxcHBMBvHScDGgwTm2GT2Wkgtocyd3JfZffjj2kYUDXXII0Fk9W0g==}
@@ -6141,10 +6206,6 @@ packages:
resolution: {integrity: sha512-n4ZT37wG78iz03xPRKJrHTdZbe3IicyucEtdRsV5yglwc3GyUfbAfpSeD0FJ41NbUNSt5wbhqfp1fS+BgnvDFQ==}
engines: {node: '>= 0.4'}
- resolution: {integrity: sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==}
- engines: {node: '>=8'}
-
resolution: {integrity: sha512-wa56o2/ElJMYqjCjGkXri7it5FbebW5usLw/nPmCMs5DeZ7eziSYZhSmPRn0txqeW4LnAmQQU7FgqLpsEFKM4A==}
engines: {node: '>= 0.4'}
@@ -6358,8 +6419,8 @@ packages:
resolution: {integrity: sha512-7vuh85V5cdDofPyxn58nrPjBktZo0u9x1g8WtjQol+jZDaE+fhN+cIvTj11GndBnMnyfrUOG1sZQxCdjKh+DKg==}
engines: {node: '>= 10.13.0'}
- resolution: {integrity: sha512-/imKNG4EbWNrVjoNC/1H5/9GFy+tqjGBHCaSsN+P2RnPqjsLmv6UD3Ej+Kj8nBWaRAwyk7kK5ZUc+OEatnTR3A==}
+ resolution: {integrity: sha512-twQoecYPiVA5K/h6SxtORw/Bs3ar+mLUtoPSc7iMXzQzK8d7eJ/R09wmTwAjiamETn1cXYPGfNnu7DMoHgu12w==}
hasBin: true
@@ -6539,6 +6600,70 @@ packages:
resolution: {integrity: sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==}
engines: {node: '>= 0.8.0'}
+ resolution: {integrity: sha512-c8JK7hyE65X1MHMN+Viq9n11RRC7hgin3HhYKhrMyaXflk5GVplZ60IxyoVtzILeKr+xAJwg6zK6sjTBJ0FKYQ==}
+ engines: {node: '>= 12.0.0'}
+ cpu: [arm64]
+ os: [darwin]
+
+ resolution: {integrity: sha512-k1EvjakfumAQoTfcXUcHQZhSpLlkAuEkdMBsI/ivWw9hL+7FtilQc0Cy3hrx0AAQrVtQAbMI7YjCgYgvn37PzA==}
+ engines: {node: '>= 12.0.0'}
+ cpu: [x64]
+ os: [darwin]
+
+ resolution: {integrity: sha512-kmW6UGCGg2PcyUE59K5r0kWfKPAVy4SltVeut+umLCFoJ53RdCUWxcRDzO1eTaxf/7Q2H7LTquFHPL5R+Gjyig==}
+ engines: {node: '>= 12.0.0'}
+ cpu: [x64]
+ os: [freebsd]
+
+ resolution: {integrity: sha512-MjxUShl1v8pit+6D/zSPq9S9dQ2NPFSQwGvxBCYaBYLPlCWuPh9/t1MRS8iUaR8i+a6w7aps+B4N0S1TYP/R+Q==}
+ engines: {node: '>= 12.0.0'}
+ cpu: [arm]
+ os: [linux]
+
+ resolution: {integrity: sha512-gB72maP8rmrKsnKYy8XUuXi/4OctJiuQjcuqWNlJQ6jZiWqtPvqFziskH3hnajfvKB27ynbVCucKSm2rkQp4Bw==}
+ engines: {node: '>= 12.0.0'}
+ cpu: [arm64]
+ os: [linux]
+
+ resolution: {integrity: sha512-jmUQVx4331m6LIX+0wUhBbmMX7TCfjF5FoOH6SD1CttzuYlGNVpA7QnrmLxrsub43ClTINfGSYyHe2HWeLl5CQ==}
+ engines: {node: '>= 12.0.0'}
+ cpu: [arm64]
+ os: [linux]
+
+ resolution: {integrity: sha512-piWx3z4wN8J8z3+O5kO74+yr6ze/dKmPnI7vLqfSqI8bccaTGY5xiSGVIJBDd5K5BHlvVLpUB3S2YCfelyJ1bw==}
+ engines: {node: '>= 12.0.0'}
+ cpu: [x64]
+ os: [linux]
+
+ resolution: {integrity: sha512-rRomAK7eIkL+tHY0YPxbc5Dra2gXlI63HL+v1Pdi1a3sC+tJTcFrHX+E86sulgAXeI7rSzDYhPSeHHjqFhqfeQ==}
+ engines: {node: '>= 12.0.0'}
+ cpu: [x64]
+ os: [linux]
+
+ resolution: {integrity: sha512-mSL4rqPi4iXq5YVqzSsJgMVFENoa4nGTT/GjO2c0Yl9OuQfPsIfncvLrEW6RbbB24WtZ3xP/2CCmI3tNkNV4oA==}
+ engines: {node: '>= 12.0.0'}
+ cpu: [arm64]
+ os: [win32]
+
+ resolution: {integrity: sha512-PVqXh48wh4T53F/1CCu8PIPCxLzWyCnn/9T5W1Jpmdy5h9Cwd+0YQS6/LwhHXSafuc61/xg9Lv5OrCby6a++jg==}
+ engines: {node: '>= 12.0.0'}
+ cpu: [x64]
+ os: [win32]
+
+ resolution: {integrity: sha512-xi6IyHML+c9+Q3W0S4fCQJOym42pyurFiJUHEcEyHS0CeKzia4yZDEsLlqOFykxOdHpNy0NmvVO31vcSqAxJCg==}
+ engines: {node: '>= 12.0.0'}
+
resolution: {integrity: sha512-/vlFKAoH5Cgt3Ie+JLhRbwOsCQePABiU3tJ1egGvyQ+33R/vcwM2Zl2QR/LzjsBeItPt3oSVXapn+m4nQDvpzw==}
engines: {node: '>=14'}
@@ -6832,9 +6957,18 @@ packages:
resolution: {integrity: sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==}
engines: {node: '>=16 || 14 >=14.17'}
+ resolution: {integrity: sha512-oG62iEk+CYt5Xj2YqI5Xi9xWUeZhDI8jjQmC5oThVH5JGCTgIjr7ciJDzC7MBzYd//WvR1OTmP5Q38Q8ShQtVA==}
+ engines: {node: '>= 18'}
+
resolution: {integrity: sha512-vKivATfr97l2/QBCYAkXYDbrIWPM2IIKEl7YPhjCvKlG3kE2gm+uBo6nEXK3M5/Ffh/FLpKExzOQ3JJoJGFKBw==}
+ resolution: {integrity: sha512-+NsyUUAZDmo6YVHzL/stxSu3t9YS1iljliy3BSDrXJ/dkn1KYdmtZODGGjLcc9XLgVVpH4KshHB8XmZgMhaBXg==}
+ engines: {node: '>=10'}
+ hasBin: true
+
resolution: {integrity: sha512-qmdSIPC4bDJXgZTCR7XosJiNKySV7O215tsPtDN9iEO/7q/76b/ijtgRu/+epFXSJhijtTCCGp3DWS549P3xKw==}
@@ -6928,10 +7062,6 @@ packages:
resolution: {integrity: sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==}
engines: {node: '>=0.10.0'}
- resolution: {integrity: sha512-bdok/XvKII3nUpklnV6P2hxtMNrCboOjAcyBuQnWEhO665FwrSNRxU+AqpsyvO6LgGYPspN+lu5CLtw4jPRKNA==}
- engines: {node: '>=0.10.0'}
-
resolution: {integrity: sha512-1/kmYej2iedi5+ROxkRESL/pI02pkg0OBnaR4hJkSIX6+ORzepwbuUXfrdZaPjysTsJInj0Rj5NuX027+dMBvA==}
@@ -6968,10 +7098,6 @@ packages:
resolution: {integrity: sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==}
engines: {node: '>=0.10.0'}
- resolution: {integrity: sha512-RSn9F68PjH9HqtltsSnqYC1XXoWe9Bju5+213R98cNGttag9q9yAOTzdbsqvIa7aNm5WffBZFpWYr2aWrklWAw==}
- engines: {node: '>= 6'}
-
resolution: {integrity: sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==}
engines: {node: '>= 0.4'}
@@ -7307,30 +7433,6 @@ packages:
peerDependencies:
postcss: ^8.4.32
- resolution: {integrity: sha512-hpr+J05B2FVYUAXHeK1YyI267J/dDDhMU6B6civm8hSY1jYJnBXxzKDKDswzJmtLHryrjhnDjqqp/49t8FALew==}
- engines: {node: '>=14.0.0'}
- peerDependencies:
- postcss: ^8.0.0
-
- resolution: {integrity: sha512-dDLF8pEO191hJMtlHFPRa8xsizHaM82MLfNkUHdUtVEV3tgTp5oj+8qbEqYM57SLfc74KSbw//4SeJma2LRVIw==}
- engines: {node: ^12 || ^14 || >= 16}
- peerDependencies:
- postcss: ^8.4.21
-
- resolution: {integrity: sha512-bSVhyJGL00wMVoPUzAVAnbEoWyqRxkjv64tUl427SKnPrENtq6hJwUojroMz2VB+Q1edmi4IfrAPpami5VVgMQ==}
- engines: {node: '>= 14'}
- peerDependencies:
- postcss: '>=8.0.9'
- ts-node: '>=9.0.0'
- peerDependenciesMeta:
- postcss:
- optional: true
- ts-node:
- optional: true
-
resolution: {integrity: sha512-oPtTM4oerL+UXmx+93ytZVN82RrlY/wPUV8IeDxFrzIjXOLF1pN+EmKPLbubvKHT2HC20xXsCAH2Z+CKV6Oz/g==}
engines: {node: '>= 18'}
@@ -7409,12 +7511,6 @@ packages:
peerDependencies:
postcss: ^8.1.0
- resolution: {integrity: sha512-HQbt28KulC5AJzG+cZtj9kvKB93CFCdLvog1WFLf1D+xmMvPGlBstkpTEZfK5+AN9hfJocyBFCNiqyS48bpgzQ==}
- engines: {node: '>=12.0'}
- peerDependencies:
- postcss: ^8.2.14
-
resolution: {integrity: sha512-sn413ofhSQHlZFae//m9FTOfkmiZ+YQXsbosqOWRiVQncU2BA3daX3n0VF3cG6rGLSFVc5Di/yns0dFfh8NFgQ==}
engines: {node: ^18.12.0 || ^20.9.0 || >=22.0}
@@ -7503,10 +7599,6 @@ packages:
resolution: {integrity: sha512-IQ7TZdoaqbT+LCpShg46jnZVlhWD2w6iQYAcYXfHARZ7X1t/UGhhceQDs5X0cGqKvYlHNOuv7Oa1xmb0oQuA3w==}
engines: {node: '>=4'}
- resolution: {integrity: sha512-Q8qQfPiZ+THO/3ZrOrO0cJJKfpYCagtMUkXbnEfmgUjwXg6z/WBeOyS9APBBPCTSiDV+s4SwQGu8yFsiMRIudg==}
- engines: {node: '>=4'}
-
resolution: {integrity: sha512-8sLjZwK0R+JlxlYcTuVnyT2v+htpdrjDOKuMcOVdYjt52Lh8hWRYpxBPoKx/Zg+bcjc3wx6fmQevMmUztS/ccA==}
engines: {node: '>=4'}
@@ -7854,9 +7946,6 @@ packages:
react: '>=17'
react-dom: '>=17'
- resolution: {integrity: sha512-Owdv/Ft7IjOgm/i0xvNDZ1LrRANRfew4b2prF3OWMQLxLfu3bS8FVhCsrSCMK4lR56Y9ya+AThoTpDCTxCmpRA==}
-
resolution: {integrity: sha512-0J+Msgym3vrLOUB3hzQCuZHII0xkNGCtz/HJH9xZshwv9DbDwkw1KaE3gx/e2J5rpEY5rtOy6cyhKOPrkP7FZw==}
engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0}
@@ -7883,10 +7972,6 @@ packages:
resolution: {integrity: sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==}
- resolution: {integrity: sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==}
- engines: {node: '>=8.10.0'}
-
resolution: {integrity: sha512-GDhwkLfywWL2s6vEjyhri+eXmfH6j1L7JE27WhqLeYzoh/A3DBaYGEj2H/HFZCn/kMfim73FXxEJTw06WtxQwg==}
engines: {node: '>= 14.18.0'}
@@ -8469,15 +8554,17 @@ packages:
peerDependencies:
tailwindcss: '>=3.0.0 || insiders'
- resolution: {integrity: sha512-w33E2aCvSDP0tW9RZuNXadXlkHXqFzSkQew/aIa2i/Sj8fThxwovwlXHSPXTbAHwEIhBFXAedUhP2tueAKP8Og==}
- engines: {node: '>=14.0.0'}
- hasBin: true
+ resolution: {integrity: sha512-2E9TBm6MDD/xKYe+dvJZAmg3yxIEDNRc0jwlNyDg/4Fil2QcSLjFKGVff0lAf1jjeaArlG/M75Ey/EYr/OJtBA==}
resolution: {integrity: sha512-Re10+NauLTMCudc7T5WLFLAwDhQ0JWdrMK+9B2M8zR5hRExKmsRDCBA7/aV/pNJFltmBFO5BAMlQFi/vq3nKOg==}
engines: {node: '>=6'}
+ resolution: {integrity: sha512-5S7Va8hKfV7W5U6g3aYxXmlPoZVAwUMy9AOKyF2fVuZa2UD3qZjg578OrLRt8PcNN1PleVaL/5/yYATNL0ICUw==}
+ engines: {node: '>=18'}
+
resolution: {integrity: sha512-vkZjpUjb6OMS7dhV+tILUW6BhpDR7P2L/aQSAv+Uwk+m8KATX9EccViHTJR2qDtACKPIYndLGCyl3FMo+r2LMw==}
engines: {node: '>= 10.13.0'}
@@ -9415,6 +9502,10 @@ packages:
resolution: {integrity: sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==}
+ resolution: {integrity: sha512-YgvUTfwqyc7UXVMrB+SImsVYSmTS8X/tSrtdNZMImM+n7+QTriRXyXim0mBrTXNeqzVF0KWGgHPeiyViFFrNDw==}
+ engines: {node: '>=18'}
+
resolution: {integrity: sha512-2PTINUwsRqSd+s8XxKaJWQlUuEMHJQyEuh2edBbW8KNJz0SJPwUSD2zRWqezFEdN7IzAgeuYHFUCF7o8zRdZ0A==}
@@ -9918,11 +10009,11 @@ snapshots:
unplugin: 1.16.1
zod: 3.25.76
dependencies:
'@codecov/bundler-plugin-core': 1.9.1
unplugin: 1.16.1
'@codemirror/[email protected]':
dependencies:
@@ -10629,16 +10720,20 @@ snapshots:
wrap-ansi: 8.1.0
wrap-ansi-cjs: [email protected]
+ '@isaacs/[email protected]':
+ dependencies:
+ minipass: 7.1.2
+
dependencies:
'@sinclair/typebox': 0.27.8
dependencies:
glob: 10.4.5
magic-string: 0.30.17
react-docgen-typescript: 2.4.0([email protected])
optionalDependencies:
typescript: 5.8.3
@@ -13007,12 +13102,12 @@ snapshots:
optionalDependencies:
react: 19.1.0
dependencies:
'@storybook/csf-plugin': 9.0.18([email protected](@testing-library/[email protected]))
storybook: 9.0.18(@testing-library/[email protected])
ts-dedent: 2.2.0
'@storybook/[email protected]([email protected](@testing-library/[email protected]))':
dependencies:
@@ -13032,11 +13127,11 @@ snapshots:
react-dom: 19.1.0([email protected])
storybook: 9.0.18(@testing-library/[email protected])
dependencies:
- '@joshwooding/vite-plugin-react-docgen-typescript': 0.6.1([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected]))
'@rollup/pluginutils': 5.2.0([email protected])
find-up: 7.0.0
magic-string: 0.30.17
@@ -13046,7 +13141,7 @@ snapshots:
resolve: 1.22.10
storybook: 9.0.18(@testing-library/[email protected])
tsconfig-paths: 4.2.0
transitivePeerDependencies:
- rollup
- supports-color
@@ -13123,13 +13218,85 @@ snapshots:
'@swc/[email protected]': {}
+ '@tailwindcss/[email protected]':
+ dependencies:
+ '@ampproject/remapping': 2.3.0
+ enhanced-resolve: 5.18.2
+ jiti: 2.5.1
+ lightningcss: 1.30.1
+ magic-string: 0.30.17
+ source-map-js: 1.2.1
+ tailwindcss: 4.1.11
+
+ '@tailwindcss/[email protected]':
+ optional: true
+
+ '@tailwindcss/[email protected]':
+ optional: true
+
+ '@tailwindcss/[email protected]':
+ optional: true
+
+ '@tailwindcss/[email protected]':
+ optional: true
+
+ '@tailwindcss/[email protected]':
+ optional: true
+
+ '@tailwindcss/[email protected]':
+ optional: true
+
+ '@tailwindcss/[email protected]':
+ optional: true
+
+ '@tailwindcss/[email protected]':
+ optional: true
+
+ '@tailwindcss/[email protected]':
+ optional: true
+
+ '@tailwindcss/[email protected]':
+ optional: true
+
+ '@tailwindcss/[email protected]':
+ optional: true
+
+ '@tailwindcss/[email protected]':
+ optional: true
+
+ '@tailwindcss/[email protected]':
+ dependencies:
+ detect-libc: 2.0.4
+ tar: 7.4.3
+ optionalDependencies:
+ '@tailwindcss/oxide-android-arm64': 4.1.11
+ '@tailwindcss/oxide-darwin-arm64': 4.1.11
+ '@tailwindcss/oxide-darwin-x64': 4.1.11
+ '@tailwindcss/oxide-freebsd-x64': 4.1.11
+ '@tailwindcss/oxide-linux-arm-gnueabihf': 4.1.11
+ '@tailwindcss/oxide-linux-arm64-gnu': 4.1.11
+ '@tailwindcss/oxide-linux-arm64-musl': 4.1.11
+ '@tailwindcss/oxide-linux-x64-gnu': 4.1.11
+ '@tailwindcss/oxide-linux-x64-musl': 4.1.11
+ '@tailwindcss/oxide-wasm32-wasi': 4.1.11
+ '@tailwindcss/oxide-win32-arm64-msvc': 4.1.11
+ '@tailwindcss/oxide-win32-x64-msvc': 4.1.11
+
+ '@tailwindcss/[email protected]':
+ dependencies:
+ '@alloc/quick-lru': 5.2.0
+ '@tailwindcss/node': 4.1.11
+ '@tailwindcss/oxide': 4.1.11
+ postcss: 8.5.6
+ tailwindcss: 4.1.11
+
dependencies:
lodash.castarray: 4.4.0
lodash.isplainobject: 4.0.6
lodash.merge: 4.6.2
postcss-selector-parser: 6.0.10
- tailwindcss: 3.4.17
+ tailwindcss: 4.1.11
dependencies:
@@ -13732,15 +13899,15 @@ snapshots:
'@connectrpc/connect': 1.6.1(@bufbuild/[email protected])
'@connectrpc/connect-web': 1.6.1(@bufbuild/[email protected])(@connectrpc/[email protected](@bufbuild/[email protected]))
dependencies:
'@rolldown/pluginutils': 1.0.0-beta.27
'@swc/core': 1.12.14(@swc/[email protected])
transitivePeerDependencies:
- '@swc/helpers'
dependencies:
'@babel/core': 7.28.0
'@babel/plugin-transform-react-jsx-self': 7.27.1(@babel/[email protected])
@@ -13748,7 +13915,7 @@ snapshots:
'@rolldown/pluginutils': 1.0.0-beta.27
'@types/babel__core': 7.20.5
react-refresh: 0.17.0
transitivePeerDependencies:
- supports-color
@@ -13766,14 +13933,14 @@ snapshots:
chai: 5.2.1
tinyrainbow: 2.0.0
dependencies:
'@vitest/spy': 3.2.4
estree-walker: 3.0.3
magic-string: 0.30.17
optionalDependencies:
'@vitest/[email protected]':
dependencies:
@@ -14000,13 +14167,6 @@ snapshots:
- dependencies:
- normalize-path: 3.0.0
- picomatch: 2.3.1
-
-
dependencies:
sprintf-js: 1.0.3
@@ -14120,16 +14280,6 @@ snapshots:
- dependencies:
- browserslist: 4.25.1
- caniuse-lite: 1.0.30001727
- fraction.js: 4.3.7
- normalize-range: 0.1.2
- picocolors: 1.1.1
- postcss: 8.5.6
- postcss-value-parser: 4.2.0
-
dependencies:
possible-typed-array-names: 1.1.0
@@ -14168,8 +14318,6 @@ snapshots:
dependencies:
open: 8.4.2
-
@@ -14260,8 +14408,6 @@ snapshots:
-
@@ -14347,22 +14493,12 @@ snapshots:
'@chevrotain/utils': 11.0.3
lodash-es: 4.17.21
- dependencies:
- anymatch: 3.1.3
- braces: 3.0.3
- glob-parent: 5.1.2
- is-binary-path: 2.1.0
- is-glob: 4.0.3
- normalize-path: 3.0.0
- readdirp: 3.6.0
- optionalDependencies:
- fsevents: 2.3.3
-
dependencies:
readdirp: 4.1.2
+
@@ -15059,14 +15195,14 @@ snapshots:
+
dependencies:
dequal: 2.0.3
-
@@ -15077,8 +15213,6 @@ snapshots:
-
dependencies:
'@react-dnd/asap': 4.0.1
@@ -15459,13 +15593,13 @@ snapshots:
transitivePeerDependencies:
- supports-color
dependencies:
'@typescript-eslint/utils': 7.18.0([email protected])([email protected])
eslint: 8.57.1
optionalDependencies:
'@typescript-eslint/eslint-plugin': 7.18.0(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])
transitivePeerDependencies:
- supports-color
- typescript
@@ -15736,8 +15870,6 @@ snapshots:
hasown: 2.0.2
mime-types: 2.1.35
-
dependencies:
inherits: 2.0.4
@@ -16260,10 +16392,6 @@ snapshots:
dependencies:
has-bigints: 1.1.0
- dependencies:
- binary-extensions: 2.3.0
-
dependencies:
call-bound: 1.0.4
@@ -16451,7 +16579,7 @@ snapshots:
merge-stream: 2.0.0
supports-color: 8.1.1
dependencies:
@@ -16628,6 +16756,51 @@ snapshots:
prelude-ls: 1.2.1
type-check: 0.4.0
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ dependencies:
+ detect-libc: 2.0.4
+ optionalDependencies:
+ lightningcss-darwin-arm64: 1.30.1
+ lightningcss-darwin-x64: 1.30.1
+ lightningcss-freebsd-x64: 1.30.1
+ lightningcss-linux-arm-gnueabihf: 1.30.1
+ lightningcss-linux-arm64-gnu: 1.30.1
+ lightningcss-linux-arm64-musl: 1.30.1
+ lightningcss-linux-x64-gnu: 1.30.1
+ lightningcss-linux-x64-musl: 1.30.1
+ lightningcss-win32-arm64-msvc: 1.30.1
+ lightningcss-win32-x64-msvc: 1.30.1
+
@@ -17087,8 +17260,14 @@ snapshots:
+ dependencies:
+ minipass: 7.1.2
+
+
dependencies:
acorn: 8.15.0
@@ -17195,8 +17374,6 @@ snapshots:
-
@@ -17232,8 +17409,6 @@ snapshots:
-
@@ -17621,30 +17796,11 @@ snapshots:
dependencies:
postcss: 8.5.6
- dependencies:
- postcss: 8.5.6
- postcss-value-parser: 4.2.0
- read-cache: 1.0.0
- resolve: 1.22.10
-
- dependencies:
- camelcase-css: 2.0.1
- postcss: 8.5.6
-
- dependencies:
- lilconfig: 3.1.3
- yaml: 2.8.0
- optionalDependencies:
- postcss: 8.5.6
-
dependencies:
lilconfig: 3.1.3
optionalDependencies:
- jiti: 1.21.7
+ jiti: 2.5.1
postcss: 8.5.6
yaml: 2.8.0
@@ -17708,11 +17864,6 @@ snapshots:
icss-utils: 5.1.0([email protected])
postcss: 8.5.6
- dependencies:
- postcss: 8.5.6
- postcss-selector-parser: 6.1.2
-
dependencies:
postcss: 8.5.6
@@ -17790,11 +17941,6 @@ snapshots:
cssesc: 3.0.0
util-deprecate: 1.0.2
- dependencies:
- cssesc: 3.0.0
- util-deprecate: 1.0.2
-
dependencies:
cssesc: 3.0.0
@@ -18283,10 +18429,6 @@ snapshots:
- '@types/react'
- immer
- dependencies:
- pify: 2.3.0
-
dependencies:
json-parse-even-better-errors: 3.0.2
@@ -18333,10 +18475,6 @@ snapshots:
string_decoder: 1.1.1
util-deprecate: 1.0.2
- dependencies:
- picomatch: 2.3.1
-
@@ -19127,39 +19265,23 @@ snapshots:
dependencies:
- tailwindcss: 3.4.17
+ tailwindcss: 4.1.11
- dependencies:
- '@alloc/quick-lru': 5.2.0
- arg: 5.0.2
- chokidar: 3.6.0
- didyoumean: 1.2.2
- dlv: 1.1.3
- fast-glob: 3.3.3
- glob-parent: 6.0.2
- is-glob: 4.0.3
- jiti: 1.21.7
- lilconfig: 3.1.3
- micromatch: 4.0.8
- normalize-path: 3.0.0
- object-hash: 3.0.0
- picocolors: 1.1.1
- postcss: 8.5.6
- postcss-import: 15.1.0([email protected])
- postcss-js: 4.0.1([email protected])
- postcss-load-config: 4.0.2([email protected])
- postcss-nested: 6.2.0([email protected])
- postcss-selector-parser: 6.1.2
- resolve: 1.22.10
- sucrase: 3.35.0
- transitivePeerDependencies:
- - ts-node
+ dependencies:
+ '@isaacs/fs-minipass': 4.0.1
+ chownr: 3.0.0
+ minipass: 7.1.2
+ minizlib: 3.0.2
+ mkdirp: 3.0.1
+ yallist: 5.0.0
+
dependencies:
'@jridgewell/trace-mapping': 0.3.29
@@ -19327,7 +19449,7 @@ snapshots:
dependencies:
bundle-require: 5.1.0([email protected])
cac: 6.7.14
@@ -19338,7 +19460,7 @@ snapshots:
fix-dts-default-cjs-exports: 1.0.1
joycon: 3.1.1
picocolors: 1.1.1
resolve-from: 5.0.0
rollup: 4.45.1
source-map: 0.8.0-beta.0
@@ -19938,13 +20060,13 @@ snapshots:
'@types/unist': 3.0.3
vfile-message: 4.0.2
dependencies:
cac: 6.7.14
debug: 4.4.1([email protected])
es-module-lexer: 1.7.0
pathe: 2.0.3
transitivePeerDependencies:
- '@types/node'
- jiti
@@ -19959,33 +20081,33 @@ snapshots:
- tsx
- yaml
dependencies:
'@rollup/plugin-virtual': 3.0.2([email protected])
'@swc/core': 1.12.14(@swc/[email protected])
'@swc/wasm': 1.13.2
uuid: 10.0.0
transitivePeerDependencies:
- '@swc/helpers'
- rollup
dependencies:
dependencies:
debug: 4.4.1([email protected])
globrex: 0.1.2
tsconfck: 3.1.6([email protected])
optionalDependencies:
transitivePeerDependencies:
- supports-color
- typescript
dependencies:
esbuild: 0.25.6
fdir: 6.4.6([email protected])
@@ -19996,15 +20118,16 @@ snapshots:
optionalDependencies:
'@types/node': 24.0.14
fsevents: 2.3.3
- jiti: 1.21.7
+ jiti: 2.5.1
+ lightningcss: 1.30.1
terser: 5.43.1
yaml: 2.8.0
dependencies:
'@types/chai': 5.2.2
'@vitest/expect': 3.2.4
'@vitest/pretty-format': 3.2.4
'@vitest/runner': 3.2.4
'@vitest/snapshot': 3.2.4
@@ -20022,8 +20145,8 @@ snapshots:
tinyglobby: 0.2.14
tinypool: 1.1.1
tinyrainbow: 2.0.0
why-is-node-running: 2.3.0
optionalDependencies:
'@types/debug': 4.1.12
@@ -20295,11 +20418,14 @@ snapshots:
+
+ optional: true
dependencies: