emily-css 1.0.5 → 1.0.6
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/bin/emilyui.js +2 -1
- package/package.json +1 -1
- package/src/index.js +4 -1
package/bin/emilyui.js
CHANGED
|
@@ -5,7 +5,8 @@ const command = process.argv[2];
|
|
|
5
5
|
if (command === "init") {
|
|
6
6
|
require("../src/init.js");
|
|
7
7
|
} else if (command === "build") {
|
|
8
|
-
require("../src/index.js");
|
|
8
|
+
const { build } = require("../src/index.js");
|
|
9
|
+
build();
|
|
9
10
|
} else if (command === "purge") {
|
|
10
11
|
require("../src/purge-cmd.js");
|
|
11
12
|
} else {
|
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -857,7 +857,10 @@ function build(options = {}) {
|
|
|
857
857
|
// components → reserved for future component styles
|
|
858
858
|
// utilities → generated utility classes (highest priority)
|
|
859
859
|
const { fontFace, bodyFont } = generateFontCSS(config);
|
|
860
|
-
|
|
860
|
+
const fontLabel = typeof config.fontFamily === 'object'
|
|
861
|
+
? 'heading: ' + (config.fontFamily.heading || 'system') + ', body: ' + (config.fontFamily.body || 'system')
|
|
862
|
+
: (config.fontFamily || 'system');
|
|
863
|
+
console.log('✓ Font: ' + fontLabel);
|
|
861
864
|
|
|
862
865
|
const baseCss = `
|
|
863
866
|
/* Box sizing */
|