Aucune description

tailwind.config.js 1.8KB

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