Time to take everything you learned in this chapter into practice. Let’s bring the website we designed in Figma to life!
Be sure to open the "Website Project - ShadcnDesign Academy" file you worked on previously.
For this lesson we recommend using Cursor - the built-in AI Agent will help you with more complex tasks. You can learn more about Cursor and how to set in up in the official documentation.
Part 1. Installation
Task 1. Install shadcn/ui
Install shadcn/ui: npx shadcn@latest init
Name your project ‘shadcndesign-academy-project’.
Change directory to your newly installed project: cd shadcndesign-academy-project
Install all shadcn/ui components: npx shadcn@latest add
Task 2. Set up Pro Blocks, styles and assets
Install Pro Blocks styles: npx shadcn@latest add https://pro-blocks-v4.vercel.app/r/pro-blocks-styles.json
Install Pro Blocks used in the Homepage with the Figma to shadcn/ui plugin.
Import styles with the plugin.
Install styles with the CLI in your project.
Save the logo and images you downloaded in the previous lesson in your project’s public folder.
Run the project: npm run dev
Part 2. Component adjustments
In this part, we will adjust our styling and components to match our design in Figma. Each task has the prompt that you can use in Cursor AI Agent to make your work faster.
Task 1. Importing fonts
Import the IBM Plex Sans and IBM Plex Serif fonts into layout.tsx.
Import IBM Plex Sans and IBM Plex Serif into layout.tsx file.
Make sure to include font weights.
For IBM Plex Sans: 400, 500, 600
For IBM Plex Serif: 500
Task 2. Importing homepage blocks
Import Pro Blocks to app/page.tsx in the order we have in Figma.
Import the components from the pro-blocks folder into app/page.tsx and place them in the following order.
- LP Navbar / 1.
- Hero Section / 2.
- Feature Section / 14.
- Testimonials Section / 2.
- Feature Section / 13.
- Blog Section / 3.
- FAQ Section / 4.
- CTA Section / 2.
- Footer / 3.
Task 3. Changing text in Pro Blocks
Change the text in Pro Blocks to match the design in Figma.
Replace code in the Logo.tsx component with the ‘Veridian Logo.svg’ SVG code from the public folder.
Replace the code in the Logo.tsx component with the ‘Veridian Logo.svg’ SVG code from the public folder.
Task 5. Replacing images
Replace placeholder images in each Pro Block with the proper images from the public folder.
Replace placeholder images in each Pro Block with the proper images from the public folder. Make sure to add proper alt descriptions.
Task 6. Component changes
Make changes in Button, Input and Textarea to match design in Figma.
Button component
Navigate to the components/ui/button.tsx page
Change the button’s height variable from h-9 to h-11.
Change the button’s radius variable from rounded-md to rounded-xs.
Input component
Navigate to the components/ui/input.tsx page.
Change the input’s height variable from h-9 to h-11.
Change the input’s border radius from rounded-md to rounded-xs.
Textarea component
Navigate to the components/ui/textarea.tsx page.
Change the textarea’s border radius from rounded-md to rounded-xs.
Make changes in components in the ui folder.
components/ui/button.tsx
1. Change the button’s height variable from h-9 to h-11.
2. Change the button’s radius variable from rounded-md to rounded-xs.
components/ui/input.tsx
1. Change the input’s height variable from h-9 to h-11.
2. Change the input’s border radius from rounded-md to rounded-xs.
components/ui/textarea.tsx
Change the textarea’s border radius from rounded-md to rounded-xs.
Task 7. Pro Blocks changes
Make changes in Pro Blocks to match the design in Figma.
Make changes in the following Pro Blocks:
hero-section-2.tsx
- Remove the section-padding-y class
- Add the pt-16 lg:pt-0 class
- Set the Aspect Ratio component ratio from 1 / 1 to 3 / 4.
- Set the Aspect Ratio component’s border radius to 0.
- Change the background color from background to secondary.
- Change the Heading and List Items text color from foreground to white.
- Change the Paragraph text color from foreground-muted to white/80.
testimonials-section-2.tsx
- Change the background color from background to muted.
- Add the font-serif class to the quotes
- Add the italic class to the quotes.
blog-section-3.tsx
- Change the background color from background to muted.
cta-section-4.tsx
- Change the background color from background to primary-muted
- Change the primary button’s background color to primary.
- Change the button’s text color to primary-foreground.
Summary
That's it! At this point, our homepage has the structure and styling from Figma. Now you can check if all content, images and sections display properly - if not, ask AI agent to make necessary fixes.
You can now follow this process to build Contact and Pricing pages you designed in the previous practice lesson.
Congratulations!
Congratulations on mastering skills that empower you to design and build effortlessly within the shadcn/ui ecosystem! Our course will continue to evolve as we add more features. If you feel something is missing or you have additional questions, please don't hesitate to contact us via email. We would love to hear your thoughts.