Skip to content

Drive invitation poster palette from the linked theme's signature colours#651

Merged
lucaslyl merged 1 commit into
mainfrom
poster-generation-should-repect-theme-background-color
Jul 13, 2026
Merged

Drive invitation poster palette from the linked theme's signature colours#651
lucaslyl merged 1 commit into
mainfrom
poster-generation-should-repect-theme-background-color

Conversation

@lucaslyl

@lucaslyl lucaslyl commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

summary:

The invitation-poster prompt only fed the linked theme's name and description
text to the image model, so the generated poster's colours were left to the
model's guess and did not follow the theme.

Derive concrete colours from the linked theme's computed cssVariables and
pin them in the prompt:

  • background ground = theme --primary (its signature/chrome hue; e.g. a red
    theme now yields a red poster), falling back to --navy / --ink-2
  • lettering = theme --primary-foreground (its on-primary contrast colour),
    falling back through --gold-soft / --navy-ink / --paper / --background
  • decorative motif + accents = theme --accent (falling back to --gold /
    --acc)

The prompt now states these exact hex values and instructs the model not to
substitute other colours. When no theme is linked, the previous warm-white
default is unchanged.

@lucaslyl lucaslyl self-assigned this Jul 13, 2026
@lucaslyl lucaslyl requested a review from a team July 13, 2026 10:00
@lucaslyl lucaslyl merged commit aaeb0d2 into main Jul 13, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant