Typography preset
Biedt een set van prose classes die je kunt gebruiken om typografische standaarden toe te voegen aan vanilla HTML.
Installatie
bash
pnpm add -D @unocss/preset-typographybash
yarn add -D @unocss/preset-typographybash
npm install -D @unocss/preset-typographybash
bun add -D @unocss/preset-typographyTIP
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(),
],