Automattic / Automattic/jetpack

Newsletter Email templates: support custom colours

Open
#37,923 2 comments 0 reactions 0 assignees View on GitHub
[Feature] Subscriptions
Dominant language
PHP
Stars
1.8k
Forks
898
Avg merge
1d 18h
Merged PRs (30d)
774

Description

We should allow customizing colours in the email template, or ideally pull colours from the theme.

Project thread: peKye1-13y-p2

Our default template colours are blue (WP.com) and green (Jetpack) — applied to CTAs and links:

Screenshot 2024-06-18 at 11 54 29

Screenshot 2024-06-18 at 11 54 13

When using [_Lettre_ theme](https://wordpress.com/theme/lettre), we apply colours to templates (And subscription modal!) directly from the theme styles;

Screenshot 2024-06-18 at 11 53 35

This doesn't work universally because different themes declare different "primary colour" variables. We also have the challenge of knowing if the colour works on a white background with white text.

Contributor guide

Open the contributing guide

Research direction

Start with the Newsletter email templates and the subscription modal, using the Lettre theme styles described in the issue as the reference case. Compare the default blue and green CTA/link colours with theme-provided colours, then define a solution that handles differing primary-colour variables and contrast on white backgrounds.

Written by the indexing model from the issue text.

Assessment

Tech stack
php, wordpress
Domain
design
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.