Skip to content

Commit fe0542c

Browse files
committed
Fix glass theme button contrast
1 parent 3f3b0cd commit fe0542c

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

demo/src/style.css

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -250,15 +250,15 @@ pre.code-block {
250250
}
251251

252252
:root:has(#pui-theme-glass:checked) [p="button"] {
253-
border-color: hsl(var(--p-border));
253+
border-color: hsl(0 0% 35% / 0.35);
254254
background-image: linear-gradient(
255255
140deg,
256-
hsl(var(--p-card) / 0.9),
257-
hsl(var(--p-card) / 0.65)
256+
hsl(0 0% 18% / 0.95),
257+
hsl(0 0% 28% / 0.9)
258258
);
259-
color: hsl(var(--p-foreground));
260-
box-shadow: 0 14px 30px hsl(0 0% 0% / 0.12),
261-
inset 0 1px 0 hsl(0 0% 100% / 0.55);
259+
color: hsl(var(--p-primary-foreground));
260+
box-shadow: 0 14px 30px hsl(0 0% 0% / 0.2),
261+
inset 0 1px 0 hsl(0 0% 100% / 0.35);
262262
}
263263

264264
:root:has(#pui-theme-glass:checked) [p="button"]:hover {
@@ -286,11 +286,11 @@ pre.code-block {
286286
:root:has(#pui-theme-glass:checked) [p="button"][variant="secondary"] {
287287
background-image: linear-gradient(
288288
140deg,
289-
hsl(var(--p-secondary) / 0.75),
290-
hsl(var(--p-secondary) / 0.55)
289+
hsl(0 0% 20% / 0.85),
290+
hsl(0 0% 35% / 0.8)
291291
);
292-
border-color: hsl(var(--p-border));
293-
color: hsl(var(--p-secondary-foreground));
292+
border-color: hsl(0 0% 35% / 0.3);
293+
color: hsl(var(--p-primary-foreground));
294294
}
295295

296296
:root:has(#pui-theme-glass:checked) [p="input"],

0 commit comments

Comments
 (0)