diff --git a/bun.lockb b/bun.lockb
index a767a3c..74b7ce0 100755
Binary files a/bun.lockb and b/bun.lockb differ
diff --git a/index.html b/index.html
index bc110c4..0baa710 100644
--- a/index.html
+++ b/index.html
@@ -3,7 +3,7 @@
-
+
Rotation Converter
diff --git a/package.json b/package.json
index dd29374..4b78c52 100644
--- a/package.json
+++ b/package.json
@@ -12,6 +12,7 @@
},
"dependencies": {
"@types/three": "^0.162.0",
+ "@vueuse/core": "^10.9.0",
"three": "^0.162.0",
"vue": "^3.4.15"
},
diff --git a/src/App.vue b/src/App.vue
index 76d7a8e..bb66794 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -7,6 +7,7 @@ import VisMat from './components/VisMat.vue'
import VisQuat from './components/VisQuat.vue'
import Help from './components/Help.vue'
import Links from './components/Links.vue'
+import ColorMode from './components/ColorMode.vue'
provide("isLocal", shallowRef(true))
provide("isEdit", shallowRef(false))
@@ -29,6 +30,7 @@ provide("snapDenom", shallowRef(6))
Rotation Converter
+
diff --git a/src/assets/base.css b/src/assets/base.css
index 40f3274..7cc4895 100644
--- a/src/assets/base.css
+++ b/src/assets/base.css
@@ -46,19 +46,17 @@
--color-text: var(--c-text-dark-2);
}
-/* @media (prefers-color-scheme: light) {
- :root {
- --color-background: var(--c-light-0);
- --color-background-soft: var(--c-light-1);
- --color-background-mute: var(--c-light-2);
+.dark {
+ --color-background: var(--c-light-0);
+ --color-background-soft: var(--c-light-1);
+ --color-background-mute: var(--c-light-2);
- --color-border: var(--c-divider-light-2);
- --color-border-hover: var(--c-divider-light-1);
+ --color-border: var(--c-divider-light-2);
+ --color-border-hover: var(--c-divider-light-1);
- --color-heading: var(--c-text-light-1);
- --color-text: var(--c-text-light-1);
- }
-} */
+ --color-heading: var(--c-text-light-1);
+ --color-text: var(--c-text-light-1);
+}
*,
*::before,
diff --git a/src/components/ColorMode.vue b/src/components/ColorMode.vue
new file mode 100644
index 0000000..368a52c
--- /dev/null
+++ b/src/components/ColorMode.vue
@@ -0,0 +1,36 @@
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/components/icons/IconMoon.vue b/src/components/icons/IconMoon.vue
new file mode 100644
index 0000000..86d53fc
--- /dev/null
+++ b/src/components/icons/IconMoon.vue
@@ -0,0 +1,12 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/components/icons/IconSun.vue b/src/components/icons/IconSun.vue
new file mode 100644
index 0000000..6218bca
--- /dev/null
+++ b/src/components/icons/IconSun.vue
@@ -0,0 +1,12 @@
+
+
+
+
+
+
+
\ No newline at end of file