live_beats/assets/tailwind.config.js

30 lines
1.2 KiB
JavaScript
Raw Normal View History

2022-01-07 18:42:04 +00:00
// See the Tailwind configuration guide for advanced usage
// https://tailwindcss.com/docs/configuration
2024-04-09 00:53:14 +00:00
const plugin = require("tailwindcss/plugin")
2022-05-13 18:52:19 +00:00
2021-09-02 18:00:57 +00:00
module.exports = {
2022-01-07 18:42:04 +00:00
content: [
2024-04-09 00:53:14 +00:00
"./js/**/*.js",
"../lib/*_web.ex",
"../lib/*_web/**/*.*ex"
2021-09-02 18:00:57 +00:00
],
theme: {
extend: {},
},
2021-09-03 13:57:15 +00:00
plugins: [
2024-04-09 00:53:14 +00:00
require('@tailwindcss/forms'),
// Allows prefixing tailwind classes with LiveView classes to add rules
// only when LiveView classes are applied, for example:
//
// <div class="phx-click-loading:animate-ping">
//
plugin(({addVariant}) => addVariant("phx-no-feedback", [".phx-no-feedback&", ".phx-no-feedback &"])),
plugin(({addVariant}) => addVariant("phx-click-loading", [".phx-click-loading&"])),
plugin(({addVariant}) => addVariant("phxp-click-loading", [".phx-click-loading &"])),
plugin(({addVariant}) => addVariant("phx-submit-loading", [".phx-submit-loading &"])),
plugin(({addVariant}) => addVariant("phx-submitter-loading", [".phx-submit-loading&"])),
plugin(({addVariant}) => addVariant("phx-change-loading", [".phx-change-loading&", ".phx-change-loading &"])),
plugin(({addVariant}) => addVariant("phx-error", [".phx-error&", ".phx-error &"]))
2022-01-07 18:42:04 +00:00
]
}