MCPcopy Create free account
hub / github.com/dailydotdev/apps / getShadowPalette

Function getShadowPalette

packages/shared/tailwind/boxShadow.ts:13–20  ·  view source on GitHub ↗
(key, shadow)

Source from the content-addressed store, hash-verified

11};
12
13const getShadowPalette = (key, shadow) =>
14 [...Object.keys(colors), 'black'].reduce(
15 (acc, color) => ({
16 ...acc,
17 [`${key}-${color}`]: shadow(shadowColor(color)),
18 }),
19 {},
20 );
21
22const baseShadows = {
23 2: (color) => `0 0.375rem 0.375rem -0.125rem ${color}66`,

Callers 1

boxShadow.tsFile · 0.85

Calls 1

shadowColorFunction · 0.85

Tested by

no test coverage detected