@passui/tokens 0.1.1 → 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/base.css +23 -0
- package/styles/utilities.css +14 -9
package/package.json
CHANGED
package/styles/base.css
CHANGED
|
@@ -71,6 +71,29 @@
|
|
|
71
71
|
-moz-appearance: textfield;
|
|
72
72
|
appearance: textfield;
|
|
73
73
|
}
|
|
74
|
+
|
|
75
|
+
/* Apple's pattern: a heading hugs the paragraph that follows it.
|
|
76
|
+
Section separation comes from the layout around the cluster,
|
|
77
|
+
not from the heading's own bottom margin. Apps that want extra
|
|
78
|
+
air can still add mt-* explicitly. Audit §4.3.3. */
|
|
79
|
+
h1, h2, h3, h4, h5, h6 {
|
|
80
|
+
margin-block: 0;
|
|
81
|
+
}
|
|
82
|
+
h1 + p, h2 + p, h3 + p, h4 + p, h5 + p, h6 + p {
|
|
83
|
+
margin-block-start: 0;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
/* Apple's rule: use SF Pro Display optical variants at 20pt and above,
|
|
87
|
+
SF Pro Text below. The --font-display family is declared in
|
|
88
|
+
typography.ts but was previously unused because --font-heading
|
|
89
|
+
aliased to --font-sans. This rule wires Display to the four large
|
|
90
|
+
text utilities. On Apple hardware -apple-system auto-selects
|
|
91
|
+
optical sizes, so this is invisible there; on systems with SF Pro
|
|
92
|
+
installed outside -apple-system, it ensures the correct cut.
|
|
93
|
+
Audit §4.4. */
|
|
94
|
+
.text-large-title, .text-title, .text-title2, .text-title3 {
|
|
95
|
+
font-family: var(--font-display);
|
|
96
|
+
}
|
|
74
97
|
}
|
|
75
98
|
|
|
76
99
|
@media (prefers-reduced-motion: reduce) {
|
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) {
|