I’ve found that you can use postcss-nested for this. Install the plugin, add it as the first plugin to your PostCSS config file and this should work:
.tailwind {
@tailwind base;
@tailwind components;
@tailwind utilities;
@tailwind screens;
}