add comment to color helper (#19852)

This commit is contained in:
Duke Greene 2023-08-02 07:01:42 -04:00 committed by GitHub
parent 8eaab43ca4
commit 6d5c451cd7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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