UI: refresh design system with new color palette and icons (#1745)

- Replace orange accent (#f59f4a) with signature red (#ff4d4d)
- Switch from IBM Plex/Unbounded/Work Sans to Inter/JetBrains Mono
- Replace emoji icons with Lucide-style SVG icons throughout
- Add comprehensive CSS design tokens (colors, borders, semantic states)
- Update tool-display.json to use icon names instead of emoji
- Rebuild control-ui dist bundle
This commit is contained in:
Nicolas Zullo
2026-01-25 11:04:50 +01:00
committed by GitHub
parent 0f662c2935
commit 9fbee08590
29 changed files with 4834 additions and 7152 deletions
+205 -114
View File
@@ -1,10 +1,14 @@
/* ===========================================
Shell Layout
=========================================== */
.shell {
--shell-pad: 16px;
--shell-gap: 16px;
--shell-nav-width: 220px;
--shell-topbar-height: 56px;
--shell-focus-duration: 220ms;
--shell-focus-ease: cubic-bezier(0.2, 0.85, 0.25, 1);
--shell-focus-duration: 200ms;
--shell-focus-ease: var(--ease-out);
height: 100vh;
display: grid;
grid-template-columns: var(--shell-nav-width) minmax(0, 1fr);
@@ -13,7 +17,7 @@
"topbar topbar"
"nav content";
gap: 0;
animation: dashboard-enter 0.6s ease-out;
animation: dashboard-enter 0.4s var(--ease-out);
transition: grid-template-columns var(--shell-focus-duration) var(--shell-focus-ease);
overflow: hidden;
}
@@ -61,6 +65,10 @@
gap: 0;
}
/* ===========================================
Topbar
=========================================== */
.topbar {
grid-area: topbar;
position: sticky;
@@ -73,8 +81,7 @@
padding: 0 20px;
height: var(--shell-topbar-height);
border-bottom: 1px solid var(--border);
background: var(--panel);
backdrop-filter: blur(18px);
background: var(--bg);
}
.topbar-left {
@@ -84,49 +91,83 @@
}
.topbar .nav-collapse-toggle {
width: 44px;
height: 44px;
width: 36px;
height: 36px;
margin-bottom: 0;
}
.topbar .nav-collapse-toggle__icon {
font-size: 22px;
width: 20px;
height: 20px;
}
.topbar .nav-collapse-toggle__icon svg {
width: 20px;
height: 20px;
}
/* Brand */
.brand {
display: flex;
align-items: center;
gap: 10px;
}
.brand-logo {
width: 28px;
height: 28px;
flex-shrink: 0;
}
.brand-logo img {
width: 100%;
height: 100%;
object-fit: contain;
}
.brand-text {
display: flex;
flex-direction: column;
gap: 2px;
gap: 1px;
}
.brand-title {
font-family: var(--font-display);
font-size: 16px;
letter-spacing: 1px;
text-transform: uppercase;
font-size: 15px;
font-weight: 600;
letter-spacing: -0.02em;
line-height: 1.1;
color: var(--text-strong);
}
.brand-sub {
font-size: 10px;
font-size: 11px;
font-weight: 500;
color: var(--muted);
letter-spacing: 0.8px;
text-transform: uppercase;
letter-spacing: 0.02em;
line-height: 1;
}
/* Topbar status */
.topbar-status {
display: flex;
align-items: center;
gap: 8px;
}
/* Smaller pill and theme toggle in topbar */
.topbar-status .pill {
padding: 4px 10px;
padding: 6px 10px;
gap: 6px;
font-size: 11px;
font-size: 12px;
font-weight: 500;
height: 32px;
box-sizing: border-box;
}
.topbar-status .pill .mono {
display: flex;
align-items: center;
line-height: 1;
margin-top: 0px;
}
.topbar-status .statusDot {
@@ -135,9 +176,9 @@
}
.topbar-status .theme-toggle {
--theme-item: 22px;
--theme-gap: 4px;
--theme-pad: 4px;
--theme-item: 24px;
--theme-gap: 2px;
--theme-pad: 3px;
}
.topbar-status .theme-icon {
@@ -145,17 +186,22 @@
height: 12px;
}
/* ===========================================
Navigation Sidebar
=========================================== */
.nav {
grid-area: nav;
overflow-y: auto;
overflow-x: hidden;
padding: 16px;
padding: 16px 12px;
border-right: 1px solid var(--border);
background: var(--panel);
backdrop-filter: blur(18px);
transition: width var(--shell-focus-duration) var(--shell-focus-ease),
padding var(--shell-focus-duration) var(--shell-focus-ease);
min-height: 0; /* Allow grid item to shrink and enable scrolling */
background: var(--bg);
transition:
width var(--shell-focus-duration) var(--shell-focus-ease),
padding var(--shell-focus-duration) var(--shell-focus-ease),
opacity var(--shell-focus-duration) var(--shell-focus-ease);
min-height: 0;
}
.shell--chat-focus .nav {
@@ -164,9 +210,9 @@
border-width: 0;
overflow: hidden;
pointer-events: none;
opacity: 0;
}
/* Collapsed nav sidebar - completely hidden */
.nav--collapsed {
width: 0;
min-width: 0;
@@ -177,7 +223,7 @@
pointer-events: none;
}
/* Nav collapse toggle button */
/* Nav collapse toggle */
.nav-collapse-toggle {
width: 32px;
height: 32px;
@@ -186,71 +232,88 @@
justify-content: center;
background: transparent;
border: 1px solid transparent;
border-radius: 6px;
border-radius: var(--radius-md);
cursor: pointer;
transition: background 150ms ease, border-color 150ms ease;
transition:
background var(--duration-fast) ease,
border-color var(--duration-fast) ease;
margin-bottom: 16px;
}
.nav-collapse-toggle:hover {
background: rgba(255, 255, 255, 0.08);
background: var(--bg-hover);
border-color: var(--border);
}
:root[data-theme="light"] .nav-collapse-toggle:hover {
background: rgba(0, 0, 0, 0.06);
}
.nav-collapse-toggle__icon {
font-size: 16px;
display: flex;
align-items: center;
justify-content: center;
width: 18px;
height: 18px;
color: var(--muted);
transition: color var(--duration-fast) ease;
}
.nav-collapse-toggle__icon svg {
width: 18px;
height: 18px;
stroke: currentColor;
fill: none;
stroke-width: 1.5px;
stroke-linecap: round;
stroke-linejoin: round;
}
.nav-collapse-toggle:hover .nav-collapse-toggle__icon {
color: var(--text);
}
/* Nav groups */
.nav-group {
margin-bottom: 18px;
margin-bottom: 20px;
display: grid;
gap: 6px;
padding-bottom: 12px;
border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
gap: 2px;
}
.nav-group:last-child {
margin-bottom: 0;
padding-bottom: 0;
border-bottom: none;
}
.nav-group__items {
display: grid;
gap: 4px;
gap: 1px;
}
.nav-group--collapsed .nav-group__items {
display: none;
}
/* Nav label */
.nav-label {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
width: 100%;
padding: 4px 0;
padding: 6px 10px;
font-size: 11px;
font-weight: 500;
text-transform: uppercase;
letter-spacing: 1.4px;
color: var(--text);
opacity: 0.7;
color: var(--muted);
margin-bottom: 4px;
background: transparent;
border: none;
cursor: pointer;
text-align: left;
border-radius: var(--radius-sm);
transition:
color var(--duration-fast) ease,
background var(--duration-fast) ease;
}
.nav-label:hover {
opacity: 1;
color: var(--text);
background: var(--bg-hover);
}
.nav-label--static {
@@ -258,7 +321,8 @@
}
.nav-label--static:hover {
opacity: 0.7;
color: var(--muted);
background: transparent;
}
.nav-label__text {
@@ -266,131 +330,152 @@
}
.nav-label__chevron {
font-size: 12px;
opacity: 0.6;
font-size: 10px;
opacity: 0.5;
transition: transform var(--duration-fast) ease;
}
.nav-group--collapsed .nav-label__chevron {
transform: rotate(-90deg);
}
/* Nav items */
.nav-item {
position: relative;
display: flex;
align-items: center;
justify-content: flex-start;
gap: 8px;
padding: 10px 12px 10px 14px;
border-radius: 12px;
gap: 10px;
padding: 8px 10px;
border-radius: var(--radius-md);
border: 1px solid transparent;
background: transparent;
color: var(--muted);
cursor: pointer;
text-decoration: none;
transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
transition:
border-color var(--duration-fast) ease,
background var(--duration-fast) ease,
color var(--duration-fast) ease;
}
.nav-item__icon {
font-size: 16px;
width: 18px;
height: 18px;
width: 16px;
height: 16px;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
opacity: 0.7;
transition: opacity var(--duration-fast) ease;
}
.nav-item__icon svg {
width: 16px;
height: 16px;
stroke: currentColor;
fill: none;
stroke-width: 1.5px;
stroke-linecap: round;
stroke-linejoin: round;
}
.nav-item__text {
font-size: 13px;
font-weight: 500;
white-space: nowrap;
}
.nav-item:hover {
color: var(--text);
border-color: rgba(255, 255, 255, 0.12);
background: rgba(255, 255, 255, 0.06);
background: var(--bg-hover);
text-decoration: none;
}
.nav-item::before {
content: "";
position: absolute;
left: 0;
top: 50%;
width: 4px;
height: 60%;
border-radius: 0 999px 999px 0;
transform: translateY(-50%);
background: transparent;
.nav-item:hover .nav-item__icon {
opacity: 1;
}
.nav-item.active {
color: var(--text);
border-color: rgba(245, 159, 74, 0.45);
background: rgba(245, 159, 74, 0.12);
color: var(--text-strong);
background: var(--accent-subtle);
}
.nav-item.active::before {
background: var(--accent);
box-shadow: 0 0 12px rgba(245, 159, 74, 0.4);
.nav-item.active .nav-item__icon {
opacity: 1;
color: var(--accent);
}
/* ===========================================
Content Area
=========================================== */
.content {
grid-area: content;
padding: 8px 6px 20px;
padding: 8px 8px 24px;
display: flex;
flex-direction: column;
gap: 20px;
min-height: 0;
overflow-y: auto; /* Enable vertical scrolling for pages with long content */
overflow-y: auto;
overflow-x: hidden;
}
/* Chat handles its own scrolling (chat-thread); avoid double scrollbars. */
:root[data-theme="light"] .content {
background: var(--bg-content);
}
.content--chat {
overflow: hidden;
padding-bottom: 0;
}
.shell--chat .content {
/* No-op: keep chat layout consistent with other tabs */
}
/* Content header */
.content-header {
display: flex;
align-items: flex-end;
justify-content: space-between;
gap: 12px;
padding: 0 6px;
gap: 16px;
padding: 4px 8px;
overflow: hidden;
transform-origin: top center;
transition: opacity var(--shell-focus-duration) var(--shell-focus-ease),
transition:
opacity var(--shell-focus-duration) var(--shell-focus-ease),
transform var(--shell-focus-duration) var(--shell-focus-ease),
max-height var(--shell-focus-duration) var(--shell-focus-ease),
padding var(--shell-focus-duration) var(--shell-focus-ease);
max-height: 90px;
max-height: 80px;
}
.shell--chat-focus .content-header {
opacity: 0;
transform: translateY(-10px);
transform: translateY(-8px);
max-height: 0px;
padding: 0;
pointer-events: none;
}
.page-title {
font-family: var(--font-display);
font-size: 26px;
letter-spacing: 0.6px;
font-size: 24px;
font-weight: 600;
letter-spacing: -0.02em;
line-height: 1.2;
color: var(--text-strong);
}
.page-sub {
color: var(--muted);
font-size: 12px;
letter-spacing: 0.4px;
font-size: 13px;
font-weight: 400;
margin-top: 4px;
}
.page-meta {
display: flex;
gap: 10px;
gap: 8px;
}
/* Chat view: header and controls side by side */
/* Chat view header adjustments */
.content--chat .content-header {
flex-direction: row;
align-items: center;
@@ -410,9 +495,13 @@
flex-shrink: 0;
}
/* ===========================================
Grid Utilities
=========================================== */
.grid {
display: grid;
gap: 18px;
gap: 16px;
}
.grid-cols-2 {
@@ -425,39 +514,42 @@
.stat-grid {
display: grid;
gap: 14px;
gap: 12px;
grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}
.note-grid {
display: grid;
gap: 14px;
gap: 12px;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.row {
display: flex;
gap: 12px;
gap: 10px;
align-items: center;
}
.stack {
display: grid;
gap: 14px;
gap: 12px;
}
.filters {
display: flex;
flex-wrap: wrap;
gap: 10px;
gap: 8px;
align-items: center;
}
/* ===========================================
Responsive - Tablet
=========================================== */
@media (max-width: 1100px) {
.shell {
--shell-pad: 12px;
--shell-gap: 12px;
--shell-nav-col: 1fr;
grid-template-columns: 1fr;
grid-template-rows: auto auto 1fr;
grid-template-areas:
@@ -470,17 +562,18 @@
position: static;
max-height: none;
display: flex;
gap: 16px;
gap: 6px;
overflow-x: auto;
border-right: none;
padding: 12px;
border-bottom: 1px solid var(--border);
padding: 10px 14px;
background: var(--bg);
}
.nav-group {
grid-auto-flow: column;
grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
border-bottom: none;
padding-bottom: 0;
grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
margin-bottom: 0;
}
.grid-cols-2,
@@ -490,13 +583,11 @@
.topbar {
position: static;
flex-direction: column;
align-items: flex-start;
gap: 12px;
padding: 12px 14px;
gap: 10px;
}
.topbar-status {
width: 100%;
flex-wrap: wrap;
}