@sleeperhq/mini-core 1.2.5 → 1.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/index.ts +2 -2
- package/package.json +1 -1
- package/src/styles/fonts.ts +0 -20
package/index.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as Sleeper from './src/components';
|
|
2
2
|
import DevServer from './src/dev_server';
|
|
3
3
|
import * as Types from './src/types';
|
|
4
|
-
import
|
|
4
|
+
import {Fonts, Theme} from './src/styles';
|
|
5
5
|
|
|
6
|
-
export {Sleeper, DevServer, Types,
|
|
6
|
+
export {Sleeper, DevServer, Types, Fonts, Theme};
|
package/package.json
CHANGED
package/src/styles/fonts.ts
CHANGED
|
@@ -52,109 +52,90 @@ const Fonts = {
|
|
|
52
52
|
H1: {
|
|
53
53
|
fontFamily: SHARED.POPPINS_EXTRABOLD,
|
|
54
54
|
fontSize: 32,
|
|
55
|
-
// lineHeight: 48,
|
|
56
55
|
},
|
|
57
56
|
H2: {
|
|
58
57
|
fontFamily: SHARED.POPPINS_EXTRABOLD,
|
|
59
58
|
fontSize: 28,
|
|
60
|
-
// lineHeight: 48,
|
|
61
59
|
},
|
|
62
60
|
H3: {
|
|
63
61
|
fontFamily: SHARED.POPPINS_BOLD,
|
|
64
62
|
fontSize: 24,
|
|
65
|
-
// lineHeight: 32,
|
|
66
63
|
},
|
|
67
64
|
H4: {
|
|
68
65
|
fontFamily: SHARED.POPPINS_BOLD,
|
|
69
66
|
fontSize: 20,
|
|
70
|
-
// lineHeight: 26,
|
|
71
67
|
},
|
|
72
68
|
Title: {
|
|
73
69
|
fontFamily: SHARED.POPPINS_SEMIBOLD,
|
|
74
70
|
fontSize: 18,
|
|
75
|
-
// lineHeight: 24,
|
|
76
71
|
},
|
|
77
72
|
Subhead: {
|
|
78
73
|
fontFamily: SHARED.POPPINS_SEMIBOLD,
|
|
79
74
|
fontSize: 16,
|
|
80
|
-
// lineHeight: 20,
|
|
81
75
|
},
|
|
82
76
|
Menu: {
|
|
83
77
|
fontFamily: SHARED.POPPINS_SEMIBOLD,
|
|
84
78
|
fontSize: 12,
|
|
85
|
-
// lineHeight: 16,
|
|
86
79
|
letterSpacing: 0.5,
|
|
87
80
|
},
|
|
88
81
|
ButtonLarge: {
|
|
89
82
|
fontFamily: SHARED.POPPINS_SEMIBOLD,
|
|
90
83
|
fontSize: 14,
|
|
91
|
-
// lineHeight: 16, // Cuts off the text at 14
|
|
92
84
|
letterSpacing: 1,
|
|
93
85
|
},
|
|
94
86
|
ButtonSmall: {
|
|
95
87
|
fontFamily: SHARED.POPPINS_SEMIBOLD,
|
|
96
88
|
fontSize: 12,
|
|
97
|
-
// lineHeight: 14, // Cuts off the text at 12
|
|
98
89
|
letterSpacing: 1,
|
|
99
90
|
},
|
|
100
91
|
TextCtaLarge: {
|
|
101
92
|
fontFamily: SHARED.POPPINS_SEMIBOLD,
|
|
102
93
|
fontSize: 14,
|
|
103
|
-
// lineHeight: 14,
|
|
104
94
|
letterSpacing: 1,
|
|
105
95
|
},
|
|
106
96
|
TextCtaSmall: {
|
|
107
97
|
fontFamily: SHARED.POPPINS_SEMIBOLD,
|
|
108
98
|
fontSize: 12,
|
|
109
|
-
// lineHeight: 12,
|
|
110
99
|
letterSpacing: 1,
|
|
111
100
|
},
|
|
112
101
|
Body1: {
|
|
113
102
|
fontFamily: SHARED.INTER_REGULAR,
|
|
114
103
|
fontSize: 16,
|
|
115
|
-
// lineHeight: 20,
|
|
116
104
|
letterSpacing: -0.15,
|
|
117
105
|
},
|
|
118
106
|
Body1Bold: {
|
|
119
107
|
fontFamily: SHARED.INTER_SEMIBOLD,
|
|
120
108
|
fontSize: 16,
|
|
121
|
-
// lineHeight: 20,
|
|
122
109
|
letterSpacing: -0.15,
|
|
123
110
|
},
|
|
124
111
|
Body2: {
|
|
125
112
|
fontFamily: SHARED.INTER_REGULAR,
|
|
126
113
|
fontSize: 14,
|
|
127
|
-
// lineHeight: 18,
|
|
128
114
|
letterSpacing: -0.25,
|
|
129
115
|
},
|
|
130
116
|
Body2Bold: {
|
|
131
117
|
fontFamily: SHARED.INTER_SEMIBOLD,
|
|
132
118
|
fontSize: 14,
|
|
133
|
-
// lineHeight: 18,
|
|
134
119
|
letterSpacing: -0.25,
|
|
135
120
|
},
|
|
136
121
|
Body3: {
|
|
137
122
|
fontFamily: SHARED.INTER_REGULAR,
|
|
138
123
|
fontSize: 12,
|
|
139
|
-
// lineHeight: 16,
|
|
140
124
|
letterSpacing: -0.15,
|
|
141
125
|
},
|
|
142
126
|
Body3Bold: {
|
|
143
127
|
fontFamily: SHARED.INTER_SEMIBOLD,
|
|
144
128
|
fontSize: 12,
|
|
145
|
-
// lineHeight: 16,
|
|
146
129
|
letterSpacing: -0.25,
|
|
147
130
|
},
|
|
148
131
|
Caption1: {
|
|
149
132
|
fontFamily: SHARED.INTER_REGULAR,
|
|
150
133
|
fontSize: 10,
|
|
151
|
-
// lineHeight: 12,
|
|
152
134
|
letterSpacing: -0.25,
|
|
153
135
|
},
|
|
154
136
|
Caption1Bold: {
|
|
155
137
|
fontFamily: SHARED.INTER_BOLD,
|
|
156
138
|
fontSize: 10,
|
|
157
|
-
// lineHeight: 12,
|
|
158
139
|
letterSpacing: -0.15,
|
|
159
140
|
},
|
|
160
141
|
Overline: {
|
|
@@ -165,7 +146,6 @@ const Fonts = {
|
|
|
165
146
|
Footnote: {
|
|
166
147
|
fontFamily: SHARED.INTER_REGULAR,
|
|
167
148
|
fontSize: 9,
|
|
168
|
-
// lineHeight: 12,
|
|
169
149
|
letterSpacing: -0.25,
|
|
170
150
|
},
|
|
171
151
|
},
|