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

Function shadowColor

packages/shared/tailwind/boxShadow.ts:3–11  ·  view source on GitHub ↗
(color)

Source from the content-addressed store, hash-verified

1import colors from './colors';
2
3const shadowColor = (color) => {
4 if (color === 'black') {
5 return '#000000';
6 }
7 if (color === 'salt') {
8 return colors[color]['90'];
9 }
10 return colors[color]['50'];
11};
12
13const getShadowPalette = (key, shadow) =>
14 [...Object.keys(colors), 'black'].reduce(

Callers 1

getShadowPaletteFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected