|
| 1 | +/** |
| 2 | + * This is a minimal config. |
| 3 | + * |
| 4 | + * If you need the full config, get it from here: |
| 5 | + * https://unpkg.com/browse/tailwindcss@latest/stubs/defaultConfig.stub.js |
| 6 | + */ |
| 7 | + |
| 8 | +module.exports = { |
| 9 | + content: [ |
| 10 | + /** |
| 11 | + * HTML. Paths to Django template files that will contain Tailwind CSS classes. |
| 12 | + */ |
| 13 | + |
| 14 | + /* Templates within theme app (<tailwind_app_name>/templates), e.g. base.html. */ |
| 15 | + '../templates/**/*.html', |
| 16 | + |
| 17 | + /* |
| 18 | + * Main templates directory of the project (BASE_DIR/templates). |
| 19 | + * Adjust the following line to match your project structure. |
| 20 | + */ |
| 21 | + '../../templates/**/*.html', |
| 22 | + |
| 23 | + /* |
| 24 | + * Templates in other django apps (BASE_DIR/<any_app_name>/templates). |
| 25 | + * Adjust the following line to match your project structure. |
| 26 | + */ |
| 27 | + '../../**/templates/**/*.html', |
| 28 | + |
| 29 | + /** |
| 30 | + * JS: If you use Tailwind CSS in JavaScript, uncomment the following lines and make sure |
| 31 | + * patterns match your project structure. |
| 32 | + */ |
| 33 | + /* JS 1: Ignore any JavaScript in node_modules folder. */ |
| 34 | + // '!../../**/node_modules', |
| 35 | + /* JS 2: Process all JavaScript files in the project. */ |
| 36 | + // '../../**/*.js', |
| 37 | + |
| 38 | + /** |
| 39 | + * Python: If you use Tailwind CSS classes in Python, uncomment the following line |
| 40 | + * and make sure the pattern below matches your project structure. |
| 41 | + */ |
| 42 | + // '../../**/*.py' |
| 43 | + ], |
| 44 | + theme: { |
| 45 | + extend: {}, |
| 46 | + }, |
| 47 | + plugins: [ |
| 48 | + /** |
| 49 | + * '@tailwindcss/forms' is the forms plugin that provides a minimal styling |
| 50 | + * for forms. If you don't like it or have own styling for forms, |
| 51 | + * comment the line below to disable '@tailwindcss/forms'. |
| 52 | + */ |
| 53 | + require('@tailwindcss/forms'), |
| 54 | + require('@tailwindcss/typography'), |
| 55 | + require('@tailwindcss/aspect-ratio'), |
| 56 | + ], |
| 57 | +} |
0 commit comments