diff --git a/src/assets/icons/chevron-down.svg b/src/assets/icons/chevron-down.svg new file mode 100644 index 0000000..29beb9d --- /dev/null +++ b/src/assets/icons/chevron-down.svg @@ -0,0 +1,26 @@ + + + + + \ No newline at end of file diff --git a/src/assets/icons/circle-black-white.svg b/src/assets/icons/circle-black-white.svg new file mode 100644 index 0000000..9cff73c --- /dev/null +++ b/src/assets/icons/circle-black-white.svg @@ -0,0 +1,38 @@ + + + + + + \ No newline at end of file diff --git a/src/assets/icons/crescent-moon.svg b/src/assets/icons/crescent-moon.svg new file mode 100644 index 0000000..e2fb3b1 --- /dev/null +++ b/src/assets/icons/crescent-moon.svg @@ -0,0 +1,36 @@ + + + + + \ No newline at end of file diff --git a/src/assets/icons/sun.svg b/src/assets/icons/sun.svg new file mode 100644 index 0000000..8ee19b7 --- /dev/null +++ b/src/assets/icons/sun.svg @@ -0,0 +1,45 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/features/colorScheme/components/ColorSchemeButton.vue b/src/features/colorScheme/components/ColorSchemeButton.vue index 7f4e47e..4f4c228 100644 --- a/src/features/colorScheme/components/ColorSchemeButton.vue +++ b/src/features/colorScheme/components/ColorSchemeButton.vue @@ -15,6 +15,8 @@ limitations under the License. --> + + + + \ No newline at end of file diff --git a/src/styles/variables/colors.css b/src/styles/variables/colors.css index e79a738..cc2b21f 100644 --- a/src/styles/variables/colors.css +++ b/src/styles/variables/colors.css @@ -82,6 +82,8 @@ limitations under the License. --blue-box-shadow: oklch(0.52 0.15 268 / 0.25); --light-hover: var(--light-d-2); + + --invert: invert(0); } @media (prefers-color-scheme: dark) { @@ -114,6 +116,8 @@ limitations under the License. --gray-box-shadow: oklch(0.25 0.0001 271 / 0.7); --light-hover: var(--light-d-5); + + --invert: invert(1); } } @@ -146,4 +150,6 @@ limitations under the License. --gray-box-shadow: oklch(0.25 0.0001 271 / 0.7); --light-hover: var(--light-d-5); + + --invert: invert(1); } \ No newline at end of file diff --git a/src/utils/cssDimensions.js b/src/utils/cssDimensions.js new file mode 100644 index 0000000..ec1521d --- /dev/null +++ b/src/utils/cssDimensions.js @@ -0,0 +1,31 @@ +/* +Copyright 2026 Seekra + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +export const ensureUnit = function (d) { + if (!d) d = 0; + + // ensure that it is a string + if (typeof d === 'number') d = d.toString(); + + if (d === '') d = '0'; + + // if it ends with a number + if (/\d$/.test(d)) { + d += 'px'; + }; + + return d; +}; \ No newline at end of file