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 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "emily-css",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "description": "A config-driven utility CSS framework. Define your brand once, generate the CSS.",
5
5
  "main": "src/index.js",
6
6
  "bin": {
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
- console.log(`✓ Font: ${config.fontFamily || 'system'}`);
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 */