Skip to content

Commit

Permalink
Use variables for colors
Browse files Browse the repository at this point in the history
  • Loading branch information
kkosiorowska committed Dec 11, 2023
1 parent 9f2e4c1 commit 8cbb73b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 10 deletions.
3 changes: 1 addition & 2 deletions dapp/src/components/ModalOverlay/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ export default function ModalOverlay() {
w="100vw"
h="100vh"
position="fixed"
// TODO: Use the correct variables
bg="#F3E5C1"
bg="gold.300"
opacity={modalType ? 1 : 0}
zIndex="overlay"
// Hide the element when it is no longer needed.
Expand Down
6 changes: 2 additions & 4 deletions dapp/src/theme/Drawer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,15 @@ const Drawer: ComponentSingleStyleConfig = {
zIndex: "drawer",
},
overlay: {
// TODO: Use the correct variables
bg: "#F3E5C1",
bg: "gold.300",
},
dialog: {
borderTop: "2px",
borderLeft: "2px",
boxShadow: "none",
borderColor: "white",
borderTopLeftRadius: "xl",
// TODO: Use the correct variables
bg: "#F8EFDA",
bg: "gold.200",
},
},
}
Expand Down
6 changes: 2 additions & 4 deletions dapp/src/theme/Modal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,13 @@ const Modal: ComponentSingleStyleConfig = {
boxShadow: "none",
borderColor: "white",
borderRadius: "xl",
// TODO: Use the correct variables
bg: "#FBF7EC",
bg: "gold.100",
},
closeButton: {
top: -10,
right: -10,
rounded: "100%",
// TODO: Use the correct variables
bg: "#FBF7EC",
bg: "gold.100",
},
},
}
Expand Down

0 comments on commit 8cbb73b

Please sign in to comment.