Skip to content

Write HTML. Render video. Built for agents.

feat(registry): frost liquid glass widgets

Miguel Ángel83dc57ad77f4
diff --git a/registry/blocks/liquid-glass-widgets/liquid-glass-widgets.html b/registry/blocks/liquid-glass-widgets/liquid-glass-widgets.html
index 7423541ba4..169e013601 100644
--- a/registry/blocks/liquid-glass-widgets/liquid-glass-widgets.html
+++ b/registry/blocks/liquid-glass-widgets/liquid-glass-widgets.html
@@ -46,19 +46,19 @@
/* ── Glass Panels ── */
.glass-panel {
position: absolute;
- background: rgba(255, 255, 255, 0.06);
- --lg-blur: 0.22;
- --lg-refraction: 0.6;
+ background: rgba(255, 255, 255, 0.025);
+ --lg-blur: 0.42;
+ --lg-refraction: 0.82;
--lg-corner-radius: 28;
- --lg-z-radius: 38;
- --lg-specular: 0.2;
- --lg-fresnel: 0.9;
- --lg-edge-highlight: 0.1;
- --lg-chrom-aberration: 0.05;
- --lg-shadow-opacity: 0.35;
- --lg-shadow-spread: 14;
- --lg-shadow-offset-y: 4;
- --lg-saturation: 0.25;
+ --lg-z-radius: 46;
+ --lg-specular: 0.34;
+ --lg-fresnel: 1.25;
+ --lg-edge-highlight: 0.26;
+ --lg-chrom-aberration: 0.08;
+ --lg-shadow-opacity: 0;
+ --lg-shadow-spread: 0;
+ --lg-shadow-offset-y: 0;
+ --lg-saturation: 0.38;
}
.stat-card {
width: 220px;
@@ -114,6 +114,7 @@
.stat-text {
width: 220px;
height: 220px;
+ position: absolute;
display: flex;
flex-direction: column;
align-items: center;
@@ -121,18 +122,49 @@
gap: 10px;
padding: 22px;
border-radius: 28px;
- background: #02040a;
- box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
- text-shadow: 0 2px 12px rgba(0, 0, 0, 0.42);
+ background:
+ linear-gradient(
+ 150deg,
+ rgba(255, 255, 255, 0.28),
+ rgba(255, 255, 255, 0.06) 46%,
+ rgba(255, 255, 255, 0.16)
+ ),
+ linear-gradient(180deg, rgba(9, 18, 31, 0.2), rgba(255, 255, 255, 0.04));
+ border: 1px solid rgba(255, 255, 255, 0.36);
+ box-shadow:
+ inset 0 1px 0 rgba(255, 255, 255, 0.5),
+ inset 0 -18px 38px rgba(255, 255, 255, 0.08);
+ overflow: hidden;
+ text-shadow: 0 2px 16px rgba(0, 0, 0, 0.38);
+ }
+ .stat-text::before,
+ .showcase-text::before,
+ .pill-text::before {
+ content: "";
+ position: absolute;
+ inset: 1px;
+ border-radius: inherit;
+ pointer-events: none;
+ background: linear-gradient(
+ 120deg,
+ rgba(255, 255, 255, 0.44),
+ transparent 28%,
+ transparent 66%,
+ rgba(255, 255, 255, 0.2)
+ );
+ opacity: 0.32;
+ mix-blend-mode: screen;
}
.stat-label {
+ position: relative;
font-size: 14px;
- font-weight: 500;
+ font-weight: 650;
color: #fff;
text-transform: uppercase;
letter-spacing: 1.5px;
}
.stat-value {
+ position: relative;
font-size: 52px;
font-weight: 700;
color: #fff;
@@ -140,16 +172,18 @@
line-height: 1;
}
.stat-unit {
+ position: relative;
font-size: 24px;
font-weight: 500;
color: #fff;
}
.mini-meter {
+ position: relative;
width: 140px;
height: 6px;
overflow: hidden;
border-radius: 999px;
- background: rgba(255, 255, 255, 0.2);
+ background: rgba(255, 255, 255, 0.28);
}
.mini-meter-fill {
width: 0%;
@@ -197,7 +231,10 @@
display: grid;
place-items: center;
border-radius: 50%;
- background: #02040a;
+ background: rgba(7, 10, 18, 0.36);
+ box-shadow:
+ inset 0 1px 0 rgba(255, 255, 255, 0.22),
+ inset 0 -8px 20px rgba(0, 0, 0, 0.14);
color: #fff;
font-size: 30px;
font-weight: 800;
@@ -220,6 +257,7 @@
.showcase-text {
width: 500px;
height: 320px;
+ position: absolute;
display: flex;
flex-direction: column;
align-items: center;
@@ -227,11 +265,23 @@
gap: 20px;
padding: 32px;
border-radius: 28px;
- background: #02040a;
- box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
- text-shadow: 0 2px 12px rgba(0, 0, 0, 0.42);
+ background:
+ radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.38), transparent 24%),
+ linear-gradient(
+ 135deg,
+ rgba(255, 255, 255, 0.24),
+ rgba(255, 255, 255, 0.07) 52%,
+ rgba(255, 255, 255, 0.18)
+ );
+ border: 1px solid rgba(255, 255, 255, 0.38);
+ box-shadow:
+ inset 0 1px 0 rgba(255, 255, 255, 0.5),
+ inset 0 -24px 48px rgba(255, 255, 255, 0.08);
+ overflow: hidden;
+ text-shadow: 0 2px 18px rgba(0, 0, 0, 0.4);
}
.showcase-icon {
+ position: relative;
width: 168px;
height: 52px;
display: flex;
@@ -244,6 +294,7 @@
display: block;
}
.showcase-title {
+ position: relative;
font-size: 28px;
font-weight: 700;
color: #fff;
@@ -251,6 +302,7 @@
line-height: 1.2;
}
.showcase-desc {
+ position: relative;
font-size: 15px;
font-weight: 500;
color: #fff;
@@ -259,6 +311,7 @@
max-width: 380px;
}
.showcase-status {
+ position: relative;
display: flex;
align-items: center;
gap: 8px;
@@ -274,6 +327,7 @@
box-shadow: 0 0 14px rgba(74, 222, 128, 0.7);
}
.showcase-progress {
+ position: relative;
width: 300px;
height: 7px;
overflow: hidden;
@@ -295,15 +349,19 @@
.pill-text {
width: 130px;
height: 36px;
+ position: absolute;
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
border-radius: 40px;
- background: #02040a;
- box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
+ background: linear-gradient(130deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.1));
+ border: 1px solid rgba(255, 255, 255, 0.34);
+ box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.48);
+ overflow: hidden;
}
.pill-dot {
+ position: relative;
width: 8px;
height: 8px;
border-radius: 50%;
@@ -319,6 +377,7 @@
background: #a78bfa;
}
.pill-label {
+ position: relative;
font-size: 13px;
font-weight: 600;
color: #fff;