Skip to content

v0.7.9

Choose a tag to compare

@danmolitor danmolitor released this 18 Mar 17:07
· 639 commits to main since this release

Tailwind CSS Support

New @formepdf/tailwind package -- style Forme components with Tailwind utility classes instead of inline style objects.

import { tw } from '@formepdf/tailwind';

<View style={tw("flex flex-col items-center p-4 bg-gray-100 rounded-lg")}>
  <Text style={tw("text-lg font-bold text-gray-900")}>Invoice #001
  <Text style={tw("text-sm text-gray-500 mt-2")}>Acme Corp

Full coverage: spacing, typography, colors (full Tailwind v3 palette), layout, grid, borders, opacity, negative values, fraction widths, and arbitrary values (w-[200px], text-[14px], bg-[#custom]).

Zero dependencies. No Tailwind config or build step required.


Packages

Package Version
@formepdf/tailwind 0.7.9
All other packages 0.7.9
VS Code extension 0.7.9
formepdf (PyPI) 0.7.11