|
| 1 | +const defaultTheme = require('tailwindcss/defaultTheme') |
| 2 | +const colors = require("tailwindcss/colors"); |
| 3 | + |
| 4 | +/** @type {import('tailwindcss').Config} */ |
| 5 | +module.exports = { |
| 6 | + darkMode: ['class', '[data-mode="dark"]'], |
| 7 | + presets: [ |
| 8 | + // |
| 9 | + ], |
| 10 | + content: [ |
| 11 | + './storage/framework/views/*.php', |
| 12 | + './resources/views/**/*.blade.php', |
| 13 | + './app/View/**/*.php', |
| 14 | + './vendor/step2dev/lazy-ui/src/Component/**/*.blade.php', |
| 15 | + './vendor/step2dev/lazy-ui/resources/views/*.blade.php', |
| 16 | + './app/Livewire/**/*Table.php', |
| 17 | + ], |
| 18 | + theme: { |
| 19 | + extend: { |
| 20 | + fontFamily: { |
| 21 | + 'sans': ['Nunito', ...defaultTheme.fontFamily.sans], |
| 22 | + // 'serif': ['Roboto', ...defaultTheme.fontFamily.serif], |
| 23 | + // 'mono': ['Roboto', ...defaultTheme.fontFamily.mono], |
| 24 | + // 'body': ['Roboto'], |
| 25 | + }, |
| 26 | + transitionProperty: { |
| 27 | + multiple: "width, height, backgroundColor, border-radius" |
| 28 | + } |
| 29 | + } |
| 30 | + }, |
| 31 | + variants: { |
| 32 | + extend: { |
| 33 | + opacity: ['disabled'] |
| 34 | + } |
| 35 | + }, |
| 36 | + plugins: [ |
| 37 | + // require('@tailwindcss/typography'), |
| 38 | + require('@tailwindcss/forms')({ |
| 39 | + strategy: 'class', |
| 40 | + }), |
| 41 | + // require('@tailwindcss/aspect-ratio'), |
| 42 | + // require('@tailwindcss/typography'), |
| 43 | + require('daisyui') |
| 44 | + ], |
| 45 | + daisyui: { |
| 46 | + themes: [ |
| 47 | + "light", |
| 48 | + "dark", |
| 49 | + "cupcake", |
| 50 | + "bumblebee", |
| 51 | + "emerald", |
| 52 | + "corporate", |
| 53 | + "synthwave", |
| 54 | + "retro", |
| 55 | + "cyberpunk", |
| 56 | + "valentine", |
| 57 | + "halloween", |
| 58 | + "garden", |
| 59 | + "forest", |
| 60 | + "aqua", |
| 61 | + "lofi", |
| 62 | + "pastel", |
| 63 | + "fantasy", |
| 64 | + "wireframe", |
| 65 | + "black", |
| 66 | + "luxury", |
| 67 | + "dracula", |
| 68 | + "cmyk", |
| 69 | + "autumn", |
| 70 | + "business", |
| 71 | + "acid", |
| 72 | + "lemonade", |
| 73 | + "night", |
| 74 | + "coffee", |
| 75 | + "winter", |
| 76 | + ],// true: all themes | false: only light + dark | array: specific themes like this ["light", "dark", "cupcake"] |
| 77 | + darkTheme: "dark", // name of one of the included themes for dark mode |
| 78 | + base: false, // applies background color and foreground color for root element by default |
| 79 | + styled: true, // include daisyUI colors and design decisions for all components |
| 80 | + utils: true, // adds responsive and modifier utility classes |
| 81 | + rtl: false, // rotate style direction from left-to-right to right-to-left. You also need to add dir="rtl" to your html tag and install `tailwindcss-flip` plugin for Tailwind CSS. |
| 82 | + prefix: "", // prefix for daisyUI classnames (components, modifiers and responsive class names. Not colors) |
| 83 | + logs: true, // Shows info about daisyUI version and used config in the console when building your CSS |
| 84 | + }, |
| 85 | +} |
0 commit comments