Skip to content

Commit 47b4091

Browse files
chore: refactoring phishing page to use brand evolution fonts and colors (#194)
1 parent c1e8ff6 commit 47b4091

9 files changed

Lines changed: 35 additions & 53 deletions

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"test": "yarn playwright test"
2424
},
2525
"dependencies": {
26-
"@metamask/design-tokens": "^4.0.0",
26+
"@metamask/design-tokens": "^7.1.0",
2727
"@metamask/object-multiplex": "^2.0.0",
2828
"@metamask/post-message-stream": "^8.0.0",
2929
"eth-phishing-detect": "^1.2.0",

static/fonts/CentraNo1-Bold.woff2

28.7 KB
Binary file not shown.

static/fonts/CentraNo1-Book.woff2

42.9 KB
Binary file not shown.
29 KB
Binary file not shown.
-147 KB
Binary file not shown.
-151 KB
Binary file not shown.
-153 KB
Binary file not shown.

static/index.css

Lines changed: 29 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
@font-face {
2-
font-family: 'Euclid';
3-
font-style: normal;
2+
font-family: 'CentraNo1';
3+
src: url('fonts/CentraNo1-Book.woff2') format('woff2');
44
font-weight: 400;
5-
src: url('fonts/EuclidCircularB-Regular-WebXL.ttf') format('truetype');
5+
font-style: normal;
66
}
77

88
@font-face {
9-
font-family: 'Euclid';
10-
font-style: italic;
11-
font-weight: 400;
12-
src: url('fonts/EuclidCircularB-RegularItalic-WebXL.ttf') format('truetype');
9+
font-family: 'CentraNo1';
10+
src: url('fonts/CentraNo1-Medium.woff2') format('woff2');
11+
font-weight: 500;
12+
font-style: normal;
1313
}
1414

1515
@font-face {
16-
font-family: 'Euclid';
17-
font-style: normal;
16+
font-family: 'CentraNo1';
17+
src: url('fonts/CentraNo1-Bold.woff2') format('woff2');
1818
font-weight: 700;
19-
src: url('fonts/EuclidCircularB-Bold-WebXL.ttf') format('truetype');
19+
font-style: normal;
2020
}
2121

2222
* {
@@ -35,7 +35,7 @@ body {
3535
display: flex;
3636
align-items: center;
3737
justify-content: center;
38-
font-family: var(--typography-s-body-md-font-family);
38+
font-family: var(--font-family-default);
3939
font-weight: var(--typography-s-body-md-font-weight);
4040
font-size: var(--typography-s-body-md-font-size);
4141
line-height: var(--typography-s-body-md-line-height);
@@ -45,7 +45,6 @@ body {
4545

4646
@media screen and (min-width: 768px) {
4747
body {
48-
font-family: var(--typography-l-body-md-font-family);
4948
font-weight: var(--typography-l-body-md-font-weight);
5049
font-size: var(--typography-l-body-md-font-size);
5150
line-height: var(--typography-l-body-md-line-height);
@@ -54,7 +53,6 @@ body {
5453
}
5554

5655
.heading-lg {
57-
font-family: var(--typography-s-heading-lg-font-family);
5856
font-weight: var(--typography-s-heading-lg-font-weight);
5957
font-size: var(--typography-s-heading-lg-font-size);
6058
line-height: var(--typography-s-heading-lg-line-height);
@@ -63,7 +61,6 @@ body {
6361

6462
@media screen and (min-width: 768px) {
6563
.heading-lg {
66-
font-family: var(--typography-l-heading-lg-font-family);
6764
font-weight: var(--typography-l-heading-lg-font-weight);
6865
font-size: var(--typography-l-heading-lg-font-size);
6966
line-height: var(--typography-l-heading-lg-line-height);
@@ -81,39 +78,40 @@ ul {
8178
padding-left: 32px;
8279
}
8380

84-
.button-primary {
85-
color: var(--color-background-default);
86-
background: var(--color-primary-default);
87-
border: 1px solid var(--color-primary-default);
88-
padding-right: 16px;
89-
padding-left: 16px;
90-
border-radius: 9999px;
91-
height: 48px;
92-
display: flex;
93-
align-items: center;
94-
font-weight: var(--typography-l-body-md-medium-font-weight);
95-
font-family: var(--typography-s-body-md-font-family);
81+
button {
82+
font-family: var(--font-family-default);
83+
font-weight: var(--font-weight-medium);
9684
font-weight: var(--typography-s-body-md-font-weight);
9785
font-size: var(--typography-s-body-md-font-size);
9886
line-height: var(--typography-s-body-md-line-height);
9987
letter-spacing: var(--typography-s-body-md-letter-spacing);
100-
cursor: pointer;
10188
}
10289

10390
@media screen and (min-width: 768px) {
104-
.button-primary {
105-
font-weight: var(--typography-l-body-md-medium-font-weight);
106-
font-family: var(--typography-s-body-md-font-family);
91+
.button-link-danger {
92+
font-weight: var(--font-weight-medium);
10793
font-weight: var(--typography-s-body-md-font-weight);
10894
font-size: var(--typography-l-body-md-font-size);
10995
line-height: var(--typography-l-body-md-line-height);
11096
}
11197
}
11298

99+
.button-primary {
100+
color: var(--color-background-default);
101+
background: var(--color-primary-default);
102+
border: 1px solid var(--color-primary-default);
103+
padding-right: 16px;
104+
padding-left: 16px;
105+
border-radius: 12px;
106+
height: 48px;
107+
display: flex;
108+
align-items: center;
109+
cursor: pointer;
110+
}
111+
113112
.button-primary:hover {
114113
color: var(--color-primary-inverse);
115114
background-color: var(--color-primary-default);
116-
box-shadow: var(--component-button-primary-shadow);
117115
}
118116

119117
.button-primary:active {
@@ -129,22 +127,6 @@ ul {
129127
padding-right: 16px;
130128
padding-left: 16px;
131129
cursor: pointer;
132-
font-weight: var(--font-weight-medium);
133-
font-family: var(--typography-s-body-md-font-family);
134-
font-weight: var(--typography-s-body-md-font-weight);
135-
font-size: var(--typography-s-body-md-font-size);
136-
line-height: var(--typography-s-body-md-line-height);
137-
letter-spacing: var(--typography-s-body-md-letter-spacing);
138-
}
139-
140-
@media screen and (min-width: 768px) {
141-
.button-link-danger {
142-
font-weight: var(--font-weight-medium);
143-
font-family: var(--typography-s-body-md-font-family);
144-
font-weight: var(--typography-s-body-md-font-weight);
145-
font-size: var(--typography-l-body-md-font-size);
146-
line-height: var(--typography-l-body-md-line-height);
147-
}
148130
}
149131

150132
.content {

yarn.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1605,10 +1605,10 @@ __metadata:
16051605
languageName: node
16061606
linkType: hard
16071607

1608-
"@metamask/design-tokens@npm:^4.0.0":
1609-
version: 4.0.0
1610-
resolution: "@metamask/design-tokens@npm:4.0.0"
1611-
checksum: 519e12da825ae5f8e265fbab1755e2e665ca6efb72ae5693985b35ef577d233c615255faa6b11622b552382e310a368c5c323d9f18fcb308ce28561f65077814
1608+
"@metamask/design-tokens@npm:^7.1.0":
1609+
version: 7.1.0
1610+
resolution: "@metamask/design-tokens@npm:7.1.0"
1611+
checksum: 3a6e33887ef8259a9cbed9760664c5b533690b8ceab50fa1f19cd302cbf3a9e4ab62d3157fdcfcc9e693c5049ca7fa71feb44861a8122fcc1280dbd78edecc21
16121612
languageName: node
16131613
linkType: hard
16141614

@@ -1669,7 +1669,7 @@ __metadata:
16691669
"@babel/preset-typescript": ^7.22.15
16701670
"@lavamoat/allow-scripts": ^3.0.4
16711671
"@metamask/auto-changelog": ^3.4.3
1672-
"@metamask/design-tokens": ^4.0.0
1672+
"@metamask/design-tokens": ^7.1.0
16731673
"@metamask/eslint-config": ^9.0.0
16741674
"@metamask/eslint-config-nodejs": ^9.0.0
16751675
"@metamask/eslint-config-typescript": ^9.0.1

0 commit comments

Comments
 (0)