镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

Commit 67b8176

Browse files
committed
fix: use Tailwind v4's adaptive placeholder color in preflight
The preflight pinned input/textarea placeholders to the v3 gray-400 hex (#9ca3af), which reads wrong on dark backgrounds and custom palettes. Tailwind v4 derives it from the text color instead: color-mix(in oklab, currentColor 50%, transparent).
1 parent deac57c commit 67b8176

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎packages/crosswind/src/preflight.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ textarea {
351351
input::placeholder,
352352
textarea::placeholder {
353353
opacity: 1;
354-
color: #9ca3af;
354+
color: color-mix(in oklab, currentColor 50%, transparent);
355355
}
356356
357357
button,

0 commit comments

Comments
 (0)