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