Last updated:
20 Aug 2025
Components
The Shadcraft Figma kit offers a comprehensive set of components that align with the official shadcn/ui framework. This section walks you through how to work with components in Figma — from basic editing to documenting changes for developer handoff.
Editing Components
Each component in the kit is styled using Tailwind CSS utility classes. In Figma, we replicate this structure by using variables from the Primitive, Theme, and Mode collections, along with shared styles. This setup ensures visual consistency and allows for easy updates across your design system.
Example: Editing the Tooltip Component
Let's say we want to modify the Tooltip component to have a slightly larger font size.
Navigate to the Tooltip page in your main library file
Locate the component named Tooltip / Text inside the Components section
Select all the Tooltip component variants
Change the label text from
text-xs
totext-base
Implementation in Code
Developers can now update the component in code based on the design edits:
Open the
ui/tooltip.tsx
fileReplace the
text-sm
class withtext-base
Save the file and verify the changes in the Ul
Because the Figma variables map directly to Tailwind classes, the design-to-code handoff is fast and accurate.
Creating New Components
If you're designing a brand-new component, follow these guidelines to maintain consistency with the Shadcraft system:
Start with a Frame using the correct constraints and resizing behaviours
Add text using predefined Text Styles
Apply colours from the Mode collection (to support light/dark themes)
Use Primitive variables for spacing, sizing, borders, and radius
Use auto-layout wherever possible
Hit option+d6+K to convert the frame to a component
Add variants for different states where needed (e.g. default, hover, focus, disabled)
Use Figma properties to organise toggles, slots, or variants cleanly
Add usage documentation within the Figma file to help developers understand the intent and flexibility
© shadcraft 2025