snapai
Version:
AI-powered icon generation CLI for mobile app developers
42 lines (41 loc) • 2.92 kB
JavaScript
export class PromptTemplates {
static enhanceForIOSIcon(userPrompt, size = 1024) {
return `Create a ${size} × ${size} px square iOS app-icon illustration: ${userPrompt}. Use crisp, minimal design with vibrant colors. Add a subtle inner bevel for gentle depth; no hard shadows or outlines. Center the design with comfortable breathing room from the edges. Solid, light-neutral background. No text, borders, or extraneous details. Final look: clean, vibrant, and Apple-polished. Use the full image size for the icon, don't draw it inside the image, don't add borders, the rounded corners would be applied by the platform, so don't add them.`;
}
static enhanceForAndroidIcon(userPrompt, size = 1024) {
return `Create a ${size} × ${size} px square Android app-icon illustration: ${userPrompt}. Use material design principles with bold, vibrant colors and clean geometry. Subtle depth with appropriate shadowing. Center the design with comfortable margins. Solid background or subtle gradient. No text, borders, or extraneous details. Final look should be modern, bold, and Android-appropriate. Use the full image size for the icon.`;
}
static getSuccessfulPromptElements() {
return [
"crisp, minimal design",
"vibrant colors with subtle inner bevel",
"comfortable breathing room from edges",
"solid, light-neutral background",
"clean, vibrant, and Apple-polished",
"no text, borders, or extraneous details",
"use full image size for the icon",
"don't draw it inside the image",
"rounded corners applied by platform"
];
}
static getPopularExamples() {
return [
"crisp, minimal, glass-like color-wheel flower made of eight evenly spaced, semi-transparent petals forming a perfect circle",
"minimalist calculator app with clean geometric numbers and soft gradients",
"fitness tracker app with stylized running figure using vibrant gradient colors",
"weather app with glass-like sun and translucent cloud elements",
"music player app with abstract sound waves in soft pastel hues",
"photo gallery app with camera lens design using inner bevel effects",
"messaging app with speech bubble in vibrant, translucent style",
"calendar app with clean date grid and subtle depth",
"note-taking app with pen and paper using soft, blended colors",
"banking app with secure lock symbol and professional gradients"
];
}
static addGlassEffects(prompt) {
return `${prompt} with glass-like, semi-transparent elements and soft color blending where elements overlap`;
}
static addPastelColors(prompt) {
return `${prompt} using soft pastel hues (pink, orange, yellow, green, teal, blue, indigo, violet)`;
}
}