/* Copyright 2026 Marimo. All rights reserved. */
import type { Meta, StoryObj } from "@storybook/react-vite";
const COLORS = [
"bg-background",
"bg-foreground",
"bg-muted",
"bg-muted-foreground",
"bg-popover",
"bg-popover-foreground",
"bg-card",
"bg-card-foreground",
"bg-border",
"bg-input",
"bg-primary",
"bg-primary-foreground",
"bg-secondary",
"bg-secondary-foreground",
"bg-accent",
"bg-accent-foreground",
"bg-destructive",
"bg-destructive-foreground",
"bg-error",
"bg-error-foreground",
"bg-success",
"bg-success-foreground",
"bg-action",
"bg-action-hover",
"bg-action-foreground",
"bg-link",
"bg-link-visited",
"bg-ring",
];
const meta: Meta = {
title: "Variables",
args: {},
};
export default meta;
export const Colors: StoryObj = {
render: () => {
return (
{COLORS.map((color) => (
))}
);
},
};
const ROUND = [
"rounded-none",
"rounded-sm",
"rounded-md",
"rounded-lg",
"rounded-xl",
"rounded-2xl",
"rounded-3xl",
"rounded-full",
];
export const Round: StoryObj = {
render: () => {
return (
{ROUND.map((round) => (
))}
);
},
};
const SHADOWS = [
"shadow-xs",
"shadow-sm",
"shadow-md",
"shadow-lg",
"shadow-xl",
"shadow-2xl",
"shadow-inner",
"shadow-none",
];
const COLORED_SHADOWS = [
"shadow-xs shadow-blue-500",
"shadow-sm shadow-blue-500",
"shadow-md shadow-blue-500",
"shadow-lg shadow-blue-500",
"shadow-xl shadow-blue-500",
"shadow-2xl shadow-blue-500",
"shadow-inner shadow-blue-500",
];
const SOLID_SHADOWS = [
"shadow-xs-solid",
"shadow-sm-solid",
"shadow-md-solid",
"shadow-lg-solid",
"shadow-xl-solid",
"shadow-2xl-solid",
];
const MISC = [
"shadow-sm-solid shadow-accent",
"shadow-md-solid shadow-accent",
"shadow-sm-solid shadow-error",
"shadow-md-solid shadow-error",
];
export const Shadows: StoryObj = {
render: () => {
const renderShadows = (shadows: string[]) => (
{shadows.map((shadow) => (
))}
);
return (
{renderShadows(SHADOWS)}
{renderShadows(COLORED_SHADOWS)}
{renderShadows(SOLID_SHADOWS)}
{renderShadows(MISC)}
);
},
};