From c7a9729795c84cc5d0eb7850a84a5e5698fa9e0c Mon Sep 17 00:00:00 2001 From: Brian Love Date: Sun, 5 Apr 2026 09:45:19 -0700 Subject: [PATCH] feat(cockpit): add design tokens CSS, Tailwind v4 to Angular apps, fix sidebar and code overflow - Add tokens.css to @cacheplane/design-tokens with all 29 --ds-* CSS custom properties - Replace hardcoded dark theme in all 14 Angular example apps with design-token-based light theme - Add Tailwind v4 to all Angular apps via @import "tailwindcss" + @theme block - Remove overview entries from cockpit sidebar navigation - Fix code block horizontal overflow in docs mode with overflow-x: auto --- apps/cockpit/src/app/cockpit.css | 5 +- .../components/sidebar/navigation-groups.tsx | 4 +- .../filesystem/angular/src/styles.css | 31 +- .../deep-agents/memory/angular/src/styles.css | 31 +- .../planning/angular/src/styles.css | 31 +- .../sandboxes/angular/src/styles.css | 31 +- .../deep-agents/skills/angular/src/styles.css | 31 +- .../subagents/angular/src/styles.css | 31 +- .../deployment-runtime/angular/src/styles.css | 31 +- .../durable-execution/angular/src/styles.css | 31 +- .../interrupts/angular/src/styles.css | 31 +- .../langgraph/memory/angular/src/styles.css | 31 +- .../persistence/angular/src/styles.css | 31 +- .../streaming/angular/src/styles.css | 31 +- .../subgraphs/angular/src/styles.css | 31 +- .../time-travel/angular/src/styles.css | 31 +- .../plans/2026-04-05-example-app-styling.md | 417 ++++++++++++++++++ .../2026-04-05-example-app-styling-design.md | 150 +++++++ libs/design-tokens/src/lib/tokens.css | 49 ++ libs/design-tokens/src/lib/tokens.spec.ts | 44 ++ 20 files changed, 1002 insertions(+), 101 deletions(-) create mode 100644 docs/superpowers/plans/2026-04-05-example-app-styling.md create mode 100644 docs/superpowers/specs/2026-04-05-example-app-styling-design.md create mode 100644 libs/design-tokens/src/lib/tokens.css diff --git a/apps/cockpit/src/app/cockpit.css b/apps/cockpit/src/app/cockpit.css index 875289e17..7983dcbad 100644 --- a/apps/cockpit/src/app/cockpit.css +++ b/apps/cockpit/src/app/cockpit.css @@ -131,6 +131,7 @@ pre.shiki { border-radius: 0.5rem; overflow: hidden; margin: 0.75rem 0; + max-width: 100%; } .doc-codeblock__header { display: flex; @@ -160,8 +161,8 @@ pre.shiki { cursor: pointer; } .doc-codeblock__copy:hover { color: #e0e0e0; } -.doc-codeblock pre.shiki { margin: 0; border-radius: 0; border: none; } -.code-mode-block pre.shiki { margin: 0; border-radius: 0; border: none; } +.doc-codeblock pre.shiki { margin: 0; border-radius: 0; border: none; overflow-x: auto; } +.code-mode-block pre.shiki { margin: 0; border-radius: 0; border: none; overflow-x: auto; } .doc-prompt { background: rgba(168, 85, 247, 0.04); diff --git a/apps/cockpit/src/components/sidebar/navigation-groups.tsx b/apps/cockpit/src/components/sidebar/navigation-groups.tsx index 897ba478d..bc6af8776 100644 --- a/apps/cockpit/src/components/sidebar/navigation-groups.tsx +++ b/apps/cockpit/src/components/sidebar/navigation-groups.tsx @@ -75,7 +75,9 @@ function ProductGroup({ {open && (