Skip to content

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.

style: make active secondary nav icon the primary variant

Brad Barbinef010118c78a
diff --git a/apps/carbon/app/components/Layout/Sidebar/ContentSidebar.tsx b/apps/carbon/app/components/Layout/Sidebar/ContentSidebar.tsx
index 45f8551eb1..d10a663012 100644
--- a/apps/carbon/app/components/Layout/Sidebar/ContentSidebar.tsx
+++ b/apps/carbon/app/components/Layout/Sidebar/ContentSidebar.tsx
@@ -24,7 +24,7 @@ const ContentSidebar = ({ links }: { links: Route[] }) => {
key={route.name}
asChild
leftIcon={route.icon}
- variant={isActive ? "solid" : "ghost"}
+ variant={isActive ? "primary" : "ghost"}
className="w-full justify-start"
>
<Link to={route.to + (route.q ? `?q=${route.q}` : "")}>
diff --git a/apps/carbon/app/components/Layout/Sidebar/GroupedContentSidebar.tsx b/apps/carbon/app/components/Layout/Sidebar/GroupedContentSidebar.tsx
index d64e2b0460..fa682f864d 100644
--- a/apps/carbon/app/components/Layout/Sidebar/GroupedContentSidebar.tsx
+++ b/apps/carbon/app/components/Layout/Sidebar/GroupedContentSidebar.tsx
@@ -28,7 +28,7 @@ const GroupedContentSidebar = ({ groups }: { groups: RouteGroup[] }) => {
key={route.name}
asChild
leftIcon={route.icon}
- variant={isActive ? "solid" : "ghost"}
+ variant={isActive ? "primary" : "ghost"}
className="w-full justify-start"
>
<Link to={route.to + (route.q ? `?q=${route.q}` : "")}>
diff --git a/packages/utils/src/themes.ts b/packages/utils/src/themes.ts
index a2d270aa4f..3002a75c72 100644
--- a/packages/utils/src/themes.ts
+++ b/packages/utils/src/themes.ts
@@ -297,7 +297,7 @@ export const themes = [
"popover-foreground": "0 0% 95%",
card: "24 9.8% 10%",
"card-foreground": "0 0% 95%",
- primary: "142.1 70.6% 45.3%",
+ primary: "142.1 87.6% 63.3%",
"primary-foreground": "144.9 80.4% 10%",
secondary: "240 3.7% 15.9%",
"secondary-foreground": "0 0% 98%",