aboutsummaryrefslogtreecommitdiffstats
path: root/src/app.css
diff options
context:
space:
mode:
authorJurjen de Vries <[email protected]>2025-09-11 00:48:15 +0200
committerGitHub <[email protected]>2025-09-11 00:48:15 +0200
commit0c69c9848c6b98c92609d209103efc60003c9723 (patch)
tree445121def885f13d0f80c06864ad2ff4d5ef95a1 /src/app.css
parent2abcf6e435fca5d86960f3ba4228002bfb0a19e6 (diff)
parent9277b2921e09ee9dd5f39cf4af30a2330f4d95d1 (diff)
downloadcoinos-ui-0c69c9848c6b98c92609d209103efc60003c9723.tar.gz
coinos-ui-0c69c9848c6b98c92609d209103efc60003c9723.zip
Merge branch 'coinos:master' into master
Diffstat (limited to 'src/app.css')
-rw-r--r--src/app.css80
1 files changed, 52 insertions, 28 deletions
diff --git a/src/app.css b/src/app.css
index f01c9346..901893b9 100644
--- a/src/app.css
+++ b/src/app.css
@@ -1,48 +1,67 @@
+/* 1) Load Tailwind first */
+@import "tailwindcss";
@tailwind base;
@tailwind components;
@tailwind utilities;
-@font-face {
- font-family: "PublicSans";
- src: url("/fonts/Public_Sans/static/PublicSans-Regular.ttf")
- format("truetype");
+/* 2) Register DaisyUI themes */
+@plugin "daisyui" {
+ themes: lofi --default, black --prefersdark;
}
-html {
- font-family: PublicSans, sans-serif;
+@plugin "daisyui/theme" {
+ name: "lofi";
+ default: true;
+ --gradient: #C3CFE2;
+ --color-error: #b91c1c;
}
-::selection {
- color: black;
- background: #eaf2ff;
+@plugin "daisyui/theme" {
+ name: "black";
+ prefersdark: true;
+ --gradient: #C3CFE2;
+ --color-secondary: #CCC;
+ --color-error: #f87171;
}
-:fullscreen {
- background-color: white;
-}
+/* 3) Tell Tailwind which layers we’ll @apply from */
+@reference utilities;
+@reference components;
-input:not([type="range"]) {
- @apply input
+/* 4) Now your custom CSS that uses @apply */
+.btn-menu {
+ @apply flex justify-center items-center bg-base-100 p-2 rounded-full
+ w-12 h-12 sm:w-16 sm:h-16 drop-shadow-xl;
}
-.input {
- @apply input-bordered input-lg input-primary;
+@font-face {
+ font-family: "PublicSans";
+ src: url("/fonts/Public_Sans/static/PublicSans-Regular.ttf") format("truetype");
}
-textarea {
- @apply textarea textarea-bordered textarea-lg textarea-primary;
-}
+html { font-family: PublicSans, sans-serif; }
-select {
- @apply select select-bordered select-lg select-primary;
-}
+::selection { color: black; background: #eaf2ff; }
+:fullscreen { background-color: white; }
-input:not([type="range"]), textarea, select, .input {
- @apply w-full rounded-2xl;
+/* Note: @apply-ing DaisyUI component classes requires components reference */
+.input { @apply input-lg input-primary h-16 px-4; }
+
+/* If you want to *turn* native inputs into DaisyUI inputs via @apply: */
+input[type="text"],
+input[type="email"],
+input[type="password"],
+input[type="number"],
+input[type="search"],
+input[type="url"],
+input[type="tel"] {
+ @apply input input-lg input-primary h-16 px-4;
}
+textarea { @apply textarea textarea-lg textarea-primary py-4; }
+select { @apply select select-lg select-primary h-16 px-4; }
-textarea:focus, textarea:focus-within, .input:focus, .input:focus-within {
- @apply outline-offset-0;
+input:not([type="range"]), textarea, select, .input {
+ @apply rounded-2xl w-full;
}
input.clean, textarea.clean {
@@ -54,6 +73,11 @@ input.clean, textarea.clean {
box-shadow: none !important;
}
-.btn {
- @apply rounded-2xl btn-lg btn-block outline-none
+button { cursor: pointer !important; }
+.btn { @apply rounded-2xl btn-lg btn-block outline-none h-16 cursor-pointer; }
+
+@layer components {
+ :where(input, textarea, select, .input, .textarea, .select) {
+ outline-offset: 0 !important;
+ }
}