Open-source manufacturing ERP, MES and QMS. Quoting, MRP, inventory, shop floor, quality and lot/serial traceability on one Postgres schema, with a REST API and MCP server. Self-host or use Carbon Cloud.
TypeScript ai-agentsbill-of-materialserpinventory-managementleanmanufacturingmanufacturing-execution-systemmcp-servermesmrpopen-source-erppostgresqlproduction-planningqmsquality-management-systemreact-routerself-hostedsupabasetraceabilitytypescript
feat: zinc theme updated version
Sidwebworksc89d35766f8b
diff --git a/apps/erp/app/components/Layout/Navigation/PrimaryNavigation.tsx b/apps/erp/app/components/Layout/Navigation/PrimaryNavigation.tsxindex c729f4f38b..2ae19de49d 100644--- a/apps/erp/app/components/Layout/Navigation/PrimaryNavigation.tsx+++ b/apps/erp/app/components/Layout/Navigation/PrimaryNavigation.tsx@@ -77,22 +77,24 @@ const NavigationIconLink = forwardRef<];const classes = [+ // Layout"relative","h-10 w-10 group-data-[state=expanded]:w-full",- "transition-all duration-200","flex items-center rounded-md","group-data-[state=collapsed]:justify-center","group-data-[state=expanded]:-space-x-2",- "hover:bg-active/80 hover:text-active-foreground",- "font-medium shrink-0 group inline-flex items-center justify-center select-none transform-gpu initial:border-none disabled:opacity-50",+ // Typography & base styles+ "font-medium shrink-0 inline-flex items-center justify-center select-none",+ "disabled:opacity-50",+ // Animation: snappy 100ms ease-out+ "transition-[background-color,color,width] duration-100 ease-out",+ // Focus ring (after: pseudo-element)"focus:!outline-none focus:!ring-0 active:!outline-none active:!ring-0","after:pointer-events-none after:absolute after:-inset-[3px] after:rounded-lg after:border after:border-blue-500 after:opacity-0 after:ring-2 after:ring-blue-500/20 after:transition-opacity focus-visible:after:opacity-100 active:after:opacity-0",- "before:pointer-events-none before:bg-gradient-to-b before:transition-opacity before:from-white/[0.12] before:absolute before:inset-0 before:z-[1] before:rounded before:opacity-0",- `${- isActive- ? "bg-active text-active-foreground hover:text-active-foreground hover:bg-active/90 shadow-button-base"- : "hover:text-active-foreground"- }`,+ // Hover state (non-active items)+ !isActive && "hover:bg-accent hover:text-accent-foreground",+ // Active/selected state - solid background, no gradient overlay+ isActive && "bg-active text-active-foreground shadow-button-base","group/item"];diff --git a/apps/erp/app/modules/settings/settings.models.ts b/apps/erp/app/modules/settings/settings.models.tsindex 107dbde0bc..788d7b84bc 100644--- a/apps/erp/app/modules/settings/settings.models.ts+++ b/apps/erp/app/modules/settings/settings.models.ts@@ -184,8 +184,7 @@ export const themes = ["yellow","green","blue",- "violet",- "vercel"+ "violet"] as const;export type Theme = (typeof themes)[number];diff --git a/apps/erp/app/services/theme.server.ts b/apps/erp/app/services/theme.server.tsindex 83cc599e15..a7d281c038 100644--- a/apps/erp/app/services/theme.server.ts+++ b/apps/erp/app/services/theme.server.ts@@ -10,8 +10,7 @@ const themes = ["yellow","green","blue",- "violet",- "vercel"+ "violet"] as const;type Theme = (typeof themes)[number];diff --git a/apps/mes/app/services/theme.server.ts b/apps/mes/app/services/theme.server.tsindex 8d9499e9a5..96b33d84db 100644--- a/apps/mes/app/services/theme.server.ts+++ b/apps/mes/app/services/theme.server.ts@@ -9,8 +9,7 @@ const themes = ["yellow","green","blue",- "violet",- "vercel"+ "violet"] as const;type Theme = (typeof themes)[number];diff --git a/apps/starter/app/services/theme.server.ts b/apps/starter/app/services/theme.server.tsindex 8d9499e9a5..96b33d84db 100644--- a/apps/starter/app/services/theme.server.ts+++ b/apps/starter/app/services/theme.server.ts@@ -9,8 +9,7 @@ const themes = ["yellow","green","blue",- "violet",- "vercel"+ "violet"] as const;type Theme = (typeof themes)[number];diff --git a/packages/react/src/Button.tsx b/packages/react/src/Button.tsxindex 08630b38bc..a0a8112e9e 100644--- a/packages/react/src/Button.tsx+++ b/packages/react/src/Button.tsx@@ -24,7 +24,7 @@ export const buttonVariants = cva(primary:"bg-gradient-to-br from-primary/90 to-primary text-primary-foreground hover:bg-primary/90 saturate-[105%] shadow-[inset_0px_0.5px_0px_rgb(255_255_255_/_0.32)] before:pointer-events-none before:bg-gradient-to-b before:transition-opacity before:duration-100 before:ease before:from-white/[0.12] before:absolute before:inset-0 before:z-[1] before:rounded before:opacity-0 hover:before:opacity-100 active:before:opacity-0",active:- "bg-active text-active-foreground hover:bg-active/90 hover:text-active-foreground shadow-button-base",+ "bg-active text-active-foreground hover:bg-active/90 hover:text-active-foreground shadow-button-base before:hidden",secondary:"bg-background hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50 shadow-button-base",solid:@@ -32,8 +32,10 @@ export const buttonVariants = cva(destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90 shadow-[inset_0px_0.5px_0px_rgb(255_255_255_/_0.32)] before:pointer-events-none before:bg-gradient-to-b before:transition-opacity before:duration-100 before:ease before:from-white/[0.12] before:absolute before:inset-0 before:z-[1] before:rounded before:opacity-0 hover:before:opacity-100 active:before:opacity-0",ghost:- "bg-transparent hover:bg-primary/10 text-accent-foreground hover:text-accent-foreground/90",- link: "text-foreground hover:text-foreground underline-offset-4 hover:underline px-0 py-0"+ "bg-transparent hover:bg-primary/10 text-accent-foreground hover:text-accent-foreground/90 before:hidden",+ outline:+ "bg-transparent border border-border text-foreground hover:bg-accent hover:text-accent-foreground before:hidden",+ link: "text-foreground hover:text-foreground underline-offset-4 hover:underline px-0 py-0 before:hidden"},size: {sm: "h-6 rounded-sm text-xs",diff --git a/packages/react/src/IconButton.tsx b/packages/react/src/IconButton.tsxindex aa6001d8f9..1395d4cfef 100644--- a/packages/react/src/IconButton.tsx+++ b/packages/react/src/IconButton.tsx@@ -7,31 +7,55 @@ import { cn } from "./utils/cn";export interface IconButtonPropsextends Omit<ButtonProps, "leftIcon" | "rightIcon"> {+ /** Required for accessibility - describes the button action */"aria-label": string;+ /** The icon element to display */icon: ReactElement;+ /** Makes the button fully rounded */isRound?: boolean;}+/**+ * Icon sizes matching button sizes for visual consistency+ * Slightly smaller than text button icons for better proportions+ */const iconSizes = {- sm: "size-3 flex-shrink-0",- md: "size-4 flex-shrink-0",- lg: "size-5 flex-shrink-0"+ sm: "size-3.5",+ md: "size-4",+ lg: "size-5"} as const;+/**+ * IconButton - A button variant optimized for icon-only usage+ *+ * Accessibility:+ * - aria-label is required to provide context for screen readers+ * - Icon is marked as aria-hidden since the label provides the meaning+ *+ * Animation:+ * - Inherits all animation improvements from Button component+ * - Uses same easing (ease-out) and timing (150ms)+ */const IconButton = forwardRef<HTMLButtonElement, IconButtonProps>((- { icon, "aria-label": ariaLabel, isRound, children, size = "md", ...props },+ {+ icon,+ "aria-label": ariaLabel,+ isRound = false,+ children,+ size = "md",+ ...props+ },ref) => {- /**- * Passing the icon as prop or children should work- */+ // Support passing icon as prop or childrenconst element = icon || children;+const _children = isValidElement(element)? cloneElement(element as any, {"aria-hidden": true,focusable: false,- className: cn(iconSizes[size], icon.props?.className)+ className: cn(iconSizes[size], (element as any).props?.className)}): null;diff --git a/packages/react/src/Sidebar.tsx b/packages/react/src/Sidebar.tsxindex 2822c82c56..236c0e5b09 100644--- a/packages/react/src/Sidebar.tsx+++ b/packages/react/src/Sidebar.tsx@@ -511,14 +511,23 @@ const SidebarMenuItem = React.forwardRef<));SidebarMenuItem.displayName = "SidebarMenuItem";+/**+ * SidebarMenuButton animation design:+ * - Use `ease-out` for snappy, responsive feel+ * - 100ms duration for fast micro-interactions (sidebar is used frequently)+ * - Only animate background-color, color (GPU-friendly)+ * - Active state gets subtle visual weight without jarring transitions+ */const sidebarMenuButtonVariants = cva("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-none ring-sidebar-ring transition-[width,height,padding,background-color,color] duration-150 ease hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 motion-reduce:transition-none [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants: {variant: {- default: "hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",- outline:- "bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"+ default: "",+ outline: [+ "bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))]",+ "hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"+ ]},size: {default: "h-8 text-sm",@@ -705,6 +714,12 @@ const SidebarMenuSubItem = React.forwardRef<>(({ ...props }, ref) => <li ref={ref} {...props} />);SidebarMenuSubItem.displayName = "SidebarMenuSubItem";+/**+ * SidebarMenuSubButton - nested menu items+ * Same animation principles as SidebarMenuButton:+ * - ease-out for snappy response, 100ms duration+ * - Consistent with parent button styling+ */const SidebarMenuSubButton = React.forwardRef<HTMLAnchorElement,React.ComponentProps<"a"> & {@@ -726,8 +741,8 @@ const SidebarMenuSubButton = React.forwardRef<"data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",size === "sm" && "text-xs",size === "md" && "text-sm",+ // Collapsed mode"group-data-[collapsible=icon]:hidden",- isActive && "bg-active text-active-foreground shadow-button-base",className)}{...props}diff --git a/packages/utils/src/themes.ts b/packages/utils/src/themes.tsindex a35a55eb66..d86b6820f2 100644--- a/packages/utils/src/themes.ts+++ b/packages/utils/src/themes.ts@@ -35,29 +35,30 @@ export const themes = ["success-foreground": "0 0% 98%"},dark: {- background: "220 10% 6.9%",- foreground: "0 0% 98%",- card: "220 10% 8.9%",- "card-foreground": "0 0% 98%",- popover: "220 10% 8.9%",- "popover-foreground": "0 0% 98%",- primary: "0 0% 98%",- "primary-foreground": "220 5.9% 10%",- active: "220 5.2% 13.9%",- "active-foreground": "0 0% 98%",- secondary: "220 10% 15.9%",- "secondary-foreground": "0 0% 98%",- muted: "220 10% 15.9%",- "muted-foreground": "220 5% 64.9%",- accent: "220 10% 15.9%",- "accent-foreground": "0 0% 98%",- destructive: "0 62.8% 30.6%",- "destructive-foreground": "0 0% 98%",- border: "220 10% 15.9%",- input: "220 10% 15.9%",- ring: "220 4.9% 83.9%",- success: "142 70% 45%",- "success-foreground": "0 0% 98%"+ // Vercel/Geist-inspired dark mode - pure black base+ background: "0 0% 0%",+ foreground: "0 0% 93%",+ card: "0 0% 4%",+ "card-foreground": "0 0% 93%",+ popover: "0 0% 7%",+ "popover-foreground": "0 0% 93%",+ primary: "0 0% 100%",+ "primary-foreground": "0 0% 0%",+ active: "0 0% 10%",+ "active-foreground": "0 0% 100%",+ secondary: "0 0% 7%",+ "secondary-foreground": "0 0% 93%",+ muted: "0 0% 7%",+ "muted-foreground": "0 0% 63%",+ accent: "0 0% 10%",+ "accent-foreground": "0 0% 93%",+ destructive: "0 100% 64%",+ "destructive-foreground": "0 0% 100%",+ border: "0 0% 15%",+ input: "0 0% 7%",+ ring: "0 0% 35%",+ success: "152 72% 53%",+ "success-foreground": "0 0% 0%"}}},@@ -482,82 +483,6 @@ export const themes = ["success-foreground": "0 0% 98%"}}- },- {- name: "vercel",- label: "Vercel",- activeColor: {- light: "0 0% 100%",- dark: "0 0% 100%"- },- cssVars: {- light: {- // Geist Background 1: Pure black #000000- background: "0 0% 0%",- // Geist Gray 12 (primary text): #ededed- foreground: "0 0% 93%",- // Geist Background 2: #0a0a0a - subtle elevation- card: "0 0% 4%",- "card-foreground": "0 0% 93%",- // Popovers slightly brighter than cards: #111111- popover: "0 0% 7%",- "popover-foreground": "0 0% 93%",- // Primary: Pure white #ffffff for maximum contrast- primary: "0 0% 100%",- "primary-foreground": "0 0% 0%",- // Active/hover states: Geist Gray 3 #1a1a1a- active: "0 0% 10%",- "active-foreground": "0 0% 100%",- // Secondary: Geist Gray 2 #111111- secondary: "0 0% 7%",- "secondary-foreground": "0 0% 93%",- // Muted: Geist Gray 2 with muted foreground- muted: "0 0% 7%",- // Geist Gray 9 (secondary text): #a1a1a1- "muted-foreground": "0 0% 63%",- // Accent: Geist Gray 3- accent: "0 0% 10%",- "accent-foreground": "0 0% 93%",- // Geist Red 9: #ff4444 - vibrant error red- destructive: "0 100% 64%",- "destructive-foreground": "0 0% 100%",- // Geist Gray 4: #262626 - subtle borders- border: "0 0% 15%",- // Input background: Geist Gray 2- input: "0 0% 7%",- // Focus ring: Geist Gray 6- ring: "0 0% 35%",- // Geist Green 9: #3ecf8e - Vercel's success green- success: "152 72% 53%",- "success-foreground": "0 0% 0%"- },- dark: {- // Identical to light - Vercel's always-dark aesthetic- background: "0 0% 0%",- foreground: "0 0% 93%",- card: "0 0% 4%",- "card-foreground": "0 0% 93%",- popover: "0 0% 7%",- "popover-foreground": "0 0% 93%",- primary: "0 0% 100%",- "primary-foreground": "0 0% 0%",- active: "0 0% 10%",- "active-foreground": "0 0% 100%",- secondary: "0 0% 7%",- "secondary-foreground": "0 0% 93%",- muted: "0 0% 7%",- "muted-foreground": "0 0% 63%",- accent: "0 0% 10%",- "accent-foreground": "0 0% 93%",- destructive: "0 100% 64%",- "destructive-foreground": "0 0% 100%",- border: "0 0% 15%",- input: "0 0% 7%",- ring: "0 0% 35%",- success: "152 72% 53%",- "success-foreground": "0 0% 0%"- }- }}] as const;