Skip to content

pantoken-root / bundlers/tailwind/src / pantokenPreset

Swyddogaeth: pantokenPreset() ​

pantokenPreset(options?): TailwindPreset

Arbrofol

Adeiladu'r preset Tailwind pantoken.

Paramedrau ​

options? ​

PantokenPresetOptions = {}

PantokenPresetOptions.

Yn dychwelyd ​

TailwindPreset

Preset Tailwind sy'n cyfrannu colors, spacing, a fontFamily.

Enghreifftiau ​

Cofrestru'r preset yn 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`

Datgelu hefyd y palet primitive o dan ragddodiad primitive-

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

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