@build-stack/md3-tailwind-core
TypeScript icon, indicating that this package has built-in type declarations

0.2.0 • Public • Published

@build-stack/md3-tailwind-core

Core tokens, utilities, and minimal primitives for MD3 on Tailwind CSS v4.1+ and React 19.

Install

npm install @build-stack/md3-tailwind-core
# Tailwind v4 runtime (build-time) deps
npm install -D tailwindcss @tailwindcss/postcss postcss

Tailwind v4 setup

Add the PostCSS plugin in your project's postcss.config.*:

export default { plugins: { "@tailwindcss/postcss": {} } };

Import Tailwind and the MD3 tokens/utilities in your app CSS (e.g. src/index.css):

@import "tailwindcss";
@import "@build-stack/md3-tailwind-core/tokens.css";
@import "@build-stack/md3-tailwind-core/utilities.css"; /* optional utilities like .text-display-lg */

Usage (React)

import { Display, Body } from "@build-stack/md3-tailwind-core";

export default function Example() {
  return (
    <main className="p-6">
      <Display size="large">Headline</Display>
      <Body size="medium" className="text-gray-600">Body text</Body>
    </main>
  );
}

Notes

  • CSS-first theming with Tailwind v4 @theme tokens.
  • React 19 and Tailwind 4.1+ are peer dependencies.

Readme

Keywords

none

Package Sidebar

Install

npm i @build-stack/md3-tailwind-core

Weekly Downloads

0

Version

0.2.0

License

none

Unpacked Size

7.77 kB

Total Files

9

Last publish

Collaborators

  • build-stack