I was running into this issue myself! What I ended up doing was to add the shared folder to the tailwind.config.js
in the content setting. For instance, my config has this line
content: ['./src/**/*.{js,jsx,ts,tsx}', './public/index.html', '../shared/**/*.{js,jsx,ts,tsx}']
where all of my common components are in the shared
folder/workspace.