Skip to content

Commit 48f934a

Browse files
authored
feat: polish multi theme (#38)
* feat: add favicons * feat: refine notification colors * feat: resize favicon
1 parent c3b2f0a commit 48f934a

File tree

7 files changed

+24
-11
lines changed

7 files changed

+24
-11
lines changed

src/app.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
<html lang="en">
33
<head>
44
<meta charset="utf-8" />
5-
<link rel="icon" href="%sveltekit.assets%/favicon.ico" />
65
<meta name="viewport" content="width=device-width" />
76
%sveltekit.head%
87
</head>

src/routes/+layout.svelte

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
appConfiguration,
88
fetchConfiguredNetworks,
99
networks,
10-
selectedNetwork
10+
selectedNetwork,
1111
} from '$lib/evm-toolkit';
1212
import '../app.scss';
1313
@@ -54,17 +54,25 @@
5454
}
5555
}
5656
57-
function getTitleBasedOnSelectedNetwork(_selectedNetwork: INetwork | undefined) : string {
57+
function getTitleBasedOnSelectedNetwork(
58+
_selectedNetwork: INetwork | undefined,
59+
): string {
5860
if (_selectedNetwork) {
5961
return `${_selectedNetwork.text} Toolkit`;
6062
} else {
61-
return 'EVM Toolkit'
63+
return 'EVM Toolkit';
6264
}
6365
}
6466
</script>
6567

6668
<svelte:head>
6769
<title>{getTitleBasedOnSelectedNetwork($selectedNetwork)}</title>
70+
<link
71+
rel="icon"
72+
href="/{$appConfiguration?.theme === Theme.Shimmer
73+
? 'shimmer-fav.ico'
74+
: 'iota-fav.ico'}"
75+
/>
6876
</svelte:head>
6977

7078
{#if isNetworkLoaded}

src/themes/iota-theme.scss

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
html[data-theme="iota"] {
22
--action-primary: #108cff;
33
--action-hover: #108cffe6;
4-
--action-disabled: #7587AB;
4+
--action-disabled: #7587ab;
55
--background-primary: #fff;
6-
--background-secondary: #F2F9FF;
7-
--background-tertiary: #E4EBFA;
6+
--background-secondary: #f2f9ff;
7+
--background-tertiary: #e4ebfa;
88
--background-tertiary-hover: #e4ebfae6;
9-
--color-error: #FF6755;
9+
--color-error: #ff6755;
1010
--color-primary: #fff;
1111
--color-secondary: #7587ab;
1212
--color-default: #000000;
13+
--background-error: rgba(255, 103, 85, 0.15);
14+
--background-success: rgba(16, 140, 255, 0.15);
15+
--background-warning: rgba(117, 135, 171, 0.15);
1316
}

src/themes/shimmer-theme.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,7 @@ html[data-theme="shimmer"] {
1010
--color-primary: #00121F;
1111
--color-secondary: #738795;
1212
--color-default: #ffffff;
13+
--background-error: #e01a4f29;
14+
--background-success: rgba(0, 245, 221, 0.08);
15+
--background-warning: rgba(255, 255, 255, 0.078);
1316
}

static/iota-fav.ico

15 KB
Binary file not shown.
File renamed without changes.

tailwind.config.cjs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ module.exports = {
1515
'color-primary': 'var(--color-primary)',
1616
'color-secondary': 'var(--color-secondary)',
1717
'color-default': 'var(--color-default)',
18-
'background-error': '#e01a4f29',
19-
'background-success': 'rgba(0, 245, 221, 0.08)',
20-
'background-warning': 'rgba(255, 255, 255, 0.078)'
18+
'background-error': 'var(--background-error)',
19+
'background-success': 'var(--background-success)',
20+
'background-warning': 'var(--background-warning)',
2121
},
2222
},
2323
plugins: [],

0 commit comments

Comments
 (0)