Skip to content

Typography preset

Biedt een set van prose classes die je kunt gebruiken om typografische standaarden toe te voegen aan vanilla HTML.

Bron Code

Installatie

bash
pnpm add -D @unocss/preset-typography
bash
yarn add -D @unocss/preset-typography
bash
npm install -D @unocss/preset-typography
bash
bun add -D @unocss/preset-typography

TIP

Deze preset is opgenomen in het unocss pakket, je kunt het ook vandaar importeren:

ts
import { presetTypography } from 'unocss'

Gebruik

js
import {
  defineConfig,
  presetAttributify,
  presetTypography,
  presetWind3
} from 'unocss'

export default defineConfig({
  presets: [
    presetAttributify(), // vereist bij gebruik van attributify modus
    presetWind3(), // vereist
    presetTypography(),
  ],

Released under the MIT License.