Skip to content
Draft
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
46 changes: 45 additions & 1 deletion devussy-web/src/app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -575,4 +575,48 @@
[data-theme="bliss"] *:focus-visible {
outline: 1px dotted #000000;
outline-offset: 2px;
}
}

/* Theme: Cyberpunk */
[data-theme="cyberpunk"] {
--background: #0d0221;
--foreground: #00f0ff;
--card: rgba(1, 22, 39, 0.8);
--card-foreground: #f0f;
--popover: #011627;
--popover-foreground: #00f0ff;
--primary: #f0f;
--primary-foreground: #0d0221;
--secondary: #00f0ff;
--secondary-foreground: #0d0221;
--muted: #011627;
--muted-foreground: #00f0ff;
--accent: #f0f;
--accent-foreground: #0d0221;
--destructive: #ff3333;
--border: #f0f;
--input: #011627;
--ring: #f0f;
}

/* Theme: Retro */
[data-theme="retro"] {
--background: #f1f1f1;
--foreground: #333;
--card: #fff;
--card-foreground: #333;
--popover: #fff;
--popover-foreground: #333;
--primary: #ff5722;
--primary-foreground: #fff;
--secondary: #ffc107;
--secondary-foreground: #333;
--muted: #eee;
--muted-foreground: #666;
--accent: #ff9800;
--accent-foreground: #fff;
--destructive: #f44336;
--border: #ccc;
--input: #fff;
--ring: #ff5722;
}
4 changes: 2 additions & 2 deletions devussy-web/src/components/theme/ThemeProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import React, { createContext, useContext, useEffect, useState } from 'react';

export type Theme = 'default' | 'terminal' | 'bliss';
export type Theme = 'default' | 'terminal' | 'bliss' | 'cyberpunk' | 'retro';

interface ThemeContextType {
theme: Theme;
Expand All @@ -19,7 +19,7 @@ export function ThemeProvider({ children }: { children: React.ReactNode }) {
setMounted(true);
// Load theme from localStorage
const savedTheme = localStorage.getItem('devussy-theme') as Theme;
if (savedTheme && ['default', 'terminal', 'bliss'].includes(savedTheme)) {
if (savedTheme && ['default', 'terminal', 'bliss', 'cyberpunk', 'retro'].includes(savedTheme)) {
setThemeState(savedTheme);
document.documentElement.setAttribute('data-theme', savedTheme);
}
Expand Down
4 changes: 3 additions & 1 deletion devussy-web/src/components/theme/ThemeToggle.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
'use client';

import { useTheme, Theme } from './ThemeProvider';
import { Monitor, Terminal, Image } from 'lucide-react';
import { Monitor, Terminal, Image, Cpu, Ghost } from 'lucide-react';

const themes: { value: Theme; label: string; icon: React.ReactNode }[] = [
{ value: 'default', label: 'Default', icon: <Monitor className="w-4 h-4" /> },
{ value: 'terminal', label: 'Terminal', icon: <Terminal className="w-4 h-4" /> },
{ value: 'bliss', label: 'Bliss', icon: <Image className="w-4 h-4" /> },
{ value: 'cyberpunk', label: 'Cyberpunk', icon: <Cpu className="w-4 h-4" /> },
{ value: 'retro', label: 'Retro', icon: <Ghost className="w-4 h-4" /> },
];

export function ThemeToggle() {
Expand Down