()
| 329 | } |
| 330 | |
| 331 | export function generateRandomDesignSystem(): DesignSystemInput { |
| 332 | const visualStyle = sampleMany(VISUAL_STYLE_OPTIONS, 3, 5).join(", "); |
| 333 | const design = { |
| 334 | productName: generateProductName(), |
| 335 | brandSummary: "", |
| 336 | visualStyle, |
| 337 | typographyScale: generateTypographyScale(), |
| 338 | colorPalette: generateColorPalette(), |
| 339 | spacingScale: sampleOne(SPACING_SCALE_OPTIONS), |
| 340 | accessibilityRequirements: sampleMany(ACCESSIBILITY_OPTIONS, 3, 5).join(", "), |
| 341 | writingTone: sampleMany(WRITING_TONE_OPTIONS, 2, 4).join(", "), |
| 342 | doRules: sampleMany(DO_RULE_OPTIONS, 3, 5), |
| 343 | dontRules: sampleMany(DONT_RULE_OPTIONS, 3, 5) |
| 344 | }; |
| 345 | |
| 346 | design.brandSummary = generateBrandSummary(design.productName, visualStyle); |
| 347 | return DesignSystemSchema.parse(design); |
| 348 | } |
no test coverage detected