Skip to content

pantoken-root / bundlers/tailwind/src / pantokenPreset

Functie: pantokenPreset() ​

pantokenPreset(options?): TailwindPreset

Experimenteel

Bouw de pantoken Tailwind-preset.

Parameters ​

options? ​

PantokenPresetOptions = {}

PantokenPresetOptions.

Retourneert ​

TailwindPreset

Een Tailwind-preset die colors, spacing en fontFamily bijdraagt.

Voorbeelden ​

Registreer de preset in tailwind.config.ts

ts
import { pantokenPreset } from "@pantoken/tailwind";

export default {
  presets: [pantokenPreset()],
  content: ["./src/**/*.{ts,tsx}"],
};
// load the config with `@config` in your Tailwind v4 stylesheet, then use
// utilities like `bg-background-base p-space-md`

Maak het primitieve palet ook beschikbaar onder het prefix primitive-

ts
import { pantokenPreset } from "@pantoken/tailwind";

export default {
  presets: [pantokenPreset({ includePrimitives: true })],
};