Skip to content

pantoken / 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}"],
};
// then use utilities like `bg-color-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 })],
};