onecart-ui 0.3.5 → 0.3.7
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 -2
- package/tokens/campton-fonts.scss +152 -0
- package/tokens/utils/campton/CamptonBlack.otf +0 -0
- package/tokens/utils/campton/CamptonBlackItalic.otf +0 -0
- package/tokens/utils/campton/CamptonBold.otf +0 -0
- package/tokens/utils/campton/CamptonBoldItalic.otf +0 -0
- package/tokens/utils/campton/CamptonBook.otf +0 -0
- package/tokens/utils/campton/CamptonBookItalic.otf +0 -0
- package/tokens/utils/campton/CamptonExtraBold.otf +0 -0
- package/tokens/utils/campton/CamptonExtraBoldItalic.otf +0 -0
- package/tokens/utils/campton/CamptonExtraLight.otf +0 -0
- package/tokens/utils/campton/CamptonExtraLightItalic.otf +0 -0
- package/tokens/utils/campton/CamptonLight.otf +0 -0
- package/tokens/utils/campton/CamptonLightItalic.otf +0 -0
- package/tokens/utils/campton/CamptonMedium.otf +0 -0
- package/tokens/utils/campton/CamptonMediumItalic.otf +0 -0
- package/tokens/utils/campton/CamptonSemiBold.otf +0 -0
- package/tokens/utils/campton/CamptonSemiBoldItalic.otf +0 -0
- package/tokens/utils/campton/CamptonThin.otf +0 -0
- package/tokens/utils/campton/CamptonThinItalic.otf +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "onecart-ui",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.7",
|
|
4
4
|
"description": "OneCart UI: Cross-platform design tokens + React & React Native components",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"scripts": {
|
|
61
61
|
"dev": "turbo run dev --parallel",
|
|
62
62
|
"build": "turbo run build && npm run copy-dist",
|
|
63
|
-
"copy-dist": "mkdir -p dist && cp -r packages/components/dist/*.js* dist/ && cp -r packages/components/dist/src/*.d.ts dist/ 2>/dev/null || true && mkdir -p tokens && cp -r packages/tokens/build/web/* tokens/ && cp packages/tokens/src/styles/tokens/tokens.scss tokens/tokens.scss && mkdir -p icons && cp -r packages/icons/dist/* icons/",
|
|
63
|
+
"copy-dist": "mkdir -p dist && cp -r packages/components/dist/*.js* dist/ && cp -r packages/components/dist/src/*.d.ts dist/ 2>/dev/null || true && mkdir -p tokens && cp -r packages/tokens/build/web/* tokens/ && cp packages/tokens/src/styles/tokens/tokens.scss tokens/tokens.scss && cp packages/tokens/src/styles/tokens/campton-fonts.scss tokens/ && mkdir -p tokens/utils && cp -r packages/tokens/src/styles/tokens/utils/campton tokens/utils/ && mkdir -p icons && cp -r packages/icons/dist/* icons/",
|
|
64
64
|
"prepublishOnly": "npm run build",
|
|
65
65
|
"lint": "turbo run lint",
|
|
66
66
|
"test": "turbo run test",
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
// Campton font family – @font-face declarations and default font
|
|
2
|
+
// Paths are relative to this file (tokens/utils/campton/)
|
|
3
|
+
|
|
4
|
+
@font-face {
|
|
5
|
+
font-family: "Campton";
|
|
6
|
+
src: url("./utils/campton/CamptonThin.otf") format("opentype");
|
|
7
|
+
font-weight: 100;
|
|
8
|
+
font-style: normal;
|
|
9
|
+
font-display: swap;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
@font-face {
|
|
13
|
+
font-family: "Campton";
|
|
14
|
+
src: url("./utils/campton/CamptonThinItalic.otf") format("opentype");
|
|
15
|
+
font-weight: 100;
|
|
16
|
+
font-style: italic;
|
|
17
|
+
font-display: swap;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
@font-face {
|
|
21
|
+
font-family: "Campton";
|
|
22
|
+
src: url("./utils/campton/CamptonExtraLight.otf") format("opentype");
|
|
23
|
+
font-weight: 200;
|
|
24
|
+
font-style: normal;
|
|
25
|
+
font-display: swap;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
@font-face {
|
|
29
|
+
font-family: "Campton";
|
|
30
|
+
src: url("./utils/campton/CamptonExtraLightItalic.otf") format("opentype");
|
|
31
|
+
font-weight: 200;
|
|
32
|
+
font-style: italic;
|
|
33
|
+
font-display: swap;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
@font-face {
|
|
37
|
+
font-family: "Campton";
|
|
38
|
+
src: url("./utils/campton/CamptonLight.otf") format("opentype");
|
|
39
|
+
font-weight: 300;
|
|
40
|
+
font-style: normal;
|
|
41
|
+
font-display: swap;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
@font-face {
|
|
45
|
+
font-family: "Campton";
|
|
46
|
+
src: url("./utils/campton/CamptonLightItalic.otf") format("opentype");
|
|
47
|
+
font-weight: 300;
|
|
48
|
+
font-style: italic;
|
|
49
|
+
font-display: swap;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
@font-face {
|
|
53
|
+
font-family: "Campton";
|
|
54
|
+
src: url("./utils/campton/CamptonBook.otf") format("opentype");
|
|
55
|
+
font-weight: 400;
|
|
56
|
+
font-style: normal;
|
|
57
|
+
font-display: swap;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
@font-face {
|
|
61
|
+
font-family: "Campton";
|
|
62
|
+
src: url("./utils/campton/CamptonBookItalic.otf") format("opentype");
|
|
63
|
+
font-weight: 400;
|
|
64
|
+
font-style: italic;
|
|
65
|
+
font-display: swap;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
@font-face {
|
|
69
|
+
font-family: "Campton";
|
|
70
|
+
src: url("./utils/campton/CamptonMedium.otf") format("opentype");
|
|
71
|
+
font-weight: 500;
|
|
72
|
+
font-style: normal;
|
|
73
|
+
font-display: swap;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
@font-face {
|
|
77
|
+
font-family: "Campton";
|
|
78
|
+
src: url("./utils/campton/CamptonMediumItalic.otf") format("opentype");
|
|
79
|
+
font-weight: 500;
|
|
80
|
+
font-style: italic;
|
|
81
|
+
font-display: swap;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
@font-face {
|
|
85
|
+
font-family: "Campton";
|
|
86
|
+
src: url("./utils/campton/CamptonSemiBold.otf") format("opentype");
|
|
87
|
+
font-weight: 600;
|
|
88
|
+
font-style: normal;
|
|
89
|
+
font-display: swap;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
@font-face {
|
|
93
|
+
font-family: "Campton";
|
|
94
|
+
src: url("./utils/campton/CamptonSemiBoldItalic.otf") format("opentype");
|
|
95
|
+
font-weight: 600;
|
|
96
|
+
font-style: italic;
|
|
97
|
+
font-display: swap;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
@font-face {
|
|
101
|
+
font-family: "Campton";
|
|
102
|
+
src: url("./utils/campton/CamptonBold.otf") format("opentype");
|
|
103
|
+
font-weight: 700;
|
|
104
|
+
font-style: normal;
|
|
105
|
+
font-display: swap;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
@font-face {
|
|
109
|
+
font-family: "Campton";
|
|
110
|
+
src: url("./utils/campton/CamptonBoldItalic.otf") format("opentype");
|
|
111
|
+
font-weight: 700;
|
|
112
|
+
font-style: italic;
|
|
113
|
+
font-display: swap;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
@font-face {
|
|
117
|
+
font-family: "Campton";
|
|
118
|
+
src: url("./utils/campton/CamptonExtraBold.otf") format("opentype");
|
|
119
|
+
font-weight: 800;
|
|
120
|
+
font-style: normal;
|
|
121
|
+
font-display: swap;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
@font-face {
|
|
125
|
+
font-family: "Campton";
|
|
126
|
+
src: url("./utils/campton/CamptonExtraBoldItalic.otf") format("opentype");
|
|
127
|
+
font-weight: 800;
|
|
128
|
+
font-style: italic;
|
|
129
|
+
font-display: swap;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
@font-face {
|
|
133
|
+
font-family: "Campton";
|
|
134
|
+
src: url("./utils/campton/CamptonBlack.otf") format("opentype");
|
|
135
|
+
font-weight: 900;
|
|
136
|
+
font-style: normal;
|
|
137
|
+
font-display: swap;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
@font-face {
|
|
141
|
+
font-family: "Campton";
|
|
142
|
+
src: url("./utils/campton/CamptonBlackItalic.otf") format("opentype");
|
|
143
|
+
font-weight: 900;
|
|
144
|
+
font-style: italic;
|
|
145
|
+
font-display: swap;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
// Set Campton as the default font for the document
|
|
149
|
+
:root,
|
|
150
|
+
body {
|
|
151
|
+
font-family: "Campton", system-ui, -apple-system, sans-serif;
|
|
152
|
+
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|