Tailwind automatically removes unused CSS by scanning your files based on the paths you provide in the content array in your tailwind.config.js. If some classes, like text-right and font-bold, are missing, it might be becus Tailwind couldn't detect them in your project.
export default {
content: [
'./vendor/laravel/framework/src/Illuminate/Pagination/resources/views/*.blade.php',
'./storage/framework/views/*.php',
'./resources/views/**/*.blade.php',
'./resources/views/**/*.php',
'./resources/js/**/*.vue', // If you're using Vue.js
'./resources/js/**/*.js', // If you're using JS files
'./resources/**/*.blade.php', // Make sure this covers all Blade templates
],
theme: {
extend: {
fontFamily: {
sans: ['Figtree', ...defaultTheme.fontFamily.sans],
},
},
},
plugins: [forms],
};
then
npm install
npm run dev
php artisan view:clear
php artisan config:clear