-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
There have been many changes in the designs. This PR updates the styles to the current design. Not everything is fully defined in the style guide yet, but let's keep it up to date. The scope of the changes includes the addition of themes for individual components and minor visual improvements. <img width="1441" alt="Screenshot 2023-12-11 at 14 14 54" src="https://github.com/thesis/acre/assets/23117945/0d219770-5244-4d0c-bc39-c754c2df3106">
- Loading branch information
Showing
13 changed files
with
162 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import React from "react" | ||
import { createIcon } from "@chakra-ui/react" | ||
|
||
export const ArrowUpRight = createIcon({ | ||
displayName: "ArrowUpRight", | ||
viewBox: "0 0 16 17", | ||
path: ( | ||
<path | ||
d="M4.66602 11.8346L11.3327 5.16797M11.3327 5.16797H4.66602M11.3327 5.16797V11.8346" | ||
stroke="currentcolor" | ||
strokeWidth="1.5" | ||
strokeLinecap="round" | ||
strokeLinejoin="round" | ||
/> | ||
), | ||
}) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
export * from "./Info" | ||
export * from "./Bitcoin" | ||
export * from "./Ethereum" | ||
export * from "./ChevronRight" | ||
export * from "./ArrowUpRight" | ||
export * from "./AcreLogo" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { ComponentSingleStyleConfig } from "@chakra-ui/react" | ||
|
||
const Card: ComponentSingleStyleConfig = { | ||
baseStyle: { | ||
container: { | ||
boxShadow: "none", | ||
borderWidth: "2px", | ||
borderColor: "gold.100", | ||
borderRadius: "xl", | ||
bg: "gold.200", | ||
}, | ||
}, | ||
} | ||
|
||
export default Card |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { | ||
ComponentSingleStyleConfig, | ||
Tooltip as ChakraTooltip, | ||
cssVar, | ||
} from "@chakra-ui/react" | ||
|
||
// Currently, there is no possibility to set all tooltips with hasArrow by | ||
// defaultProps. Let's override the defaultProps as follows. | ||
ChakraTooltip.defaultProps = { ...ChakraTooltip.defaultProps, hasArrow: true } | ||
|
||
// To make the arrow the same color as the background, the css variable needs to | ||
// be set correctly. | ||
// More info: | ||
// https://github.com/chakra-ui/chakra-ui/issues/4695#issuecomment-991023319 | ||
const $arrowBg = cssVar("popper-arrow-bg") | ||
|
||
const Tooltip: ComponentSingleStyleConfig = { | ||
baseStyle: { | ||
borderRadius: "md", | ||
bg: "grey.700", | ||
[$arrowBg.variable]: "colors.grey.700", | ||
}, | ||
} | ||
|
||
export default Tooltip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters