feat(frontend): add design tokens, dark mode hook, and i18n scaffold
Part of the Ombrora Convert redesign (Task 1/5).
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
import { Moon, Sun } from '@phosphor-icons/react';
|
||||
|
||||
export function ThemeToggle({ theme, onToggle, label }) {
|
||||
const isDark = theme === 'dark';
|
||||
return (
|
||||
<button type="button" className="theme-toggle" onClick={onToggle} aria-label={label} aria-pressed={isDark}>
|
||||
{isDark ? <Sun size={20} weight="regular" /> : <Moon size={20} weight="regular" />}
|
||||
</button>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user