Setting the file. One moment.
Skill 16 · Webflow Mcp:figma To Webflow
Subchapter 16.2
references/css-rules.mdMarkdown5 KBView on GitHub
Read this before creating Webflow variables, classes, styles, or responsive overrides.
data_style_tool, never with the data_whtml_builder css param. WHTML CSS lands in Designer Custom properties, so the result is hard to edit and does not map to native Style-panel controls.variable_as_value: "<variable-id>" from data_variable_tool. Do not use raw var(--collection---token) strings; they do not render the native variable pill.backdrop-filter, aspect-ratio, repeating-linear-gradient backgrounds, parent-state selectors, custom mobile-toggle selectors, and similar CSS Webflow cannot model.<style> blocks for normal layout, typography, spacing, backgrounds, dividers, grids, cards, or section styling. That hides styling from the Designer style panel.::before or ::after. Pseudo-elements are invisible in the Navigator and unselectable in Designer. Build decorative lines, grids, badges, and backgrounds as real elements with native classes.padding, margin, border, border-radius, font, background, transition, and flex.:hover is the only safe pseudo-class in native styles.grid-row-gap and grid-column-gap even on flex; Webflow stores gaps under those keys.main: base desktopmedium: 991px and belowsmall: 767px and belowtiny: 479px and belowcalc(), clamp(), min(), max(), @keyframes, @font-face, multi-layer box-shadow, logical props, vendor prefixes..page-wrapper: font family, color, base size, line height. Use single font names, no fallback stacks.webflow-mcp:flowkit-naming; otherwise use layout/structure-based kebab-case names and never page-prefixed names.px; convert to rem or em only when the user chooses that strategy.data_whtml_builder for DOM/structure only: one root element per action, markup, semantic tags, text, nesting, and class names.data_style_tool create_style; do not define it through WHTML CSS.set_style replaces all classes on an element. Include all intended classes when applying it.query_elements style filters are case-insensitive substring matches. Filter results by exact class/type before acting.{component, element}, where component is the page id. Use the matching top-level pageId.repeating-linear-gradient, not border-style:dashed, for dashed accents/dividers/underlines so dash length, gap, opacity, and direction match the design..page-wrapper a stacking context (position:relative; z-index:0) and place overlays at z-index:-1.left:0; right:0; width:auto; max-width:<design-width>; margin-left:auto; margin-right:auto..wf-empty affordances on decorative empty normal DivBlocks with a dimension-giving style in the active breakpoint. For custom-tag empty elements, add a child or use a normal DivBlock.