Skip to content

Commit 3b9d0c9

Browse files
committed
clean
1 parent c510249 commit 3b9d0c9

File tree

2 files changed

+6
-26
lines changed

2 files changed

+6
-26
lines changed

src/components/Autocomplete.tsx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,12 @@ export function Autocomplete({
2424
useEffect(() => {
2525
const handleKeyDown = (e: KeyboardEvent) => {
2626
if (e.keyCode === 40) {
27-
// Down arrow
2827
e.preventDefault();
2928
onActiveIndexChange(Math.min(activeIndex + 1, suggestions.length - 1));
3029
} else if (e.keyCode === 38) {
31-
// Up arrow
3230
e.preventDefault();
3331
onActiveIndexChange(Math.max(activeIndex - 1, 0));
3432
} else if (e.keyCode === 13) {
35-
// Enter
3633
e.preventDefault();
3734
if (activeIndex >= 0 && activeIndex < suggestions.length) {
3835
const selected = suggestions[activeIndex];
@@ -47,7 +44,6 @@ export function Autocomplete({
4744
return () => window.removeEventListener("keydown", handleKeyDown);
4845
}, [activeIndex, suggestions, onSelect, onActiveIndexChange]);
4946

50-
// Scroll active item into view
5147
useEffect(() => {
5248
if (listRef.current && activeIndex >= 0) {
5349
const activeElement = listRef.current.children[activeIndex] as HTMLElement;

src/styles/theme.ts

Lines changed: 6 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,25 @@
1-
/**
2-
* Design System - Touchdown
3-
*
4-
* Design Philosophy:
5-
* - Straight UI (no border-radius, no curves)
6-
* - Dark theme with high contrast
7-
* - Flat design with minimal shadows
8-
* - Simple, clean typography
9-
*/
10-
111
export const colors = {
12-
// Backgrounds
132
background: "#101110",
143
cellBackground: "#0f222e",
154
autocompleteBackground: "#061219",
165
modalBackground: "#000000",
176

18-
// Text
197
text: "#ffffff",
208
textGray: "#aaaaaa",
219
textPlaceholder: "#647782",
2210

23-
// Accent colors
24-
emphasis: "#ffff00", // yellow
25-
correct: "#008000", // green
26-
wrong: "#ff0000", // red
27-
warning: "#ff4500", // orangered
28-
strong: "#ff7a4a", // orange
11+
emphasis: "#ffff00",
12+
correct: "#008000",
13+
wrong: "#ff0000",
14+
warning: "#ff4500",
15+
strong: "#ff7a4a",
2916

30-
// Borders
3117
border: "#888888",
3218
borderLight: "#585959",
3319

34-
// Interactive states
3520
hover: "#a9a9a9",
36-
active: "#1e90ff", // DodgerBlue
21+
active: "#1e90ff",
3722

38-
// Overlay
3923
overlay: "rgba(0, 0, 0, 0.6)",
4024
} as const;
4125

0 commit comments

Comments
 (0)