MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / getColorScheme

Function getColorScheme

console/src/components/Alert.tsx:45–66  ·  view source on GitHub ↗
(
  colors: MaterializeTheme["colors"],
)

Source from the content-addressed store, hash-verified

43}
44
45function getColorScheme(
46 colors: MaterializeTheme["colors"],
47): Record<AlertVariant, { border: string; background: string }> {
48 return {
49 error: {
50 border: colors.border.error,
51 background: colors.background.error,
52 },
53 info: {
54 border: colors.border.info,
55 background: colors.background.info,
56 },
57 warning: {
58 border: colors.border.warn,
59 background: colors.background.warn,
60 },
61 success: {
62 border: colors.accent.darkGreen,
63 background: colors.accent.darkGreen,
64 },
65 };
66}
67
68export const Alert = forwardRef(
69 (

Callers 2

Alert.tsxFile · 0.85
AlertBannerContentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected