@any-tdf/common
v0.0.1
Published
Framework agnostic shared utilities, theme, language packs, types and derived component utilities for any-tdf component libraries.
Readme
Introduction
@any-tdf/common is the framework-agnostic shared foundation for the any-tdf component ecosystem. It contains derived component state helpers, shared SVG data, Tailwind CSS theme utilities, runtime theme switching, language packs, TypeScript types, and small platform utilities.
Features
- Framework-agnostic component derivation helpers for state, classes, styles, and render metadata.
- Shared SVG data and built-in icon library mapping.
- Tailwind CSS theme plugin, color scale utilities, and runtime theme switching helpers.
- 60+ language packs used by
any-tdfUI packages. - TypeScript-first source code and generated declaration files.
- No framework runtime dependency.
Installation
bun add @any-tdf/commonpnpm add @any-tdf/commonnpm install @any-tdf/commonExports
import { resolveButtonClass, en_US } from '@any-tdf/common';
import anytdfThemePlugin from '@any-tdf/common/theme/plugin';
import { switchTheme } from '@any-tdf/common/theme/runtime';Available entry points:
@any-tdf/common@any-tdf/common/derived@any-tdf/common/derived/*@any-tdf/common/svg@any-tdf/common/svg/*@any-tdf/common/theme@any-tdf/common/theme/plugin@any-tdf/common/theme/runtime@any-tdf/common/lang@any-tdf/common/types@any-tdf/common/utils@any-tdf/common/source.css, which registers the publisheddistfiles as Tailwind CSS sources.
Development
bun install
bun test
bun run buildPublishing
Package versions are managed with Changesets. After a version PR is merged, the npm publish workflow validates a Bun-generated TGZ and publishes it in dependency order:
bun run publish:npm:checkLinks
License
@any-tdf/common is released under the MIT License.
