Speakr is a personal, self-hosted web application designed for transcribing audio recordings
Python
Theme the native <select> dropdown options so they're legible in dark mode — browser native dropdowns don't inherit page CSS variables and fall back to OS / UA defaults which are typically light-on-light on dark themed pages (visible in the folder picker as the 'white-on-white' option list); explicit option styling uses var(--bg-secondary) for background and var(--text-primary) for foreground so dark mode gets a dark dropdown with light text and light mode gets a light dropdown with dark text — same tokens the rest of the UI uses for consistency; hover and :checked states use var(--bg-accent) + var(--text-accent) so the focused / selected entry stands out the same way other dropdowns do; applies to every <select> in the app (folder picker, language picker, model picker, etc.) so the fix propagates broadly; Safari ignores most <option> styles but it follows the system theme automatically so it stays legible there too
Murtaza Nasircaa9598cbff1
diff --git a/static/css/primitives.css b/static/css/primitives.cssindex 9d4178c9..1c2aafc2 100644--- a/static/css/primitives.css+++ b/static/css/primitives.css@@ -1526,3 +1526,24 @@ textarea:focus-visible {from { opacity: 0; transform: translateY(100%); }to { opacity: 1; transform: translateY(0); }}+++/* ---- Native <select> theming ------------------------------------------+ The browser's native dropdown for <select> elements doesn't inherit+ the page's theme variables — on dark mode it falls back to OS / UA+ default which is typically a light surface, producing the+ "white-on-white" reading of <option>s seen on the folder picker.+ Explicitly styling the option elements with the same theme tokens+ the rest of the UI uses gives consistent contrast in both modes.+ Note: <option> styling support varies by browser; covers Chrome /+ Edge / Firefox on desktop and most mobile browsers. Safari ignores+ most <option> styles but uses system theme automatically. */+select option {+ background-color: var(--bg-secondary);+ color: var(--text-primary);+}+select option:checked,+select option:hover {+ background-color: var(--bg-accent);+ color: var(--text-accent);+}