( base: BaseColor | C )
| 239 | * references. |
| 240 | */ |
| 241 | export function baseColor<C extends string = BaseColor>( |
| 242 | base: BaseColor | C |
| 243 | ): {default: C; isHovered: C; isFocusVisible: C; isPressed: C} { |
| 244 | return { |
| 245 | default: base as C, |
| 246 | isHovered: `${base}:hovered` as C, |
| 247 | isFocusVisible: `${base}:focused` as C, |
| 248 | isPressed: `${base}:pressed` as C |
| 249 | }; |
| 250 | } |
| 251 | |
| 252 | type SpectrumColor = Color<BaseColor> | ArbitraryValue; |
| 253 |
no outgoing calls
no test coverage detected