Skip to content
Discussion options

You must be logged in to vote

You'd want to @import the source CSS of project-a into project-b.

In project-a, retain src/theme/theme.css:

--- 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 @import "tailwindcss" in theme.css to avoid duplicate CSS when project-b consumes it:

--- 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 @import in project-b to point to s…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@NicolasZim
Comment options

Comment options

You must be logged in to vote
2 replies
@NicolasZim
Comment options

@wongjn
Comment options

wongjn Oct 21, 2025
Collaborator

Answer selected by NicolasZim
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
3 participants