Skip to content

Working with sibling directory files #2661

Closed Answered by yoodame
yoodame asked this question in Q&A
Discussion options

You must be logged in to vote

Solved!

I wanted to share the solution I found for TailwindCSS not applying styles from *.cljs files in a sibling directory while using GlueStack-UI with NativeWind in an Expo app.

  1. Ensure Tailwind is Watching *.cljs Files in content
    Update your tailwind.config.js to include the sibling directory:
content: [
    "../src/main/app/**/*.{cljc,cljs}", // Watch ClojureScript files in sibling directory
    "components/**/*.{tsx,jsx,ts,js}"  // Watch local JS/TSX files
],

This ensures Tailwind detects changes in your *.cljs files.

  1. Import global.css in Your Main Entry File
    In your index.js (or main entry file), make sure to explicitly import global.css:
import "@/global.css"; // This is crit…

Replies: 1 comment

Comment options

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