🎨 Update theme config

This commit is contained in:
pheralb
2024-01-26 23:57:29 +00:00
parent c06f0adaf8
commit b2caf5c371
2 changed files with 9 additions and 54 deletions
+6 -4
View File
@@ -4,11 +4,12 @@
// Global styles:
import '../app.css';
import { ModeWatcher, mode } from 'mode-watcher';
// Get categories:
import { svgs } from '@/data/svgs';
const categories = svgs
.flatMap((svg) => Array.isArray(svg.category) ? svg.category : [svg.category])
.flatMap((svg) => (Array.isArray(svg.category) ? svg.category : [svg.category]))
.filter((category, index, array) => array.indexOf(category) === index);
// Toaster:
@@ -23,6 +24,7 @@
import { cn } from '@/utils/cn';
</script>
<ModeWatcher />
<Navbar currentPath={data.pathname} />
<main>
<aside
@@ -74,9 +76,9 @@
toastOptions={{
class: 'font-sans',
descriptionClass: 'font-mono',
style: `background-color: #262626;
color: #ffff;
border-radius: 0.4rem; border: 1px solid #121212;`
style: `background-color: ${$mode === 'light' ? '#f5f5f5' : '#262626'};
color: ${$mode === 'light' ? '#121212' : '#ffff'};
border-radius: 0.4rem; border: 1px solid ${$mode === 'light' ? '#d4d4d4' : '#404040'};`
}}
/>
</div>