Skip to content

Commit

Permalink
Merge pull request #35 from abhaykv04/dev
Browse files Browse the repository at this point in the history
Dark Theme
  • Loading branch information
abhaykumarvats authored Jan 15, 2023
2 parents 2ec7386 + e81b120 commit c40f925
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 9 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "fifo",
"version": "1.7.0",
"version": "1.8.0",
"private": true,
"scripts": {
"dev": "vite dev",
Expand Down
23 changes: 19 additions & 4 deletions src/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

@layer base {
html {
@apply bg-orange-50 text-orange-600;
@apply bg-orange-50 dark:bg-stone-900 text-orange-600 dark:text-orange-50;
}

h1 {
Expand All @@ -16,15 +16,15 @@
}

select {
@apply bg-orange-50;
@apply bg-orange-50 dark:bg-stone-900;
}

.filled {
@apply inline-block text-center text-xl bg-orange-600 text-orange-50 rounded-full p-3;
@apply inline-block text-center text-xl bg-orange-600 dark:bg-orange-50 text-orange-50 dark:text-stone-900 rounded-full p-3;
}

.outlined {
@apply inline-block text-center text-xl rounded-full p-3 text-orange-600 bg-orange-50 border-4 border-orange-600;
@apply inline-block text-center text-xl rounded-full p-3 text-orange-600 dark:text-orange-50 bg-orange-50 dark:bg-stone-900 border-4 border-orange-600 dark:border-orange-50;
}
}

Expand All @@ -42,3 +42,18 @@
border-top-color: #ea580c;
border-left-color: #ea580c;
}

@media (prefers-color-scheme: dark) {
#nprogress .bar {
background: #fff7ed;
}

#nprogress .peg {
box-shadow: 0 0 10px #fff7ed, 0 0 5px #fff7ed;
}

#nprogress .spinner-icon {
border-top-color: #fff7ed;
border-left-color: #fff7ed;
}
}
4 changes: 3 additions & 1 deletion src/lib/Divider.svelte
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
<div class="w-full h-1 border-dashed border-t-4 border-orange-200" />
<div
class="w-full h-1 border-dashed border-t-4 border-orange-200 dark:border-orange-50"
/>
4 changes: 3 additions & 1 deletion src/routes/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@
<slot />
</main>

<footer class="py-2 fixed bottom-0 bg-orange-50 w-full text-center text-xs">
<footer
class="py-2 fixed bottom-0 bg-orange-50 dark:bg-stone-900 w-full text-center text-xs"
>
{#if $appLanguage === "EN"}
Made with
<span class="cursor-help" title="🧡 = SvelteKit + Tailwind + TypeScript">
Expand Down

1 comment on commit c40f925

@vercel
Copy link

@vercel vercel bot commented on c40f925 Jan 15, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

fifo – ./

fifo-abhayvats.vercel.app
fifo-git-master-abhayvats.vercel.app
simplyfifo.vercel.app

Please sign in to comment.