tailwind.config.js 1.0 KB

1234567891011121314151617181920212223242526272829303132
  1. /*
  2. * Copyright 2026 Alessandro Chiapparini <sprint_planer_web@chiapparini.org>
  3. * SPDX-License-Identifier: Apache-2.0
  4. *
  5. * Licensed under the Apache License, Version 2.0 (the "License");
  6. * you may not use this file except in compliance with the License.
  7. * See the LICENSE file in the project root for the full license text.
  8. */
  9. /** @type {import('tailwindcss').Config} */
  10. module.exports = {
  11. darkMode: 'class',
  12. content: [
  13. './views/**/*.twig',
  14. './src/**/*.php',
  15. './public/assets/js/**/*.js',
  16. ],
  17. // Phase 18 status classes are interpolated server-side
  18. // ("assign-status-{{ st }}"), so Tailwind's content scanner can't see
  19. // the literal class names and would otherwise prune the rules from
  20. // assets/css/input.css's @layer components block. The safelist keeps
  21. // them in the build.
  22. safelist: [
  23. 'assign-status-zugewiesen',
  24. 'assign-status-gestartet',
  25. 'assign-status-abgeschlossen',
  26. 'assign-status-abgebrochen',
  27. ],
  28. theme: {
  29. extend: {},
  30. },
  31. plugins: [],
  32. };