Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

README.md

@uswds-tailwind/theme

Open on npmx.dev Open on npmx.dev

A Tailwind CSS v4 theme that exposes USWDS design tokens (colors, spacing, typography, breakpoints) as @theme variables.

Note

This package is in alpha. APIs may change between releases.

Install

npm install -D @uswds-tailwind/theme@alpha tailwindcss

Usage

Import the theme alongside Tailwind in your global CSS:

@import 'tailwindcss';
@import '@uswds-tailwind/theme';

If you're using @uswds-tailwind/react, you don't need to import this package directly. The React stylesheet already pulls it in.

What's included

USWDS-recommended fonts (Public Sans, Source Sans 3, Merriweather, Roboto Mono, Open Sans) and icon sets (material-symbols, Font Awesome via @iconify/tailwind4) are declared as optionalDependencies. Install only what you use.

License

MIT