MCPcopy Create free account
hub / github.com/callstack/react-native-paper / argbThemeFromColor

Function argbThemeFromColor

docs/src/utils/themes.tsx:43–48  ·  view source on GitHub ↗
(
  color: string,
  type: 'light' | 'dark' = 'light'
)

Source from the content-addressed store, hash-verified

41];
42
43const argbThemeFromColor = (
44 color: string,
45 type: 'light' | 'dark' = 'light'
46) => {
47 return themeFromSourceColor(argbFromHex(color)).schemes[type].toJSON();
48};
49
50const argbThemeToHexTheme = (theme: ARGBTheme) => {
51 return Object.fromEntries(

Callers 3

hexThemeFromColorFunction · 0.85
prepareCustomColorsFunction · 0.85
prepareVariantFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…