- Create a new directory for the component under the
src/
directory in it's specific category. - Copy over an existing components Story and index file and past into the new directory
- Index file and define properties for the component
- Import Figma generated code to start building component.
- The component should be rendered in the Storybook underit's respective category.
- Create a new directory for the component under the
src/
directory in it's specific category. - Copy over an existing components Story and index file and past into the new directory
- Switch all the old names with the new name with
Cmd+Fn+F2
- Set the component Interface (proprieties) and bring to the main fuction on
index.tsx
- Paste from Figma the code on the main function
- Switch the fixed proprieties values by your Interface proprieties you created
- Set argTypes on
{NewComponentName}.stories.ts
exatcly as it is on yourindex.tsx
with the control modes - Set the args for the variants previews too
- Link all colors unliked to the Design System tokens using ⌘+Fn+F2 e.g: "text-#000000" -> "text-text-strong-950"
- Link all fonts to the Design System tokens using ⌘+Fn+F2 e.g: "text-text-strong-950 text-base font-medium font-['Inter'] leading-normal" -> "text-text-strong-950 text-label-md"
- Set all the icons right with Remix Icons components
- Make the Tailwind proprieties equal Auto-layout on Figma