onecart-ui 0.3.9 → 0.3.10
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 +2 -1
- package/tokens/typography.css +111 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "onecart-ui",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.10",
|
|
4
4
|
"description": "OneCart UI: Cross-platform design tokens + React & React Native components",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -47,6 +47,7 @@
|
|
|
47
47
|
"import": "./tokens/tokens.js"
|
|
48
48
|
},
|
|
49
49
|
"./tokens/tokens.scss": "./tokens/tokens.scss",
|
|
50
|
+
"./tokens/typography.css": "./tokens/typography.css",
|
|
50
51
|
"./icons": {
|
|
51
52
|
"types": "./icons/index.d.ts",
|
|
52
53
|
"import": "./icons/index.js"
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Typography Utility Classes
|
|
3
|
+
* Generated from design tokens
|
|
4
|
+
* Do not edit directly
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
.text-display-2xl {
|
|
8
|
+
font-family: var(--oc-font-families-campton);
|
|
9
|
+
font-size: var(--oc-font-size-52);
|
|
10
|
+
line-height: var(--oc-line-height-56);
|
|
11
|
+
font-weight: 500;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.text-display-xl {
|
|
15
|
+
font-family: var(--oc-font-families-campton);
|
|
16
|
+
font-size: var(--oc-font-size-44);
|
|
17
|
+
line-height: var(--oc-line-height-48);
|
|
18
|
+
font-weight: 500;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.text-heading-xl {
|
|
22
|
+
font-family: var(--oc-font-families-campton);
|
|
23
|
+
font-size: var(--oc-font-size-40);
|
|
24
|
+
line-height: var(--oc-line-height-48);
|
|
25
|
+
font-weight: 600;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.text-heading-lg {
|
|
29
|
+
font-family: var(--oc-font-families-campton);
|
|
30
|
+
font-size: var(--oc-font-size-36);
|
|
31
|
+
line-height: var(--oc-line-height-44);
|
|
32
|
+
font-weight: 600;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.text-heading-md {
|
|
36
|
+
font-family: var(--oc-font-families-campton);
|
|
37
|
+
font-size: var(--oc-font-size-32);
|
|
38
|
+
line-height: var(--oc-line-height-40);
|
|
39
|
+
font-weight: 600;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.text-heading-sm {
|
|
43
|
+
font-family: var(--oc-font-families-campton);
|
|
44
|
+
font-size: var(--oc-font-size-28);
|
|
45
|
+
line-height: var(--oc-line-height-36);
|
|
46
|
+
font-weight: 600;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.text-heading-xs {
|
|
50
|
+
font-family: var(--oc-font-families-campton);
|
|
51
|
+
font-size: var(--oc-font-size-20);
|
|
52
|
+
line-height: var(--oc-line-height-28);
|
|
53
|
+
font-weight: 600;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.text-heading-2xs {
|
|
57
|
+
font-family: var(--oc-font-families-campton);
|
|
58
|
+
font-size: var(--oc-font-size-18);
|
|
59
|
+
line-height: var(--oc-line-height-24);
|
|
60
|
+
font-weight: 600;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.text-body-xl {
|
|
64
|
+
font-family: var(--oc-font-families-campton);
|
|
65
|
+
font-size: var(--oc-font-size-18);
|
|
66
|
+
line-height: var(--oc-line-height-28);
|
|
67
|
+
font-weight: book;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.text-body-lg {
|
|
71
|
+
font-family: var(--oc-font-families-campton);
|
|
72
|
+
font-size: var(--oc-font-size-16);
|
|
73
|
+
line-height: var(--oc-line-height-24);
|
|
74
|
+
font-weight: book;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.text-body-md {
|
|
78
|
+
font-family: var(--oc-font-families-campton);
|
|
79
|
+
font-size: var(--oc-font-size-14);
|
|
80
|
+
line-height: var(--oc-line-height-20);
|
|
81
|
+
font-weight: book;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.text-body-sm {
|
|
85
|
+
font-family: var(--oc-font-families-campton);
|
|
86
|
+
font-size: var(--oc-font-size-12);
|
|
87
|
+
line-height: var(--oc-line-height-20);
|
|
88
|
+
font-weight: book;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.text-utility-button {
|
|
92
|
+
font-family: var(--oc-font-families-campton);
|
|
93
|
+
font-size: var(--oc-font-size-16);
|
|
94
|
+
line-height: var(--oc-line-height-16);
|
|
95
|
+
font-weight: 500;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.text-utility-link {
|
|
99
|
+
font-family: var(--oc-font-families-campton);
|
|
100
|
+
font-size: var(--oc-font-size-14);
|
|
101
|
+
line-height: var(--oc-line-height-20);
|
|
102
|
+
font-weight: 500;
|
|
103
|
+
text-decoration: underline;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.text-utility-caption {
|
|
107
|
+
font-family: var(--oc-font-families-campton);
|
|
108
|
+
font-size: var(--oc-font-size-12);
|
|
109
|
+
line-height: var(--oc-line-height-16);
|
|
110
|
+
font-weight: book;
|
|
111
|
+
}
|