Skip to content

pantoken / bundlers/tailwind/src / pantokenPreset

Funktion: pantokenPreset()

pantokenPreset(options?): TailwindPreset

Experimentell

Erstelle das pantoken Tailwind-Preset.

Parameter

options?

PantokenPresetOptions = {}

PantokenPresetOptions.

Rückgabe

TailwindPreset

Ein Tailwind-Preset, das colors, spacing und fontFamily bereitstellt.

Beispiele

Registriere das Preset in tailwind.config.ts

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

export default {
  presets: [pantokenPreset()],
  content: ["./src/**/*.{ts,tsx}"],
};
// then use utilities like `bg-color-background-base p-space-md`

Stelle die primitive-Palette außerdem unter dem Präfix primitive- bereit

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

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