Shared brand tokens for Tailwind CSS v4 projects.
pnpm add @somedevsdo/tailwindImport a single stylesheet that includes light and dark tokens:
@import "@somedevsdo/tailwind/base.css";Dark mode tokens are applied when an ancestor has data-theme="dark".
pnpm install
pnpm test:harnesssrc/base.css is source-controlled and edited directly in this repo.
pnpm build is a no-op placeholder used by CI/release scripts.
pnpm test:harness runs a Tailwind v4 compile against a local fixture to verify the package generates expected utilities and token mappings.
This repo uses Changesets.
Prerelease mode is enabled with the beta tag (.changeset/pre.json), so published versions are pushed as beta prereleases until prerelease mode is exited.
-
Add a changeset:
pnpm changeset
-
Merge to
main. -
GitHub Actions opens/updates a release PR.
-
Merging the release PR publishes to GitHub Packages automatically.
To leave prerelease mode later:
pnpm changeset:pre:exit