Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion server/emails/templates/components/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,15 @@ const style: React.CSSProperties = {
padding: "10px 20px",
color: "#FFFFFF",
background: "#000000",
border: "1px solid #000",
borderRadius: "4px",
fontWeight: 500,
textDecoration: "none",
cursor: "pointer",
};

const Button: React.FC<Props> = (props) => (
<a {...props} style={style}>
<a {...props} style={style} className="email-button">
{props.children}
</a>
);
Expand Down
7 changes: 7 additions & 0 deletions server/emails/templates/components/EmailLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,4 +77,11 @@ export const baseStyles = `
font-size: 16px;
line-height: 1.5;
}

@media (prefers-color-scheme: dark) {
.email-button {
background: #FFFFFF !important;
color: #000000 !important;
}
}
`;
Loading