Skip to content

Commit ee4884c

Browse files
committed
Theme changes
1 parent c9059f2 commit ee4884c

4 files changed

Lines changed: 25 additions & 9 deletions

File tree

apps/web/src/components/DemoAssemblyEditor.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export function DemoAssemblyEditor() {
5151
<Button
5252
label={t("actions.play")}
5353
icon="pi pi-play"
54-
className="margin-top-8"
54+
className="zx-run margin-top-8"
5555
onClick={() => {
5656
dashboardLock();
5757
showLoading();

apps/web/src/components/DemoSinclairBasicEditor.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export function DemoSinclairBasicEditor() {
5151
<Button
5252
label={t("actions.play")}
5353
icon="pi pi-play"
54-
className="margin-top-8"
54+
className="zx-run margin-top-8"
5555
onClick={() => {
5656
dashboardLock();
5757
showLoading();

apps/web/src/components/PublicProfiles.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,7 @@ export default function PublicProfiles() {
201201
<Dropdown
202202
value={sort}
203203
options={SORT_OPTIONS}
204+
style={{ width: "16rem" }}
204205
onChange={(e) => {
205206
setSort(e.value);
206207
setPage(0);

packages/ui/theme.scss

Lines changed: 22 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -70,28 +70,43 @@
7070
// Selection picks up the primary accent.
7171
::selection { background: rgba(43, 212, 212, 0.28); }
7272

73-
// Inputs and dropdowns: calmer borders, cyan focus.
73+
// Inputs and dropdowns on focus: a single clean cyan edge. The base theme
74+
// doubles up (1px cyan border plus an inset cyan box-shadow), which reads heavy
75+
// on a transparent control; replace the inset with one soft outer ring.
7476
.p-inputtext:enabled:focus,
7577
.p-dropdown:not(.p-disabled).p-focus {
7678
border-color: var(--zx-cyan);
79+
box-shadow: 0 0 0 2px rgba(43, 212, 212, 0.25);
7780
}
7881

7982
.p-button {
8083
font-weight: 600;
8184
}
8285

8386
// Run / play actions use the Spectrum green (go), with dark text, per the
84-
// functional colour code. Apply `zx-run` to the button.
87+
// functional colour code. Hold the green through every state so the button
88+
// never flips to the cyan primary on hover, focus or active.
8589
.p-button.zx-run {
8690
background: var(--zx-green);
8791
border-color: var(--zx-green);
8892
color: #06210D;
8993

9094
.p-button-icon { color: #06210D; }
95+
}
96+
.p-button.zx-run:enabled:hover,
97+
.p-button.zx-run:enabled:active,
98+
.p-button.zx-run:enabled:focus,
99+
.p-button.zx-run:focus,
100+
.p-button.zx-run:focus-visible {
101+
background: #43D65F;
102+
border-color: #43D65F;
103+
color: #06210D;
104+
box-shadow: 0 0 0 2px rgba(47, 192, 75, 0.35);
105+
}
91106

92-
&:enabled:hover {
93-
background: #43D65F;
94-
border-color: #43D65F;
95-
color: #06210D;
96-
}
107+
// Tabs: an inactive tab's underline should be the same line that runs behind
108+
// the whole strip, so only the active tab's cyan underline stands out. Make the
109+
// inactive underline transparent and let the nav's border show through.
110+
.p-tabview .p-tabview-nav li .p-tabview-nav-link {
111+
border-bottom-color: transparent;
97112
}

0 commit comments

Comments
 (0)