import { Button } from "../../ui/button" import { Dialog } from "../../ui/dialog" import { Navigate } from "@solidjs/router" import { createSignal, Show } from "solid-js" import { IconHome, IconPencilSquare } from "../../ui/svg/icons" import { useTheme } from "../../components/context-theme" import { useDialog } from "../../ui/context-dialog" import { DialogString } from "../../ui/dialog-string" import { DialogSelect } from "../../ui/dialog-select" import styles from "./design.module.css" export default function DesignSystem() { const dialog = useDialog() const [dialogOpen, setDialogOpen] = createSignal(false) const [dialogOpenTransition, setDialogOpenTransition] = createSignal(false) const theme = useTheme() // Check if we're running locally const isLocal = import.meta.env.DEV === true if (!isLocal) { return } // Add a toggle button for theme const toggleTheme = () => { theme.setMode(theme.mode === "light" ? "dark" : "light") } return (

Design System

Colors

Orange

hsl(41, 82%, 63%)
hsl(41, 39%, 22%)
hsl(41, 82%, 87%)

Green

hsl(101, 82%, 63%)
hsl(101, 39%, 22%)
hsl(101, 82%, 80%)

Blue

hsl(234, 100%, 60%)
hsl(234, 54%, 20%)
hsl(234, 100%, 87%)

Purple

hsl(281, 82%, 63%)
hsl(281, 39%, 22%)
hsl(281, 82%, 89%)

Red

hsl(339, 82%, 63%)
hsl(339, 39%, 22%)
hsl(339, 82%, 87%)

Accent

hsl(13, 88%, 57%)
hsl(13, 75%, 30%)
hsl(13, 100%, 78%)

Buttons

Primary

Secondary

Ghost

Primary Disabled

Secondary Disabled

Ghost Disabled

Small

Small Secondary

Small Ghost

With Icon

Icon + Secondary

Icon + Ghost

Small + Icon

Small + Icon + Secondary

Small + Icon + Ghost

Icon Only

Icon Only + Secondary

Icon Only + Ghost

Icon Only Disabled

Icon Only + Secondary Disabled

Icon Only + Ghost Disabled

Small Icon Only

Small Icon Only + Secondary

Small Icon Only + Ghost

Labels

Small

Medium

Large

Inputs

Small

Medium

Large

Disabled

With Value

Dialogs

Default

Dialog Title

This is the default dialog content.

Small With Transition

Small Dialog

This is a smaller dialog with transitions.

Input String

Select Input

Select Input

Select No Options

) }