Skip to content
This repository was archived by the owner on Mar 7, 2026. It is now read-only.

fix: include Tailwind CSS utilities in distribution build#49

Merged
christoph2806 merged 10 commits intodevelopfrom
fix/issue-48-css-styles-missing-from-dist
Jun 6, 2025
Merged

fix: include Tailwind CSS utilities in distribution build#49
christoph2806 merged 10 commits intodevelopfrom
fix/issue-48-css-styles-missing-from-dist

Conversation

@christoph2806
Copy link
Copy Markdown
Member

Overview

Fixes #48 - Component CSS styles missing from distribution build

Problem

The distributed CSS file (dist/index.css) only contained theme variable mappings (2.28 KB, 61 lines) but was missing the actual Tailwind utility classes that shadcn components require.

Solution

  • ✅ Add import of globals.css to ui-kit/src/index.ts
  • ✅ Distributed CSS now includes both theme variables AND Tailwind utilities
  • ✅ CSS file size increased from 2.28 KB to 172.83 KB (6,720 lines)
  • ✅ Added clear documentation about CSS import usage
  • ✅ Improved devcontainer port forwarding configuration

Testing

  • ✅ All tests pass
  • ✅ Build succeeds
  • ✅ Showcase app works with properly styled components
  • ✅ No CSS conflicts when used correctly

Breaking Changes

None - this is a bug fix that makes components work as intended.

Developer added 10 commits June 6, 2025 06:35
…e default port forwarding (was 5 ports always open) - Enable automatic port detection only when services are running - Configure smart port attributes for different service types - Update documentation with usage examples - Prevents blocking 28+ ports on local machine unnecessarily
….sh script for automatic GitHub CLI authentication - Configure devcontainer to load .env file for GH_TOKEN - Integrate authentication into post-create workflow - Support both GH_TOKEN and git credentials from environment - Enhance error handling and user feedback
…ve warning messages when no GH_TOKEN is provided - Silent skip when token is not available - Change exit code from error (1) to success (0) for missing token - Improve user experience for developers without GitHub tokens
…plicit .env file loading with automatic variable export - Add debugging output to show GH_TOKEN detection - Use set -a/+a to properly export environment variables to subprocesses - Ensure authentication works even when container runArgs env loading fails
…as causing script to exit silently when gh auth status returned error code - Script now properly handles authentication status checks and shows appropriate messages - Both with-token and without-token scenarios now work correctly
… Check for persistent auth file instead of environment-based auth - Temporarily unset GH_TOKEN during login to force credential storage - Now properly detects existing persistent credentials vs temp env auth - GitHub CLI commands work correctly without environment variables
…- Add explicit export of GH_TOKEN before calling auth script - Add explicit export of git configuration variables - Environment loading with set -a/+a was not sufficient for subshell access - GitHub CLI authentication now works correctly in post-create script
…o longer relies on environment variables being exported from parent shells - Includes robust .env file parsing with proper quote handling - Gracefully handles missing .env file while still detecting persistent credentials - Works correctly in any shell context without prior environment setup - Resolves issue where new shells couldn't find GH_TOKEN
… complex environment loading logic from post-create.sh - Delegate all .env handling to gh-auth.sh which now handles it internally - Cleaner separation of concerns between scripts - Post-create script is now simpler and more maintainable
- Add import of globals.css to ui-kit index.ts

- Fix distributed CSS missing Tailwind utility classes

- Distributed CSS now includes 6,720 lines vs previous 61 lines

- Add clear documentation about CSS import usage

- Improve devcontainer port forwarding configuration

- Update showcase vite config for devcontainer compatibility

Fixes #48
@christoph2806 christoph2806 merged commit e61a8a1 into develop Jun 6, 2025
7 checks passed
@christoph2806 christoph2806 deleted the fix/issue-48-css-styles-missing-from-dist branch June 6, 2025 11:00
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

🐛 Component CSS styles missing from distribution build

1 participant