Styling and Theming
DevLink exports your Webflow styles as CSS, giving you full control over how components look in your React application. You can maintain design consistency while adding custom theming, responsive behavior, and component variants.
Never edit the generated files
Never edit the auto-generated React files or CSS Modules inside your /devlink
folder. They will be overwritten on the next sync. Always extend or override styles externally.
Global CSS setup
DevLink generates a global.css
file containing base styles, responsive breakpoints, and CSS variables from your Webflow project. Import it once at your app’s root to apply Webflow’s design system globally:
Override with CSS modules
The safest way to customize DevLink components is by attaching your own CSS Module classes via the className
prop. This approach preserves Webflow’s original styles while adding your customizations:
Reuse Webflow classes and variables
DevLink exports your Webflow project’s class names and CSS variables, enabling you to build custom components that match your design system. This approach is ideal for components with dynamic data or complex interactions that you wouldn’t build in Webflow:
Custom-built React component:
Additionally, you can reuse component classes from your Webflow project in your custom-built React components, by importing the CSS module into your custom component styles.
Custom Identifiers
DevLink automatically transforms custom IDs into safe, namespaced selectors using CSS Modules, preventing style conflicts when components are used in larger React apps.
Custom IDs are transformed into the following format:
For example, a custom ID of featured-section
on a Grid element within a Hero
component may become: Hero_featured-section__abc123
Use attribute selectors with wildcards to style elements reliably:
Avoid dynamic IDs
Some Webflow elements (like Grid or Quick Stack) rely on fixed IDs for CSS. If you replace them dynamically in React, the exported CSS will no longer apply. Instead, use custom attributes to keep Webflow’s styling intact while allowing you to attach your own identifier.
Don't do this
Use custom attributes instead
CSS-in-JS integration
If your project uses styled-components or emotion, you can wrap DevLink components with styled overrides. This approach works well for component variants and theme-based styling:
Tailwind CSS integration
Prevent style conflicts
To avoid conflicts between DevLink’s global styles and Tailwind’s reset, enable skipTagSelectors
in your DevLink configuration:
Control style priority
To give DevLink styles higher priority over Tailwind’s reset, add a custom layer to your CSS: