add comment to color helper (#19852)
This commit is contained in:
parent
8eaab43ca4
commit
6d5c451cd7
1 changed files with 1 additions and 0 deletions
|
|
@ -1,4 +1,5 @@
|
|||
module ColorHelper
|
||||
# default shade is based on converting our `indigo-600` (rgb 79,70,229) to hex
|
||||
def gradient_from_hex(hex = "#4F46E5")
|
||||
return { light: "#4f46e5", dark: "#312c8f" } unless hex.is_a? String
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue