Function
ghostTextLight
(color: ColorName | undefined)
Source from the content-addressed store, hash-verified
| 124 | * deliberately does *not* reuse this ladder. |
| 125 | */ |
| 126 | const ghostTextLight = (color: ColorName | undefined): GhostLadder => { |
| 127 | if (!color) { |
| 128 | return NEUTRAL_GHOST; |
| 129 | } |
| 130 | switch (color) { |
| 131 | case 'blueCheese': |
| 132 | case 'avocado': |
| 133 | case 'lettuce': |
| 134 | case 'cheese': |
| 135 | case 'bun': |
| 136 | case 'bacon': |
| 137 | return { hover: palette[color]['80'], active: palette[color]['90'] }; |
| 138 | default: |
| 139 | return { hover: palette[color]['60'], active: palette[color]['70'] }; |
| 140 | } |
| 141 | }; |
| 142 | |
| 143 | /** |
| 144 | * Dark-theme ghost text on hover / active. |
Tested by
no test coverage detected