vtdf
v0.0.1
Published
Mobile web Vue 3 component library based on Tailwind CSS and the any-tdf design system.
Maintainers
Readme
vtdf
vtdf is the Vue implementation of the Any TDF mobile web component system, built on Tailwind CSS. It maps the shared Any TDF component contracts to Vue components, props, emits, slots, themes, locale objects, types, and utilities.
Install
bun add vtdf vue tailwindcssvtdf requires Vue and Tailwind CSS. @any-tdf/common is installed automatically as a runtime dependency.
Usage
<script setup lang="ts">
import { Button } from 'vtdf';
import 'vtdf/style.css';
</script>
<template>
<Button fill="solid">VTDF</Button>
</template>Configure Tailwind CSS with the VTDF theme plugin:
@import 'tailwindcss';
@plugin "vtdf/theme/plugin" {
all: true;
}Public modules
vtdf: components, feedback APIs, themes, locales, types, and utilities.vtdf/components: component-only exports.vtdf/theme: built-in themes and runtime theme helpers.vtdf/theme/plugin: Tailwind CSS theme plugin.vtdf/lang: built-in locale objects.vtdf/types: public TypeScript types.vtdf/utils: shared component utilities.vtdf/style.css: component styles and source registration for@any-tdf/common.vtdf/source.css: Tailwind CSS source registration for VTDF and its transitive@any-tdf/commondependency.
Development
Development is managed from the Any TDF Monorepo root with Bun:
bun install
bun run dev:vtdf
bun run --filter vtdf check
bun run --filter vtdf test
bun run --filter vtdf buildLinks
License
vtdf is released under the MIT License.
