Stop dark text fields from looking pre-selected when they auto-focus.

This commit is contained in:
adilallo committed 2026-11-23 14:30:43 -07:00
1 parent 36112f95d3
commit 6aa06126b5
6 files changed
+111 -22

No files matched your search

+33
View File
@@ -70,6 +70,39 @@
transform: translateY(0);
}
/*
* Dark text fields: drop OS chrome (Safari/Chrome inner bevel on focus)
* and the yellow autofill wash. Utilities on each control still win.
*/
@layer base {
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="url"],
input[type="tel"],
input[type="number"],
input:not([type]),
textarea {
appearance: none;
color-scheme: dark;
caret-color: var(--color-content-default-primary);
}
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus {
-webkit-text-fill-color: var(--color-content-default-primary);
caret-color: var(--color-content-default-primary);
box-shadow: inset 0 0 0 100vmax var(--color-surface-default-secondary);
transition: background-color 99999s ease-out;
}
}
@theme inline {
/* Custom breakpoints */
--breakpoint-xsm: 429px;