a
This commit is contained in:
@@ -0,0 +1,743 @@
|
||||
import { lazy } from "react";
|
||||
|
||||
export const componentConfig: {
|
||||
core: {
|
||||
[key: string]: {
|
||||
name: string;
|
||||
filePath: string;
|
||||
dependencies?: string[];
|
||||
preview?: React.LazyExoticComponent<() => JSX.Element>;
|
||||
};
|
||||
};
|
||||
examples: {
|
||||
[key: string]: {
|
||||
name: string;
|
||||
filePath: string;
|
||||
preview: React.LazyExoticComponent<() => JSX.Element>;
|
||||
};
|
||||
};
|
||||
} = {
|
||||
core: {
|
||||
accordion: {
|
||||
name: "accordion",
|
||||
dependencies: ["@radix-ui/react-accordion", "lucide-react"],
|
||||
filePath: "components/retroui/Accordion.tsx",
|
||||
},
|
||||
alert: {
|
||||
name: "alert",
|
||||
filePath: "components/retroui/Alert.tsx",
|
||||
},
|
||||
areaChart: {
|
||||
name: "areaChart",
|
||||
filePath: "components/retroui/charts/AreaChart.tsx",
|
||||
},
|
||||
avatar: {
|
||||
name: "avatar",
|
||||
filePath: "components/retroui/Avatar.tsx",
|
||||
},
|
||||
badge: {
|
||||
name: "badge",
|
||||
filePath: "components/retroui/Badge.tsx",
|
||||
},
|
||||
barChart: {
|
||||
name: "barChart",
|
||||
filePath: "components/retroui/charts/BarChart.tsx",
|
||||
},
|
||||
breadcrumb: {
|
||||
name: "breadcrumb",
|
||||
filePath: "components/retroui/Breadcrumb.tsx",
|
||||
},
|
||||
button: {
|
||||
name: "button",
|
||||
filePath: "components/retroui/Button.tsx",
|
||||
},
|
||||
calendar: {
|
||||
name: "calendar",
|
||||
filePath: "components/retroui/Calendar.tsx",
|
||||
},
|
||||
card: {
|
||||
name: "card",
|
||||
filePath: "components/retroui/Card.tsx",
|
||||
},
|
||||
carousel: {
|
||||
name: "carousel",
|
||||
filePath: "components/retroui/Carousel.tsx",
|
||||
},
|
||||
checkbox: {
|
||||
name: "checkbox",
|
||||
filePath: "components/retroui/Checkbox.tsx",
|
||||
},
|
||||
command: {
|
||||
name: "command",
|
||||
filePath: "components/retroui/Command.tsx",
|
||||
},
|
||||
"context-menu": {
|
||||
name: "context-menu",
|
||||
filePath: "components/retroui/ContextMenu.tsx",
|
||||
},
|
||||
dialog: {
|
||||
name: "dialog",
|
||||
filePath: "components/retroui/Dialog.tsx",
|
||||
},
|
||||
drawer: {
|
||||
name: "drawer",
|
||||
filePath: "components/retroui/Drawer.tsx",
|
||||
},
|
||||
empty: {
|
||||
name: "empty",
|
||||
filePath: "components/retroui/Empty.tsx",
|
||||
},
|
||||
input: {
|
||||
name: "input",
|
||||
filePath: "components/retroui/Input.tsx",
|
||||
},
|
||||
label: {
|
||||
name: "label",
|
||||
filePath: "components/retroui/Label.tsx",
|
||||
},
|
||||
lineChart: {
|
||||
name: "lineChart",
|
||||
filePath: "components/retroui/charts/LineChart.tsx",
|
||||
},
|
||||
loader: {
|
||||
name: "loader",
|
||||
filePath: "components/retroui/Loader.tsx",
|
||||
},
|
||||
menu: {
|
||||
name: "menu",
|
||||
filePath: "components/retroui/Menu.tsx",
|
||||
},
|
||||
pieChart: {
|
||||
name: "pieChart",
|
||||
filePath: "components/retroui/charts/PieChart.tsx",
|
||||
},
|
||||
popover: {
|
||||
name: "popover",
|
||||
filePath: "components/retroui/Popover.tsx",
|
||||
},
|
||||
progress: {
|
||||
name: "progress",
|
||||
filePath: "components/retroui/Progress.tsx",
|
||||
},
|
||||
radio: {
|
||||
name: "radio",
|
||||
filePath: "components/retroui/Radio.tsx",
|
||||
},
|
||||
select: {
|
||||
name: "select",
|
||||
filePath: "components/retroui/Select.tsx",
|
||||
},
|
||||
slider: {
|
||||
name: "slider",
|
||||
dependencies: ["@radix-ui/react-slider"],
|
||||
filePath: "components/retroui/Slider.tsx",
|
||||
},
|
||||
sonner: {
|
||||
name: "sonner",
|
||||
filePath: "components/retroui/Sonner.tsx",
|
||||
},
|
||||
switch: {
|
||||
name: "switch",
|
||||
filePath: "components/retroui/Switch.tsx",
|
||||
},
|
||||
table: {
|
||||
name: "table",
|
||||
filePath: "components/retroui/Table.tsx",
|
||||
},
|
||||
text: {
|
||||
name: "text",
|
||||
filePath: "components/retroui/Text.tsx",
|
||||
},
|
||||
toc: {
|
||||
name: "toc",
|
||||
filePath: "components/retroui/TableOfContents.tsx",
|
||||
},
|
||||
toggle: {
|
||||
name: "toggle",
|
||||
filePath: "components/retroui/Toggle.tsx",
|
||||
},
|
||||
"toggle-group": {
|
||||
name: "toggle-group",
|
||||
filePath: "components/retroui/ToggleGroup.tsx",
|
||||
},
|
||||
tooltip: {
|
||||
name: "tooltip",
|
||||
filePath: "components/retroui/Tooltip.tsx",
|
||||
},
|
||||
},
|
||||
examples: {
|
||||
"accordion-style-default": {
|
||||
name: "accordion-style-default",
|
||||
filePath: "preview/components/accordion-style-default.tsx",
|
||||
preview: lazy(
|
||||
() => import("@/preview/components/accordion-style-default"),
|
||||
),
|
||||
},
|
||||
"alert-style-all-status": {
|
||||
name: "alert-style-all-status",
|
||||
filePath: "preview/components/alert-style-all-status.tsx",
|
||||
preview: lazy(
|
||||
() => import("@/preview/components/alert-style-all-status"),
|
||||
),
|
||||
},
|
||||
"alert-style-default": {
|
||||
name: "alert-style-default",
|
||||
filePath: "preview/components/alert-style-default.tsx",
|
||||
preview: lazy(() => import("@/preview/components/alert-style-default")),
|
||||
},
|
||||
"alert-style-solid": {
|
||||
name: "alert-style-solid",
|
||||
filePath: "preview/components/alert-style-solid.tsx",
|
||||
preview: lazy(() => import("@/preview/components/alert-style-solid")),
|
||||
},
|
||||
"alert-style-with-icon": {
|
||||
name: "alert-style-with-icon",
|
||||
filePath: "preview/components/alert-style-with-icon.tsx",
|
||||
preview: lazy(() => import("@/preview/components/alert-style-with-icon")),
|
||||
},
|
||||
"area-chart-style-default": {
|
||||
name: "chart-style-default",
|
||||
filePath: "preview/charts/area-chart-style-default.tsx",
|
||||
preview: lazy(() => import("@/preview/charts/area-chart-style-default")),
|
||||
},
|
||||
"area-chart-style-multiple": {
|
||||
name: "area-chart-style-multiple",
|
||||
filePath: "preview/charts/area-chart-style-multiple.tsx",
|
||||
preview: lazy(() => import("@/preview/charts/area-chart-style-multiple")),
|
||||
},
|
||||
"area-chart-style-stacked": {
|
||||
name: "area-chart-style-stacked",
|
||||
filePath: "preview/charts/area-chart-style-stacked.tsx",
|
||||
preview: lazy(() => import("@/preview/charts/area-chart-style-stacked")),
|
||||
},
|
||||
"avatar-style-circle": {
|
||||
name: "avatar-style-circle",
|
||||
filePath: "preview/components/avatar-style-circle.tsx",
|
||||
preview: lazy(() => import("@/preview/components/avatar-style-circle")),
|
||||
},
|
||||
"avatar-style-circle-fallbacks": {
|
||||
name: "avatar-style-fallbacks",
|
||||
filePath: "preview/components/avatar-style-circle-fallbacks.tsx",
|
||||
preview: lazy(
|
||||
() => import("@/preview/components/avatar-style-circle-fallbacks"),
|
||||
),
|
||||
},
|
||||
"avatar-style-circle-sizes": {
|
||||
name: "avatar-style-circle-sizes",
|
||||
filePath: "preview/components/avatar-style-circle-sizes.tsx",
|
||||
preview: lazy(
|
||||
() => import("@/preview/components/avatar-style-circle-sizes"),
|
||||
),
|
||||
},
|
||||
"badge-style-default": {
|
||||
name: "badge-style-default",
|
||||
filePath: "preview/components/badge-style-default.tsx",
|
||||
preview: lazy(() => import("@/preview/components/badge-style-default")),
|
||||
},
|
||||
"badge-style-rounded": {
|
||||
name: "badge-style-default",
|
||||
filePath: "preview/components/badge-style-rounded.tsx",
|
||||
preview: lazy(() => import("@/preview/components/badge-style-rounded")),
|
||||
},
|
||||
"badge-style-sizes": {
|
||||
name: "badge-style-sizes",
|
||||
filePath: "preview/components/badge-style-sizes.tsx",
|
||||
preview: lazy(() => import("@/preview/components/badge-style-sizes")),
|
||||
},
|
||||
"badge-style-variants": {
|
||||
name: "badge-style-variants",
|
||||
filePath: "preview/components/badge-style-variants.tsx",
|
||||
preview: lazy(() => import("@/preview/components/badge-style-variants")),
|
||||
},
|
||||
"bar-chart-style-default": {
|
||||
name: "bar-chart-style-default",
|
||||
filePath: "preview/charts/bar-chart-style-default.tsx",
|
||||
preview: lazy(() => import("@/preview/charts/bar-chart-style-default")),
|
||||
},
|
||||
"bar-chart-style-grouped": {
|
||||
name: "bar-chart-style-grouped",
|
||||
filePath: "preview/charts/bar-chart-style-grouped.tsx",
|
||||
preview: lazy(() => import("@/preview/charts/bar-chart-style-grouped")),
|
||||
},
|
||||
"bar-chart-style-horizontal": {
|
||||
name: "bar-chart-style-horizontal",
|
||||
filePath: "preview/charts/bar-chart-style-horizontal.tsx",
|
||||
preview: lazy(
|
||||
() => import("@/preview/charts/bar-chart-style-horizontal"),
|
||||
),
|
||||
},
|
||||
"bar-chart-style-multiple": {
|
||||
name: "bar-chart-style-multiple",
|
||||
filePath: "preview/charts/bar-chart-style-multiple.tsx",
|
||||
preview: lazy(() => import("@/preview/charts/bar-chart-style-multiple")),
|
||||
},
|
||||
"bar-chart-style-stacked": {
|
||||
name: "bar-chart-style-stacked",
|
||||
filePath: "preview/charts/bar-chart-style-stacked.tsx",
|
||||
preview: lazy(() => import("@/preview/charts/bar-chart-style-stacked")),
|
||||
},
|
||||
"breadcrumb-custom-separator": {
|
||||
name: "breadcrumb-custom-separator",
|
||||
filePath: "preview/components/breadcrumb-custom-separator.tsx",
|
||||
preview: lazy(
|
||||
() => import("@/preview/components/breadcrumb-custom-separator"),
|
||||
),
|
||||
},
|
||||
"breadcrumb-link-component": {
|
||||
name: "breadcrumb-link-component",
|
||||
filePath: "preview/components/breadcrumb-link-component.tsx",
|
||||
preview: lazy(
|
||||
() => import("@/preview/components/breadcrumb-link-component"),
|
||||
),
|
||||
},
|
||||
"breadcrumb-style-collapsed": {
|
||||
name: "breadcrumb-style-collapsed",
|
||||
filePath: "preview/components/breadcrumb-style-collapsed.tsx",
|
||||
preview: lazy(
|
||||
() => import("@/preview/components/breadcrumb-style-collapsed"),
|
||||
),
|
||||
},
|
||||
"breadcrumb-style-default": {
|
||||
name: "breadcrumb-style-default",
|
||||
filePath: "preview/components/breadcrumb-style-default.tsx",
|
||||
preview: lazy(
|
||||
() => import("@/preview/components/breadcrumb-style-default"),
|
||||
),
|
||||
},
|
||||
"button-style-default": {
|
||||
name: "button-style-default",
|
||||
filePath: "preview/components/button-style-default.tsx",
|
||||
preview: lazy(() => import("@/preview/components/button-style-default")),
|
||||
},
|
||||
"button-style-icon": {
|
||||
name: "button-style-icon",
|
||||
filePath: "preview/components/button-style-icon.tsx",
|
||||
preview: lazy(() => import("@/preview/components/button-style-icon")),
|
||||
},
|
||||
"button-style-link": {
|
||||
name: "button-style-link",
|
||||
filePath: "preview/components/button-style-link.tsx",
|
||||
preview: lazy(() => import("@/preview/components/button-style-link")),
|
||||
},
|
||||
"button-style-outline": {
|
||||
name: "button-style-default",
|
||||
filePath: "preview/components/button-style-outline.tsx",
|
||||
preview: lazy(() => import("@/preview/components/button-style-outline")),
|
||||
},
|
||||
"button-style-secondary": {
|
||||
name: "button-style-secondary",
|
||||
filePath: "preview/components/button-style-secondary.tsx",
|
||||
preview: lazy(
|
||||
() => import("@/preview/components/button-style-secondary"),
|
||||
),
|
||||
},
|
||||
"button-style-with-icon": {
|
||||
name: "button-style-with-icon",
|
||||
filePath: "preview/components/button-style-with-icon.tsx",
|
||||
preview: lazy(
|
||||
() => import("@/preview/components/button-style-with-icon"),
|
||||
),
|
||||
},
|
||||
"calendar-style-default": {
|
||||
name: "calendar-style-default",
|
||||
filePath: "preview/components/calendar-style-default.tsx",
|
||||
preview: lazy(() => import("@/preview/components/calendar-style-default")),
|
||||
},
|
||||
"card-style-commerce": {
|
||||
name: "card-style-commerce",
|
||||
filePath: "preview/components/card-style-commerce.tsx",
|
||||
preview: lazy(() => import("@/preview/components/card-style-commerce")),
|
||||
},
|
||||
"card-style-default": {
|
||||
name: "card-style-default",
|
||||
filePath: "preview/components/card-style-default.tsx",
|
||||
preview: lazy(() => import("@/preview/components/card-style-default")),
|
||||
},
|
||||
"card-style-testimonial": {
|
||||
name: "card-style-testimonial",
|
||||
filePath: "preview/components/card-style-testimonial.tsx",
|
||||
preview: lazy(
|
||||
() => import("@/preview/components/card-style-testimonial"),
|
||||
),
|
||||
},
|
||||
"carousel-style-default": {
|
||||
name: "carousel-style-default",
|
||||
filePath: "preview/components/carousel-style-default.tsx",
|
||||
preview: lazy(() => import("@/preview/components/carousel-style-default")),
|
||||
},
|
||||
"carousel-style-sizes": {
|
||||
name: "carousel-style-sizes",
|
||||
filePath: "preview/components/carousel-style-sizes.tsx",
|
||||
preview: lazy(() => import("@/preview/components/carousel-style-sizes")),
|
||||
},
|
||||
"carousel-style-vertical": {
|
||||
name: "carousel-style-vertical",
|
||||
filePath: "preview/components/carousel-style-vertical.tsx",
|
||||
preview: lazy(() => import("@/preview/components/carousel-style-vertical")),
|
||||
},
|
||||
"checkbox-style-default": {
|
||||
name: "checkbox-style-default",
|
||||
filePath: "preview/components/checkbox-style-default.tsx",
|
||||
preview: lazy(
|
||||
() => import("@/preview/components/checkbox-style-default"),
|
||||
),
|
||||
},
|
||||
"checkbox-style-sizes": {
|
||||
name: "checkbox-style-default",
|
||||
filePath: "preview/components/checkbox-style-sizes.tsx",
|
||||
preview: lazy(() => import("@/preview/components/checkbox-style-sizes")),
|
||||
},
|
||||
"checkbox-style-variants": {
|
||||
name: "checkbox-style-toggle",
|
||||
filePath: "preview/components/checkbox-style-variants.tsx",
|
||||
preview: lazy(
|
||||
() => import("@/preview/components/checkbox-style-variants"),
|
||||
),
|
||||
},
|
||||
"command-style-default": {
|
||||
name: "command-style-default",
|
||||
filePath: "preview/components/command-style-default.tsx",
|
||||
preview: lazy(() => import("@/preview/components/command-style-default")),
|
||||
},
|
||||
"command-style-dialog": {
|
||||
name: "command-style-dialog",
|
||||
filePath: "preview/components/command-style-dialog.tsx",
|
||||
preview: lazy(() => import("@/preview/components/command-style-dialog")),
|
||||
},
|
||||
"context-menu-style-default": {
|
||||
name: "context-menu-style-default",
|
||||
filePath: "preview/components/context-menu-style-default.tsx",
|
||||
preview: lazy(
|
||||
() => import("@/preview/components/context-menu-style-default"),
|
||||
),
|
||||
},
|
||||
"dialog-style-default": {
|
||||
name: "dialog-style-default",
|
||||
filePath: "preview/components/dialog-style-default.tsx",
|
||||
preview: lazy(() => import("@/preview/components/dialog-style-default")),
|
||||
},
|
||||
"dialog-style-width-variant": {
|
||||
name: "dialog-style-width-variant",
|
||||
filePath: "preview/components/dialog-style-width-variant.tsx",
|
||||
preview: lazy(
|
||||
() => import("@/preview/components/dialog-style-width-variant"),
|
||||
),
|
||||
},
|
||||
"dialog-style-with-footer": {
|
||||
name: "dialog-style-with-footer",
|
||||
filePath: "preview/components/dialog-style-with-footer.tsx",
|
||||
preview: lazy(
|
||||
() => import("@/preview/components/dialog-style-with-footer"),
|
||||
),
|
||||
},
|
||||
"dialog-style-with-form": {
|
||||
name: "dialog-style-with-form",
|
||||
filePath: "preview/components/dialog-style-with-form.tsx",
|
||||
preview: lazy(
|
||||
() => import("@/preview/components/dialog-style-with-form"),
|
||||
),
|
||||
},
|
||||
"drawer-style-default": {
|
||||
name: "drawer-style-default",
|
||||
filePath: "preview/components/drawer-style-default.tsx",
|
||||
preview: lazy(() => import("@/preview/components/drawer-style-default")),
|
||||
},
|
||||
"drawer-style-right-direction": {
|
||||
name: "drawer-style-right-direction",
|
||||
filePath: "preview/components/drawer-style-right-direction.tsx",
|
||||
preview: lazy(() => import("@/preview/components/drawer-style-right-direction")),
|
||||
},
|
||||
// "dropdown-style-default": {
|
||||
// name: "dropdown-style-default",
|
||||
// filePath: "preview/components/dropdown-style-default.tsx",
|
||||
// preview: lazy(() => import("@/preview/components/dropdown-style-default")),
|
||||
// },
|
||||
"input-style-default": {
|
||||
name: "input-style-default",
|
||||
filePath: "preview/components/input-style-default.tsx",
|
||||
preview: lazy(() => import("@/preview/components/input-style-default")),
|
||||
},
|
||||
"input-style-error": {
|
||||
name: "input-style-error",
|
||||
filePath: "preview/components/input-style-error.tsx",
|
||||
preview: lazy(() => import("@/preview/components/input-style-error")),
|
||||
},
|
||||
"input-style-with-label": {
|
||||
name: "input-style-with-label",
|
||||
filePath: "preview/components/input-style-with-label.tsx",
|
||||
preview: lazy(
|
||||
() => import("@/preview/components/input-style-with-label"),
|
||||
),
|
||||
},
|
||||
"label-style-default": {
|
||||
name: "label-style-default",
|
||||
filePath: "preview/components/label-style-default.tsx",
|
||||
preview: lazy(() => import("@/preview/components/label-style-default")),
|
||||
},
|
||||
"line-chart-style-default": {
|
||||
name: "line-chart-style-default",
|
||||
filePath: "preview/charts/line-chart-style-default.tsx",
|
||||
preview: lazy(() => import("@/preview/charts/line-chart-style-default")),
|
||||
},
|
||||
"line-chart-style-multiple": {
|
||||
name: "line-chart-style-multiple",
|
||||
filePath: "preview/charts/line-chart-style-multiple.tsx",
|
||||
preview: lazy(() => import("@/preview/charts/line-chart-style-multiple")),
|
||||
},
|
||||
"loader-style-custom": {
|
||||
name: "loader-style-custom",
|
||||
filePath: "preview/components/loader-style-custom.tsx",
|
||||
preview: lazy(() => import("@/preview/components/loader-style-custom"))
|
||||
},
|
||||
"loader-style-default": {
|
||||
name: "loader-style-default",
|
||||
filePath: "preview/components/loader-style-default.tsx",
|
||||
preview: lazy(() => import("@/preview/components/loader-style-default")),
|
||||
},
|
||||
"loader-style-outline": {
|
||||
name: "loader-style-outline",
|
||||
filePath: "preview/components/loader-style-outline.tsx",
|
||||
preview: lazy(() => import("@/preview/components/loader-style-outline")),
|
||||
},
|
||||
"loader-style-sizes": {
|
||||
name: "loader-style-sizes",
|
||||
filePath: "preview/components/loader-style-sizes.tsx",
|
||||
preview: lazy(() => import("@/preview/components/loader-style-sizes")),
|
||||
},
|
||||
"loader-style-solid": {
|
||||
name: "loader-style-solid",
|
||||
filePath: "preview/components/loader-style-solid.tsx",
|
||||
preview: lazy(() => import("@/preview/components/loader-style-solid")),
|
||||
},
|
||||
"menu-style-default": {
|
||||
name: "menu-style-default",
|
||||
filePath: "preview/components/menu-style-default.tsx",
|
||||
preview: lazy(() => import("@/preview/components/menu-style-default")),
|
||||
},
|
||||
"pie-chart-style-default": {
|
||||
name: "pie-chart-style-default",
|
||||
filePath: "preview/charts/pie-chart-style-default.tsx",
|
||||
preview: lazy(() => import("@/preview/charts/pie-chart-style-default")),
|
||||
},
|
||||
"pie-chart-style-donut": {
|
||||
name: "pie-chart-style-donut",
|
||||
filePath: "preview/charts/pie-chart-style-donut.tsx",
|
||||
preview: lazy(() => import("@/preview/charts/pie-chart-style-donut")),
|
||||
},
|
||||
"popover-style-default": {
|
||||
name: "popover-style-default",
|
||||
filePath: "preview/components/popover-style-default.tsx",
|
||||
preview: lazy(() => import("@/preview/components/popover-style-default")),
|
||||
},
|
||||
"popover-style-default-shadow": {
|
||||
name: "popover-style-default-shadow",
|
||||
filePath: "preview/components/popover-style-default-shadow.tsx",
|
||||
preview: lazy(
|
||||
() => import("@/preview/components/popover-style-default-shadow"),
|
||||
),
|
||||
},
|
||||
"progress-style-default": {
|
||||
name: "progress-style-default",
|
||||
filePath: "preview/components/progress-style-default.tsx",
|
||||
preview: lazy(
|
||||
() => import("@/preview/components/progress-style-default"),
|
||||
),
|
||||
},
|
||||
"radio-style-default": {
|
||||
name: "radio-style-default",
|
||||
filePath: "preview/components/radio-style-default.tsx",
|
||||
preview: lazy(() => import("@/preview/components/radio-style-default")),
|
||||
},
|
||||
"radio-style-sizes": {
|
||||
name: "radio-style-sizes",
|
||||
filePath: "preview/components/radio-style-sizes.tsx",
|
||||
preview: lazy(() => import("@/preview/components/radio-style-sizes")),
|
||||
},
|
||||
"radio-style-variants": {
|
||||
name: "radio-style-variants",
|
||||
filePath: "preview/components/radio-style-variants.tsx",
|
||||
preview: lazy(() => import("@/preview/components/radio-style-variants")),
|
||||
},
|
||||
"retro-player": {
|
||||
name: "retro-player",
|
||||
filePath: "preview/components/retro-player.tsx",
|
||||
preview: lazy(() => import("@/preview/components/retro-player"))
|
||||
},
|
||||
"select-style-default": {
|
||||
name: "select-style-default",
|
||||
filePath: "preview/components/select-style-default.tsx",
|
||||
preview: lazy(() => import("@/preview/components/select-style-default")),
|
||||
},
|
||||
"slider-style-default": {
|
||||
name: "slider-style-default",
|
||||
filePath: "preview/components/slider-style-default.tsx",
|
||||
preview: lazy(() => import("@/preview/components/slider-style-default")),
|
||||
},
|
||||
"sonner-style-colored-status": {
|
||||
name: "sonner-style-colored-status",
|
||||
filePath: "preview/components/sonner-style-colored-status.tsx",
|
||||
preview: lazy(
|
||||
() => import("@/preview/components/sonner-style-colored-status"),
|
||||
),
|
||||
},
|
||||
"sonner-style-default": {
|
||||
name: "sonner-style-default",
|
||||
filePath: "preview/components/sonner-style-default.tsx",
|
||||
preview: lazy(() => import("@/preview/components/sonner-style-default")),
|
||||
},
|
||||
"sonner-style-status": {
|
||||
name: "sonner-style-status",
|
||||
filePath: "preview/components/sonner-style-status.tsx",
|
||||
preview: lazy(() => import("@/preview/components/sonner-style-status")),
|
||||
},
|
||||
"switch-style-default": {
|
||||
name: "switch-style-default",
|
||||
filePath: "preview/components/switch-style-default.tsx",
|
||||
preview: lazy(() => import("@/preview/components/switch-style-default")),
|
||||
},
|
||||
"switch-style-disabled": {
|
||||
name: "switch-style-disabled",
|
||||
filePath: "preview/components/switch-style-disabled.tsx",
|
||||
preview: lazy(() => import("@/preview/components/switch-style-disabled")),
|
||||
},
|
||||
"tab-style-default": {
|
||||
name: "typography-p",
|
||||
filePath: "preview/components/tab-style-default.tsx",
|
||||
preview: lazy(() => import("@/preview/components/tab-style-default")),
|
||||
},
|
||||
"table-style-default": {
|
||||
name: "table-style-default",
|
||||
filePath: "preview/components/table-style-default.tsx",
|
||||
preview: lazy(() => import("@/preview/components/table-style-default")),
|
||||
},
|
||||
"table-with-checkbox": {
|
||||
name: "table-with-checkbox",
|
||||
filePath: "preview/components/table-with-checkbox.tsx",
|
||||
preview: lazy(() => import("@/preview/components/table-with-checkbox")),
|
||||
},
|
||||
"table-with-sticky-header": {
|
||||
name: "table-with-sticky-header",
|
||||
filePath: "preview/components/table-with-sticky-header.tsx",
|
||||
preview: lazy(
|
||||
() => import("@/preview/components/table-with-sticky-header"),
|
||||
),
|
||||
},
|
||||
"text-headings": {
|
||||
name: "text-headings",
|
||||
filePath: "preview/components/text-headings.tsx",
|
||||
preview: lazy(() => import("@/preview/components/text-headings")),
|
||||
},
|
||||
"textarea-style-default": {
|
||||
name: "textarea-style-default",
|
||||
filePath: "preview/components/textarea-style-default.tsx",
|
||||
preview: lazy(
|
||||
() => import("@/preview/components/textarea-style-default"),
|
||||
),
|
||||
},
|
||||
"toc-style-default": {
|
||||
name: "toc-style-default",
|
||||
filePath: "preview/components/toc-style-default.tsx",
|
||||
preview: lazy(() => import("@/preview/components/toc-style-default")),
|
||||
},
|
||||
"toc-style-depth": {
|
||||
name: "toc-style-depth",
|
||||
filePath: "preview/components/toc-style-depth.tsx",
|
||||
preview: lazy(() => import("@/preview/components/toc-style-depth")),
|
||||
},
|
||||
"toc-style-manual": {
|
||||
name: "toc-style-manual",
|
||||
filePath: "preview/components/toc-style-manual.tsx",
|
||||
preview: lazy(() => import("@/preview/components/toc-style-manual")),
|
||||
},
|
||||
"toggle-group-style-default": {
|
||||
name: "toggle-group-style-default",
|
||||
filePath: "preview/components/toggle-group-style-default.tsx",
|
||||
preview: lazy(
|
||||
() => import("@/preview/components/toggle-group-style-default"),
|
||||
),
|
||||
},
|
||||
"toggle-group-style-outline-muted": {
|
||||
name: "toggle-group-style-outline-muted",
|
||||
filePath: "preview/components/toggle-group-style-outline-muted.tsx",
|
||||
preview: lazy(
|
||||
() => import("@/preview/components/toggle-group-style-outline-muted"),
|
||||
),
|
||||
},
|
||||
"toggle-group-style-outlined": {
|
||||
name: "toggle-group-style-outlined",
|
||||
filePath: "preview/components/toggle-group-style-outlined.tsx",
|
||||
preview: lazy(
|
||||
() => import("@/preview/components/toggle-group-style-outlined"),
|
||||
),
|
||||
},
|
||||
"toggle-group-style-solid": {
|
||||
name: "toggle-group-style-solid",
|
||||
filePath: "preview/components/toggle-group-style-solid.tsx",
|
||||
preview: lazy(
|
||||
() => import("@/preview/components/toggle-group-style-solid"),
|
||||
),
|
||||
},
|
||||
"toggle-style-default": {
|
||||
name: "toggle-style-default",
|
||||
filePath: "preview/components/toggle-style-default.tsx",
|
||||
preview: lazy(() => import("@/preview/components/toggle-style-default")),
|
||||
},
|
||||
"toggle-style-outline-muted": {
|
||||
name: "toggle-style-outline-muted",
|
||||
filePath: "preview/components/toggle-style-outline-muted.tsx",
|
||||
preview: lazy(
|
||||
() => import("@/preview/components/toggle-style-outline-muted"),
|
||||
),
|
||||
},
|
||||
"toggle-style-outlined": {
|
||||
name: "toggle-style-outlined",
|
||||
filePath: "preview/components/toggle-style-outlined.tsx",
|
||||
preview: lazy(() => import("@/preview/components/toggle-style-outlined")),
|
||||
},
|
||||
"toggle-style-solid": {
|
||||
name: "toggle-style-solid",
|
||||
filePath: "preview/components/toggle-style-solid.tsx",
|
||||
preview: lazy(() => import("@/preview/components/toggle-style-solid")),
|
||||
},
|
||||
"tooltip-style-default": {
|
||||
name: "tooltip-style-default",
|
||||
filePath: "preview/components/tooltip-style-default.tsx",
|
||||
preview: lazy(() => import("@/preview/components/tooltip-style-default")),
|
||||
},
|
||||
"tooltip-style-primary": {
|
||||
name: "tooltip-style-primary",
|
||||
filePath: "preview/components/tooltip-style-primary.tsx",
|
||||
preview: lazy(() => import("@/preview/components/tooltip-style-primary")),
|
||||
},
|
||||
"tooltip-style-solid": {
|
||||
name: "tooltip-style-solid",
|
||||
filePath: "preview/components/tooltip-style-solid.tsx",
|
||||
preview: lazy(() => import("@/preview/components/tooltip-style-solid")),
|
||||
},
|
||||
"typography-p": {
|
||||
name: "typography-p",
|
||||
filePath: "preview/components/typography-p.tsx",
|
||||
preview: lazy(() => import("@/preview/components/typography-p")),
|
||||
},
|
||||
"empty-style-default": {
|
||||
name: "empty-style-default",
|
||||
filePath: "preview/components/empty-style-default.tsx",
|
||||
preview: lazy(() => import("@/preview/components/empty-style-default"))
|
||||
},
|
||||
"empty-style-custom-icon": {
|
||||
name: "empty-style-custom-icon",
|
||||
filePath: "preview/components/empty-style-custom-icon.tsx",
|
||||
preview: lazy(() => import("@/preview/components/empty-style-custom-icon"))
|
||||
},
|
||||
"empty-style-custom-everything": {
|
||||
name: "empty-style-custom-everything",
|
||||
filePath: "preview/components/empty-style-custom-everything.tsx",
|
||||
preview: lazy(() => import("@/preview/components/empty-style-custom-everything"))
|
||||
},
|
||||
"empty-style-table": {
|
||||
name: "empty-style-table",
|
||||
filePath: "preview/components/empty-style-table.tsx",
|
||||
preview: lazy(() => import("@/preview/components/empty-style-table"))
|
||||
},
|
||||
},
|
||||
};
|
||||
@@ -0,0 +1,2 @@
|
||||
export * from "./components";
|
||||
export * from "./navigation";
|
||||
@@ -0,0 +1,113 @@
|
||||
import { INavigationConfig } from "@/types";
|
||||
|
||||
const componentsRoute = "/docs/components";
|
||||
const chartsRoute = "/docs/charts";
|
||||
const utilsRoute = "/docs/utils";
|
||||
|
||||
export const navConfig: INavigationConfig = {
|
||||
topNavItems: [
|
||||
{ title: "Docs", href: "/docs" },
|
||||
{ title: "Components", href: `${componentsRoute}/button` },
|
||||
{ title: "Themes", href: "/themes" },
|
||||
{ title: "Blog", href: "/blogs" },
|
||||
{ title: "Showcase", href: "/showcase" },
|
||||
],
|
||||
sideNavItems: [
|
||||
{
|
||||
title: "Getting Started",
|
||||
children: [
|
||||
{ title: "Introduction", href: "/docs" },
|
||||
{
|
||||
title: "Installation",
|
||||
href: "/docs/install",
|
||||
},
|
||||
// {
|
||||
// title: "Changelog",
|
||||
// href: "https://pro.retroui.dev",
|
||||
// },
|
||||
{
|
||||
title: "Blocks",
|
||||
href: "https://pro.retroui.dev/blocks",
|
||||
tag: "Pro",
|
||||
},
|
||||
{
|
||||
title: "Templates",
|
||||
href: "https://pro.retroui.dev/templates",
|
||||
tag: "Pro",
|
||||
},
|
||||
{
|
||||
title: "Figma Kit",
|
||||
href: "https://pro.retroui.dev/figma",
|
||||
tag: "Pro",
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
title: "Components",
|
||||
children: [
|
||||
{ title: "Accordion", href: `${componentsRoute}/accordion` },
|
||||
{ title: "Alert", href: `${componentsRoute}/alert` },
|
||||
{ title: "Avatar", href: `${componentsRoute}/avatar` },
|
||||
{ title: "Badge", href: `${componentsRoute}/badge` },
|
||||
{ title: "Breadcrumb", href: `${componentsRoute}/breadcrumb` },
|
||||
{ title: "Button", href: `${componentsRoute}/button` },
|
||||
{ title: "Card", href: `${componentsRoute}/card` },
|
||||
{ title: "Calendar", href: `${componentsRoute}/calendar` },
|
||||
{ title: "Carousel", href: `${componentsRoute}/carousel` },
|
||||
{ title: "Checkbox", href: `${componentsRoute}/checkbox` },
|
||||
{ title: "Command", href: `${componentsRoute}/command` },
|
||||
{ title: "Dialog", href: `${componentsRoute}/dialog` },
|
||||
{ title: "Drawer", href: `${componentsRoute}/drawer`, tag: "New" },
|
||||
{ title: "Empty", href: `${componentsRoute}/empty`, tag: "New" },
|
||||
{ title: "Input", href: `${componentsRoute}/input` },
|
||||
{ title: "Label", href: `${componentsRoute}/label` },
|
||||
{ title: "Loader", href: `${componentsRoute}/loader` },
|
||||
{ title: "Menu", href: `${componentsRoute}/menu` },
|
||||
{ title: "Context Menu", href: `${componentsRoute}/context-menu` },
|
||||
{
|
||||
title: "Popover",
|
||||
href: `${componentsRoute}/popover`,
|
||||
},
|
||||
{ title: "Progress", href: `${componentsRoute}/progress` },
|
||||
{ title: "Radio", href: `${componentsRoute}/radio` },
|
||||
{ title: "Select", href: `${componentsRoute}/select` },
|
||||
{ title: "Slider", href: `${componentsRoute}/slider` },
|
||||
{
|
||||
title: "Sonner",
|
||||
href: `${componentsRoute}/sonner`,
|
||||
},
|
||||
{ title: "Switch", href: `${componentsRoute}/switch` },
|
||||
{ title: "Tab", href: `${componentsRoute}/tab` },
|
||||
{ title: "Table", href: `${componentsRoute}/table` },
|
||||
{ title: "Table Of Contents", href: `${componentsRoute}/toc`, tag: "New" },
|
||||
{ title: "Textarea", href: `${componentsRoute}/textarea` },
|
||||
{ title: "Text", href: `${componentsRoute}/text` },
|
||||
{
|
||||
title: "Toggle",
|
||||
href: `${componentsRoute}/toggle`,
|
||||
},
|
||||
{
|
||||
title: "Toggle Group",
|
||||
href: `${componentsRoute}/toggle-group`,
|
||||
},
|
||||
{
|
||||
title: "Tooltip",
|
||||
href: `${componentsRoute}/tooltip`,
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
title: "Chart",
|
||||
children: [
|
||||
{ title: "Bar Chart", href: `${chartsRoute}/bar-chart`, tag: "Updated" },
|
||||
{ title: "Line Chart", href: `${chartsRoute}/line-chart` },
|
||||
{ title: "Area Chart", href: `${chartsRoute}/area-chart` },
|
||||
{ title: "Pie Chart", href: `${chartsRoute}/pie-chart` },
|
||||
],
|
||||
},
|
||||
{
|
||||
title: "Utilities",
|
||||
children: [{ title: "cn", href: `${utilsRoute}/cn` }],
|
||||
},
|
||||
],
|
||||
};
|
||||
@@ -0,0 +1,354 @@
|
||||
export enum Theme {
|
||||
Default = "default",
|
||||
Purple = "purple",
|
||||
Lime = "lime",
|
||||
Red = "red",
|
||||
Lavender = "lavender",
|
||||
Orange = "orange",
|
||||
Green = "green",
|
||||
}
|
||||
|
||||
|
||||
export const themeConfig = ({hasRadius = false}: {hasRadius?: boolean}) => ({
|
||||
[Theme.Default]: {
|
||||
name: "default",
|
||||
color:
|
||||
`:root {
|
||||
--radius: ${hasRadius ? "0.5rem" : "0"};
|
||||
--background: #fff;
|
||||
--foreground: #000;
|
||||
--card: #fff;
|
||||
--card-foreground: #000;
|
||||
--primary: #ffdb33;
|
||||
--primary-hover: #ffcc00;
|
||||
--primary-foreground: #000;
|
||||
--secondary: #000;
|
||||
--secondary-foreground: #fff;
|
||||
--muted: #cccccc;
|
||||
--muted-foreground: #5a5a5a;
|
||||
--accent: #fae583;
|
||||
--accent-foreground: #000;
|
||||
--destructive: #e63946;
|
||||
--destructive-foreground: #fff;
|
||||
--border: #000;
|
||||
}
|
||||
|
||||
.dark {
|
||||
--background: #1a1a1a;
|
||||
--foreground: #f5f5f5;
|
||||
--card: #242424;
|
||||
--card-foreground: #f5f5f5;
|
||||
--primary: #ffdb33;
|
||||
--primary-hover: #ffcc00;
|
||||
--primary-foreground: #000;
|
||||
--secondary: #3a3a3a;
|
||||
--secondary-foreground: #f5f5f5;
|
||||
--muted: #3f3f46;
|
||||
--muted-foreground: #a0a0a0;
|
||||
--accent: #fae583;
|
||||
--accent-foreground: #000;
|
||||
--destructive: #e63946;
|
||||
--destructive-foreground: #fff;
|
||||
--border: #5c5c5c;
|
||||
}
|
||||
`,
|
||||
},
|
||||
[Theme.Purple]: {
|
||||
name: "purple",
|
||||
color:
|
||||
`:root {
|
||||
--radius: ${hasRadius ? "0.5rem" : "0"};
|
||||
--background: #f5f5f5;
|
||||
--foreground: #1a1a1a;
|
||||
--card: #FFFFFF;
|
||||
--card-foreground: #f5f5f5;
|
||||
--primary: #5F4FE6;
|
||||
--primary-hover: #4938C2;
|
||||
--primary-foreground: #fff;
|
||||
--secondary: #3a3a3a;
|
||||
--secondary-foreground: #f5f5f5;
|
||||
--muted: #CFCCEA;
|
||||
--muted-foreground: #5B5686;
|
||||
--accent: #FED13B;
|
||||
--accent-foreground: #000000;
|
||||
--destructive: #EF4444;
|
||||
--destructive-foreground: #fff;
|
||||
--border: #3a3a3a;
|
||||
}
|
||||
|
||||
.dark {
|
||||
--background: #0f0f12;
|
||||
--foreground: #f5f5f5;
|
||||
--card: #1a1a1d;
|
||||
--card-foreground: #eaeaea;
|
||||
--primary: #7b6df5;
|
||||
--primary-hover: #5F4FE6;
|
||||
--primary-foreground: #fff;
|
||||
--secondary: #2a2a2e;
|
||||
--secondary-foreground: #eaeaea;
|
||||
--muted: #3d395a;
|
||||
--muted-foreground: #a49fce;
|
||||
--accent: #FED13B;
|
||||
--accent-foreground: #000;
|
||||
--destructive: #EF4444;
|
||||
--destructive-foreground: #fff;
|
||||
--border: #2e2e32;
|
||||
}
|
||||
`,
|
||||
},
|
||||
[Theme.Lime]: {
|
||||
name: "Lime",
|
||||
color:
|
||||
`:root {
|
||||
--radius: ${hasRadius ? "0.5rem" : "0"};
|
||||
--background: #FFFFFF;
|
||||
--foreground: #000000;
|
||||
--card: #FFFFFF;
|
||||
--card-foreground: #000000;
|
||||
--input: #FFFFFF;
|
||||
--ring: #AAFC3D;
|
||||
--primary: #AAFC3D;
|
||||
--primary-hover: #97f819;
|
||||
--primary-foreground: #FFFFFF;
|
||||
--secondary: #5252FF;
|
||||
--secondary-foreground: #000000;
|
||||
--muted: #F3F4F6;
|
||||
--muted-foreground: #6B7280;
|
||||
--accent: #FF00FF;
|
||||
--accent-foreground: #000000;
|
||||
--destructive: #EF4444;
|
||||
--destructive-foreground: #FFFFFF;
|
||||
--border: #3a3a3a;
|
||||
}
|
||||
|
||||
.dark {
|
||||
--background: #FFFFFF;
|
||||
--foreground: #000000;
|
||||
--card: #FFFFFF;
|
||||
--card-foreground: #000000;
|
||||
--input: #FFFFFF;
|
||||
--border: #000000;
|
||||
--ring: #AAFC3D;
|
||||
--primary: #AAFC3D;
|
||||
--primary-hover: #97f819;
|
||||
--primary-foreground: #000000;
|
||||
--secondary: #000000;
|
||||
--secondary-foreground: #FFFFFF;
|
||||
--muted: #F3F3F3;
|
||||
--muted-foreground: #444444;
|
||||
--accent: #FF4FD8;
|
||||
--accent-foreground: #000000;
|
||||
--destructive: #FF0033;
|
||||
--destructive-foreground: #FFFFFF;
|
||||
}
|
||||
`,
|
||||
},
|
||||
[Theme.Red]: {
|
||||
name: "Red",
|
||||
color:
|
||||
`:root {
|
||||
--radius: ${hasRadius ? "0.5rem" : "0"};
|
||||
--background: #FCFFE7;
|
||||
--foreground: #000000;
|
||||
--muted: #EFD0D5;
|
||||
--muted-foreground: #A42439;
|
||||
--card: #FFFFFF;
|
||||
--card-foreground: #000000;
|
||||
--popover: #FFFFFF;
|
||||
--popover-foreground: #000000;
|
||||
--border: #000000;
|
||||
--input: #FFFFFF;
|
||||
--primary: #EA435F;
|
||||
--primary-hover: #D00000;
|
||||
--primary-foreground: #FFFFFF;
|
||||
--secondary: #FFDA5C;
|
||||
--secondary-foreground: #000000;
|
||||
--accent: #CEEBFC;
|
||||
--accent-foreground: #000000;
|
||||
--destructive: #D00000;
|
||||
--destructive-foreground: #FFFFFF;
|
||||
--ring: #000000;
|
||||
}
|
||||
|
||||
.dark {
|
||||
--background: #0f0f0f;
|
||||
--foreground: #f5f5f5;
|
||||
--muted: #3a1f24;
|
||||
--muted-foreground: #f2a7b2;
|
||||
--card: #1a1a1a;
|
||||
--card-foreground: #ffffff;
|
||||
--popover: #1a1a1a;
|
||||
--popover-foreground: #ffffff;
|
||||
--border: #2a2a2a;
|
||||
--input: #2a2a2a;
|
||||
--primary: #EA435F;
|
||||
--primary-hover: #D00000;
|
||||
--primary-foreground: #ffffff;
|
||||
--secondary: #FFDA5C;
|
||||
--secondary-foreground: #000000;
|
||||
--accent: #2a3b45;
|
||||
--accent-foreground: #CEEBFC;
|
||||
--destructive: #D00000;
|
||||
--destructive-foreground: #ffffff;
|
||||
--ring: #EA435F;
|
||||
}
|
||||
`,
|
||||
},
|
||||
[Theme.Lavender]: {
|
||||
name: "Lavender",
|
||||
color:
|
||||
`:root {
|
||||
--radius: ${hasRadius ? "0.5rem" : "0"};
|
||||
--background: #F9F5F2;
|
||||
--foreground: #000000;
|
||||
--muted: #EDE3FF;
|
||||
--muted-foreground: #5B3B98;
|
||||
--card: #FFFFFF;
|
||||
--card-foreground: #000000;
|
||||
--popover: #FFFFFF;
|
||||
--popover-foreground: #000000;
|
||||
--border: #000000;
|
||||
--input: #FFFFFF;
|
||||
--primary: #C4A1FF;
|
||||
--primary-hover: #9678FF;
|
||||
--primary-foreground: #000000;
|
||||
--secondary: #E7F193;
|
||||
--secondary-foreground: #000000;
|
||||
--accent: #FE91E9;
|
||||
--accent-foreground: #000000;
|
||||
--destructive: #FE3B3B;
|
||||
--destructive-foreground: #FFFFFF;
|
||||
--ring: #000000;
|
||||
}
|
||||
|
||||
.dark {
|
||||
--background: #121014;
|
||||
--foreground: #f5f5f5;
|
||||
--muted: #2d2440;
|
||||
--muted-foreground: #c7b6f3;
|
||||
--card: #1a1820;
|
||||
--card-foreground: #ffffff;
|
||||
--popover: #1a1820;
|
||||
--popover-foreground: #ffffff;
|
||||
--border: #2a2a2e;
|
||||
--input: #2a2a2e;
|
||||
--primary: #C4A1FF;
|
||||
--primary-hover: #9678FF;
|
||||
--primary-foreground: #000000;
|
||||
--secondary: #E7F193;
|
||||
--secondary-foreground: #000000;
|
||||
--accent: #FE91E9;
|
||||
--accent-foreground: #000000;
|
||||
--destructive: #FE3B3B;
|
||||
--destructive-foreground: #ffffff;
|
||||
--ring: #C4A1FF;
|
||||
}
|
||||
|
||||
`,
|
||||
},
|
||||
[Theme.Orange]: {
|
||||
name: "Orange",
|
||||
color:
|
||||
`:root {
|
||||
--radius: ${hasRadius ? "0.5rem" : "0"};
|
||||
--background: #F9F5F2;
|
||||
--foreground: #000000;
|
||||
--muted: #EFD0D5;
|
||||
--muted-foreground: #A42439;
|
||||
--card: #FFFFFF;
|
||||
--card-foreground: #000000;
|
||||
--popover: #FFFFFF;
|
||||
--popover-foreground: #000000;
|
||||
--border: #000000;
|
||||
--input: #FFFFFF;
|
||||
--primary: #EA435F;
|
||||
--primary-hover: #D00000;
|
||||
--primary-foreground: #FFFFFF;
|
||||
--secondary: #FFDA5C;
|
||||
--secondary-foreground: #000000;
|
||||
--accent: #CEEBFC;
|
||||
--accent-foreground: #000000;
|
||||
--destructive: #D00000;
|
||||
--destructive-foreground: #FFFFFF;
|
||||
--ring: #000000;
|
||||
}
|
||||
|
||||
.dark {
|
||||
--background: #12100e;
|
||||
--foreground: #f5f5f5;
|
||||
--muted: #3a2617;
|
||||
--muted-foreground: #ffb679;
|
||||
--card: #1a1a1a;
|
||||
--card-foreground: #ffffff;
|
||||
--popover: #1a1a1a;
|
||||
--popover-foreground: #ffffff;
|
||||
--border: #2a2a2a;
|
||||
--input: #2a2a2a;
|
||||
--primary: #F07200;
|
||||
--primary-hover: #ff8011;
|
||||
--primary-foreground: #FDEAD9;
|
||||
--secondary: #EF8C27;
|
||||
--secondary-foreground: #000000;
|
||||
--accent: #FF6B6B;
|
||||
--accent-foreground: #000000;
|
||||
--destructive: #FE3B3B;
|
||||
--destructive-foreground: #ffffff;
|
||||
--ring: #F07200;
|
||||
}
|
||||
`,
|
||||
},
|
||||
[Theme.Green]: {
|
||||
name: "Green",
|
||||
color:
|
||||
`:root {
|
||||
--radius: ${hasRadius ? "0.5rem" : "0"};
|
||||
--background: #F9F5F2;
|
||||
--foreground: #000000;
|
||||
--muted: #EFD0D5;
|
||||
--muted-foreground: #A42439;
|
||||
--card: #FFFFFF;
|
||||
--card-foreground: #000000;
|
||||
--popover: #FFFFFF;
|
||||
--popover-foreground: #000000;
|
||||
--border: #000000;
|
||||
--input: #FFFFFF;
|
||||
--primary: #EA435F;
|
||||
--primary-hover: #D00000;
|
||||
--primary-foreground: #FFFFFF;
|
||||
--secondary: #FFDA5C;
|
||||
--secondary-foreground: #000000;
|
||||
--accent: #CEEBFC;
|
||||
--accent-foreground: #000000;
|
||||
--destructive: #D00000;
|
||||
--destructive-foreground: #FFFFFF;
|
||||
--ring: #000000;
|
||||
}
|
||||
|
||||
.dark {
|
||||
--background: #0f1210;
|
||||
--foreground: #f5f5f5;
|
||||
--muted: #1f3a2d;
|
||||
--muted-foreground: #9cd9b8;
|
||||
--card: #181c19;
|
||||
--card-foreground: #ffffff;
|
||||
--popover: #181c19;
|
||||
--popover-foreground: #ffffff;
|
||||
--border: #2a2e2b;
|
||||
--input: #2a2e2b;
|
||||
--primary: #599D77;
|
||||
--primary-hover: #39654c;
|
||||
--primary-foreground: #ffffff;
|
||||
--secondary: #3a6f52;
|
||||
--secondary-foreground: #ffffff;
|
||||
--accent: #FFE75A;
|
||||
--accent-foreground: #000000;
|
||||
--destructive: #F05D5D;
|
||||
--destructive-foreground: #ffffff;
|
||||
--ring: #599D77;
|
||||
}
|
||||
`,
|
||||
},
|
||||
});
|
||||
|
||||
export const themes = Object.keys(themeConfig({hasRadius: false}));
|
||||
|
||||
Reference in New Issue
Block a user