MCPcopy Index your code
hub / github.com/simstudioai/sim / getRandomWorkspaceColor

Function getRandomWorkspaceColor

apps/sim/lib/workspaces/colors.ts:16–18  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

14
15/** Picks a random workspace color from the hero palette. */
16export function getRandomWorkspaceColor(): string {
17 return randomItem(WORKSPACE_COLORS)
18}
19
20const APP_COLORS = [
21 { from: '#4F46E5', to: '#7C3AED' }, // indigo to purple

Callers 1

createWorkspaceFunction · 0.90

Calls 1

randomItemFunction · 0.90

Tested by

no test coverage detected