diff --git a/app/[workspace]/project/[projectId]/design/page.tsx b/app/[workspace]/project/[projectId]/design/page.tsx index 59757e5..9bf5dc5 100644 --- a/app/[workspace]/project/[projectId]/design/page.tsx +++ b/app/[workspace]/project/[projectId]/design/page.tsx @@ -243,7 +243,7 @@ const LIBRARY_STYLE_OPTIONS: Record = { { id: "dm-sans", label: "DM Sans" }, { id: "geist", label: "Geist" }, ], - defaultConfig: { mode: "dark", background: "solid", nav: "standard", header: "centered", components: ["features", "pricing"], font: "system" }, + defaultConfig: { mode: "dark", background: "solid", nav: "standard", header: "centered", components: ["logos", "features", "steps", "testimonials", "pricing", "faq", "cta"], font: "system" }, }, "hero-ui": { modes: [{ id: "light", label: "Light" }, { id: "dark", label: "Dark" }], @@ -277,7 +277,7 @@ const LIBRARY_STYLE_OPTIONS: Record = { { id: "geist", label: "Geist" }, { id: "nunito", label: "Nunito" }, ], - defaultConfig: { mode: "light", background: "clean", nav: "blur", header: "animated-badge", components: ["features", "metrics"], font: "system" }, + defaultConfig: { mode: "light", background: "clean", nav: "blur", header: "animated-badge", components: ["features", "metrics", "avatars", "pricing", "testimonials", "cta"], font: "system" }, }, "aceternity": { modes: [{ id: "dark", label: "Dark" }, { id: "light", label: "Light" }], @@ -313,7 +313,7 @@ const LIBRARY_STYLE_OPTIONS: Record = { { id: "geist", label: "Geist" }, { id: "plus-jakarta", label: "Plus Jakarta" }, ], - defaultConfig: { mode: "dark", background: "gradient", nav: "minimal", header: "gradient-text", components: ["features", "moving-cards"], font: "system" }, + defaultConfig: { mode: "dark", background: "gradient", nav: "minimal", header: "gradient-text", components: ["badge", "features", "moving-cards", "bento", "pricing", "cta"], font: "system" }, }, "tailwind-only": { modes: [{ id: "light", label: "Light" }, { id: "dark", label: "Dark" }], @@ -349,7 +349,7 @@ const LIBRARY_STYLE_OPTIONS: Record = { { id: "plus-jakarta", label: "Plus Jakarta" }, { id: "dm-sans", label: "DM Sans" }, ], - defaultConfig: { mode: "light", background: "clean", nav: "minimal", header: "editorial", components: ["features", "stats", "pricing"], font: "system" }, + defaultConfig: { mode: "light", background: "clean", nav: "minimal", header: "editorial", components: ["badge", "logos", "features", "stats", "testimonials", "pricing", "faq", "cta"], font: "system" }, }, }; @@ -654,6 +654,36 @@ function SurfaceSection({ )} + {/* Palette (colour) — top of mind, shown right after Lock */} + {availableColorThemes.length > 0 && ( +
+ Colour +
+ {availableColorThemes.map(ct => ( +
+ {activeColorTheme && ( + {activeColorTheme.label} + )} +
+ )} + {/* Library — simple name buttons */}
Library @@ -696,35 +726,6 @@ function SurfaceSection({ /> )} - {/* Palette (colour) — shown after configurator */} - {availableColorThemes.length > 0 && ( -
- Colour -
- {availableColorThemes.map(ct => ( -
-
- )} -
{/* end inner padding div */} {/* end right panel */} diff --git a/components/design-scaffolds/marketing.tsx b/components/design-scaffolds/marketing.tsx index e6c6ee7..e334ba5 100644 --- a/components/design-scaffolds/marketing.tsx +++ b/components/design-scaffolds/marketing.tsx @@ -5,12 +5,21 @@ import { ThemeColor, DesignConfig, DAISY_THEMES, HEROUI_MARKETING_THEMES, ACETER function fontStack(font?: string) { if (font === "plus-jakarta") return '"Plus Jakarta Sans", system-ui, sans-serif'; if (font === "dm-sans") return '"DM Sans", system-ui, sans-serif'; - if (font === "geist") return '"Geist", system-ui, sans-serif'; + if (font === "geist") return '"Geist Sans", system-ui, sans-serif'; if (font === "inter") return '"Inter", system-ui, sans-serif'; if (font === "nunito") return '"Nunito", system-ui, sans-serif'; return "system-ui, sans-serif"; } +function fontImport(font?: string): string { + if (font === "plus-jakarta") return "@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&display=swap');"; + if (font === "dm-sans") return "@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;0,9..40,800;0,9..40,900;1,9..40,400&display=swap');"; + if (font === "geist") return "@import url('https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700;800;900&display=swap');"; + if (font === "inter") return "@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');"; + if (font === "nunito") return "@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700;800;900&display=swap');"; + return ""; +} + // Namespaced CSS keyframes (won't conflict with page styles) const ACE_KEYFRAMES = ` @keyframes ace-blob1 { 0%,100%{transform:translate(0%,0%) scale(1)} 33%{transform:translate(28%,-22%) scale(1.12)} 66%{transform:translate(-18%,18%) scale(0.9)} } @@ -201,6 +210,7 @@ export function MarketingDaisy({ themeColor, config }: { themeColor?: ThemeColor return (
+ {bgStyle === "pattern" && (
)} @@ -607,7 +617,7 @@ export function MarketingAceternity({ themeColor, config }: { themeColor?: Theme return (
- + {/* Nav */} @@ -832,6 +842,7 @@ export function MarketingHeroUI({ themeColor, config }: { themeColor?: ThemeColo return (
+ {heroBgOverlay &&
}