diff --git a/docs/src/components/NavList.tsx b/docs/src/components/NavList.tsx index 28f4eaa6d..05b97e47d 100644 --- a/docs/src/components/NavList.tsx +++ b/docs/src/components/NavList.tsx @@ -150,6 +150,20 @@ 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: 'Spacing', + href: '/@charcoal-ui/tailwind-config/spacing', + }, +] 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