-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix page slow api call, update openai prompt and added theme for dark…
…/light mode
- Loading branch information
1 parent
6cfc64e
commit 06f15fc
Showing
8 changed files
with
125 additions
and
62 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
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,66 @@ | ||
import { extendTheme } from "@chakra-ui/react"; | ||
|
||
const theme = extendTheme({ | ||
colors: { | ||
text: { | ||
light: "#0d0702", | ||
dark: "#fdf7f2", | ||
}, | ||
background: { | ||
light: "#ffffff", | ||
dark: "#000000", | ||
}, | ||
primary: { | ||
light: "#6aabec", | ||
dark: "#135495", | ||
}, | ||
secondary: { | ||
light: "#c5c5f7", | ||
dark: "#08083a", | ||
}, | ||
accent: { | ||
light: "#1cd4d4", | ||
dark: "#2be3e3", | ||
}, | ||
border: { | ||
light: "#e0e0e0", | ||
dark: "#1a1a1a", | ||
}, | ||
}, | ||
styles: { | ||
global: ({ colorMode }: { colorMode: string }) => ({ | ||
"html, body": { | ||
bg: colorMode === "dark" ? "background.dark" : "background.light", | ||
lineHeight: "1.5", | ||
}, | ||
"*": { | ||
color: colorMode === "dark" ? "text.dark" : "text.light", | ||
transition: "color 0.2s", | ||
}, | ||
"button, input, textarea, select": { | ||
transition: "all 0.2s", | ||
}, | ||
hr: { | ||
borderColor: colorMode === "dark" ? "border.dark" : "border.light", | ||
}, | ||
}), | ||
}, | ||
fonts: { | ||
body: "Segoe UI, Poppins, Noto Sans Old North Arabian, sans-serif", | ||
heading: "Segoe UI, Poppins, Noto Sans Old North Arabian, sans-serif", | ||
mono: "Segoe UI, Poppins, Noto Sans Old North Arabian, sans-serif", | ||
}, | ||
components: { | ||
Divider: { | ||
baseStyle: ({ colorMode }: { colorMode: string }) => ({ | ||
borderColor: colorMode === "dark" ? "border.dark" : "border.light", | ||
}), | ||
}, | ||
}, | ||
config: { | ||
initialColorMode: "light", | ||
useSystemColorMode: false, | ||
}, | ||
}); | ||
|
||
export default theme; |
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