Files
vexplor/frontend/components/admin/dashboard/widgets/yard-3d/constants.ts
DDD1542 4f10b5e42d refactor: 전체 프론트엔드 하드코딩 색상 → CSS 변수 일괄 치환
447+ 파일, 4500+ 줄 변경:
- gray-* → border/bg-muted/text-foreground/text-muted-foreground
- blue-* → primary/ring
- red-* → destructive
- green-* → emerald (일관성)
- indigo-* → primary
- yellow/orange → amber (통일)
- dark mode 변형도 시맨틱 토큰으로 변환

Made-with: Cursor
2026-03-09 14:31:59 +09:00

31 lines
909 B
TypeScript

/**
* 디지털 트윈 3D 야드 - 공통 상수
*/
// 객체 타입별 색상 매핑 (HEX 코드)
export const OBJECT_COLORS: Record<string, string> = {
area: "#3b82f6", // 파란색
"location-bed": "#2563eb", // 진한 파란색
"location-stp": "#6b7280", // 회색
"location-temp": "#f59e0b", // 주황색
"location-dest": "#10b981", // 초록색
"crane-mobile": "#8b5cf6", // 보라색
rack: "#ef4444", // 빨간색
};
// Tailwind 색상 클래스 매핑 (아이콘용)
export const OBJECT_COLOR_CLASSES: Record<string, string> = {
area: "text-primary",
"location-bed": "text-primary",
"location-stp": "text-muted-foreground",
"location-temp": "text-amber-500",
"location-dest": "text-emerald-500",
"crane-mobile": "text-purple-500",
rack: "text-destructive",
};
// 기본 색상
export const DEFAULT_COLOR = "#3b82f6";
export const DEFAULT_COLOR_CLASS = "text-primary";