Skip to main content
Cappuccino markdown mail template App emails can share the panel’s look and feel. The installer publishes Laravel’s markdown mail components (layout, header, button, panel, table, footer) plus a Cappuccino CSS theme.

Install

Files land in resources/views/vendor/mail/. The installer reads shade 600 from the plugin’s primary palette — from primaryColor() if you’ve set one, otherwise the default gold.

Command options

string
Filament panel ID to read the primary color from. Required when more than one Cappuccino-themed panel exists in the app.
string
A hex color to bake into the CSS directly, skipping panel detection entirely. For example: --primary=#b5963a.
boolean
Overwrite mail views that were published earlier.
The color is written into the CSS at install time. Re-run the command after changing the panel’s primary color.

Apply the theme

Set it globally in config/mail.php:
config/mail.php
Or per mailable:

Branding

Default logos come from environment variables:
.env
For tenant-specific branding, pass the same keys as view data on the mailable. They’re stored with the queued job, so queued mail keeps the correct brand:
When set, brand replaces config('app.name') in the header label, footer copyright, document title, and logo alt text. brandUrl replaces config('app.url') as the header link.

Clients and dark mode

Apple Mail, iOS Mail, and Outlook.com respect prefers-color-scheme and can show the dark variant — including CAPPUCCINO_MAIL_LOGO_DARK, when provided.
Gmail and Outlook desktop often recolor messages on their own. The light layout — cream outer background, white content card — is the reliable baseline for those clients.