diff --git a/public/base.css b/public/base.css index d9c54d5..8e5c01e 100644 --- a/public/base.css +++ b/public/base.css @@ -1,23 +1,31 @@ + /* Dark mode default */ :root { - --bg: #323232; - --text: #efe; - --accent: #fa0 ; - --border-subtle: #555; - --border-normal: #888; - --border-highlight: #bbb; + --base-color: #fa0; + + --bg: hsl(from var(--base-color) h 20% 7.5%); + + --text: hsl(from var(--base-color) h 5% 100% ); + --accent: hsl(from var(--base-color) h clamp( 0, calc(s + 10), 100 ) clamp( 0, calc(l + 20), 100 ) ); + + --border-subtle: hsl(from var(--base-color) h 50% 25%); + --border-normal: hsl(from var(--base-color) h 50% 50%); + --border-highlight: hsl(from var(--base-color) h 50% 75%); + --icon-scale: 1; --border-radius: 4px; } @media (prefers-color-scheme: light) { :root { - --bg: #f0f0f0; - --text: #121212; - --accent: #c80; - --border-subtle: #bbb; - --border-normal: #888; - --border-highlight: #555; + --bg: hsl(from var(--base-color) h 20% 95%); + + --text: hsl(from var(--base-color) h 5% 5% ); + --accent: hsl(from var(--base-color) h calc(s + 10) calc(l + 20) ); + + --border-subtle: hsl(from var(--base-color) h 50% 90%); + --border-normal: hsl(from var(--base-color) h 50% 50%); + --border-highlight: hsl(from var var(--base-color) h 50% 25%); } } diff --git a/public/index.html b/public/index.html index e15c789..14b14b5 100644 --- a/public/index.html +++ b/public/index.html @@ -22,10 +22,121 @@ - +
+ + + +
diff --git a/public/js/audioplayer.js b/public/js/audioplayer.js index faf00ea..0de8d49 100644 --- a/public/js/audioplayer.js +++ b/public/js/audioplayer.js @@ -146,9 +146,9 @@ new MutationObserver((mutations) => { VIZ_RGB = window .getComputedStyle(CANVAS) - .color.slice(4, -1) - .split(",") - .map((v) => parseInt(v)); + .color.slice(11, -1) + .split(/[ ,]/) + .map((v) => parseInt(Math.min(v * 255, 255))); ACTX = ACTX ?? new AudioContext(); diff --git a/public/sidebar/sidebar.html b/public/sidebar/sidebar.html new file mode 100644 index 0000000..a97b32f --- /dev/null +++ b/public/sidebar/sidebar.html @@ -0,0 +1,191 @@ + + + + + diff --git a/public/tabs/calendar/calendar.html b/public/tabs/calendar/calendar.html index a791f90..a816533 100644 --- a/public/tabs/calendar/calendar.html +++ b/public/tabs/calendar/calendar.html @@ -4,7 +4,7 @@ name="top-level-tabs" id="calendar-tab-input" class="tab-switch" - data-hash="/calendar" + data-view="calendar" />