[v4] Tailwind Not Generating Unused @theme static Utilities from a custom package
              
              #18440
            
            -
| TL;DRTailwind CSS, when used with  🚀 Stack
 🔗 Repository for ReproductionA minimal reproduction repository is available here: https://github.com/NicolasZim/poc-tailwind-rslib-issue 📝 Issue Description
 The problem arises when  According to my understanding, using  If you inspect the provided reproduction repository, you'll observe that custom colors prefixed with  💻 Code Samples (from  | 
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
| Has this been fixed? Is there a better workaround for this? Having the exact same issue, but implemented another workaround using   | 
Beta Was this translation helpful? Give feedback.
-
| You'd want to  In  --- a/packages/project-a/package.json
+++ b/packages/project-a/package.json
@@ -19,7 +19,8 @@
 	},
 	"types": "./dist/index.d.ts",
 	"files": [
-		"dist"
+		"dist",
+		"src/theme/theme.css"
 	],
 	"scripts": {
 		"build": "rslib build",Remove the  --- a/packages/project-a/src/theme/theme.css
+++ b/packages/project-a/src/theme/theme.css
@@ -1,5 +1,3 @@
-@import "tailwindcss";
-
 @theme static {
 	--color-al-teal-10: #eaeeee;
 	--color-al-teal-25: #cad4d5;Change the  --- a/packages/project-b/src/global.css
+++ b/packages/project-b/src/global.css
@@ -1,3 +1,3 @@
 @import "tailwindcss";
-@import "../node_modules/project-a/dist/theme/global.css";
+@import "../node_modules/project-a/src/theme/theme.css";
 @source "../node_modules/project-a/dist/**/*.{ts,tsx}"; | 
Beta Was this translation helpful? Give feedback.
You'd want to
@importthe source CSS ofproject-aintoproject-b.In
project-a, retainsrc/theme/theme.css:Remove the
@import "tailwindcss"intheme.cssto avoid duplicate CSS whenproject-bconsumes it:Change the
@importinproject-bto point tos…