Skip to content

Commit 0ab8de0

Browse files
authored
Modernize email template (#57987)
* update theme * modernize logo
1 parent 848bd57 commit 0ab8de0

File tree

3 files changed

+39
-37
lines changed

3 files changed

+39
-37
lines changed

config/mail.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@
122122
|
123123
| If you are using Markdown based email rendering, you may configure your
124124
| theme and component paths here, allowing you to customize the design
125-
| of the emails. Or, you may simply stick with the Laravel defaults!
125+
| of the emails. Or, you may simply stick with the Laravel defaults.
126126
|
127127
*/
128128

src/Illuminate/Mail/resources/views/html/header.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<td class="header">
44
<a href="{{ $url }}" style="display: inline-block;">
55
@if (trim($slot) === 'Laravel')
6-
<img src="https://laravel.com/img/notification-logo.png" class="logo" alt="Laravel Logo">
6+
<img src="https://laravel.com/img/notification-logo-v2.1.png" class="logo" alt="Laravel Logo">
77
@else
88
{!! $slot !!}
99
@endif

src/Illuminate/Mail/resources/views/html/themes/default.css

Lines changed: 37 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ body *:not(html):not(style):not(br):not(tr):not(code) {
1111
body {
1212
-webkit-text-size-adjust: none;
1313
background-color: #ffffff;
14-
color: #718096;
14+
color: #52525b;
1515
height: 100%;
1616
line-height: 1.4;
1717
margin: 0;
@@ -28,7 +28,7 @@ blockquote {
2828
}
2929

3030
a {
31-
color: #3869d4;
31+
color: #18181b;
3232
}
3333

3434
a img {
@@ -38,7 +38,7 @@ a img {
3838
/* Typography */
3939

4040
h1 {
41-
color: #3d4852;
41+
color: #18181b;
4242
font-size: 18px;
4343
font-weight: bold;
4444
margin-top: 0;
@@ -80,7 +80,7 @@ img {
8080
-premailer-cellpadding: 0;
8181
-premailer-cellspacing: 0;
8282
-premailer-width: 100%;
83-
background-color: #edf2f7;
83+
background-color: #fafafa;
8484
margin: 0;
8585
padding: 0;
8686
width: 100%;
@@ -103,7 +103,7 @@ img {
103103
}
104104

105105
.header a {
106-
color: #3d4852;
106+
color: #18181b;
107107
font-size: 19px;
108108
font-weight: bold;
109109
text-decoration: none;
@@ -113,6 +113,8 @@ img {
113113

114114
.logo {
115115
height: 75px;
116+
margin-top: 15px;
117+
margin-bottom: 10px;
116118
max-height: 75px;
117119
width: 75px;
118120
}
@@ -123,9 +125,9 @@ img {
123125
-premailer-cellpadding: 0;
124126
-premailer-cellspacing: 0;
125127
-premailer-width: 100%;
126-
background-color: #edf2f7;
127-
border-bottom: 1px solid #edf2f7;
128-
border-top: 1px solid #edf2f7;
128+
background-color: #fafafa;
129+
border-bottom: 1px solid #fafafa;
130+
border-top: 1px solid #fafafa;
129131
margin: 0;
130132
padding: 0;
131133
width: 100%;
@@ -136,10 +138,10 @@ img {
136138
-premailer-cellspacing: 0;
137139
-premailer-width: 570px;
138140
background-color: #ffffff;
139-
border-color: #e8e5ef;
140-
border-radius: 2px;
141+
border-color: #e4e4e7;
142+
border-radius: 4px;
141143
border-width: 1px;
142-
box-shadow: 0 2px 0 rgba(0, 0, 150, 0.025), 2px 4px 0 rgba(0, 0, 150, 0.015);
144+
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
143145
margin: 0 auto;
144146
padding: 0;
145147
width: 570px;
@@ -152,7 +154,7 @@ img {
152154
/* Subcopy */
153155

154156
.subcopy {
155-
border-top: 1px solid #e8e5ef;
157+
border-top: 1px solid #e4e4e7;
156158
margin-top: 25px;
157159
padding-top: 25px;
158160
}
@@ -174,13 +176,13 @@ img {
174176
}
175177

176178
.footer p {
177-
color: #b0adc5;
179+
color: #a1a1aa;
178180
font-size: 12px;
179181
text-align: center;
180182
}
181183

182184
.footer a {
183-
color: #b0adc5;
185+
color: #a1a1aa;
184186
text-decoration: underline;
185187
}
186188

@@ -195,13 +197,13 @@ img {
195197
}
196198

197199
.table th {
198-
border-bottom: 1px solid #edeff2;
200+
border-bottom: 1px solid #e4e4e7;
199201
margin: 0;
200202
padding-bottom: 8px;
201203
}
202204

203205
.table td {
204-
color: #74787e;
206+
color: #52525b;
205207
font-size: 15px;
206208
line-height: 18px;
207209
margin: 0;
@@ -237,46 +239,46 @@ img {
237239

238240
.button-blue,
239241
.button-primary {
240-
background-color: #2d3748;
241-
border-bottom: 8px solid #2d3748;
242-
border-left: 18px solid #2d3748;
243-
border-right: 18px solid #2d3748;
244-
border-top: 8px solid #2d3748;
242+
background-color: #18181b;
243+
border-bottom: 8px solid #18181b;
244+
border-left: 18px solid #18181b;
245+
border-right: 18px solid #18181b;
246+
border-top: 8px solid #18181b;
245247
}
246248

247249
.button-green,
248250
.button-success {
249-
background-color: #48bb78;
250-
border-bottom: 8px solid #48bb78;
251-
border-left: 18px solid #48bb78;
252-
border-right: 18px solid #48bb78;
253-
border-top: 8px solid #48bb78;
251+
background-color: #16a34a;
252+
border-bottom: 8px solid #16a34a;
253+
border-left: 18px solid #16a34a;
254+
border-right: 18px solid #16a34a;
255+
border-top: 8px solid #16a34a;
254256
}
255257

256258
.button-red,
257259
.button-error {
258-
background-color: #e53e3e;
259-
border-bottom: 8px solid #e53e3e;
260-
border-left: 18px solid #e53e3e;
261-
border-right: 18px solid #e53e3e;
262-
border-top: 8px solid #e53e3e;
260+
background-color: #dc2626;
261+
border-bottom: 8px solid #dc2626;
262+
border-left: 18px solid #dc2626;
263+
border-right: 18px solid #dc2626;
264+
border-top: 8px solid #dc2626;
263265
}
264266

265267
/* Panels */
266268

267269
.panel {
268-
border-left: #2d3748 solid 4px;
270+
border-left: #18181b solid 4px;
269271
margin: 21px 0;
270272
}
271273

272274
.panel-content {
273-
background-color: #edf2f7;
274-
color: #718096;
275+
background-color: #fafafa;
276+
color: #52525b;
275277
padding: 16px;
276278
}
277279

278280
.panel-content p {
279-
color: #718096;
281+
color: #52525b;
280282
}
281283

282284
.panel-item {

0 commit comments

Comments
 (0)