Refactor connecting more of theme.js

This commit is contained in:
2026-10-19 14:59:01 -07:00
parent c810056d67
commit bd5e02ac1b
2 changed files with 11 additions and 9 deletions
@@ -38,9 +38,11 @@ export function SettingsButton() {
const [canScrollRight, setCanScrollRight] = useState(false); const [canScrollRight, setCanScrollRight] = useState(false);
// Pull the glass container styles for the dropdown and modal // Pull the glass container styles for the dropdown and modal
const panelRecipe = useSlotRecipe({key: "glassPanel"}); const popoverRecipe = useSlotRecipe({ key: "glassPopover" });
const panelStyles = panelRecipe({layout: "dropdown"}); const popoverStyles = popoverRecipe();
const modalStyles = panelRecipe({layout: "popover"});
const dialogRecipe = useSlotRecipe({ key: "glassDialog" });
const dialogStyles = dialogRecipe();
const [isLibraryOpen, setIsLibraryOpen] = useState(false); const [isLibraryOpen, setIsLibraryOpen] = useState(false);
@@ -130,7 +132,7 @@ export function SettingsButton() {
</Menu.Trigger> </Menu.Trigger>
<Menu.Positioner> <Menu.Positioner>
<Menu.Content css={panelStyles.root} zIndex="dropdown" minW="200px"> <Menu.Content css={popoverStyles.content} zIndex="dropdown" minW="200px">
<Menu.Item <Menu.Item
onClick={enterEditMode} onClick={enterEditMode}
cursor="pointer" cursor="pointer"
@@ -168,12 +170,13 @@ export function SettingsButton() {
{/* Soft blur can be added to the background behind the modal */} {/* Soft blur can be added to the background behind the modal */}
{/*<Dialog.Backdrop bg="blackAlpha.100" backdropFilter="blur(2px)"/>*/} {/*<Dialog.Backdrop bg="blackAlpha.100" backdropFilter="blur(2px)"/>*/}
<Dialog.Positioner> <Dialog.Positioner>
<Dialog.Content css={modalStyles.root}> <Dialog.Content css={dialogStyles.content}>
<Dialog.Header>
<Dialog.Header css={dialogStyles.header}>
<Dialog.Title>Widgets Shop</Dialog.Title> <Dialog.Title>Widgets Shop</Dialog.Title>
</Dialog.Header> </Dialog.Header>
<Dialog.Body> <Dialog.Body css={dialogStyles.body}>
<Tabs.Root defaultValue={categories[0]} variant="unstyled"> <Tabs.Root defaultValue={categories[0]} variant="unstyled">
{/* HORIZONTAL SCROLLABLE MENU OF WIDGET CATEGORIES */} {/* HORIZONTAL SCROLLABLE MENU OF WIDGET CATEGORIES */}
<Box> <Box>
@@ -246,7 +249,6 @@ export function SettingsButton() {
h="24px" h="24px"
flexShrink={0} flexShrink={0}
borderRadius="full" borderRadius="full"
// bg={{base: "blue.50", _dark: "whiteAlpha.200"}}
fontWeight="black" fontWeight="black"
fontSize="xs" fontSize="xs"
bg='transparent' bg='transparent'
+1 -1
View File
@@ -566,7 +566,7 @@ const config = defineConfig({
semanticTokens: { semanticTokens: {
colors: { colors: {
text: { value: { base: "#000000", _dark: "#FFFFFF" } }, text: { value: { base: "#000000", _dark: "#FFFFFF" } },
textInverted: { value: { base: "#FFFFFF", _dark: "#000000" } }, // Fixed: Properly inverted textInverted: { value: { base: "#000000", _dark: "#FFFFFF" } }, // Fixed: Properly inverted
MainBackground: { value: { base: "#F9F9F9", _dark: "#141414" } }, MainBackground: { value: { base: "#F9F9F9", _dark: "#141414" } },
titleColor: { value: { base: "gray.800", _dark: "#FFFFFF" } }, titleColor: { value: { base: "gray.800", _dark: "#FFFFFF" } },
iconColor: { value: { base: "gray.600", _dark: "gray.300" } }, // Fixed: Visible in dark mode iconColor: { value: { base: "gray.600", _dark: "gray.300" } }, // Fixed: Visible in dark mode