공통 테마 적용
Deploy Frontend / deploy (push) Successful in 7m55s

This commit is contained in:
2026-10-12 18:47:26 +09:00
parent 806ccf950f
commit 4efdcfe0fc
7 changed files with 227 additions and 412 deletions
@@ -45,6 +45,36 @@
--form: #fff;
--container: #f1f6f9;
--title: #4c5e6f;
/*
* ── 공통 컴포넌트 색상 토큰 ──
* 카드·팝업·표는 components 패키지 CSS 에서 아래 변수만 사용한다.
* 테마별 색 변경은 이 파일의 [data-theme] 블록에서 변수 값만 바꾼다.
*/
/* 카드 (.card / .card-border / .card-header / .card-footer) */
--card-text: #666666;
--card-surface: rgba(255, 255, 255, 0.6);
--card-border-color: #dbe2e6;
--card-shadow: 0 0 10px -1px rgba(0, 0, 0, 0.06);
--card-divider: #e1e7eb;
/* 구분선 보조 클래스 (.topline / .bottomline) */
--line-top: #cccccc;
--line-bottom: #e6eef3;
--line-bottom-bg: #ffffff;
/* 팝업 (Dialog) */
--dialog-bg: var(--background);
--dialog-border: var(--border);
/* 표 (.table-ui) - default: 목록형 / secondary: 상세·입력형 / line: 선형 */
--table-th-bg: #5987bf;
--table-th-fg: #ffffff;
--table-td-bg: transparent;
--table-td-fg: var(--label);
--table-sub-th-bg: #eaf3fb;
--table-sub-th-fg: #647784;
--table-sub-td-fg: var(--foreground);
--table-line-border: #d4e0ea;
--table-line-th-bg: transparent;
--table-line-th-fg: #555555;
}
/* 블랙 테마: onasys 디자인(design/c) common.css 기준 색상 */
[data-theme="black"] {
@@ -90,14 +120,50 @@
--form: #3a3a3a;
--container: #292929;
--title: #fff;
/* 카드 (onasys 디자인 .card / .card_border) */
--card-text: #dcdcdc;
--card-surface: rgba(255, 255, 255, 0.065);
--card-border-color: #38383a;
--card-shadow: 0 0 10px -7px #000000;
--card-divider: #3f4042;
/* 구분선 (.bottomline) */
--line-top: #3f4042;
--line-bottom: #3f4042;
--line-bottom-bg: transparent;
/* 팝업 (.popup_content) */
--dialog-bg: #404244;
--dialog-border: #4e5154;
/* 표 (tableStyle_D) */
--table-th-bg: #565a5d;
--table-th-fg: #ffffff;
--table-td-bg: #464849;
--table-td-fg: #dadada;
--table-sub-th-bg: #565a5d;
--table-sub-th-fg: #ffffff;
--table-sub-td-fg: #dadada;
--table-line-border: #595e61;
--table-line-th-bg: #565a5d;
--table-line-th-fg: #ffffff;
/* 블랙 전용: 모든 셀 테두리 (table.css 의 블랙 구조 규칙에서 사용) */
--table-th-border: #404244;
--table-row-th-border: #464b4e;
--table-row-th-fg: #f7f7f7;
--table-cell-border: #595e61;
}
[data-theme="red"] {
--primary: #ff4040;
--destructive: #7388ec;
--container: #f6f6f9;
--table-th-bg: #8d8d94;
--table-sub-th-bg: #f6f6f9;
--table-sub-th-fg: #808080;
}
[data-theme="green"] {
--primary: #009a9a;
--container: #f2f2f3;
--table-th-bg: #6bafae;
--table-sub-th-bg: #ebf7f7;
--table-sub-th-fg: #64908f;
}
}
@@ -1,98 +1,7 @@
.card {
position: relative;
margin: 0.6rem;
box-sizing: border-box;
min-height: 2rem;
border-radius: 0.5rem;
padding: 0.6rem;
font-size: 1.3rem;
color: #666;
}
.card_width10 {width:calc(10% - 12px);}
.card_width20 {width:calc(20% - 12px);}
.card_width25 {width:calc(25% - 12px);}
.card_width30 {width:calc(30% - 12px);}
.card_width33 {width:calc(33.333% - 12px);}
.card_width40 {width:calc(40% - 12px);}
.card_width45 {width:calc(45% - 12px);}
.card_width50 {width:calc(50% - 12px);}
.card_width60 {width:calc(60% - 12px);}
.card_width66 {width:calc(66.666% - 12px);}
.card_width70 {width:calc(70% - 12px);}
.card_width75 {width:calc(75% - 12px);}
.card_width80 {width:calc(80% - 12px);}
.card_width90 {width:calc(90% - 12px);}
.card_width100 {width:calc(100% - 12px);}
.card_nopadding {padding:0 !important;}
.card_nomargin {width:100%;margin:0 !important;padding:0 !important;}
.topline {border-top: 1px solid #ccc;}
.bottomline {border-bottom: 1px solid #e6eef3;background: #fff;}
.card-border {
border: 1px solid #dbe2e6;
background-color: rgba(255, 255, 255, 0.6);
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.card-header {
margin-left: -0.6rem;
margin-right: -0.6rem;
display: flex;
align-items: center;
justify-content: space-between;
border-bottom: 1px solid #e1e7eb;
padding: 1rem;
}
.card-footer {
margin-left: -0.6rem;
margin-right: -0.6rem;
margin-top: 0.5rem;
display: flex;
align-items: center;
justify-content: center;
border-top: 1px solid #e1e7eb;
padding-top: 1rem;
padding-bottom: 1rem;
}
/* 블랙 테마 (onasys 디자인 design/c common.css 의 .card / .card_border / .card_title 기준) */
[data-theme="black"] {
.card {
color: #dcdcdc;
}
.card-border {
border-color: #38383a;
background-color: rgba(255, 255, 255, 0.065);
box-shadow: 0 0 10px -7px #000000;
}
.card-header {
border-bottom-color: #3f4042;
}
.card-footer {
border-top-color: #3f4042;
}
.bottomline {
border-bottom-color: #3f4042;
background: transparent;
}
}
/*
* 카드 관련 공통 클래스는 @common/components/index.css (components 패키지 ui/layout/common.css)로 통합되었다.
* - .card / .card-border / .card-header / .card-footer
* - .card_width* / .card_nopadding / .card_paddingnone / .card_nomargin / .card_title / .topline / .bottomline
* 테마별 색상은 이 패키지의 base.css 테마 변수(--card-*, --line-*)에서 관리한다.
* (styles/index.ts 및 패키지 exports 의 경로 호환을 위해 파일만 유지)
*/