@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 v4 theme utilities, runtime theme switching, language packs, TypeScript types, and small platform utilities.
The package is currently published on the alpha channel. APIs may still change while React, Svelte, Vue, and other framework packages finish aligning on the shared contracts.
- Framework-agnostic component derivation helpers for state, classes, styles, and render metadata.
- Shared SVG data and built-in icon library mapping.
- Tailwind CSS v4 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.
bun add @any-tdf/common@alphapnpm add @any-tdf/common@alphanpm install @any-tdf/common@alphaimport { 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
bun install
bun test
bun run buildThe package is published by GitHub Actions when package.json changes on main and the version field is different from the previous commit. Alpha versions are published with:
npm publish --provenance --access public --tag alphaThis project is licensed under the MIT License.