Skip to content

Commit

Permalink
style section label better
Browse files Browse the repository at this point in the history
  • Loading branch information
dphuang2 committed Oct 8, 2023
1 parent c23bd3c commit 746256c
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ import { proseContainerWidthStyles } from '@/utils/prose-container-width-styles'
import { FlexCenter } from '@/components/FlexCenter'
import { asideOffsetBreakpoint } from '@/utils/aside-offset-breakpoint'
import { navbarOffsetBreakpoint } from '@/utils/navbar-offset-breakpoint'
import { linkColor } from '@/utils/link-color'

export const getStaticPaths: GetStaticPaths = async () => {
return {
Expand Down Expand Up @@ -96,7 +97,7 @@ const DocumentationPage = observer(
faviconLink,
logo,
}: InferGetServerSidePropsType<typeof getStaticProps>) => {
const { colors } = useMantineTheme()
const theme = useMantineTheme()
const { colorScheme } = useMantineColorScheme()

const [opened, setOpened] = useState(false)
Expand Down Expand Up @@ -148,15 +149,16 @@ const DocumentationPage = observer(
colorScheme,
...generateMantineThemeColors({
primaryColor: konfigYaml.portal?.primaryColor,
colors,
colors: theme.colors,
}),
primaryColor: 'brand',
}}
>
<AppShell
styles={{
main: {
background: colorScheme === 'dark' ? colors.dark[8] : undefined,
background:
colorScheme === 'dark' ? theme.colors.dark[8] : undefined,
},
}}
navbarOffsetBreakpoint={navbarOffsetBreakpoint}
Expand Down Expand Up @@ -184,7 +186,7 @@ const DocumentationPage = observer(
weight="bold"
fz="0.7rem"
style={{ textTransform: 'uppercase' }}
color="dimmed"
color={linkColor({ theme })}
>
{section.label}
</Text>
Expand Down

0 comments on commit 746256c

Please sign in to comment.