Migrate to Tailwind v4

This commit is contained in:
Claudio Ortolina
2025-02-28 20:06:39 +00:00
parent a218942110
commit d9e87d6c80
6 changed files with 88 additions and 109 deletions
+35 -4
View File
@@ -1,5 +1,36 @@
@import "tailwindcss/base";
@import "tailwindcss/components";
@import "tailwindcss/utilities";
@variant phx-click-loading (.phx-click-loading&, .phx-click-loading &);
@variant phx-submit-loading (.phx-submit-loading&, .phx-submit-loading &);
@variant phx-change-loading (.phx-change-loading&, .phx-change-loading &);
/* This file is for your main application CSS */
@plugin "./heroicons.tailwind.plugin.js";
@plugin "@tailwindcss/forms";
@import "tailwindcss";
@theme {
--color-brand: #d4af37;
--font-sans:
"Inter", ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji",
"Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
--animate-shake: shake 0.82s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
@keyframes shake {
10%,
90% {
transform: translate3d(-1px, 0, 0);
}
20%,
80% {
transform: translate3d(2px, 0, 0);
}
30%,
50%,
70% {
transform: translate3d(-4px, 0, 0);
}
40%,
60% {
transform: translate3d(4px, 0, 0);
}
}
}