Function
ghostTextLight
(color: ColorName | undefined)
Source from the content-addressed store, hash-verified
| 65 | }; |
| 66 | |
| 67 | const ghostTextLight = (color: ColorName | undefined): GhostLadder => { |
| 68 | if (!color) { |
| 69 | return NEUTRAL_GHOST; |
| 70 | } |
| 71 | switch (color) { |
| 72 | case 'blueCheese': |
| 73 | case 'avocado': |
| 74 | case 'lettuce': |
| 75 | case 'cheese': |
| 76 | case 'bun': |
| 77 | case 'bacon': |
| 78 | return { hover: palette[color]['80'], active: palette[color]['90'] }; |
| 79 | default: |
| 80 | return { hover: palette[color]['60'], active: palette[color]['70'] }; |
| 81 | } |
| 82 | }; |
| 83 | |
| 84 | const ghostTextDark = (color: ColorName | undefined): GhostLadder => { |
| 85 | if (!color) { |
Tested by
no test coverage detected