diff options
| author | Adam Soltys <[email protected]> | 2024-11-20 20:06:46 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2024-11-20 20:06:46 -0800 |
| commit | 476f8947a36be58a77dccc12758ea8b0206611a6 (patch) | |
| tree | 9e660be7f9b95ca58a9a4ca62dd7de9f5d42f372 | |
| parent | 38a85c8d8e854a7ac935c232b7e3e046e08bc002 (diff) | |
| download | coinos-ui-476f8947a36be58a77dccc12758ea8b0206611a6.tar.gz coinos-ui-476f8947a36be58a77dccc12758ea8b0206611a6.zip | |
payment color
| -rw-r--r-- | src/routes/(app)/payments/[...page]/+page.svelte | 1 | ||||
| -rw-r--r-- | tailwind.config.cjs | 2 |
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"] |
