We're currently creating all new components following new standards in the components directory. The /styles directory contains the shared tailwind styles.
- All components should be in a folder, no tsx files directly in the root
- All components should contain stories and MDX documentation (which is why they can't live in the root, since that would result in a lot of duplication)
- New components only should get added in /components
- Any existing components in v2 are reviewed, updated if needed and then moved to the /components directory
- After v2 is moved, the old v2 component should be deleted, as well as any v1 version of that component. All places in the monorepo where we use this component, should use the newest version by then.
The envisioned end state is a state where only the /components directory exists. In this directory all components should have documentation and stories.