@passui/tokens 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/styles/utilities.css +14 -9
package/package.json
CHANGED
package/styles/utilities.css
CHANGED
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
* by every glass surface.
|
|
26
26
|
*/
|
|
27
27
|
:root {
|
|
28
|
-
--grain-sea-salt: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.
|
|
28
|
+
--grain-sea-salt: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.07'/%3E%3C/svg%3E");
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
/** Centered page container with comfortable gutters. */
|
|
@@ -106,10 +106,15 @@
|
|
|
106
106
|
}
|
|
107
107
|
|
|
108
108
|
/**
|
|
109
|
-
*
|
|
110
|
-
*
|
|
111
|
-
*
|
|
112
|
-
*
|
|
109
|
+
* Sea Glass: passui's signature surface — smooth, frosted, translucent,
|
|
110
|
+
* like gummy sweets tumbled by the sea. Not liquid glass (which is highly
|
|
111
|
+
* transparent with vivid color pop), but satin privacy level 5 glass:
|
|
112
|
+
* a soft, diffused quality with muted color depth. The grain-sea-salt
|
|
113
|
+
* texture gives the surface its frosted/satin quality.
|
|
114
|
+
*
|
|
115
|
+
* Tuned away from liquid glass: reduced brightness (no liquid sheen),
|
|
116
|
+
* reduced saturation (muted colors, not vivid pop), slightly more blur
|
|
117
|
+
* (more diffusion), and softer specular (less sharp edge light).
|
|
113
118
|
* With Reduce Transparency it becomes solid, as on Apple platforms.
|
|
114
119
|
*/
|
|
115
120
|
@utility glass {
|
|
@@ -123,12 +128,12 @@
|
|
|
123
128
|
color-mix(in srgb, var(--color-glass-sheen) 50%, transparent)
|
|
124
129
|
),
|
|
125
130
|
var(--grain-sea-salt);
|
|
126
|
-
backdrop-filter: blur(
|
|
131
|
+
backdrop-filter: blur(14px) saturate(150%) brightness(1.0);
|
|
127
132
|
box-shadow:
|
|
128
|
-
inset 1px 1.5px 0 -0.5px var(--color-glass-specular),
|
|
129
|
-
inset -1px -1px 0 -0.5px color-mix(in srgb, var(--color-glass-specular)
|
|
133
|
+
inset 1px 1.5px 0 -0.5px color-mix(in srgb, var(--color-glass-specular) 75%, transparent),
|
|
134
|
+
inset -1px -1px 0 -0.5px color-mix(in srgb, var(--color-glass-specular) 35%, transparent),
|
|
130
135
|
inset 0 0 0 0.5px var(--color-glass-rim),
|
|
131
|
-
inset 0 0 16px 0 color-mix(in srgb, var(--color-glass-sheen)
|
|
136
|
+
inset 0 0 16px 0 color-mix(in srgb, var(--color-glass-sheen) 50%, transparent),
|
|
132
137
|
0 10px 30px -10px var(--color-shadow-floating);
|
|
133
138
|
|
|
134
139
|
@media (prefers-reduced-transparency: reduce) {
|