@webstacks/ui 0.2.0 → 0.3.0
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/index.cjs +1232 -439
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +150 -1
- package/dist/index.d.ts +150 -1
- package/dist/index.js +1196 -415
- package/dist/index.js.map +1 -1
- package/package.json +11 -4
- package/src/fonts/Saans Bold.otf +0 -0
- package/src/fonts/Saans Light.otf +0 -0
- package/src/fonts/Saans Medium.otf +0 -0
- package/src/fonts/Saans Regular.otf +0 -0
- package/src/fonts/Saans SemiBold.otf +0 -0
- package/src/fonts/TT_Interphases_Pro_Mono_Bold.ttf +0 -0
- package/src/fonts/TT_Interphases_Pro_Mono_Bold_Italic.ttf +0 -0
- package/src/fonts/TT_Interphases_Pro_Mono_Italic.ttf +0 -0
- package/src/fonts/TT_Interphases_Pro_Mono_Regular.ttf +0 -0
- package/src/styles/color.css +240 -0
- package/src/styles/fonts.css +95 -0
- package/src/styles/globals.css +9 -0
- package/src/styles/tokens.css +243 -0
- package/src/styles/typography.css +61 -0
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Typography Scale & Utilities
|
|
3
|
+
* Matches marketing/apps/web type system
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/* ── Unified type scale ── */
|
|
7
|
+
:root {
|
|
8
|
+
/* xs–xl: body-friendly line-heights */
|
|
9
|
+
--text-xs: 0.75rem;
|
|
10
|
+
--text-xs-line-height: 1.5;
|
|
11
|
+
--text-sm: 0.875rem;
|
|
12
|
+
--text-sm-line-height: 1.42;
|
|
13
|
+
--text-md: 1rem;
|
|
14
|
+
--text-md-line-height: 1.5;
|
|
15
|
+
--text-lg: 1.125rem;
|
|
16
|
+
--text-lg-line-height: 1.55;
|
|
17
|
+
--text-xl: 1.25rem;
|
|
18
|
+
--text-xl-line-height: 1.5;
|
|
19
|
+
|
|
20
|
+
/* 2xl–8xl: heading-friendly line-heights + tracking */
|
|
21
|
+
--text-2xl: 1.5rem;
|
|
22
|
+
--text-2xl-line-height: 1.33;
|
|
23
|
+
--text-2xl-letter-spacing: -0.015em;
|
|
24
|
+
--text-3xl: 1.875rem;
|
|
25
|
+
--text-3xl-line-height: 1.1;
|
|
26
|
+
--text-3xl-letter-spacing: -0.02em;
|
|
27
|
+
--text-4xl: 2.25rem;
|
|
28
|
+
--text-4xl-line-height: 1.08;
|
|
29
|
+
--text-4xl-letter-spacing: -0.02em;
|
|
30
|
+
--text-5xl: 3rem;
|
|
31
|
+
--text-5xl-line-height: 1.05;
|
|
32
|
+
--text-5xl-letter-spacing: -0.022em;
|
|
33
|
+
--text-6xl: 4rem;
|
|
34
|
+
--text-6xl-line-height: 1.05;
|
|
35
|
+
--text-6xl-letter-spacing: -0.025em;
|
|
36
|
+
--text-7xl: 5rem;
|
|
37
|
+
--text-7xl-line-height: 1.1;
|
|
38
|
+
--text-7xl-letter-spacing: -0.03em;
|
|
39
|
+
--text-8xl: 7rem;
|
|
40
|
+
--text-8xl-line-height: 1.1;
|
|
41
|
+
--text-8xl-letter-spacing: -0.031em;
|
|
42
|
+
|
|
43
|
+
/* Font weights */
|
|
44
|
+
--font-weight-regular: 400;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/* ── Base typography resets ── */
|
|
48
|
+
* {
|
|
49
|
+
-webkit-font-smoothing: antialiased;
|
|
50
|
+
-moz-osx-font-smoothing: grayscale;
|
|
51
|
+
font-variant-ligatures: none;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
body {
|
|
55
|
+
font-family: var(--font-body);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
h1, h2, h3, h4, h5, h6 {
|
|
59
|
+
scroll-margin-top: 6rem;
|
|
60
|
+
font-family: var(--font-heading);
|
|
61
|
+
}
|