0.2.3 • Published 1 month ago

radix-themes-tw v0.2.3

Weekly downloads
-
License
MIT
Repository
-
Last release
1 month ago

Simple tailwind preset for Radix Themes

npm install radix-themes-tw --dev

Tokens and Classes

This preset overrides the default tailwind classes with the radix ones, except for the space tokens that starts with the rx suffix (for example you can use both px-2 based on tailwind spacing and px-rx-2 based on radix spacing).

For the complete list of tokens check the radix documentation: https://www.radix-ui.com/themes/docs/theme/token-reference

For the tailwind classes check the preset code: https://github.com/viktorbonino/radix-themes-tw/blob/main/src/index.ts

Configure tailwind

  1. Open the tailwind.config.ts configuration file.
  2. Add this line to import dependency: import { radixThemePreset } from 'radix-themes-tw';.
  3. Add radixThemePreset under presets.

The file should look like this:

import type { Config } from 'tailwindcss';
import { radixThemePreset } from 'radix-themes-tw';

const config: Config = {
  // your existing configuration
  presets: [radixThemePreset]
}
0.2.3

1 month ago

0.2.2

1 month ago

0.2.1

2 months ago

0.2.0

2 months ago

0.1.2

4 months ago

0.1.1

4 months ago

0.1.3

4 months ago

0.1.0

4 months ago

0.0.9

5 months ago

0.0.8

8 months ago

0.0.7

9 months ago

0.0.6

9 months ago

0.0.5

9 months ago

0.0.4

9 months ago

0.0.3

9 months ago

0.0.2

9 months ago

0.0.1

9 months ago