@passui/tokens 0.1.1 → 0.1.2
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/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) {
|