Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

570 B
Raw Blame
import { makePersisted } from '@solid-primitives/storage';
import { createSignal } from 'solid-js';
import { workspaceAccentNamed } from '../core/workspace-accent';

/** The workspace accent follows the user between the introductory slides. */
export function createWorkspaceAccent() {
  const [appearance, setAppearance] = makePersisted(
    createSignal({ color: 'Mint' }),
    { name: 'macro-workspace-intro-appearance' }
  );
  return {
    accent: () => workspaceAccentNamed(appearance().color),
    select: (name: string) => setAppearance({ color: name }),
  };
}