Skip to content

pantoken-root / bundlers/tailwind/src / pantokenPreset

دالة: pantokenPreset() ​

pantokenPreset(options?): TailwindPreset

Experimental

بناء إعداد pantoken المسبق لـ Tailwind.

Parameters ​

options? ​

PantokenPresetOptions = {}

PantokenPresetOptions.

Returns ​

TailwindPreset

إعداد مسبق لـ Tailwind يضيف colors و spacing و fontFamily.

Examples ​

سجل الإعداد المسبق في 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`

اعرض أيضًا لوحة الألوان primitive تحت بادئة primitive-

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

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