Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.
Ruby b2b-commercee-commerceecommerceecommerce-apiecommerce-frameworkecommerce-platformheadlessheadless-commerceheadless-ecommercemarketplacemulti-tenantmulti-vendormulti-vendor-ecommerceopen-sourcespree-commerce
A little bit of dashboard styling improvements
Damian Legawiecc385ec0bde5b
diff --git a/packages/dashboard-core/src/components/settings-sidebar.tsx b/packages/dashboard-core/src/components/settings-sidebar.tsxindex c4e51c6e6c..34faec62d7 100644--- a/packages/dashboard-core/src/components/settings-sidebar.tsx+++ b/packages/dashboard-core/src/components/settings-sidebar.tsx@@ -51,9 +51,7 @@ export function SettingsSidebar({ open }: { open: boolean }) {data-state={open ? 'open' : 'closed'}className={cn('sticky top-0 z-30 hidden h-svh shrink-0 self-start overflow-hidden bg-sidebar text-sidebar-foreground transition-[width,border-color] duration-200 ease-out lg:block',- open- ? 'lg:w-(--spacing-sidebar-width) border-e border-border/50'- : 'lg:w-0 border-e-0 border-transparent',+ open ? 'lg:w-(--spacing-sidebar-width) border-e' : 'lg:w-0 border-e-0 border-transparent',)}>{/* `quiet-scrollbar` rather than the browser default: this nav is andiff --git a/packages/dashboard-core/src/components/top-bar.tsx b/packages/dashboard-core/src/components/top-bar.tsxindex 43eee58725..2eef9066d5 100644--- a/packages/dashboard-core/src/components/top-bar.tsx+++ b/packages/dashboard-core/src/components/top-bar.tsx@@ -78,7 +78,7 @@ export function TopBar({return (<headerclassName={cn(- 'sticky top-0 z-40 flex h-header-height shrink-0 items-center gap-3 bg-background/90 px-4 border-b border-border/50 backdrop-blur supports-[backdrop-filter]:bg-background/75',+ 'sticky top-0 z-40 flex h-header-height shrink-0 items-center gap-3 bg-background/90 px-4 border-b backdrop-blur supports-[backdrop-filter]:bg-background/75','transition-transform duration-200 ease-out motion-reduce:transition-none',hidden && '-translate-y-full',)}@@ -86,7 +86,7 @@ export function TopBar({// so keyboard focus can't land on a control the user cannot see.inert={hidden || undefined}>- <SidebarTrigger className="-ml-1 h-8 w-8" />+ <SidebarTrigger className="-ml-1 h-6 w-6 opacity-60 hover:opacity-100 hover:bg-accent" /><div className="flex flex-1 justify-center"><SearchTrigger />diff --git a/packages/dashboard-ui/src/styles.css b/packages/dashboard-ui/src/styles.cssindex 893366d853..d65160f278 100644--- a/packages/dashboard-ui/src/styles.css+++ b/packages/dashboard-ui/src/styles.css@@ -81,13 +81,13 @@--radius: 0.75rem;/* Sidebar — the site's raised warm surface, one step off the page. */- --sidebar: oklch(0.9858 0.0045 78.3); /* #fcfaf7 — site page background */+ --sidebar: oklch(97.1% 0.005 78.3);--sidebar-foreground: oklch(0.2136 0.0555 255.9);--sidebar-primary: oklch(0.2136 0.0555 255.9);--sidebar-primary-foreground: oklch(1 0 0);- --sidebar-accent: oklch(0.965 0.006 84.6);+ --sidebar-accent: oklch(92.1% 0.011 76.6);--sidebar-accent-foreground: oklch(0.2136 0.0555 255.9);- --sidebar-border: oklch(0.928 0.0075 87.5);+ --sidebar-border: oklch(90.4% 0.01 87.5);--sidebar-ring: var(--brand-blue);/* Status ramps, following Vercel's Geist colour system.diff --git a/packages/dashboard-ui/src/ui/progress.tsx b/packages/dashboard-ui/src/ui/progress.tsxindex fc7df857bd..9e025270b9 100644--- a/packages/dashboard-ui/src/ui/progress.tsx+++ b/packages/dashboard-ui/src/ui/progress.tsx@@ -30,7 +30,7 @@ function ProgressTrack({ className, ...props }: ProgressPrimitive.Track.Props) {return (<ProgressPrimitive.Trackdata-slot="progress-track"- className={cn('relative h-2 w-full overflow-hidden rounded-full bg-primary/20', className)}+ className={cn('relative h-2 w-full overflow-hidden rounded-full bg-blue-500/20', className)}{...props}/>)@@ -44,7 +44,7 @@ function ProgressIndicator({ className, ...props }: ProgressPrimitive.Indicator.// `width` is a layout property, but it's the right one here: a// determinate bar has to grow, and `scaleX` would distort the fill's// rounded ends. Narrowed from `transition-all` so only width animates.- 'h-full rounded-full bg-primary transition-[width] duration-200 ease-out',+ 'h-full rounded-full bg-blue-500 transition-[width] duration-200 ease-out','data-[indeterminate]:w-1/3 data-[indeterminate]:animate-pulse',className,)}diff --git a/packages/dashboard-ui/src/ui/sidebar.tsx b/packages/dashboard-ui/src/ui/sidebar.tsxindex 0ddf12e846..0aef44bd7c 100644--- a/packages/dashboard-ui/src/ui/sidebar.tsx+++ b/packages/dashboard-ui/src/ui/sidebar.tsx@@ -254,7 +254,7 @@ function Sidebar({<divdata-sidebar="sidebar"data-slot="sidebar-inner"- className="flex size-full flex-col bg-sidebar border-e border-border/50 group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:shadow-sm group-data-[variant=floating]:ring-1 group-data-[variant=floating]:ring-sidebar-border"+ className="flex size-full flex-col bg-sidebar border-e group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:shadow-sm group-data-[variant=floating]:ring-1 group-data-[variant=floating]:ring-sidebar-border">{children}</div>