astrotype 0.1.3 → 0.1.4
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.
|
@@ -33,15 +33,16 @@ export async function addFontCommand(fontName, options = {}) {
|
|
|
33
33
|
const cssText = `${toCssRules(font)}`;
|
|
34
34
|
const cssPath = writeAstrotypeCss(targetDir, font.name, cssText);
|
|
35
35
|
const fontsSetup = ensureAstroFontsApiSetup(targetDir, [font]);
|
|
36
|
-
console.log(`Installed font "${font.name}"
|
|
36
|
+
console.log(`Installed font "${font.name}" -> ${path.relative(targetDir, cssPath)}`);
|
|
37
37
|
if (fontsSetup.configured) {
|
|
38
|
-
console.log("
|
|
38
|
+
console.log("Wired Astro Fonts API entries for this font.");
|
|
39
39
|
if (fontsSetup.manualMergeRequired) {
|
|
40
40
|
console.log(
|
|
41
|
-
`
|
|
41
|
+
`Heads up: existing fonts config found in ${path.relative(targetDir, fontsSetup.configPath)}. Merge astrotypeFonts there.`
|
|
42
42
|
);
|
|
43
43
|
}
|
|
44
44
|
} else {
|
|
45
45
|
console.log(`Skipped Astro Fonts API setup: ${fontsSetup.reason}`);
|
|
46
46
|
}
|
|
47
|
+
console.log(`Next step: map your app classes/tokens to ${font.font.variable || `--font-${font.name}`}.`);
|
|
47
48
|
}
|
package/cli/commands/add.mjs
CHANGED
|
@@ -45,17 +45,17 @@ export async function addPairingCommand(pairingName, options = {}) {
|
|
|
45
45
|
const pairingCssPath = writeAstrotypeCss(targetDir, pairing.name, cssText);
|
|
46
46
|
const fontsSetup = ensureAstroFontsApiSetup(targetDir, fonts);
|
|
47
47
|
|
|
48
|
-
console.log(`Installed pairing "${pairing.name}"
|
|
48
|
+
console.log(`Installed pairing "${pairing.name}" -> ${path.relative(targetDir, pairingCssPath)}`);
|
|
49
49
|
if (fontsSetup.configured) {
|
|
50
|
-
console.log("
|
|
50
|
+
console.log("Wired Astro Fonts API entries for this pairing.");
|
|
51
51
|
if (fontsSetup.manualMergeRequired) {
|
|
52
52
|
console.log(
|
|
53
|
-
`
|
|
53
|
+
`Heads up: existing fonts config found in ${path.relative(targetDir, fontsSetup.configPath)}. Merge astrotypeFonts there.`
|
|
54
54
|
);
|
|
55
55
|
}
|
|
56
56
|
} else {
|
|
57
57
|
console.log(`Skipped Astro Fonts API setup: ${fontsSetup.reason}`);
|
|
58
58
|
}
|
|
59
|
-
console.log("
|
|
59
|
+
console.log("Next step: map your app classes/tokens to --font-heading, --font-body, and --font-mono.");
|
|
60
60
|
}
|
|
61
61
|
|