Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 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.

Features

  • 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-tdf UI packages.
  • TypeScript-first source code and generated declaration files.
  • No framework runtime dependency.

Installation

bun add @any-tdf/common@alpha
pnpm add @any-tdf/common@alpha
npm install @any-tdf/common@alpha

Exports

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

Development

bun install
bun test
bun run build

Publishing

The 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 alpha

License

This project is licensed under the MIT License.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages