0
Fork 0
mirror of https://github.com/mastra-ai/mastra.git synced 2026-11-17 08:44:46 +00:00
mastra/packages/playground/components.json
Marvin Frachet f37d0ef224
feat(playground): migrate to Tailwind CSS v4 (#14772)
## Summary

This PR completes the migration of `@mastra/playground-ui` and
`@internal/playground` from Tailwind CSS v3 to v4.

## Changes

### CSS Configuration
- Migrated from `tailwind.config.ts` to CSS-first configuration using
`@theme` blocks
- Updated `index.css` to use Tailwind v4 imports: `@import
'tailwindcss'`
- Removed legacy `@tailwind` directives

### Build Configuration
- Updated Vite configs to use `@tailwindcss/vite` plugin
- Removed PostCSS configuration files
- Removed `tailwind.config.ts` files

### Storybook
- Updated `.storybook/main.ts` to remove PostCSS/Tailwind v3 plugins
- Simplified `.storybook/tailwind.css` to import from main CSS
- Deleted obsolete `.storybook/tailwind.config.ts`

### TypeScript
- Updated tsconfig files to remove references to deleted config files

### Components.json
- Removed `config` field from shadcn/ui configuration (no longer needed
in v4)

## Verification
- [x] `pnpm build` passes in `playground-ui`
- [x] `pnpm build` passes in `playground`
- [x] `pnpm build-storybook` passes in `playground-ui`

## Breaking Changes
None - this is an internal migration with no public API changes.

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **Styling Updates**
* UI polish: improved text wrapping, consistent focus/outline behavior,
adjusted icon/badge/button sizing, and standardized spacing for a
cleaner, more accessible interface.
* Expanded theme tokens and added a dark-mode variant for more
consistent colors and layout.

* **Build Improvements**
* Storybook and CSS pipeline migrated to Tailwind v4 conventions for
refreshed component previews and more consistent builds.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-03-30 10:49:00 +02:00

20 lines
406 B