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

Function hexThemeFromColor

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

Source from the content-addressed store, hash-verified

66};
67
68export const hexThemeFromColor = (
69 color: string,
70 type: 'light' | 'dark' = 'light'
71) => {
72 return argbThemeToHexTheme(argbThemeFromColor(color, type));
73};
74
75const prepareSurfaceColors = (argbTheme: ARGBTheme) => {
76 const { palettes } = themeFromSourceColor(argbTheme.primary);

Callers 1

DynamicColorThemeFunction · 0.90

Calls 2

argbThemeToHexThemeFunction · 0.85
argbThemeFromColorFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…