Skip to content

Commit

Permalink
update readme for tailwind config
Browse files Browse the repository at this point in the history
  • Loading branch information
inmanturbo committed Jan 30, 2024
1 parent 6012eb6 commit ac7ba5e
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,35 @@ Route::get('/user', function (Request $request) {
+})->middleware('auth:api');
```

9. Lastly, for postcss processing of styles, you can edit tailwind.config.js to include '.vendor/headerx/laravel-jetstream-passport/resources/views/**/*.blade.php'

```js
import defaultTheme from 'tailwindcss/defaultTheme';
import forms from '@tailwindcss/forms';
import typography from '@tailwindcss/typography';

/** @type {import('tailwindcss').Config} */
export default {
content: [
'./vendor/laravel/framework/src/Illuminate/Pagination/resources/views/*.blade.php',
'.vendor/headerx/laravel-jetstream-passport/resources/views/**/*.blade.php',
'./vendor/laravel/jetstream/**/*.blade.php',
'./storage/framework/views/*.php',
'./resources/views/**/*.blade.php',
],

theme: {
extend: {
fontFamily: {
sans: ['Figtree', ...defaultTheme.fontFamily.sans],
},
},
},

plugins: [forms, typography],
};
```

## Testing

```bash
Expand Down

0 comments on commit ac7ba5e

Please sign in to comment.