Skip to content

Commit e749bf5

Browse files
Copilot0xrinegade
andcommitted
Enhance blueprint theme with advanced technical drawing features and set as default theme
Co-authored-by: 0xrinegade <[email protected]>
1 parent 84c9c86 commit e749bf5

File tree

2 files changed

+630
-112
lines changed

2 files changed

+630
-112
lines changed

src/components/ThemeSelector.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
import React, { useState, useRef, useEffect, useCallback, useMemo } from 'react';
22

33
const ThemeSelector = () => {
4-
const [selectedTheme, setSelectedTheme] = useState('grayscale');
4+
const [selectedTheme, setSelectedTheme] = useState('blueprint');
55
const [isOpen, setIsOpen] = useState(false);
66
const dropdownRef = useRef(null);
77

88
// Available themes - memoized to prevent recreating on each render
99
const themes = useMemo(() => [
10+
{ key: 'blueprint', label: 'BLUEPRINT', description: 'Enhanced technical drawing style' },
1011
{ key: 'grayscale', label: 'GRAYSCALE', description: 'Monospace ASCII terminal style' },
1112
{ key: 'corporate', label: 'CORPORATE', description: 'Clean blue professional design' },
1213
{ key: 'retro', label: 'RETRO', description: '80s neon cyberpunk aesthetic' },
@@ -16,7 +17,6 @@ const ThemeSelector = () => {
1617
{ key: 'organic', label: 'ORGANIC', description: 'Earth tones natural design' },
1718
{ key: 'high-contrast', label: 'HIGH CONTRAST', description: 'Accessibility black/white' },
1819
{ key: 'pastel', label: 'PASTEL', description: 'Soft colors gentle design' },
19-
{ key: 'blueprint', label: 'BLUEPRINT', description: 'Technical drawing style' },
2020
], []);
2121

2222
// Define applyTheme before any useEffect that uses it
@@ -41,7 +41,7 @@ const ThemeSelector = () => {
4141

4242
useEffect(() => {
4343
// Load saved theme from localStorage
44-
const savedTheme = localStorage.getItem('theme') || 'grayscale';
44+
const savedTheme = localStorage.getItem('theme') || 'blueprint';
4545
setSelectedTheme(savedTheme);
4646
applyTheme(savedTheme);
4747
}, [applyTheme]);

0 commit comments

Comments
 (0)