guardia-messenger/constants/Config.ts

57 lines
1.6 KiB
TypeScript

import Constants from 'expo-constants'
export const API_BASE = Constants.expoConfig?.extra?.guardiaApiUrl ?? 'https://zioinfo.co.kr:8443'
/* Variant 디자인 토큰 (#003366 딥네이비 / #005A8C 미드블루 / #00A0C8 시안) */
export const COLORS = {
primary: '#003366', /* 딥네이비 */
blue: '#005A8C', /* 미드블루 */
accent: '#00A0C8', /* 시안 포인트 */
light: '#E8F7FB', /* 연시안 배경 */
bg: '#F8FAFC', /* 페이지 배경 */
card: '#ffffff',
border: '#E2E8F0',
text: '#1E293B',
muted: '#64748B',
success: '#22c55e',
warning: '#f59e0b',
danger: '#ef4444',
gnbBg: '#001530', /* 딥네이비 헤더 */
white: '#ffffff',
} as const
export const PRIORITY_COLOR: Record<string, string> = {
CRITICAL: '#ef4444',
HIGH: '#f59e0b',
MEDIUM: '#00A0C8', /* 시안으로 변경 */
LOW: '#22c55e',
}
export const STATUS_COLOR: Record<string, string> = {
RECEIVED: '#94a3b8',
IN_PROGRESS: '#4f6ef7',
PENDING_APPROVAL: '#f59e0b',
COMPLETED: '#22c55e',
FAILED_ROLLBACK: '#ef4444',
REJECTED: '#dc2626',
}
export const DARK_COLORS = {
gnbBg: '#0F172A',
bg: '#1E293B',
card: '#334155',
text: '#F1F5F9',
muted: '#94A3B8',
border: '#475569',
accent: '#38BDF8',
success: '#34D399',
warning: '#FBBF24',
danger: '#F87171',
white: '#ffffff',
} as const
export const WS_BASE = (() => {
const base = (Constants.expoConfig?.extra?.guardiaApiUrl ?? 'https://zioinfo.co.kr:8443') as string
return base.replace(/^https:\/\//, 'wss://').replace(/^http:\/\//, 'ws://')
})()