Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion frontend/index.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html lang="en" data-theme="valentine">
<html lang="en" data-theme="romance-light">
<head>
<meta charset="UTF-8">
<link rel="icon" href="/favicon.ico">
Expand Down
20 changes: 20 additions & 0 deletions frontend/src/components/ThemeSwitcher.vue
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,26 @@
value="aqua"
/>
</li>
<li>
<input
type="radio"
name="theme-dropdown"
class="theme-controller btn btn-sm btn-block btn-ghost justify-start"
aria-label="Romance Light"
value="romance-light"
/>
</li>
<li>
<input
type="radio"
name="theme-dropdown"
class="theme-controller btn btn-sm btn-block btn-ghost justify-start"
aria-label="Romance Dark"
value="romance-dark"
/>
</li>
</ul>
</div>
</template>
<script setup lang="ts">
</script>
4 changes: 3 additions & 1 deletion frontend/tailwind.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import daisyui from 'daisyui'
const romanceLight = require('./themes/romance-light.json');
const romanceDark = require('./themes/romance-dark.json');

/** @type {import('tailwindcss').Config} */
module.exports = {
Expand All @@ -12,6 +14,6 @@ module.exports = {
],
plugins: [daisyui],
daisyui: {
themes: ["dark", "valentine", "sunset", "cyberpunk", "aqua"]
themes: ["dark", "valentine", "sunset", "cyberpunk", "aqua", romanceDark, romanceLight,]
}
};
24 changes: 24 additions & 0 deletions frontend/themes/romance-dark.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"romance-dark": {
"primary": "oklch(70% 0.22 20)",
"primary-content": "oklch(100% 0.01 10)",
"secondary": "oklch(80% 0.12 310)",
"secondary-content": "oklch(30% 0.02 310)",
"accent": "oklch(85% 0.15 200)",
"accent-content": "oklch(30% 0.03 210)",
"neutral": "oklch(40% 0.02 0)",
"neutral-content": "oklch(95% 0.01 0)",
"base-100": "oklch(15% 0.01 20)",
"base-200": "oklch(20% 0.015 20)",
"base-300": "oklch(26% 0.02 20)",
"base-content": "oklch(96% 0.01 0)",
"info": "oklch(80% 0.1 220)",
"success": "oklch(75% 0.15 140)",
"warning": "oklch(80% 0.15 80)",
"error": "oklch(70% 0.2 30)",
"info-content": "oklch(25% 0.05 220)",
"success-content": "oklch(25% 0.05 140)",
"warning-content": "oklch(25% 0.05 80)",
"error-content": "oklch(100% 0.01 0)"
}
}
24 changes: 24 additions & 0 deletions frontend/themes/romance-light.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"romance-light": {
"primary": "oklch(70% 0.22 20)",
"primary-content": "oklch(100% 0.01 10)",
"secondary": "oklch(80% 0.12 310)",
"secondary-content": "oklch(30% 0.02 310)",
"accent": "oklch(85% 0.15 200)",
"accent-content": "oklch(30% 0.03 210)",
"neutral": "oklch(40% 0.02 0)",
"neutral-content": "oklch(95% 0.01 0)",
"base-100": "oklch(98% 0.01 20)",
"base-200": "oklch(96% 0.015 20)",
"base-300": "oklch(93% 0.02 20)",
"base-content": "oklch(30% 0.02 0)",
"info": "oklch(80% 0.1 220)",
"success": "oklch(75% 0.15 140)",
"warning": "oklch(80% 0.15 80)",
"error": "oklch(70% 0.2 30)",
"info-content": "oklch(25% 0.05 220)",
"success-content": "oklch(25% 0.05 140)",
"warning-content": "oklch(25% 0.05 80)",
"error-content": "oklch(100% 0.01 0)"
}
}