petal init

This commit is contained in:
Rodolphe Marbot 2022-06-03 14:50:06 +02:00
parent 81a9f68a22
commit 978de52a09
11 changed files with 103 additions and 35 deletions

View file

@ -1,4 +1,13 @@
/* This file is for your main application CSS */
/* Import tailwind - with postcss-import installed */
@import "tailwindcss/base";
@import "tailwindcss/components";
@import "tailwindcss/utilities";
/* custom styles - put after base imports! */
@import "./custom-styles.css";
/* import custom components */
@import "./components/buttons.css";
/* default phoenix styles - eventually remove */
@import "./phoenix.css";
/* Alerts and form errors used by phx.new */

View file

@ -0,0 +1,8 @@
@layer components {
.btn-redish {
@apply bg-red-300 hover:bg-red-600 text-blue-800 font-bold py-2 px-4 rounded;
}
.btn-greenish {
@apply bg-green-300 hover:bg-green-600 text-blue-800 font-bold py-2 px-4 rounded;
}
}

View file