How to use SnipCSS


Steps to create a snippet

  1. After installing the extension, click the SnipCSS icon in your browser. (It may be hidden under the puzzle-piece icon if not pinned.)
  2. Select the target element or section on the webpage.
  3. Press Run SnipCSS to extract the associated HTML, CSS, and assets of that element — only the related styles are extracted.

Tips for best results

SnipCSS options page

SnipCSS option settings

To open the Options page, right-click the extension icon (sometimes hidden under the puzzle piece) and select "Extension Options".

Now free: every option below is unlocked by default. The ones that used to require Pro — multiple resolutions, unused CSS/attribute removal, and class replacement — are turned on automatically for new installs.

General settings

  1. Remove Vendor Prefix Rules — removes vendor-specific prefixes (e.g. -webkit-, -moz-) from CSS properties.
  2. Remove Inherit Rules — omits inherited CSS properties that are often unnecessary.
  3. Move Inline Styles to CSS Classes — converts inline styles into reusable CSS classes.

Advanced settings (on by default)

  1. Run at Multiple Resolutions — extracts all media queries by analyzing the website at different screen sizes.
  2. Scope Generic Elements to Snipped DOM — scopes generic elements using classes or data attributes. Set a custom prefix (default snip-).
  3. Replace All CSS Classes/IDs to Avoid Conflicts — ensures all extracted classes/IDs are uniquely named. Set a global prefix (default snip-).
  4. Remove Unused CSS Classes — strips unnecessary classes from the extracted HTML.
  5. Remove Unused Attributes — removes unused attributes to declutter the extracted HTML.
  6. Reload Page on Resolution Change — reloads the page during resolution changes to capture desktop-only/mobile-only CSS (most sites don't need this, but some serve different stylesheets per device).
  7. Convert Output to Tailwind — converts extracted CSS to Tailwind classes.
    • Force Using Tailwind Breakpoints for Media Queries — uses the closest appropriate Tailwind breakpoint instead of custom ones defined in the page.
    • Resolve CSS Variables to Concrete Values — recursively resolves variables to their value before applying the Tailwind class.