Skip to content
This repository was archived by the owner on Mar 16, 2024. It is now read-only.

Commit bedd857

Browse files
committed
feat: update theme defaults
1 parent 52f85d9 commit bedd857

File tree

5 files changed

+80
-71
lines changed

5 files changed

+80
-71
lines changed

dist/cherry.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/cherry.module.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "cherry-components",
3-
"version": "0.0.2-14",
3+
"version": "0.0.2-15",
44
"description": "Cherry React Components",
55
"main": "dist/cherry.js",
66
"module": "dist/cherry.module.js",

src/theme.js

Lines changed: 75 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -2,42 +2,51 @@ const localTheme = {
22
spacing: {
33
maxWidth: "1280px",
44
maxWidthLimit: "1440px",
5-
paddingTopBody: { mobile: "0px", desktop: "0px" },
6-
marginContainer: { mobile: "20px", desktop: "20px" },
7-
marginRow: { default: "-10px", medium: "-30px", big: "-50px" },
8-
gutterCol: { default: "10px", medium: "30px", big: "50px" },
5+
paddingTopBody: {
6+
mobile: "76px",
7+
desktop: "76px",
8+
},
9+
marginContainer: {
10+
mobile: "20px",
11+
desktop: "20px",
12+
},
13+
marginRow: {
14+
default: "-10px",
15+
medium: "-30px",
16+
big: "-50px",
17+
},
18+
gutterCol: {
19+
default: "10px",
20+
medium: "30px",
21+
big: "50px",
22+
},
923
breakpoints: [0, 576, 768, 992, 1200, 1440, 1920],
1024
},
1125
colors: {
12-
primaryLight: "#FDA4AF",
13-
primary: "#F43F5E",
14-
primaryDark: "#9F1239",
15-
16-
secondaryLight: "#7DD3FC",
17-
secondary: "#0EA5E9",
26+
primaryLight: "#fda4af",
27+
primary: "#f43f5e",
28+
primaryDark: "#9f1239",
29+
secondaryLight: "#7dd3fc",
30+
secondary: "#0ea5e9",
1831
secondaryDark: "#075985",
19-
20-
tertiaryLight: "#D8B4FE",
21-
tertiary: "#A855F7",
22-
tertiaryDark: "#6B21A8",
23-
24-
dark: "#000",
25-
light: "#fff",
26-
27-
grayLight: "#E5E7EB",
28-
gray: "#9CA3AF",
29-
grayDark: "#4B5563",
30-
31-
success: "#28A745",
32-
error: "#DC3545",
33-
warning: "#FFC107",
34-
info: "#17A2B8",
32+
tertiaryLight: "#d8b4fe",
33+
tertiary: "#a855f7",
34+
tertiaryDark: "#6b21a8",
35+
dark: "#000000",
36+
light: "#ffffff",
37+
grayLight: "#e5e7eb",
38+
gray: "#9ca3af",
39+
grayDark: "#4b5563",
40+
success: "#28a745",
41+
error: "#dc3545",
42+
warning: "#ffc107",
43+
info: "#17a2b8",
3544
},
3645
fonts: {
37-
text: "'Inter', sans-serif",
38-
head: "'Inter', sans-serif",
39-
special: "'Inter', sans-serif",
40-
mono: "'Inter', monospace",
46+
text: "Inter",
47+
head: "Inter",
48+
special: "Inter",
49+
mono: "Inter",
4150
},
4251
sizes: {
4352
hero1: {
@@ -72,62 +81,62 @@ const localTheme = {
7281
},
7382
h1: {
7483
size: {
75-
mobile: "38px",
84+
mobile: "30px",
7685
desktop: "40px",
7786
},
7887
lineheight: {
79-
mobile: "1.2",
80-
desktop: "1.2",
88+
mobile: "1.20",
89+
desktop: "1.20",
8190
},
8291
},
8392
h2: {
8493
size: {
85-
mobile: "28px",
94+
mobile: "22px",
8695
desktop: "32px",
8796
},
8897
lineheight: {
89-
mobile: "1.2",
90-
desktop: "1.2",
98+
mobile: "1.20",
99+
desktop: "1.20",
91100
},
92101
},
93102
h3: {
94103
size: {
95-
mobile: "24px",
104+
mobile: "18px",
96105
desktop: "28px",
97106
},
98107
lineheight: {
99-
mobile: "1.2",
100-
desktop: "1.2",
108+
mobile: "1.20",
109+
desktop: "1.20",
101110
},
102111
},
103112
h4: {
104113
size: {
105-
mobile: "22px",
114+
mobile: "16px",
106115
desktop: "24px",
107116
},
108117
lineheight: {
109-
mobile: "1.3",
110-
desktop: "1.3",
118+
mobile: "1.30",
119+
desktop: "1.30",
111120
},
112121
},
113122
h5: {
114123
size: {
115-
mobile: "18px",
124+
mobile: "14px",
116125
desktop: "20px",
117126
},
118127
lineheight: {
119-
mobile: "1.4",
120-
desktop: "1.4",
128+
mobile: "1.40",
129+
desktop: "1.40",
121130
},
122131
},
123132
h6: {
124133
size: {
125-
mobile: "16px",
134+
mobile: "12px",
126135
desktop: "18px",
127136
},
128137
lineheight: {
129-
mobile: "1.4",
130-
desktop: "1.4",
138+
mobile: "1.40",
139+
desktop: "1.40",
131140
},
132141
},
133142
eyebrow: {
@@ -156,8 +165,8 @@ const localTheme = {
156165
desktop: "16px",
157166
},
158167
lineheight: {
159-
mobile: "1",
160-
desktop: "1",
168+
mobile: "1.00",
169+
desktop: "1.00",
161170
},
162171
},
163172
buttonBig: {
@@ -166,8 +175,8 @@ const localTheme = {
166175
desktop: "18px",
167176
},
168177
lineheight: {
169-
mobile: "1",
170-
desktop: "1",
178+
mobile: "1.00",
179+
desktop: "1.00",
171180
},
172181
},
173182
lead: {
@@ -177,7 +186,7 @@ const localTheme = {
177186
},
178187
lineheight: {
179188
mobile: "1.35",
180-
desktop: "1.35",
189+
desktop: "1.45",
181190
},
182191
},
183192
input: {
@@ -186,8 +195,8 @@ const localTheme = {
186195
desktop: "16px",
187196
},
188197
lineheight: {
189-
mobile: "1",
190-
desktop: "1",
198+
mobile: "1.00",
199+
desktop: "1.00",
191200
},
192201
},
193202
inputBig: {
@@ -196,8 +205,8 @@ const localTheme = {
196205
desktop: "18px",
197206
},
198207
lineheight: {
199-
mobile: "1",
200-
desktop: "1",
208+
mobile: "1.00",
209+
desktop: "1.00",
201210
},
202211
},
203212
strong: {
@@ -206,8 +215,8 @@ const localTheme = {
206215
desktop: "16px",
207216
},
208217
lineheight: {
209-
mobile: "1.5",
210-
desktop: "1.5",
218+
mobile: "1.50",
219+
desktop: "1.50",
211220
},
212221
},
213222
text: {
@@ -216,8 +225,8 @@ const localTheme = {
216225
desktop: "16px",
217226
},
218227
lineheight: {
219-
mobile: "1.5",
220-
desktop: "1.5",
228+
mobile: "1.50",
229+
desktop: "1.50",
221230
},
222231
},
223232
small: {
@@ -226,18 +235,18 @@ const localTheme = {
226235
desktop: "14px",
227236
},
228237
lineheight: {
229-
mobile: "1.3",
230-
desktop: "1.3",
238+
mobile: "1.30",
239+
desktop: "1.30",
231240
},
232241
},
233242
blockquote: {
234243
size: {
235-
mobile: "16px",
244+
mobile: "14px",
236245
desktop: "18px",
237246
},
238247
lineheight: {
239-
mobile: "1.5",
240-
desktop: "1.5",
248+
mobile: "1.50",
249+
desktop: "1.50",
241250
},
242251
},
243252
},

0 commit comments

Comments
 (0)