@ttoss/theme 1.0.2 → 1.1.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/esm/index.js +26 -3
- package/dist/index.js +27 -3
- package/package.json +3 -3
- package/src/themes/bruttalFonts.ts +2 -2
- package/src/themes/bruttalTheme.ts +24 -0
package/dist/esm/index.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
/** Powered by @ttoss/config. https://ttoss.dev/docs/modules/packages/config/ */
|
|
3
2
|
|
|
4
3
|
// src/themes/defaultTheme.ts
|
|
@@ -210,14 +209,38 @@ var BruttalTheme = {
|
|
|
210
209
|
fontSize: "6xl",
|
|
211
210
|
fontWeight: "bold",
|
|
212
211
|
letterSpacing: "normal"
|
|
212
|
+
},
|
|
213
|
+
h2: {
|
|
214
|
+
fontFamily: "heading",
|
|
215
|
+
fontSize: "5xl",
|
|
216
|
+
fontWeight: "bold",
|
|
217
|
+
letterSpacing: "normal"
|
|
218
|
+
},
|
|
219
|
+
h3: {
|
|
220
|
+
fontFamily: "heading",
|
|
221
|
+
fontSize: "4xl",
|
|
222
|
+
fontWeight: "bold",
|
|
223
|
+
letterSpacing: "normal"
|
|
224
|
+
},
|
|
225
|
+
h4: {
|
|
226
|
+
fontFamily: "heading",
|
|
227
|
+
fontSize: "2xl",
|
|
228
|
+
fontWeight: "bold",
|
|
229
|
+
letterSpacing: "normal"
|
|
230
|
+
},
|
|
231
|
+
h5: {
|
|
232
|
+
fontFamily: "heading",
|
|
233
|
+
fontSize: "xl",
|
|
234
|
+
fontWeight: "bold",
|
|
235
|
+
letterSpacing: "normal"
|
|
213
236
|
}
|
|
214
237
|
}
|
|
215
238
|
};
|
|
216
239
|
|
|
217
240
|
// src/themes/bruttalFonts.ts
|
|
218
241
|
var BruttalFonts = [
|
|
219
|
-
"https://fonts.googleapis.com/css?family=Inconsolata",
|
|
220
|
-
"https://fonts.googleapis.com/css?family=Work+Sans"
|
|
242
|
+
"https://fonts.googleapis.com/css?family=Inconsolata:wght@100;200;300;400;500;700;800;900",
|
|
243
|
+
"https://fonts.googleapis.com/css?family=Work+Sans:wght@100;200;300;400;500;700;800;900"
|
|
221
244
|
];
|
|
222
245
|
|
|
223
246
|
// src/themes/defaultFonts.ts
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
/** Powered by @ttoss/config. https://ttoss.dev/docs/modules/packages/config/ */
|
|
2
|
+
"use strict";
|
|
3
3
|
var __defProp = Object.defineProperty;
|
|
4
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
@@ -237,14 +237,38 @@ var BruttalTheme = {
|
|
|
237
237
|
fontSize: "6xl",
|
|
238
238
|
fontWeight: "bold",
|
|
239
239
|
letterSpacing: "normal"
|
|
240
|
+
},
|
|
241
|
+
h2: {
|
|
242
|
+
fontFamily: "heading",
|
|
243
|
+
fontSize: "5xl",
|
|
244
|
+
fontWeight: "bold",
|
|
245
|
+
letterSpacing: "normal"
|
|
246
|
+
},
|
|
247
|
+
h3: {
|
|
248
|
+
fontFamily: "heading",
|
|
249
|
+
fontSize: "4xl",
|
|
250
|
+
fontWeight: "bold",
|
|
251
|
+
letterSpacing: "normal"
|
|
252
|
+
},
|
|
253
|
+
h4: {
|
|
254
|
+
fontFamily: "heading",
|
|
255
|
+
fontSize: "2xl",
|
|
256
|
+
fontWeight: "bold",
|
|
257
|
+
letterSpacing: "normal"
|
|
258
|
+
},
|
|
259
|
+
h5: {
|
|
260
|
+
fontFamily: "heading",
|
|
261
|
+
fontSize: "xl",
|
|
262
|
+
fontWeight: "bold",
|
|
263
|
+
letterSpacing: "normal"
|
|
240
264
|
}
|
|
241
265
|
}
|
|
242
266
|
};
|
|
243
267
|
|
|
244
268
|
// src/themes/bruttalFonts.ts
|
|
245
269
|
var BruttalFonts = [
|
|
246
|
-
"https://fonts.googleapis.com/css?family=Inconsolata",
|
|
247
|
-
"https://fonts.googleapis.com/css?family=Work+Sans"
|
|
270
|
+
"https://fonts.googleapis.com/css?family=Inconsolata:wght@100;200;300;400;500;700;800;900",
|
|
271
|
+
"https://fonts.googleapis.com/css?family=Work+Sans:wght@100;200;300;400;500;700;800;900"
|
|
248
272
|
];
|
|
249
273
|
|
|
250
274
|
// src/themes/defaultFonts.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ttoss/theme",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "Theme for packages.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"author": "ttoss",
|
|
@@ -20,11 +20,11 @@
|
|
|
20
20
|
},
|
|
21
21
|
"typings": "dist/index.d.ts",
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"theme-ui": "^0.15.
|
|
23
|
+
"theme-ui": "^0.15.4"
|
|
24
24
|
},
|
|
25
25
|
"keywords": [],
|
|
26
26
|
"publishConfig": {
|
|
27
27
|
"access": "public"
|
|
28
28
|
},
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "770c9a378b57b46158e533b505d53747f1b27a07"
|
|
30
30
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export const BruttalFonts = [
|
|
2
|
-
'https://fonts.googleapis.com/css?family=Inconsolata',
|
|
3
|
-
'https://fonts.googleapis.com/css?family=Work+Sans',
|
|
2
|
+
'https://fonts.googleapis.com/css?family=Inconsolata:wght@100;200;300;400;500;700;800;900',
|
|
3
|
+
'https://fonts.googleapis.com/css?family=Work+Sans:wght@100;200;300;400;500;700;800;900',
|
|
4
4
|
];
|
|
@@ -133,5 +133,29 @@ export const BruttalTheme: Theme = {
|
|
|
133
133
|
fontWeight: 'bold',
|
|
134
134
|
letterSpacing: 'normal',
|
|
135
135
|
},
|
|
136
|
+
h2: {
|
|
137
|
+
fontFamily: 'heading',
|
|
138
|
+
fontSize: '5xl',
|
|
139
|
+
fontWeight: 'bold',
|
|
140
|
+
letterSpacing: 'normal',
|
|
141
|
+
},
|
|
142
|
+
h3: {
|
|
143
|
+
fontFamily: 'heading',
|
|
144
|
+
fontSize: '4xl',
|
|
145
|
+
fontWeight: 'bold',
|
|
146
|
+
letterSpacing: 'normal',
|
|
147
|
+
},
|
|
148
|
+
h4: {
|
|
149
|
+
fontFamily: 'heading',
|
|
150
|
+
fontSize: '2xl',
|
|
151
|
+
fontWeight: 'bold',
|
|
152
|
+
letterSpacing: 'normal',
|
|
153
|
+
},
|
|
154
|
+
h5: {
|
|
155
|
+
fontFamily: 'heading',
|
|
156
|
+
fontSize: 'xl',
|
|
157
|
+
fontWeight: 'bold',
|
|
158
|
+
letterSpacing: 'normal',
|
|
159
|
+
},
|
|
136
160
|
},
|
|
137
161
|
};
|