import { CSSProperties } from 'react';

// Common Brand Colors from Design Tokens
export const colors = {
    primary: '#000000',
    secondary: '#F4F4F5',
    background: '#FFFFFF',
    foreground: '#09090B',
    muted: '#F4F4F5',
    destructive: '#EF4444',
    success: '#10B981',
    text: '#333333',
    textMuted: '#6B7280',
    border: '#E5E7EB',
};

// Font Families
export const fonts = {
    main: '"Inter", "Helvetica Neue", Helvetica, Arial, sans-serif',
};

// Converts a React CSSProperties object to an inline CSS string
export function toInlineStyle(styles: CSSProperties): string {
    return Object.entries(styles)
        .map(([key, value]) => {
            // Convert camelCase to kebab-case
            const cssKey = key.replace(/([A-Z])/g, '-$1').toLowerCase();
            return `${cssKey}:${value}`;
        })
        .join(';');
}
