Guide

Get a Tailwind config from any website

Found a website whose look you like? Borrowstyle reads its colours, fonts, spacing and corners and writes them into files your project can use. The free design files include tokens.css, a file of the site's colours and sizes. It works with Tailwind 4, a popular toolkit developers use to style websites. With Pro you also get a settings file for Tailwind 3 and a theme for shadcn/ui, a set of ready-made website parts like buttons and menus.

What goes into the file

  • Colours by their job. Named for what they do on the page, like primary, background or text, not just a list of colour codes.
  • Text styles. Each one with its size, weight and line height.
  • Spacing. The spacing steps the site uses, so your gaps and padding match.
  • Corners and shadows. How round the corners are, and the shadows, as named values.

Tailwind 4, Tailwind 3 or shadcn/ui: pick your file

Which file you need depends on your project:

  • tokens.css for Tailwind 4 and for plain CSS. In Tailwind 4 it gives you classes like bg-primary and rounded-md.
  • tailwind.config.js for a Tailwind 3 project.
  • A shadcn/ui theme to paste into globals.css.
  • tokens.json and Figma variables, if a designer needs the same values (design tokens for Figma).

tokens.css comes with the free design files, with no limit. The other files are More file types, a Pro tool. You can try it 3 times a month for free, in total across all sites.

Match the look, keep your own brand

Use the files to get the spacing and text sizes right, not to copy someone else's brand. With Use my brand (Pro) you can swap in your own colour and font before you download. If the site uses a paid font, Borrowstyle names a free Google Fonts look-alike. Logos, pictures and words stay with their owners.

How to

How to get a Tailwind config from a website

01

Add Borrowstyle to Chrome (or Edge, Brave, Arc).

02

Open the site you like. Pages you are signed in to work too.

03

Click the Borrowstyle icon. It reads the colours, fonts, spacing, corners and shadows in a second or two.

04

For Tailwind 4 or plain CSS, open the Design tab and press Download design files (tokens.css is inside, no limit). For Tailwind 3 or shadcn/ui, open the Pro tab, then More file types, and press Download 5 files (Pro).

05

Put the file in your project, or hand the style to your AI tool with Copy for AI.

FAQ

Questions

Will it work on sites that don't use Tailwind?

Yes. It reads the page as your browser shows it, so it does not matter how the site was built: React, Vue or plain HTML.

Is anything sent to a server?

No page content is sent to us. What Borrowstyle captures stays in your browser. Only two small things reach borrowstyle.com: a check of your Pro key about once a day, if you have one, and one visit when you install or remove it, with a random number instead of your name.

Can I get the CSS for one button?

Yes. Click it in Inspect to see its size, colours, corners and padding. To copy it as HTML, Tailwind, React or CSS, use Copy as code (Pro).

Is it free?

Reading a site, Inspect, colours, fonts, Copy for AI and the design files (DESIGN.md, tokens.css and 3 more) are free, with no limit. tokens.css already works with Tailwind 4. The Tailwind 3 config and the shadcn/ui theme are Pro: try them 3 times a month for free, in total across all sites, then pay $39 once or $5 a month. See pricing.

Keep reading

Turn a site you like into a Tailwind theme.

Free to use, with no account. Pro is $39 once or $5 a month. Works in Chrome, Edge, Brave and Arc.