A8 - Step-by-Step Import Process
This section provides detailed, step-by-step instructions for importing CSS into Figma using Kolibri Sync. The process differs depending on whether you want to create Figma color styles or variables, and whether you're working with single-mode or light/dark mode variables.
Importing CSS as Figma Styles
Paste CSS Variables into the Input Field
Locate the "CSS Input" textarea in the styles section
Paste your CSS variables using CSS custom properties, like
--variable-name: value;
:root {
/* Color Variable */
--primary: #0066CC;
--secondary: blue;
--gradient-1: linear-gradient(127deg, #ff6b6b 0%, #4ecdc4 35%, #45b7d1 100%);
--radial-1: radial-gradient(circle at 30% 40%, #ffb347 0%, #ff6f69 60%, #355c7d 100%);
--conic-1: conic-gradient(from 45deg at 50% 50%, #ff6b6b 0%, #f7d794 30%, #4ecdc4 70%, #1a535c 100%);
}
Importing CSS as Figma Variables
Prerequisites: To import variables with Kolibri Sync, you need an existing Figma variable collection that has at least one mode. If you're importing for light and dark themes, ensure your collection already includes "Light" and "Dark" modes. If these aren't set up, you'll need to create them in Figma beforehand for a smooth import.
Select Target Mode(s) within the collection
Remember that modes represent different states or themes (e.g., “Default”, “Light”, “Dark”).
If your CSS uses single values (no light-dark function)
Select one target mode from the dropdown.
If your CSS uses two values via the light-dark() function
Click the “+” to add another mode selector
Choose the corresponding Light and Dark modes.
Input CSS Variables
Paste your CSS variables into the textarea using one of the supported formats:
Single mode example:
:root { --primary: #0066CC; --secondary: blue; }Light/Dark paired example using CSS color-function notation:
:root { --primary: light-dark(#0066CC, blue); --secondary: light-dark(blue, #0066CC); }
Ensure the format matches the supported syntax.
Review Results and Notifications
Check the notification that appear after the import completion
The notification will show:
Number of variables successfully created/updated
Number of errors (if any)
Number of skipped items (e.g., gradients when importing as variables)
Verify the new variable appear in your choosen collection

Last updated