/**
 * Shared accent color palette — used for user profile color picker and
 * for assigning default colors to newly created users.
 *
 * Each entry is a single color chosen to remain readable on both light and
 * dark surfaces, so the CSS token layer (see applyAccentColor in
 * stores/workspace.svelte.ts) no longer flips foreground vs. background
 * swatches based on theme — one color fills every accent role.
 */
// The accent palette. Order matches the design source (left to right).
// Red doubles as --color-accent and Lilac as --color-agent so the global
// system tokens always have a palette member to match; users can still pick
// either for their personal avatar.
// Ordered for the picker: red-family first (Red → Rose → Orange),
// then earthy/green (Sand → Pistachio → Mint), cool middle (Teal → Sky → Slate),
// and purples/magenta last (Violet → Lilac → Orchid → Pink).
export const ACCENT_PALETTE = [
    { name: 'Red', color: '#FE3C3C' },
    { name: 'Rose', color: '#C06A6A' },
    { name: 'Orange', color: '#CC7013' },
    { name: 'Sand', color: '#AB8630' },
    { name: 'Pistachio', color: '#5A9A08' },
    { name: 'Mint', color: '#369770' },
    { name: 'Teal', color: '#289795' },
    { name: 'Sky', color: '#4289C4' },
    { name: 'Slate', color: '#718599' },
    { name: 'Violet', color: '#7C7CD9' },
    { name: 'Lilac', color: '#B267F3' },
    { name: 'Orchid', color: '#B269C0' },
    { name: 'Pink', color: '#DC6CD4' },
];
/**
 * Pick a deterministic default accent color for a new user, rotating
 * through the palette based on their user id. Optionally excludes a
 * reserved color (typically the workspace accent) to avoid collision.
 */
export function pickDefaultAccentColor(userId, reserved) {
    const reservedLower = reserved?.toLowerCase();
    const pool = reservedLower
        ? ACCENT_PALETTE.filter(c => c.color.toLowerCase() !== reservedLower)
        : ACCENT_PALETTE;
    if (pool.length === 0)
        return ACCENT_PALETTE[0].color;
    const idx = ((userId - 1) % pool.length + pool.length) % pool.length;
    return pool[idx].color;
}
//# sourceMappingURL=accent-palette.js.map