Use with Figma
Your style can live in Figma as well as in code. There are two ways in. Both are free during the beta. Neither puts anything protected on a public page.
1. Download for Figma (the token file)
On any template or library item, and on each of your saved styles under My styles, choose Download for Figma. You get one JSON file in the Tokens Studio format, with light and dark colour sets, type, spacing, radius, shadows and a text style for each size. Import it with the free Tokens Studio plugin.
- In Figma, install the free Tokens Studio for Figma plugin from the Community.
- Open it, choose Load, then import the JSON file you downloaded. The sets
global,lightanddarkand two themes, Light and Dark, appear. - Pick a theme, then in the plugin's Styles and variables panel choose Create variables and Create styles.
Colour variables get a Light and a Dark mode. Text styles and effect styles are made from the same file.
2. The ConquerStyles plugin
The plugin does the import for you, and goes further: it builds real components.
- Under Keys in your account, create a key. It starts with
csk_. It is the same kind of key your AI uses. - In Figma, run the ConquerStyles plugin and paste the key. It stays in the plugin on your computer.
- Pick one of your saved styles.
- Choose Create variables and styles. You get colour variables with Light and Dark modes, size and font variables, text styles and effect styles, all named after the style's own tokens.
- Choose Build components. You get component sets on a page called ConquerStyles, with variants for the states a designer expects: Every fill, line, radius and spacing is bound to a variable and every text to a text style. Change a variable and the components follow, and switch the mode to see dark.
- Button: primary, secondary and ghost, each in default, hover, focus and disabled.
- Input: default, focus, error and disabled, with a label and helper text.
- Card: flat and raised, default and hover.
- Navigation: desktop and mobile.
- Hero: left and centred.
- In the Library box, search for a button, a form, a card, a header or a hero. Insert builds that piece's form in your style, named after it, and drops an instance in view.
Good to know
- Dark mode. Styles that have their own dark mode export it. A style extracted from one page has none, so its dark colours are derived from the light ones, and the plugin says so. Check them.
- Figma plans. Figma's free plan allows one mode per collection. The plugin then puts the dark colours in a second collection and tells you; on a paid Figma plan you get a Dark mode in the same collection.
- Fonts. Figma can only use fonts it has. If your style's font is not available, Inter stands in and the plugin says which font to install. Run it again after installing.
- Running again. Running the plugin again for the same style updates what is there instead of adding copies.
- Library pieces. The plugin builds the starter forms above, named after the item you chose. It does not copy a piece's full layout; for that, use the code or the copy-prompt.
- What the plugin contacts. Only the ConquerStyles API, with your key. It reads your saved styles and the library's names. It sends nothing from your Figma file.
Exports are free during the beta. Pricing is coming soon.