aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2024-11-20 20:06:46 -0800
committerAdam Soltys <[email protected]>2024-11-20 20:06:46 -0800
commit4aac26d19d639a26f17b2616fd446ac71014582a (patch)
tree9e660be7f9b95ca58a9a4ca62dd7de9f5d42f372
parent1b3383247aca98f0f811336e398a3d6c03614366 (diff)
downloadcoinos-ui-4aac26d19d639a26f17b2616fd446ac71014582a.tar.gz
coinos-ui-4aac26d19d639a26f17b2616fd446ac71014582a.zip
payment color
-rw-r--r--src/routes/(app)/payments/[...page]/+page.svelte1
-rw-r--r--tailwind.config.cjs2
2 files changed, 3 insertions, 0 deletions
diff --git a/src/routes/(app)/payments/[...page]/+page.svelte b/src/routes/(app)/payments/[...page]/+page.svelte
index 28099ffc..435f5e73 100644
--- a/src/routes/(app)/payments/[...page]/+page.svelte
+++ b/src/routes/(app)/payments/[...page]/+page.svelte
@@ -207,6 +207,7 @@
<div
class="grid grid-cols-12 border-b border-base-200 h-16 hover:bg-base-200"
class:border-b-0={i === payments.length - 1}
+ class:text-error={p.amount < 0}
onclick={() => goto(`/payment/${p.id}`)}
>
<div class="whitespace-nowrap my-auto col-span-3">
diff --git a/tailwind.config.cjs b/tailwind.config.cjs
index 5329478e..0618574a 100644
--- a/tailwind.config.cjs
+++ b/tailwind.config.cjs
@@ -8,6 +8,7 @@ module.exports = {
light: {
...require("daisyui/src/theming/themes").lofi,
gradient: "#C3CFE2",
+ error: "#b91c1c",
},
},
{
@@ -15,6 +16,7 @@ module.exports = {
...require("daisyui/src/theming/themes").black,
secondary: "#CCC",
gradient: "#C3CFE2",
+ error: "#f87171",
},
},
], // false: only light + dark | true: all themes | array: specific themes like this ["light", "dark", "cupcake"]