Skip to content

Commit 3903afe

Browse files
authored
Merge pull request #8 from appwrite-labs/fix-rebrand-css
Updated based on QA
2 parents 1184ad3 + e86be79 commit 3903afe

30 files changed

+1279
-824
lines changed

src/app.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<meta charset="utf-8" />
55
<meta name="description" content="" />
6-
<link rel="icon" href="/favicon.png" />
6+
<link rel="icon" type="image/svg+xml" href="/logos/appwrite-icon.svg" />
77
<link
88
rel="preload"
99
href="/fonts/inter/inter-v8-latin-600.woff2"

src/lib/commandCenter/panels/template.svelte

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -381,17 +381,21 @@
381381
}
382382
383383
:global(.theme-dark) .card {
384-
--cmd-center-bg: rgba(27, 27, 40, 0.8);
384+
--cmd-center-bg: hsl(var(--color-neutral-100-new));
385385
--cmd-center-border: hsl(var(--color-neutral-150));
386-
--cmd-center-shadow: 0px 16px 32px 0px #14141f;
386+
--cmd-center-shadow: 0px 16px 32px 0px hsl(var(--color-neutral-110-new));
387387
388388
--kbd-bg: hsl(var(--color-neutral-150));
389389
390390
--crumb-bg: hsl(var(--color-neutral-150));
391391
--crumb-color: hsl(var(--color-neutral-30));
392392
393393
--result-bg: hsl(var(--color-neutral-200));
394-
--footer-bg: linear-gradient(180deg, #1b1b28 0%, #282a3b 100%);
394+
--footer-bg: linear-gradient(
395+
180deg,
396+
hsl(var(--color-neutral-100-new)) 0%,
397+
hsl(var(--color-neutral-85-new)) 100%
398+
);
395399
396400
--icon-color: hsl(var(--color-neutral-70));
397401
--label-color: hsl(var(--color-neutral-30));

src/lib/components/avatar.svelte

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,14 @@
22
export let size: number;
33
export let src: string;
44
export let name: string;
5+
export let color: string;
56
</script>
67

78
<img
89
width={size}
910
height={size}
1011
class="avatar"
11-
style="--size: {size / 16}rem"
12+
style="--size: {size / 16}rem; background-color: {color};"
1213
{src}
1314
title={name}
1415
alt={name} />

src/lib/components/avatarInitials.svelte

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@
55
export let name: string;
66
export let size: number;
77
export let background: string | undefined = undefined;
8+
export let color: string = 'black';
89
910
$: src = sdk.forConsole.avatars.getInitials(name, size * 2, size * 2, background).toString();
1011
</script>
1112

12-
<Avatar {name} {size} {src} />
13+
<Avatar {name} {size} {src} {color} />

src/lib/components/empty.svelte

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,9 @@
2929
on:click={track}
3030
aria-label={`create {target}`}>
3131
{#if $app.themeInUse === 'dark'}
32-
<img src={EmptyDark} alt="create" aria-hidden="true" height="124" width="215" />
32+
<img src={EmptyDark} alt="create" aria-hidden="true" width="376" />
3333
{:else}
34-
<img
35-
src={EmptyLight}
36-
alt="create"
37-
aria-hidden="true"
38-
height="124"
39-
width="215" />
34+
<img src={EmptyLight} alt="create" aria-hidden="true" width="376" />
4035
{/if}
4136
</button>
4237
<slot>

src/lib/elements/forms/button.svelte

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -77,17 +77,3 @@
7777
<slot />
7878
</button>
7979
{/if}
80-
81-
<style lang="scss">
82-
.is-github {
83-
background-color: #373b4d;
84-
85-
&:hover {
86-
background-color: lighten($color: #373b4d, $amount: 2.5);
87-
}
88-
89-
&:active {
90-
background-color: darken($color: #373b4d, $amount: 5);
91-
}
92-
}
93-
</style>

src/lib/images/empty-dark.svg

Lines changed: 123 additions & 1 deletion
Loading

src/lib/images/empty-light.svg

Lines changed: 122 additions & 1 deletion
Loading

src/lib/images/search-dark.svg

Lines changed: 114 additions & 1 deletion
Loading

src/lib/images/search-light.svg

Lines changed: 147 additions & 1 deletion
Loading

0 commit comments

Comments
 (0)