Glassmorphism polish: frosted pills + glass sidebar nav states
Neutral badges become frosted (translucent + blur), the primary badge picks up the gradient, and the sidebar nav active/hover states are now a frosted white highlight (ring + blur) instead of the opaque accent — cohesive on the dark-glass sidebar. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -224,3 +224,20 @@ textarea {
|
||||
background-color: color-mix(in oklch, oklch(0.32 0.05 286) 82%, transparent) !important;
|
||||
border-color: color-mix(in oklch, white 16%, transparent);
|
||||
}
|
||||
|
||||
/* Pills: frosted for neutral variants, gradient for the primary one. */
|
||||
[data-slot="badge"][data-variant="secondary"],
|
||||
[data-slot="badge"][data-variant="outline"] {
|
||||
backdrop-filter: blur(6px);
|
||||
-webkit-backdrop-filter: blur(6px);
|
||||
background-color: color-mix(in oklch, white 58%, transparent);
|
||||
border-color: color-mix(in oklch, white 55%, transparent);
|
||||
}
|
||||
.dark [data-slot="badge"][data-variant="secondary"],
|
||||
.dark [data-slot="badge"][data-variant="outline"] {
|
||||
background-color: color-mix(in oklch, white 12%, transparent);
|
||||
border-color: color-mix(in oklch, white 16%, transparent);
|
||||
}
|
||||
[data-slot="badge"][data-variant="default"] {
|
||||
background-image: linear-gradient(135deg, oklch(0.58 0.24 277), oklch(0.56 0.25 305));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user