Skip to content

Commit 8a7f385

Browse files
committed
Design refinements
1 parent 39b8ca2 commit 8a7f385

20 files changed

+93
-75
lines changed

packages/common/src/elements/Button.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
<style>
1010
button {
11-
border: none;
11+
outline: none;
1212
background: inherit;
1313
font-size: 0.889em;
1414
font-family: inherit;
@@ -38,7 +38,7 @@
3838
opacity: 0.4;
3939
}
4040
.cta {
41-
border: 1px solid #4a90e2;
41+
outline: 1px solid #4a90e2;
4242
border-radius: 40px;
4343
}
4444
.cta:hover {

packages/common/src/elements/CloseButton.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
align-items: center;
1919
padding: 0.4rem;
2020
border-radius: 40px;
21-
color: var(--onboard-black, var(--black));
21+
color: var(--onboard-gray-400, var(--gray-400));
2222
background: var(--onboard-white, var(--white));
2323
}
2424
.close-icon {

packages/core/src/icons/blocknative.js

Lines changed: 20 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export default `
2-
<svg height="100%" viewBox="0 0 12 19" fill="none" xmlns="http://www.w3.org/2000/svg">
2+
<svg height="80%" viewBox="0 0 12 19" fill="none" xmlns="http://www.w3.org/2000/svg">
33
<path d="M5.07004 9.85C5.84004 8.46 7.32004 7.64 8.18004 6.41C9.09004 5.12 8.58004 2.71 6.00004 2.71C4.31004 2.71 3.48004 3.99 3.13004 5.05L0.540039 3.96C1.25004 1.83 3.18004 0 5.99004 0C8.34004 0 9.95004 1.07 10.77 2.41C11.47 3.56 11.88 5.71 10.8 7.31C9.60004 9.08 8.45004 9.62 7.83004 10.76C7.58004 11.22 7.48004 11.52 7.48004 13H4.59004C4.58004 12.22 4.46004 10.95 5.07004 9.85ZM8.00004 17C8.00004 18.1 7.10004 19 6.00004 19C4.90004 19 4.00004 18.1 4.00004 17C4.00004 15.9 4.90004 15 6.00004 15C7.10004 15 8.00004 15.9 8.00004 17Z" fill="#999CA5"/>
44
</svg>
55
`

packages/core/src/index.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { WalletModule } from '@bn-onboard/common'
2-
import { SofiaProRegular, SofiaProSemiBold } from '@bn-onboard/common'
2+
import { SofiaProRegular } from '@bn-onboard/common'
33
import connectWallet from './connect'
44
import disconnectWallet from './disconnect'
55
import setChain from './chain'
@@ -85,7 +85,6 @@ function mountApp() {
8585

8686
styleEl.innerHTML = `
8787
${SofiaProRegular}
88-
${SofiaProSemiBold}
8988
`
9089
document.body.appendChild(styleEl)
9190

@@ -140,7 +139,6 @@ function mountApp() {
140139
141140
/* FONTS */
142141
--font-family-normal: Sofia Pro;
143-
--font-family-semibold: Sofia Pro Semibold;
144142
145143
--font-size-1: 3rem;
146144
--font-size-2: 2.25rem;

packages/core/src/views/Index.svelte

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
:global(input, textarea, select) {
1414
width: 100%;
1515
padding: 0.5rem 1rem;
16-
border: 2px solid var(--onboard-gray-200, var(--gray-200));
16+
outline: 2px solid var(--onboard-gray-200, var(--gray-200));
17+
border: none;
1718
border-radius: 8px;
1819
font-size: 1rem;
1920
line-height: 1.5;
@@ -25,7 +26,8 @@
2526
-webkit-appearance: none;
2627
width: auto;
2728
background-color: var(--onboard-white, var(--white));
28-
border: 1px solid var(--onboard-gray-300, var(--gray-300));
29+
outline: 1px solid var(--onboard-gray-300, var(--gray-300));
30+
border: none;
2931
padding: 0.5em;
3032
border-radius: 3px;
3133
display: flex;
@@ -76,15 +78,14 @@
7678
var(--onboard-primary-500, var(--primary-500))
7779
);
7880
box-shadow: 0 0 0 1px -moz-mac-focusring;
79-
outline: none;
8081
}
8182
8283
:global(input:disabled, textarea:disabled, select:disabled) {
8384
background-color: var(--gray-100);
8485
}
8586
8687
:global(input::-moz-focus-inner) {
87-
border: 0;
88+
outline: 0;
8889
padding: 0;
8990
margin-top: -2px;
9091
margin-bottom: -2px;
@@ -130,13 +131,10 @@
130131
padding: var(--onboard-spacing-5, var(--spacing-5))
131132
var(--onboard-spacing-4, var(--spacing-4));
132133
color: var(--onboard-gray-500, var(--gray-500));
133-
font-family: var(
134-
--onboard-font-family-semibold,
135-
var(--font-family-semibold)
136-
);
137134
font-size: var(--onboard-font-size-6, var(--font-size-6));
138135
line-height: var(--onboard-font-line-height-3, var(--font-line-height-3));
139-
border: 1px solid var(--onboard-gray-500, var(--gray-500));
136+
outline: 1px solid var(--onboard-gray-500, var(--gray-500));
137+
font-weight: 700;
140138
}
141139
</style>
142140

packages/core/src/views/chain/SwitchChain.svelte

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
position: relative;
1919
padding: var(--onboard-spacing-4, var(--spacing-4));
2020
font-family: var(--onboard-font-family-normal, var(--font-family-normal));
21-
line-height: var(--onboard-font-line-height-1, var(--font-line-height-1));
21+
line-height: 16px;
2222
font-size: var(--onboard-font-size-5, var(--font-size-5));
2323
}
2424
@@ -31,16 +31,12 @@
3131
3232
h4 {
3333
font-size: var(--onboard-font-size-3, var(--font-size-3));
34-
font-family: var(
35-
--onboard-font-family-semibold,
36-
var(--font-family-semibold)
37-
);
3834
margin: var(--onboard-spacing-4, var(--spacing-4)) 0;
3935
}
4036
4137
p {
4238
margin: 0 0 var(--onboard-spacing-4, var(--spacing-4)) 0;
43-
max-width: 485px;
39+
max-width: 488px;
4440
}
4541
</style>
4642

packages/core/src/views/connect/ActionRequired.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
width: 300px;
1818
font-family: var(--onboard-font-family-normal, var(--font-family-normal));
1919
font-size: var(--onboard-font-size-5, var(--font-size-5));
20-
line-height: var(--onboard-font-line-height-1, var(--font-line-height-1));
20+
line-height: 24px;
2121
}
2222
2323
.icon-container {
@@ -49,7 +49,7 @@
4949
width: 100%;
5050
background-color: var(--onboard-gray-500, var(--gray-500));
5151
font-weight: 700;
52-
line-height: var(--onboard-font-line-height-3, var(--font-line-height-3));
52+
line-height: 16px;
5353
color: var(--onboard-white, var(--white));
5454
justify-content: center;
5555
}

packages/core/src/views/connect/Agreement.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
align-items: center;
4545
padding: var(--onboard-spacing-4, var(--spacing-4));
4646
font-size: var(--onboard-font-size-6, var(--font-size-6));
47-
line-height: var(--onboard-font-line-height-3, var(--font-line-height-3));
47+
line-height: 24px;
4848
}
4949
5050
label {

packages/core/src/views/connect/ConnectedWallet.svelte

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
}
5252
}
5353
54-
setTimeout(() => connectWallet$.next({ inProgress: false }), 1500)
54+
// setTimeout(() => connectWallet$.next({ inProgress: false }), 1500)
5555
}
5656
5757
updateAccountDetails()
@@ -69,7 +69,7 @@
6969
padding: var(--onboard-spacing-4, var(--spacing-4));
7070
border-radius: 24px;
7171
background: var(--onboard-success-100, var(--success-100));
72-
border: 1px solid var(--onboard-success-600, var(--success-600));
72+
outline: 1px solid var(--onboard-success-600, var(--success-600));
7373
width: 100%;
7474
box-sizing: border-box;
7575
}
@@ -87,7 +87,7 @@
8787
8888
.tick {
8989
display: flex;
90-
color: var(--onboard-black, var(--black));
90+
color: var(--onboard-success-700, var(--success-700));
9191
}
9292
9393
@media all and (max-width: 520px) {
@@ -99,18 +99,20 @@
9999
<div class="icons">
100100
<WalletAppBadge
101101
size={40}
102+
padding={8}
102103
background={appMetadata && appMetadata.icon ? 'lightBlue' : 'lightGray'}
103104
border="darkGreen"
104105
icon={(appMetadata && appMetadata.icon) || defaultAppIcon}
105106
/>
106107

107-
<div style="position: relative; right: 0.85rem;">
108+
<div style="position: relative; right: 0.85rem; top: 2px;">
108109
<SuccessStatusIcon size={17} right={null} />
109110
</div>
110111

111112
<div style="position: relative; right: 0.5rem;">
112113
<WalletAppBadge
113114
size={40}
115+
padding={8}
114116
border="darkGreen"
115117
icon={selectedWallet.icon}
116118
/>
@@ -123,7 +125,7 @@
123125
})}
124126
</div>
125127

126-
<div class="tick" style="width: 17.6px; height: 13.4px;">
128+
<div class="tick" style="width: 20px;">
127129
{@html success}
128130
</div>
129131
</div>

0 commit comments

Comments
 (0)