diff --git a/docs/src/components/NavList.tsx b/docs/src/components/NavList.tsx index 056bc9b05..22de26ba4 100644 --- a/docs/src/components/NavList.tsx +++ b/docs/src/components/NavList.tsx @@ -99,6 +99,14 @@ const tailwindConfigList: ListItem[] = [ text: 'カスタマイズする', href: '/@charcoal-ui/tailwind-config/customize', }, + { + text: 'Typography', + href: '/@charcoal-ui/tailwind-config/typography', + }, + { + text: 'Spacing', + href: '/@charcoal-ui/tailwind-config/spacing', + }, ] const tailwindDiffList: ListItem[] = [ @@ -161,20 +169,6 @@ const themeList: ListItem[] = [ href: '/@charcoal-ui/theme/colors', }, ] -const tailwindConfigList: ListItem[] = [ - { - text: 'クイックスタート', - href: '/@charcoal-ui/tailwind-config/quickstart', - }, - { - text: 'カスタマイズする', - href: '/@charcoal-ui/tailwind-config/customize', - }, - { - text: 'Typography', - href: '/@charcoal-ui/tailwind-config/typography', - }, -] export const NavList: FC<{ className?: string }> = (props) => { const router = useRouter() diff --git a/docs/src/components/tailwind-config/spacing/Spacing.tsx b/docs/src/components/tailwind-config/spacing/Spacing.tsx new file mode 100644 index 000000000..29a17e3f3 --- /dev/null +++ b/docs/src/components/tailwind-config/spacing/Spacing.tsx @@ -0,0 +1,20 @@ +import { config } from '@charcoal-ui/tailwind-config' + +const { + theme: { spacing }, +} = config + +export const Spacing: React.FC = () => { + return ( +
+ {Object.keys(spacing!!).map((space) => ( +
+

p-{space}

+
+
+
+
+ ))} +
+ ) +} diff --git a/docs/src/pages/@charcoal-ui/tailwind-config/spacing.page.tsx b/docs/src/pages/@charcoal-ui/tailwind-config/spacing.page.tsx new file mode 100644 index 000000000..f709ad75d --- /dev/null +++ b/docs/src/pages/@charcoal-ui/tailwind-config/spacing.page.tsx @@ -0,0 +1,9 @@ +import { NextPage } from 'next' +import { Spacing } from '../../../components/tailwind-config/spacing/Spacing' + +const SpacingPage: NextPage = () => ( +
+ +
+) +export default SpacingPage