@thinkform/tailwind-preset (0.2.0)

Published 2026-04-22 13:58:58 +00:00 by oliverkierepka

Installation

@thinkform:registry=
npm install @thinkform/tailwind-preset@0.2.0
"@thinkform/tailwind-preset": "0.2.0"

About this package

@thinkform/tailwind-preset

Tailwind preset exposes sharedTailwindConfig which you can include as a Tailwind preset in apps.

Installation / local usage

  • Import the preset directly from the package entry after building the lib:

    pnpm nx build @thinkform/tailwind-preset

    // Example Tailwind config (apps/frontend/tailwind.config.ts) import { sharedTailwindConfig } from '@thinkform/tailwind-preset'

    export default { presets: [sharedTailwindConfig], content: ['./src//*.{html,ts,scss}', '../../libs//*.{html,ts,scss}'], }

Building

Run nx build tailwind-preset to build the library.

Running unit tests

Run nx test tailwind-preset to execute the unit tests via Jest.

Notes

  • The library source lives in libs/tailwind-preset. The package entry is index.ts which re-exports src/tailwind.config.ts.
  • Build the lib before using it from other projects so the package entry is available in dist/.
  • For local development you can also import the config by relative path (e.g. ../../libs/tailwind-preset/src/tailwind.config) but using the package entry is preferred.
  • If you publish the package, ensure package.json name matches the import path you use (e.g. @thinkform/tailwind-preset).

Dependencies

Dependencies

ID Version
@tailwindcss/aspect-ratio ^0.4.2
@tailwindcss/typography ^0.5.19

Development dependencies

ID Version
@types/node ^24.12.0
Details
npm
2026-04-22 13:58:58 +00:00
1
Oliver Kierepka
ISC
latest
3.3 KiB
Assets (1)
Versions (3) View all
0.2.0 2026-04-22
0.1.12 2026-04-20
0.1.11 2026-04-04