MCPcopy Create free account
hub / github.com/bergside/typeui / generateTypographyScale

Function generateTypographyScale

src/generation/randomDesignSystem.ts:310–317  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

308}
309
310function generateTypographyScale(): string {
311 const scale = sampleOne(TYPOGRAPHY_SCALE_OPTIONS);
312 const primary = sampleOne(GOOGLE_FONT_SANS_OPTIONS);
313 const display = sampleOne(GOOGLE_FONT_DISPLAY_OPTIONS);
314 const mono = sampleOne(GOOGLE_FONT_MONO_OPTIONS);
315 const weights = sampleMany(FONT_WEIGHT_OPTIONS, 4, 7).sort((a, b) => Number(a) - Number(b));
316 return `${scale} | Fonts: primary=${primary}, display=${display}, mono=${mono} | weights=${weights.join(", ")}`;
317}
318
319function generateColorPalette(): string {
320 const required = ["primary", "neutral"];

Callers 1

Calls 2

sampleOneFunction · 0.85
sampleManyFunction · 0.85

Tested by

no test coverage detected