@dloizides/logo-kit 0.3.0 → 0.4.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/CHANGELOG.md +15 -3
- package/README.md +11 -1
- package/dist/BrandRuntime-C8-TEWfH.d.ts +26 -0
- package/dist/cli.js +675 -632
- package/dist/cli.js.map +1 -1
- package/dist/index.d.ts +22 -5
- package/dist/index.js +117 -24
- package/dist/index.js.map +1 -1
- package/dist/runtime.d.ts +15 -1
- package/dist/runtime.js +25 -2
- package/dist/runtime.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import { B as BrandRuntime } from './BrandRuntime-C8-TEWfH.js';
|
|
2
|
+
export { a as BrandIdleRuntime, b as BrandModeRuntime, c as BrandWordmarkRuntime } from './BrandRuntime-C8-TEWfH.js';
|
|
3
|
+
|
|
1
4
|
declare const enum MotionPreset {
|
|
2
5
|
Draw = "draw",
|
|
3
6
|
Flood = "flood",
|
|
@@ -71,13 +74,14 @@ interface WordmarkMotionConfig {
|
|
|
71
74
|
recipe: string;
|
|
72
75
|
startMs: number;
|
|
73
76
|
}
|
|
77
|
+
interface IdleMotionConfig {
|
|
78
|
+
recipe: string;
|
|
79
|
+
}
|
|
74
80
|
interface MotionConfig {
|
|
75
81
|
intro: MotionBeat[];
|
|
76
82
|
micro: MotionBeat[];
|
|
77
83
|
wordmark?: WordmarkMotionConfig;
|
|
78
|
-
idle?:
|
|
79
|
-
recipe: string;
|
|
80
|
-
};
|
|
84
|
+
idle?: IdleMotionConfig;
|
|
81
85
|
allowLongIntro?: string;
|
|
82
86
|
recipeErrors?: string[];
|
|
83
87
|
}
|
|
@@ -233,7 +237,7 @@ declare function parseBrand(raw: RawBrand, baseDir: string): Brand;
|
|
|
233
237
|
/** Reads and parses a brand.json file. */
|
|
234
238
|
declare function loadBrand(file: string): Brand;
|
|
235
239
|
|
|
236
|
-
/** Returns a colour for a token reference such as "
|
|
240
|
+
/** Returns a colour for a token reference such as "<preset>.primary" or "<preset>.dark.text"; a "#hex" passes through. */
|
|
237
241
|
declare function resolveToken(ref: string): string;
|
|
238
242
|
|
|
239
243
|
interface Variant {
|
|
@@ -478,4 +482,17 @@ type Out = (line: string) => void;
|
|
|
478
482
|
/** Runs the logo-kit command line and returns its exit code. */
|
|
479
483
|
declare function runCli(args: readonly string[], out?: Out): number;
|
|
480
484
|
|
|
481
|
-
|
|
485
|
+
/** Returns the brand's logo markup for mountBrand, with any logged limits. */
|
|
486
|
+
declare function resolveRuntime(brand: Brand): BrandRuntime;
|
|
487
|
+
|
|
488
|
+
interface BrandDrift {
|
|
489
|
+
copy: string;
|
|
490
|
+
source: string;
|
|
491
|
+
reason: string;
|
|
492
|
+
}
|
|
493
|
+
/** Copies a brand.json from its owner's repo to dest after checking it parses as a brand; returns dest. */
|
|
494
|
+
declare function pullBrand(source: string, dest: string): string;
|
|
495
|
+
/** Returns why a pulled brand copy no longer matches its source (line endings ignored), or null when it matches. */
|
|
496
|
+
declare function brandCopyDrift(copy: string, source: string): BrandDrift | null;
|
|
497
|
+
|
|
498
|
+
export { type AnimationTiming, BOLD_PRESETS, type Bitmap, type Brand, type BrandDrift, BrandRuntime, CVD_KINDS, type CheckResult, type ChecksReport, CvdKind, type ExportedFile, IDLE_CAP_MS, IDLE_RECIPES, INTRO_CAP_MS, INTRO_PRESETS, INTRO_RECIPES, type IdleContext, type IdleMotion, type IdleMotionConfig, IdleRecipe, IntroRecipe, LOOKALIKE_THRESHOLD, type LayerPaint, MICRO_CAP_MS, MICRO_DEFAULTS, MICRO_PRESETS, MICRO_RECIPES, MODES, type Mark, type MarkLayer, MicroRecipe, Mode, type MotionBeat, type MotionConfig, MotionPreset, type MotionRoles, PRESET_DEFAULTS, PRIMITIVES, type PaintItem, type Palette, type PickSpec, type Pt, type RawMotion, type RecipeContext, SYMBOLS, type TimingMap, type Variant, WORDMARK_RECIPES, type WordmarkMotion, type WordmarkMotionConfig, type WordmarkOptions, WordmarkRecipe, alphaMask, animatedSvg, brandCopyDrift, buildPickPage, buildPickSpec, checkVariants, contrast, deltaE, exportBrand, fitBeat, flattenPath, generateVariants, generatorPalette, geometryModule, idleRecipe, introRecipe, introSvg, loadBrand, markSvg, microRecipe, microSvg, paletteVariants, parseBrand, parseTiming, pixelDiff, pngSize, primitiveMark, pullBrand, renderPng, renderSvg, resolveMotion, resolveRuntime, resolveToken, runChecks, runCli, schedule, simulateCvd, symbolMatches, symbolScores, totalMs, validateMotion, wordmarkReveal };
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { contrastRatio, PRESETS } from '@dloizides/design-tokens';
|
|
2
2
|
import { Resvg } from '@resvg/resvg-js';
|
|
3
|
-
import
|
|
3
|
+
import fs4 from 'fs';
|
|
4
4
|
import path3 from 'path';
|
|
5
5
|
import { execFileSync } from 'child_process';
|
|
6
6
|
|
|
@@ -360,9 +360,9 @@ function layerSvg(layer, index, colours, mode, opts = {}) {
|
|
|
360
360
|
const items = mode === "dark" /* Dark */ ? layer.paint.dark : layer.paint.light;
|
|
361
361
|
const rule = layer.evenOdd === true ? ' fill-rule="evenodd"' : "";
|
|
362
362
|
const len = opts.drawLayers?.has(layer.name) === true ? ' pathLength="1"' : "";
|
|
363
|
-
const
|
|
363
|
+
const path7 = (item, head2) => `<path${head2} ${paintAttrs(item, colours, opts.colourOverride)}${rule}${len} d="${layer.d}"/>`;
|
|
364
364
|
const head = ` id="mark-${layer.name}" class="l${index}"`;
|
|
365
|
-
const body = items.length === 1 && items[0] ?
|
|
365
|
+
const body = items.length === 1 && items[0] ? path7(items[0], head) : `<g${head}>${items.map((item) => path7(item, "")).join("")}</g>`;
|
|
366
366
|
const wrapped = opts.microWrap === true ? `<g class="lkm${index}">${body}</g>` : body;
|
|
367
367
|
return layer.transform !== void 0 ? `<g transform="${layer.transform}">${wrapped}</g>` : wrapped;
|
|
368
368
|
}
|
|
@@ -690,9 +690,9 @@ function resolveToken(ref) {
|
|
|
690
690
|
if (ref.startsWith("#")) {
|
|
691
691
|
return ref;
|
|
692
692
|
}
|
|
693
|
-
const [id = "", ...
|
|
693
|
+
const [id = "", ...path7] = ref.split(".");
|
|
694
694
|
let node = presetOf(id);
|
|
695
|
-
for (const key2 of
|
|
695
|
+
for (const key2 of path7) {
|
|
696
696
|
node = typeof node === "object" && node !== null ? node[key2] : void 0;
|
|
697
697
|
}
|
|
698
698
|
if (typeof node !== "string") {
|
|
@@ -733,12 +733,12 @@ function parseBrand(raw, baseDir) {
|
|
|
733
733
|
palette: toPalette(raw.palette, raw.slug),
|
|
734
734
|
motion: resolveMotion(raw.motion, raw.mark.layers.map((l) => l.name), markSizeOf(mark)),
|
|
735
735
|
generate: raw.generate ?? DEFAULT_GENERATE,
|
|
736
|
-
tokens: raw.tokens ?? firstRef?.split(".")[0] ?? "
|
|
736
|
+
tokens: raw.tokens ?? firstRef?.split(".")[0] ?? "flier",
|
|
737
737
|
baseDir
|
|
738
738
|
};
|
|
739
739
|
}
|
|
740
740
|
function loadBrand(file) {
|
|
741
|
-
const raw = JSON.parse(
|
|
741
|
+
const raw = JSON.parse(fs4.readFileSync(file, "utf8"));
|
|
742
742
|
return parseBrand(raw, path3.dirname(path3.resolve(file)));
|
|
743
743
|
}
|
|
744
744
|
|
|
@@ -1794,16 +1794,16 @@ var ICONS = [["apple-touch-icon.png", 180, false], ["icon-192.png", 192, true],
|
|
|
1794
1794
|
function writer(brand, outDir) {
|
|
1795
1795
|
const files = [];
|
|
1796
1796
|
const fonts = brand.wordmark.fontFile !== void 0 ? [path3.resolve(brand.baseDir, brand.wordmark.fontFile)] : [];
|
|
1797
|
-
|
|
1797
|
+
fs4.mkdirSync(outDir, { recursive: true });
|
|
1798
1798
|
return {
|
|
1799
1799
|
files,
|
|
1800
1800
|
svg: (file, body, width, height) => {
|
|
1801
|
-
|
|
1801
|
+
fs4.writeFileSync(path3.join(outDir, file), body);
|
|
1802
1802
|
files.push({ file, width, height });
|
|
1803
1803
|
},
|
|
1804
1804
|
png: (file, body, width) => {
|
|
1805
1805
|
const png = renderPng(body, width, fonts);
|
|
1806
|
-
|
|
1806
|
+
fs4.writeFileSync(path3.join(outDir, file), png);
|
|
1807
1807
|
files.push({ file, ...pngSize(png) });
|
|
1808
1808
|
}
|
|
1809
1809
|
};
|
|
@@ -1831,7 +1831,7 @@ function writeRasters(brand, w, outDir) {
|
|
|
1831
1831
|
}
|
|
1832
1832
|
const favicon = (s) => faviconSvg(brand, s) ?? iconCanvas(brand, "light" /* Light */, { w: s, h: s }, 1, null);
|
|
1833
1833
|
const icoPngs = ICO_SIZES.map((s) => renderPng(favicon(s), s));
|
|
1834
|
-
|
|
1834
|
+
fs4.writeFileSync(path3.join(outDir, "favicon.ico"), buildIco(icoPngs));
|
|
1835
1835
|
w.files.push({ file: "favicon.ico", width: Math.max(...ICO_SIZES), height: Math.max(...ICO_SIZES) });
|
|
1836
1836
|
w.png("og.png", cardSvg(brand, "dark" /* Dark */, { w: 1200, h: 630 }), 1200);
|
|
1837
1837
|
w.png("landing-card.png", cardSvg(brand, "light" /* Light */, { w: 640, h: 400 }), 640);
|
|
@@ -1852,8 +1852,8 @@ function exportBrand(brand, outDir) {
|
|
|
1852
1852
|
}
|
|
1853
1853
|
}
|
|
1854
1854
|
const moduleDir = path3.join(outDir, `brand-${brand.slug}`);
|
|
1855
|
-
|
|
1856
|
-
|
|
1855
|
+
fs4.mkdirSync(moduleDir, { recursive: true });
|
|
1856
|
+
fs4.writeFileSync(path3.join(moduleDir, "markGeometry.ts"), geometryModule(brand.mark));
|
|
1857
1857
|
w.files.push({ file: `brand-${brand.slug}/markGeometry.ts`, width: 0, height: 0 });
|
|
1858
1858
|
return w.files;
|
|
1859
1859
|
}
|
|
@@ -1876,8 +1876,8 @@ var MIN_OPTIONS = 3;
|
|
|
1876
1876
|
var MOTION_OPTIONS = ["stagger-rise" /* StaggerRise */, "scale-pop" /* ScalePop */, "orbit" /* Orbit */, "wipe" /* Wipe */, "morph-from-circle" /* MorphFromCircle */];
|
|
1877
1877
|
function frame(outDir, file, mark, palette) {
|
|
1878
1878
|
const rel = `frames/${file}.png`;
|
|
1879
|
-
|
|
1880
|
-
|
|
1879
|
+
fs4.mkdirSync(path3.join(outDir, "frames"), { recursive: true });
|
|
1880
|
+
fs4.writeFileSync(path3.join(outDir, rel), renderPng(frameSvg(mark, palette), FRAME.w));
|
|
1881
1881
|
return rel;
|
|
1882
1882
|
}
|
|
1883
1883
|
var option = (name, why, image, extra = {}) => ({ name, why, image, inventory: "1/1", aligned: "pass", targetBox: TARGET_BOX, ...extra });
|
|
@@ -1916,19 +1916,19 @@ function colourStep(brand, mark, outDir) {
|
|
|
1916
1916
|
}
|
|
1917
1917
|
function motionStep(mark, palette, outDir) {
|
|
1918
1918
|
const still = frame(outDir, "motion-still", mark, palette);
|
|
1919
|
-
|
|
1919
|
+
fs4.mkdirSync(path3.join(outDir, "motion"), { recursive: true });
|
|
1920
1920
|
const n2 = mark.layers.length;
|
|
1921
1921
|
const options2 = MOTION_OPTIONS.map((preset) => {
|
|
1922
1922
|
const base = PRESET_DEFAULTS[preset] ?? { preset, durationMs: 600 };
|
|
1923
1923
|
const beat = preset === "morph-from-circle" /* MorphFromCircle */ ? { ...base, fadeIn: mark.layers.slice(1).map((l) => l.name) } : fitBeat(base, n2, INTRO_CAP_MS);
|
|
1924
1924
|
const rel = `motion/${preset}.svg`;
|
|
1925
|
-
|
|
1925
|
+
fs4.writeFileSync(path3.join(outDir, rel), frameSvg(mark, palette, [beat]));
|
|
1926
1926
|
return option(preset, `The ${preset} intro, ${beat.durationMs} ms per layer, ends on the still.`, still, { motion: rel, targetBox: void 0 });
|
|
1927
1927
|
});
|
|
1928
1928
|
return { screen: "logo-motion", viewport: "mobile", kind: "motion", target: "n/a -- the options differ over time; every still frame is the same end frame", title: "Motion", question: "Which intro should the mark play?", options: options2 };
|
|
1929
1929
|
}
|
|
1930
1930
|
function buildPickSpec(brand, outDir) {
|
|
1931
|
-
|
|
1931
|
+
fs4.mkdirSync(outDir, { recursive: true });
|
|
1932
1932
|
const shape = shapeStep(brand, outDir);
|
|
1933
1933
|
const colour = colourStep(brand, shape.chosen, outDir);
|
|
1934
1934
|
const motion = motionStep(shape.chosen, colour.palette, outDir);
|
|
@@ -1941,7 +1941,7 @@ function buildPickSpec(brand, outDir) {
|
|
|
1941
1941
|
noloss: "noloss: allow new screen -- a logo pick page has no screen fields",
|
|
1942
1942
|
steps: [shape.step, colour.step, motion]
|
|
1943
1943
|
};
|
|
1944
|
-
|
|
1944
|
+
fs4.writeFileSync(path3.join(outDir, "spec.json"), `${JSON.stringify(spec, null, 2)}
|
|
1945
1945
|
`);
|
|
1946
1946
|
return spec;
|
|
1947
1947
|
}
|
|
@@ -1950,7 +1950,46 @@ function buildPickPage(builder, outDir) {
|
|
|
1950
1950
|
execFileSync(process.execPath, [builder, path3.join(outDir, "spec.json"), html], { stdio: "inherit" });
|
|
1951
1951
|
return html;
|
|
1952
1952
|
}
|
|
1953
|
-
var
|
|
1953
|
+
var normalise2 = (text) => text.replace(/\r\n/g, "\n");
|
|
1954
|
+
function pullBrand(source, dest) {
|
|
1955
|
+
loadBrand(source);
|
|
1956
|
+
fs4.mkdirSync(path3.dirname(dest), { recursive: true });
|
|
1957
|
+
fs4.writeFileSync(dest, fs4.readFileSync(source, "utf8"));
|
|
1958
|
+
return dest;
|
|
1959
|
+
}
|
|
1960
|
+
function brandCopyDrift(copy, source) {
|
|
1961
|
+
const drift = (reason) => ({ copy, source, reason });
|
|
1962
|
+
if (!fs4.existsSync(source)) {
|
|
1963
|
+
return drift("source missing");
|
|
1964
|
+
}
|
|
1965
|
+
if (!fs4.existsSync(copy)) {
|
|
1966
|
+
return drift("copy missing");
|
|
1967
|
+
}
|
|
1968
|
+
return normalise2(fs4.readFileSync(copy, "utf8")) === normalise2(fs4.readFileSync(source, "utf8")) ? null : drift("content differs");
|
|
1969
|
+
}
|
|
1970
|
+
|
|
1971
|
+
// src/brand/brandCli.ts
|
|
1972
|
+
var BRAND_USAGE = "usage: logo-kit pull-brand <source brand.json> [--out dest] | logo-kit check-brand-copy <copy> --source <source brand.json>";
|
|
1973
|
+
function brandCommand(cmd, file, flags2, out) {
|
|
1974
|
+
if (cmd === "pull-brand") {
|
|
1975
|
+
out(`pulled ${pullBrand(file, flags2.get("out") ?? path3.join("brand", path3.basename(file)))}`);
|
|
1976
|
+
return 0;
|
|
1977
|
+
}
|
|
1978
|
+
if (cmd !== "check-brand-copy") {
|
|
1979
|
+
return null;
|
|
1980
|
+
}
|
|
1981
|
+
const source = flags2.get("source");
|
|
1982
|
+
if (source === void 0) {
|
|
1983
|
+
out(BRAND_USAGE);
|
|
1984
|
+
return 2;
|
|
1985
|
+
}
|
|
1986
|
+
const drift = brandCopyDrift(file, source);
|
|
1987
|
+
out(drift === null ? `brand copy matches ${source}` : `brand copy drift: ${drift.reason} (${file} vs ${source}), run logo-kit pull-brand ${source} --out ${file}`);
|
|
1988
|
+
return drift === null ? 0 : 1;
|
|
1989
|
+
}
|
|
1990
|
+
|
|
1991
|
+
// src/cliMain.ts
|
|
1992
|
+
var USAGE = "usage: logo-kit <export|generate|pick|check|pull-brand|check-brand-copy> <brand.json> [--out dir] [--seed n] [--count n] [--builder build-pick-page.mjs]";
|
|
1954
1993
|
function flags(args) {
|
|
1955
1994
|
const out = /* @__PURE__ */ new Map();
|
|
1956
1995
|
args.forEach((a, i) => {
|
|
@@ -1968,12 +2007,12 @@ function generate(file, f, out) {
|
|
|
1968
2007
|
const dir = f.get("out") ?? "variants";
|
|
1969
2008
|
const palette = generatorPalette(brand.tokens);
|
|
1970
2009
|
const variants = generateVariants(seed, count);
|
|
1971
|
-
|
|
2010
|
+
fs4.mkdirSync(dir, { recursive: true });
|
|
1972
2011
|
for (const v of variants) {
|
|
1973
|
-
|
|
2012
|
+
fs4.writeFileSync(path3.join(dir, `${v.id}.svg`), markSvg(v.mark, palette, "light" /* Light */, { label: v.recipe }));
|
|
1974
2013
|
}
|
|
1975
2014
|
const report = checkVariants(seed, variants, palette);
|
|
1976
|
-
|
|
2015
|
+
fs4.writeFileSync(path3.join(dir, `checks-${seed}.json`), `${JSON.stringify(report, null, 2)}
|
|
1977
2016
|
`);
|
|
1978
2017
|
out(`generated ${count}, passed ${report.passed.length}, dropped ${report.dropped.length} -> ${dir}`);
|
|
1979
2018
|
return 0;
|
|
@@ -1997,6 +2036,10 @@ function runCli(args, out = (line) => process.stdout.write(`${line}
|
|
|
1997
2036
|
out(USAGE);
|
|
1998
2037
|
return 2;
|
|
1999
2038
|
}
|
|
2039
|
+
const brandExit = brandCommand(cmd, file, f, out);
|
|
2040
|
+
if (brandExit !== null) {
|
|
2041
|
+
return brandExit;
|
|
2042
|
+
}
|
|
2000
2043
|
const refusal = cmd === "export" || cmd === "generate" ? motionRefusal(file) : null;
|
|
2001
2044
|
if (refusal !== null) {
|
|
2002
2045
|
out(refusal);
|
|
@@ -2024,6 +2067,56 @@ function runCli(args, out = (line) => process.stdout.write(`${line}
|
|
|
2024
2067
|
return 2;
|
|
2025
2068
|
}
|
|
2026
2069
|
|
|
2027
|
-
|
|
2070
|
+
// src/brand/resolveRuntime.ts
|
|
2071
|
+
var IDLE_CLASS = "lk-idle";
|
|
2072
|
+
var LETTER_PREFIX = "lkw";
|
|
2073
|
+
var ADVANCE_SHARE = 0.6;
|
|
2074
|
+
var FONT_SIZE = 17;
|
|
2075
|
+
var NEEDS_SVG_GLYPHS = ["typewriter" /* Typewriter */, "mask-wipe" /* MaskWipe */];
|
|
2076
|
+
var ESCAPES = { "&": "&", "<": "<", ">": ">", '"': """ };
|
|
2077
|
+
var escapeHtml = (text) => text.replace(/[&<>"]/g, (c) => ESCAPES[c] ?? c);
|
|
2078
|
+
var withOverlay = (svg2, overlay) => svg2.replace(/<\/svg>$/, `${overlay}</svg>`);
|
|
2079
|
+
function modeRuntime(brand, mode, overlay) {
|
|
2080
|
+
const label = brand.name;
|
|
2081
|
+
return {
|
|
2082
|
+
intro: withOverlay(introSvg(brand.mark, brand.palette, mode, brand.motion.intro, { label }), overlay),
|
|
2083
|
+
still: markSvg(brand.mark, brand.palette, mode, { label, overlay })
|
|
2084
|
+
};
|
|
2085
|
+
}
|
|
2086
|
+
function wordmarkRuntime(brand, limits) {
|
|
2087
|
+
const config = brand.motion.wordmark;
|
|
2088
|
+
if (config === void 0) {
|
|
2089
|
+
return null;
|
|
2090
|
+
}
|
|
2091
|
+
const svgOnly = NEEDS_SVG_GLYPHS.includes(config.recipe);
|
|
2092
|
+
if (svgOnly) {
|
|
2093
|
+
limits.push(`wordmark ${config.recipe}: needs SVG glyph positions, the HTML wordmark plays letter-stagger`);
|
|
2094
|
+
}
|
|
2095
|
+
const recipe = svgOnly ? "letter-stagger" /* LetterStagger */ : config.recipe;
|
|
2096
|
+
const letters = [...brand.name];
|
|
2097
|
+
const advances = letters.map(() => FONT_SIZE * ADVANCE_SHARE);
|
|
2098
|
+
const reveal = wordmarkReveal(recipe, { advances, startMs: config.startMs, prefix: LETTER_PREFIX, fontSize: FONT_SIZE });
|
|
2099
|
+
const spans = letters.map((c, i) => `<span class="${LETTER_PREFIX}-l${i}">${escapeHtml(c)}</span>`).join("");
|
|
2100
|
+
const font = escapeHtml(brand.wordmark.fontFamily);
|
|
2101
|
+
const html = `<span class="lk-wordmark ${LETTER_PREFIX}-g" style="white-space:pre;display:inline-block;font-family:${font}">${spans}</span>`;
|
|
2102
|
+
return { recipe, html, css: reveal?.css ?? "" };
|
|
2103
|
+
}
|
|
2104
|
+
function resolveRuntime(brand) {
|
|
2105
|
+
const limits = [];
|
|
2106
|
+
const idleName = brand.motion.idle?.recipe;
|
|
2107
|
+
const idle = idleName !== void 0 ? idleRecipe(idleName, { mark: brand.mark, trigger: IDLE_CLASS }) : null;
|
|
2108
|
+
const overlay = idle?.overlay ?? "";
|
|
2109
|
+
return {
|
|
2110
|
+
name: brand.name,
|
|
2111
|
+
slug: brand.slug,
|
|
2112
|
+
light: modeRuntime(brand, "light" /* Light */, overlay),
|
|
2113
|
+
dark: modeRuntime(brand, "dark" /* Dark */, overlay),
|
|
2114
|
+
wordmark: wordmarkRuntime(brand, limits),
|
|
2115
|
+
idle: idle !== null ? { className: IDLE_CLASS, durationMs: idle.durationMs, css: idle.css } : null,
|
|
2116
|
+
limits
|
|
2117
|
+
};
|
|
2118
|
+
}
|
|
2119
|
+
|
|
2120
|
+
export { BOLD_PRESETS, CVD_KINDS, CvdKind, IDLE_CAP_MS, IDLE_RECIPES, INTRO_CAP_MS, INTRO_PRESETS, INTRO_RECIPES, IdleRecipe, IntroRecipe, LOOKALIKE_THRESHOLD, MICRO_CAP_MS, MICRO_DEFAULTS, MICRO_PRESETS, MICRO_RECIPES, MODES, MicroRecipe, Mode, MotionPreset, PRESET_DEFAULTS, PRIMITIVES, SYMBOLS, WORDMARK_RECIPES, WordmarkRecipe, alphaMask, animatedSvg, brandCopyDrift, buildPickPage, buildPickSpec, checkVariants, contrast, deltaE, exportBrand, fitBeat, flattenPath, generateVariants, generatorPalette, geometryModule, idleRecipe, introRecipe, introSvg, loadBrand, markSvg, microRecipe, microSvg, paletteVariants, parseBrand, parseTiming, pixelDiff, pngSize, primitiveMark, pullBrand, renderPng, renderSvg, resolveMotion, resolveRuntime, resolveToken, runChecks, runCli, schedule, simulateCvd, symbolMatches, symbolScores, totalMs, validateMotion, wordmarkReveal };
|
|
2028
2121
|
//# sourceMappingURL=index.js.map
|
|
2029
2122
|
//# sourceMappingURL=index.js.map
|