progress on invoices.

This commit is contained in:
2024-03-14 07:16:59 -07:00
parent 3b49a0804a
commit 5b9c4b7aef
17 changed files with 519 additions and 110 deletions

View File

@@ -17,25 +17,31 @@
(nil? color)
"white"
(sequential? color)
(first color)
:else
color)
base-weight (or (when (sequential? color)
(second color))
500)
disabled-weight (when disabled 400)]
(format " bg-%s-%d hover:bg-%s-%d focus:ring-%s-%d dark:bg-%s-%d dark:hover:bg-%s-%d "
base-color
(or disabled-weight 500)
(or disabled-weight (+ base-weight 0))
base-color
(or disabled-weight 600)
(or disabled-weight (+ base-weight 100))
base-color
(or disabled-weight 200)
(or disabled-weight (int (* base-weight 0.5)))
base-color
(or disabled-weight 600)
(or disabled-weight (+ base-weight 100))
base-color
(or disabled-weight 700)
(or disabled-weight (+ base-weight 200))
)))