renamed alfdir to katlum
All checks were successful
Build and Deploy Nuxt / build (push) Successful in 35s
All checks were successful
Build and Deploy Nuxt / build (push) Successful in 35s
This commit is contained in:
@@ -22,7 +22,7 @@ $themes: (
|
||||
);
|
||||
|
||||
$accents: (
|
||||
alfdir: (
|
||||
katlum: (
|
||||
link: #a4dddb,
|
||||
),
|
||||
solus: (
|
||||
@@ -44,15 +44,15 @@ $accents: (
|
||||
|
||||
:root {
|
||||
@include theme-vars(map.get($themes, dark));
|
||||
@include accent-vars(map.get($accents, alfdir));
|
||||
@include accent-vars(map.get($accents, katlum));
|
||||
}
|
||||
|
||||
[data-theme="light"] {
|
||||
@include theme-vars(map.get($themes, light));
|
||||
}
|
||||
|
||||
[data-accent="alfdir"] {
|
||||
@include accent-vars(map.get($accents, alfdir));
|
||||
[data-accent="katlum"] {
|
||||
@include accent-vars(map.get($accents, katlum));
|
||||
}
|
||||
|
||||
[data-accent="solus"] {
|
||||
|
||||
@@ -58,14 +58,21 @@ onUnmounted(() => {
|
||||
</div>
|
||||
<div class="divider"></div>
|
||||
<div class="menu-section">
|
||||
<div :class="{'menu-item': true, 'active': accent === 'alfdir' }" @click="setAccent('alfdir')">
|
||||
<div class="circle alfdir"></div>Alfdir
|
||||
<div :class="{'menu-item': true, 'active': accent === 'katlum' }" @click="setAccent('katlum')">
|
||||
<div class="circle katlum"></div>Katlum
|
||||
</div>
|
||||
<!--
|
||||
<div :class="{'menu-item': true, 'active': accent === 'solus' }" @click="setAccent('solus')">
|
||||
<div class="circle solus"></div>Solus
|
||||
</div>
|
||||
-->
|
||||
<div :class="{'menu-item': true, 'active': accent === 'silang' }" @click="setAccent('silang')">
|
||||
<div class="circle silang"></div>Silang
|
||||
</div>
|
||||
<div :class="{'menu-item': true, 'active': accent === 'nozt' }" @click="setAccent('nozt')">
|
||||
<div class="circle nozt"></div>Nozt
|
||||
</div>
|
||||
<div :class="{'menu-item': true, 'active': accent === 'albor' }" @click="setAccent('albor')">
|
||||
<div class="circle albor"></div>Albor
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -89,12 +96,21 @@ onUnmounted(() => {
|
||||
&.light {
|
||||
background-color: rgb(232, 232, 232);
|
||||
}
|
||||
&.alfdir {
|
||||
&.katlum {
|
||||
background-color: #4f8fba;
|
||||
}
|
||||
&.solus {
|
||||
background-color: #e9a02b;
|
||||
}
|
||||
&.silang {
|
||||
background-color: #a82bcb;
|
||||
}
|
||||
&.nozt {
|
||||
background-color: #dc4242;
|
||||
}
|
||||
&.albor {
|
||||
background-color: #5cd864;
|
||||
}
|
||||
}
|
||||
|
||||
/* Container */
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import { ref, onMounted, watch } from 'vue'
|
||||
|
||||
type Theme = 'light' | 'dark'
|
||||
type Accent = 'alfdir'
|
||||
type Accent = 'katlum'
|
||||
|
||||
const theme = ref<Theme>('light')
|
||||
const accent = ref<Accent>('alfdir')
|
||||
const accent = ref<Accent>('katlum')
|
||||
|
||||
const applyTheme = () => {
|
||||
document.documentElement.setAttribute('data-theme', theme.value)
|
||||
@@ -30,7 +30,7 @@ const setupTheme = () => {
|
||||
const media = window.matchMedia('(prefers-color-scheme: dark)')
|
||||
|
||||
theme.value = savedTheme || (media.matches ? 'dark' : 'light')
|
||||
accent.value = savedAccent || 'alfdir'
|
||||
accent.value = savedAccent || 'katlum'
|
||||
|
||||
applyTheme()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user