Skip to content

Commit

Permalink
chore: colors
Browse files Browse the repository at this point in the history
  • Loading branch information
bluecco committed Jun 5, 2024
1 parent 904901d commit c5d2f17
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 18 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -128,3 +128,4 @@ dist
.yarn/build-state.yml
.yarn/install-state.gz
.pnp.*
.vercel
4 changes: 2 additions & 2 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Box } from "@chakra-ui/react"
import type { Metadata } from "next"
import { Inter } from "next/font/google"
import { Providers } from "./providers"
import { Box } from "@chakra-ui/react"

const inter = Inter({ subsets: ["latin"] })

Expand All @@ -17,7 +17,7 @@ export default function RootLayout({
}>) {
return (
<html lang="en">
<Box as="body" className={inter.className} bgColor="#f0f0f0">
<Box as="body" className={inter.className}>
<Providers>{children}</Providers>
</Box>
</html>
Expand Down
35 changes: 19 additions & 16 deletions src/components/Section.tsx
Original file line number Diff line number Diff line change
@@ -1,20 +1,23 @@
import { Flex } from "@chakra-ui/react"
import { Flex, useColorModeValue } from "@chakra-ui/react"
import { FC, PropsWithChildren } from "react"

const Section: FC<PropsWithChildren> = ({ children }) => (
<Flex
bg="white"
flexDir="column"
gap="2"
w="full"
border="solid 1px"
borderColor="neutrals.300"
borderRadius="12"
p="4"
h="fit-content"
>
{children}
</Flex>
)
const Section: FC<PropsWithChildren> = ({ children }) => {
const values = useColorModeValue("neutrals.100", "neutrals.800")
return (
<Flex
bg={values}
flexDir="column"
gap="2"
w="full"
border="solid 1px"
borderColor="neutrals.300"
borderRadius="12"
p="4"
h="fit-content"
>
{children}
</Flex>
)
}

export { Section }

0 comments on commit c5d2f17

Please sign in to comment.