Skip to content

Commit 9ddb95a

Browse files
committed
Better dropdown select themeing
1 parent ae0fc98 commit 9ddb95a

2 files changed

Lines changed: 25 additions & 1 deletion

File tree

apps/twig/src/renderer/components/ThemeWrapper.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export function ThemeWrapper({ children }: { children: React.ReactNode }) {
2323
return (
2424
<Theme
2525
appearance={isDarkMode ? "dark" : "light"}
26-
accentColor={isDarkMode ? "orange" : "yellow"}
26+
accentColor="slate"
2727
grayColor="slate"
2828
panelBackground="solid"
2929
radius="none"

apps/twig/src/renderer/styles/globals.css

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -931,3 +931,27 @@ button,
931931
[role="button"] {
932932
cursor: pointer;
933933
}
934+
935+
/* Custom hover states for Select/Menu items - slightly lighter than background */
936+
.rt-SelectItem[data-highlighted],
937+
.rt-BaseMenuItem[data-highlighted] {
938+
background-color: var(--gray-4) !important;
939+
}
940+
941+
.dark .rt-SelectItem[data-highlighted],
942+
.dark .rt-BaseMenuItem[data-highlighted],
943+
.dark-theme .rt-SelectItem[data-highlighted],
944+
.dark-theme .rt-BaseMenuItem[data-highlighted] {
945+
background-color: var(--gray-5) !important;
946+
}
947+
948+
/* Select/Menu dropdown background matches theme */
949+
.rt-SelectContent,
950+
.rt-BaseMenuContent {
951+
background-color: var(--gray-2) !important;
952+
}
953+
954+
/* Select trigger matches theme */
955+
.rt-SelectTrigger {
956+
background-color: var(--gray-2) !important;
957+
}

0 commit comments

Comments
 (0)