MCPcopy
hub / github.com/darkreader/darkreader / getSystemColor

Function getSystemColor

src/utils/color.ts:443–451  ·  view source on GitHub ↗
($color: string)

Source from the content-addressed store, hash-verified

441}
442
443function getSystemColor($color: string): RGBA {
444 const n = systemColors.get($color)!;
445 return {
446 r: (n >> 16) & 255,
447 g: (n >> 8) & 255,
448 b: (n >> 0) & 255,
449 a: 1,
450 };
451}
452
453// lowerCalcExpression is a helper function that tries to remove `calc(...)`
454// expressions from the given string. It can only lower expressions to a certain

Callers 1

parseFunction · 0.85

Calls 1

getMethod · 0.65

Tested by

no test coverage detected