Skip to content

TailwindCSS Integration #280

Answered by silviogutierrez
lukezsmith asked this question in Q&A
Discussion options

You must be logged in to vote

I actually use TailwindCSS in production now, and plan to add built-in support to reactivated. Here's what I did.

  1. Install https://www.npmjs.com/package/patch-package
  2. Install tailwind
  3. Use the patch below.
  4. Create client/input.css as tailwind would normally require.
  5. In client/index.tsx add import "@reactivated/tailwind.css" at the very top.
diff --git a/node_modules/reactivated/dist/build.client.mjs b/node_modules/reactivated/dist/build.client.mjs
index f5476c7..341453e 100755
--- a/node_modules/reactivated/dist/build.client.mjs
+++ b/node_modules/reactivated/dist/build.client.mjs
@@ -12,6 +12,13 @@ const env = {
     BUILD_VERSION: process.env.BUILD_VERSION,
     TAG_VERSION: process.env.…

Replies: 2 comments 2 replies

Comment options

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

@silviogutierrez
Comment options

Answer selected by lukezsmith
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants