Skip to content

pantoken-root / bundlers/tailwind/src / pantokenPreset

Fonksiyon: pantokenPreset() ​

pantokenPreset(options?): TailwindPreset

Deneysel

pantoken Tailwind preset'ini oluştur.

Parametreler ​

options? ​

PantokenPresetOptions = {}

PantokenPresetOptions.

Döndürür ​

TailwindPreset

Bir Tailwind preset'i olan ve colors, spacing ve fontFamily ekleyen bir paket.

Örnekler ​

Preset'i tailwind.config.ts'e kaydedin

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`

Ayrıca primitive- öneki altında primitive paletini açığa çıkarın

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

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