βοΈCSS
Paste CSS into Webstudio, and it'll be translated to the various fields in the Style Panel.
CSS is the design language of the internet. With this feature, you can copy CSS from anywhere and paste it into Webstudio, which will parse it and populate the various fields in the Style Panel.
How to paste CSS

Copy CSS declaration(s) such as
background: blue;.In Webstudio, go to the Style Panel > Advanced > and click "+".
Paste the CSS and press enter.
That's it.
The styles are parsed and displayed in their respective fields (they will also be shown in the Advanced section).
Use cases
Third-party libraries like Open Props provide expertly crafted CSS variables, allowing you to import them via paste.
Custom stylesheets containing Design Systems and other declarations can be imported.
Inspect your website with DevTools and copy the CSS.
Online tutorials, CodePen, ChatGPT, and many other sources provide CSS.
Pasting CSS declarations
When pasting into the Style Panel, Webstudio accepts CSS declarations (e.g., background: blue;). Selectors are not needed because Webstudio applies styles directly to the selected instance.
Pasting HTML with CSS
When you paste HTML that includes <style> blocks, Webstudio extracts the CSS rules and converts class-based selectors into design tokens. Each class becomes a reusable token, and styles are applied to the matching elements.
Supported selectors
Class selectors β
.card { padding: 16px; }creates a token named "card"Compound selectors β
.card.featured { border: 1px solid gold; }creates a combined tokenDescendant selectors β
.card .title { font-size: 24px; }applies styles to.titleelements inside.cardChild selectors β
.card > .header { display: flex; }applies styles to direct.headerchildren of.cardPseudo-states β
.button:hover { opacity: 0.8; }applies styles to the hover stateMedia queries β
@media (min-width: 768px) { .card { ... } }creates breakpoint-specific styles, including nested@mediarules
Non-class selectors (tag selectors, ID selectors, attribute selectors) are applied as inline styles where possible.
If a nested selector references elements not present in the pasted HTML, Webstudio shows a notification listing the skipped selectors.
Tailwind CSS support
You can paste HTML with Tailwind CSS classes, and Webstudio will automatically convert the Tailwind utility classes into native Webstudio styles.
How it works
Copy HTML containing Tailwind classes (e.g.,
<div class="flex items-center gap-4 p-6 bg-white rounded-lg">)Paste into Webstudio
Webstudio creates the component structure and applies the equivalent styles
This is especially useful when:
Using AI tools that generate Tailwind-based HTML
Migrating from Tailwind projects
Using Tailwind component libraries as a starting point
Related
Markdown β Paste Markdown to create components automatically
Webflow β Copy Webflow components into Webstudio
Shortcuts β Keyboard shortcuts for faster workflows
Commands and search β Quick access to commands and settings
Anatomy of the Webstudio builder β Overview of the Webstudio interface
Last updated
Was this helpful?
