@ctrl-ui/react 0.8.17 → 0.8.18
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/dist/styles/theme.css +25 -0
- package/dist/styles/type-scale.css +28 -2
- package/package.json +1 -1
package/dist/styles/theme.css
CHANGED
|
@@ -601,6 +601,31 @@
|
|
|
601
601
|
--default-transition-timing-function: var(--ease-standard);
|
|
602
602
|
}
|
|
603
603
|
|
|
604
|
+
@utility text-display {
|
|
605
|
+
font-family: var(--font-display);
|
|
606
|
+
text-wrap: balance;
|
|
607
|
+
}
|
|
608
|
+
|
|
609
|
+
@utility text-heading-1 {
|
|
610
|
+
font-family: var(--font-display);
|
|
611
|
+
text-wrap: balance;
|
|
612
|
+
}
|
|
613
|
+
|
|
614
|
+
@utility text-heading-2 {
|
|
615
|
+
font-family: var(--font-display);
|
|
616
|
+
text-wrap: balance;
|
|
617
|
+
}
|
|
618
|
+
|
|
619
|
+
@utility text-heading-3 {
|
|
620
|
+
font-family: var(--font-display);
|
|
621
|
+
text-wrap: balance;
|
|
622
|
+
}
|
|
623
|
+
|
|
624
|
+
@utility text-heading-4 {
|
|
625
|
+
font-family: var(--font-display);
|
|
626
|
+
text-wrap: balance;
|
|
627
|
+
}
|
|
628
|
+
|
|
604
629
|
@layer base {
|
|
605
630
|
*,
|
|
606
631
|
::after,
|
|
@@ -33,13 +33,39 @@
|
|
|
33
33
|
--text-display--letter-spacing: -0.02em;
|
|
34
34
|
|
|
35
35
|
/* Font ROLES: body+display default to --font-sans; brand re-values ONE token for headings(font-display)/body(font-body)
|
|
36
|
-
own face.
|
|
36
|
+
own face. */
|
|
37
37
|
--font-body: var(--font-sans);
|
|
38
38
|
--font-display: var(--font-sans);
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
+
/*
|
|
42
|
+
* Heading rungs also carry the display face and balanced wrapping (Tailwind merges this into the same `text-heading-N` class),
|
|
43
|
+
* so a heading is ONE class: `text-heading-2`, never `text-heading-2 font-display text-balance font-semibold`.
|
|
44
|
+
*/
|
|
45
|
+
@utility text-display {
|
|
46
|
+
font-family: var(--font-display);
|
|
47
|
+
text-wrap: balance;
|
|
48
|
+
}
|
|
49
|
+
@utility text-heading-1 {
|
|
50
|
+
font-family: var(--font-display);
|
|
51
|
+
text-wrap: balance;
|
|
52
|
+
}
|
|
53
|
+
@utility text-heading-2 {
|
|
54
|
+
font-family: var(--font-display);
|
|
55
|
+
text-wrap: balance;
|
|
56
|
+
}
|
|
57
|
+
@utility text-heading-3 {
|
|
58
|
+
font-family: var(--font-display);
|
|
59
|
+
text-wrap: balance;
|
|
60
|
+
}
|
|
61
|
+
@utility text-heading-4 {
|
|
62
|
+
font-family: var(--font-display);
|
|
63
|
+
text-wrap: balance;
|
|
64
|
+
}
|
|
65
|
+
|
|
41
66
|
/*
|
|
42
67
|
* History: fixed 3 competing type systems (Tailwind defaults + named rungs + raw text-[Npx]) into one rung/role; 14px = body.
|
|
43
|
-
* Usage: apply
|
|
68
|
+
* Usage: apply the rung directly to the semantic element (no <Text> component), e.g. text-heading-1 on <h1>, text-body on <p>.
|
|
69
|
+
* Heading LEVEL is the document outline; the RUNG is the look. They are decoupled on purpose: an <h3> may wear text-heading-2.
|
|
44
70
|
* Control chrome text is sized by its recipe (`--cui-button-font-size`, `--cui-field-font-size`), not by these utilities.
|
|
45
71
|
*/
|