-
Notifications
You must be signed in to change notification settings - Fork 0
Front Rules
Kana edited this page Nov 23, 2023
·
2 revisions
- Follow to Next.js app router structure
/app/xxxx → common
ex)
/app/components/button
/app/hooks/use-common-hooks
/app/[feature]/xxx → feature
ex)
/app/[feature]/components/some-component
_app/[feature]/hooks/use-some-hooks
/app/[feature]/page.tsx
- If you add a component to common components, please add it to Storybook so that everyone can look at it easily
- Use index file to export
- Use alias to import, except index file
- Use even numbers (not odd numbers) for styling. If there are odd numbers in Figma, you can ignore them
- If sizes or colours are weird, you can adjust them while you're making a page. How to look in a web browser is more important.