Skip to content

Commit 83f95d2

Browse files
committed
Theme changes
1 parent ee4884c commit 83f95d2

2 files changed

Lines changed: 28 additions & 5 deletions

File tree

packages/ui/Nav.scss

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,9 @@
5656
white-space: nowrap;
5757
}
5858

59-
// top-level menu items: uppercase, letterspaced, quiet until hover.
60-
// Tighter horizontal padding than the theme's 1rem so the bar reads dense
61-
// and deliberate rather than airy.
59+
// top-level menu items: uppercase, letterspaced, legible at rest and
60+
// brighter on hover. Tighter horizontal padding than the theme's 1rem so
61+
// the bar reads dense and deliberate rather than airy.
6262
.p-menubar-root-list > .p-menuitem > .p-menuitem-link {
6363
padding: 0.6rem 0.75rem;
6464
border-radius: 6px;
@@ -67,13 +67,24 @@
6767
letter-spacing: 0.13em;
6868
font-size: 0.72rem;
6969
font-weight: 600;
70-
color: var(--zx-muted);
70+
color: #C2BBB0;
7171
}
72-
.p-menuitem-icon { color: var(--zx-faint); font-size: 0.8rem; }
72+
.p-menuitem-icon { color: var(--zx-muted); font-size: 0.8rem; }
7373
&:hover .p-menuitem-text,
7474
&:hover .p-menuitem-icon { color: var(--zx-text); }
7575
}
7676

77+
// Submenu panels dropping from the bar: match the header tone, round the
78+
// corners to fit the rest of the UI, and shrink items slightly so they
79+
// relate to the bar without touching the (smaller) menu titles.
80+
.p-submenu-list {
81+
background: var(--zx-surface);
82+
border: 1px solid var(--zx-line-2);
83+
border-radius: 8px;
84+
padding: 0.25rem;
85+
.p-menuitem-text { font-size: 0.9rem; }
86+
}
87+
7788
.zx-deck-end { display: flex; align-items: center; gap: 0.5rem; margin-right: 1rem; }
7889

7990
// Language picker reads as part of the header: transparent so the bar shows

packages/ui/theme.scss

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,3 +110,15 @@
110110
.p-tabview .p-tabview-nav li .p-tabview-nav-link {
111111
border-bottom-color: transparent;
112112
}
113+
114+
// Dropdown panels: match the header tone (the base theme uses a cooler grey)
115+
// and round the corners to fit the rest of the UI. Items shrink slightly to
116+
// relate to the menu bar.
117+
.p-dropdown-panel {
118+
background: var(--zx-surface);
119+
border: 1px solid var(--zx-line-2);
120+
border-radius: 8px;
121+
overflow: hidden;
122+
123+
.p-dropdown-item { font-size: 0.9rem; }
124+
}

0 commit comments

Comments
 (0)