-
Notifications
You must be signed in to change notification settings - Fork 22
Open
Description
Description:
Currently, Tailwind CSS configuration may be duplicated or inconsistently managed across multiple packages in our monorepo. We have a scripts/tailwind/ directory but need better abstraction to share Tailwind config, theme tokens, and custom utilities across all packages without duplication. This will improve maintainability and ensure consistent styling.
Expected Behaviour:
- Shared Tailwind config package that all components can import
- Centralized theme tokens (colors, spacing, typography) matching ELIXIR Cloud branding
- Reusable custom utilities and plugins available to all packages
- Single source of truth for design tokens
- Easy to update styling across all components from one place
Approach:
- Create shared configuration package (e.g.,
packages/ecc-tailwind-config/) - Extract common theme tokens, colors, and utilities used across packages
- Export base Tailwind config that packages can extend
- Update each package's
tailwind.config.jsto import and extend the shared config - Move design tokens to match with
ecc-utils-designpatterns - Update build scripts to handle shared Tailwind dependencies
- Document how to use and extend the shared configuration
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
Ready