How To Get Css From Figma

In this article, we will be delving into the process of extracting CSS from Figma designs. Figma is a popular design software commonly utilized by UI/UX designers. It offers the ability to generate detailed prototypes and collaborate with team members. A particularly useful functionality of Figma is its capability to export design components as CSS, streamlining the implementation process for web developers.

Step 1: Select the Element

The first step to extract CSS from Figma is to select the specific design element that you want to export as CSS. You can do this by clicking on the element.

Step 2: Open the Inspection Panel

Once you have selected an element, the next step is to open the inspection panel. This can be achieved by heading to the right panel of your Figma window and clicking on the ‘Inspect’ tab.

Step 3: Copy the CSS

Under the Inspect tab, Figma will automatically generate the CSS for the selected element. All you need to do is click the ‘Copy’ button next to the CSS code.

Step 4: Paste the CSS into your code

Lastly, paste the copied CSS into your code. To apply this CSS to your HTML, simply assign the same class or id to your HTML element as in your Figma design.

Here’s a sample:

Assume that we have a button in Figma with this CSS:

.button {
  width: 133px;
  height: 36px;
  background: #FFFFFF;
  border-radius: 4px;

You can copy the above CSS code and apply it to your HTML button like this:

<button class="button">Click me</button>

While Figma is a great tool for developers and designers, keep in mind that the CSS it exports might not be perfect. It’s always important to review and tweak the CSS code to fit your needs.


Extracting CSS from Figma can seriously speed up your development process, as it allows you to directly implement design elements. However, always remember to verify and adjust the exported CSS to make sure it fits perfectly with your project requirements.