색은 기능이 있는 곳에만

Color only where it does a job

강조색은 팩마다 하나뿐이고 링크나 주 버튼 같은 곳에만 써요. 위급을 뜻하는 색은 「바로 119」 안내에만 나와요.

···
html
<main class="dsx dsx--one"><p class="dsx-label"><b>실제 렌더</b>Carbon CareGuide stack — 점선과 이름표는 아틀라스가 얹은 설명이에요</p><div class="container"><div class="prose cp cp--boxed" data-care="stack" data-astro-cid-rlw5ahkd> <h2>이럴 땐 병원에 가요</h2><div class="care"><section class="care-card care-card--urgent" aria-labelledby="care-1"><p class="care-card__title" id="care-1"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 32 32" fill="none" aria-hidden="true" focusable="false"><g fill="currentColor"><path d="M16,23a1.5,1.5,0,1,0,1.5,1.5A1.5,1.5,0,0,0,16,23Z"></path><path d="M15 12H17V21H15z"></path><path d="M29,30H3a1,1,0,0,1-.8872-1.4614l13-25a1,1,0,0,1,1.7744,0l13,25A1,1,0,0,1,29,30ZM4.6507,28H27.3493l.002-.0033L16.002,6.1714h-.004L4.6487,27.9967Z"></path></g></svg>바로 119 · 응급실</p><ul><li><strong>바로 119</strong>: 숨쉬기 힘들어함, 목이나 혀의 부기, 축 처짐, 의식이 흐려짐</li></ul></section><section class="care-card" aria-labelledby="care-2"><p class="care-card__title" id="care-2">진료를 받아 보세요</p><ul><li><strong>빨리 진료</strong>: 두드러기가 넓게 퍼지거나 구토가 계속돼요</li><li><strong>상담 예약</strong>: 같은 음식을 먹은 뒤 증상이 반복되거나, 피부가 계속 나빠져요</li></ul></section></div> </div> </div></main>
css
.dsx--one,.dsx{padding-top:34px}.care-card--urgent{outline:2px dashed #c2410c;outline-offset:3px;position:relative}.care-card--urgent::before{content:'위급 색은 여기에만 (바로 119)';position:absolute;bottom:calc(100% + 6px);left:0;z-index:9;font:600 11px/1.3 -apple-system,BlinkMacSystemFont,"Apple SD Gothic Neo","Malgun Gothic",system-ui,sans-serif;letter-spacing:0;text-transform:none;color:#fff;background:#c2410c;padding:2px 6px;white-space:nowrap;text-decoration:none}.care-card:not(.care-card--urgent){outline:2px dashed #c2410c;outline-offset:3px;position:relative}.care-card:not(.care-card--urgent)::before{content:'그 밖의 안내는 회색 계열';position:absolute;top:calc(100% + 6px);left:0;z-index:9;font:600 11px/1.3 -apple-system,BlinkMacSystemFont,"Apple SD Gothic Neo","Malgun Gothic",system-ui,sans-serif;letter-spacing:0;text-transform:none;color:#fff;background:#c2410c;padding:2px 6px;white-space:nowrap;text-decoration:none}.care-card:not(.care-card--urgent){margin-top:34px}.prose>h2{margin-bottom:34px}

색이 여기저기 있으면 눈이 어디로 가야 할지 알 수 없어요. 그래서 색은 뜻이 있는 곳에만 써요. 링크와 주 버튼에는 팩의 강조색 하나, 아이한테 위급한 상황을 알리는 「바로 119 · 응급실」 카드에는 위급 색이에요. 나머지 강조는 글자 크기, 굵기, 여백, 회색의 단계로 해요.

위 데모(Carbon)에서 병원 안내 두 카드를 비교해 봐요. 바로 119 카드만 붉은 위급 색 테두리와 제목, 더 큰 제목 글자를 갖고, 아래 「진료를 받아 보세요」 카드는 회색 테두리예요. 팩마다 표현은 달라서 KRDS 는 진한 검은 테두리에 짙은 붉은 제목이에요. 위급 색을 다른 곳에 쓰면 정말 위급한 순간 신호가 약해져요. 색 띠와 색 머리띠는 design:audit 이 막고, 나머지는 갤러리에서 사람이 봐요.

이 약속에서 「사이트마다 다른 색을 쓰지 않는다」는 다음 항목(하지 않는 것)으로 따로 두었어요.

언제 쓰나

「이걸 눈에 띄게 하고 싶다」는 생각이 들 때 떠올려요. 색을 더하기 전에 크기, 굵기, 여백, 회색 단계로 먼저 해 봐요.

페이지로 열기 ↗

항목 추가 요청

빠진 컴포넌트·변형이나 팩에서 고칠 점을 알려 주세요. 하나씩 보고 원본 팩에 반영합니다.