Colored stripes on boxes

상자 색 띠

No thick colored line on the left of a card or notice box. A top stripe or a colored title bar is the same thing.

···
html
<main class="dont-wrap"><section class="dont-col"><p class="dsx-label"><b>하지 않는 것</b>설명용으로 그린 예</p><div class="dont-bad"><div class="dont-card dont-s1"><b>핵심만 먼저</b>이유식은 보통 생후 약 6개월, 아기가 앉아서 고개를 가눌 때 시작해요.</div><div class="dont-card dont-s2"><b>알아두세요</b>새 재료는 한 번에 한 가지씩 며칠 지켜보며 더해요.</div><div class="dont-card dont-s3"><div class="dont-bar">주의</div><div class="dont-s3b">돌 전에는 꿀을 주지 않아요.</div></div><div class="dont-note">왼쪽 띠 · 위쪽 띠 · 제목 줄 색 바탕. 셋 모두 하지 않아요.</div></div></section><section class="dont-col"><p class="dsx-label"><b>대신</b>실제 렌더: KRDS Summary check — 회색 바탕, 테두리 없음</p><div class="dont-real"><div class="container gx-measure"><aside class="sm sm--check" aria-labelledby="summary-title" data-astro-cid-gng3j4ln> <h2 id="summary-title" class="sm__title" data-astro-cid-gng3j4ln>핵심만 먼저</h2> <ol class="sm__list" data-astro-cid-gng3j4ln> <li data-astro-cid-gng3j4ln> <svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 16 16" fill="none" aria-hidden="true" focusable="false"><g> <path d="M2.66797 7.99984L7.51007 12.6665L14.0013 2.6665" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path> </g></svg> <span data-astro-cid-gng3j4ln>이유식은 보통 생후 약 6개월, 아기가 앉아서 고개를 가누고 음식을 삼킬 수 있을 때 시작해요.</span> </li><li data-astro-cid-gng3j4ln> <svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 16 16" fill="none" aria-hidden="true" focusable="false"><g> <path d="M2.66797 7.99984L7.51007 12.6665L14.0013 2.6665" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path> </g></svg> <span data-astro-cid-gng3j4ln>처음엔 하루 1회 한두 숟가락으로 시작해 12개월 무렵 하루 3끼와 간식 1~2회로 늘려요.</span> </li><li data-astro-cid-gng3j4ln> <svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 16 16" fill="none" aria-hidden="true" focusable="false"><g> <path d="M2.66797 7.99984L7.51007 12.6665L14.0013 2.6665" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path> </g></svg> <span data-astro-cid-gng3j4ln>질감은 곱고 부드러운 형태에서 무른 음식, 부드러운 고형식, 가족 음식 순으로 단단해져요.</span> </li><li data-astro-cid-gng3j4ln> <svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 16 16" fill="none" aria-hidden="true" focusable="false"><g> <path d="M2.66797 7.99984L7.51007 12.6665L14.0013 2.6665" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path> </g></svg> <span data-astro-cid-gng3j4ln>새 재료는 한 번에 한 가지씩 며칠 지켜보며 더하고, 철분이 많은 고기는 초기부터 챙겨요.</span> </li><li data-astro-cid-gng3j4ln> <svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 16 16" fill="none" aria-hidden="true" focusable="false"><g> <path d="M2.66797 7.99984L7.51007 12.6665L14.0013 2.6665" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path> </g></svg> <span data-astro-cid-gng3j4ln>돌 전에는 간을 하지 않고 꿀은 주지 않아요. 생우유는 주된 음료로 쓰지 않아요.</span> </li> </ol> </aside> </div></div></section></main>
css
.dont-wrap{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start}
.dont-col{min-width:0}
.dont-col+.dont-col{border-left:1px dashed #a8a29e}
@media (max-width:599px){.dont-wrap{grid-template-columns:minmax(0,1fr)}.dont-col+.dont-col{border-left:0;border-top:1px dashed #a8a29e}}
@media (max-width:340px){.dont-wrap .dsx-label{display:flex}}
.dont-bad{padding:8px 16px 22px;font:15px/1.6 -apple-system,BlinkMacSystemFont,"Apple SD Gothic Neo","Malgun Gothic",system-ui,sans-serif;color:var(--c-text,#1c1917)}
.dont-bad *{box-sizing:border-box}
.dont-real{padding-bottom:12px}
.dont-note{margin-top:12px;font:12px/1.5 -apple-system,BlinkMacSystemFont,"Apple SD Gothic Neo","Malgun Gothic",system-ui,sans-serif;color:#6b645c}
:root.dark .dont-note{color:#a59c91}
.dont-card{background:#fff;color:#1f2937;border-radius:8px;padding:14px 16px;margin-bottom:12px;font:15px/1.6 -apple-system,BlinkMacSystemFont,"Apple SD Gothic Neo","Malgun Gothic",system-ui,sans-serif}
.dont-card b{display:block;margin-bottom:4px}

.dont-s1{border-left:6px solid #4f46e5;background:#eef2ff}
.dont-s2{border-top:5px solid #f97316;background:#fff7ed}
.dont-s3{padding:0;overflow:hidden;background:#fff}
.dont-s3 .dont-bar{background:#16a34a;color:#fff;padding:8px 16px;font-weight:700}
.dont-s3 .dont-s3b{padding:10px 16px}

A box with a thick colored line on its left is the most common look on AI-made sites. Seen once, every site looks like the same AI site, which is exactly the impression these sites avoid. After the site owner judged it unfitting on KRDS (“colored bands inside boxes look wrong”), it was removed from all four packs.

A machine check blocks it. check-stripes, part of design:audit (= check-stripes + check-ai-tells), resolves the built styles with each pack’s color values and counts two things in both light and dark modes: side stripes (left or top border painted in an accent color) and colored heading bars (a heading element with an accent background). A border that goes around all four sides is not a stripe and is not counted. Anything above zero also stops a deploy.

Emphasis comes from weight, size, spacing and steps of grey instead. For example, the KRDS summary box is a grey fill with no border, and the urgent care card is a 2px dark border with a large title.

When to use

Think of it when you want a notice to stand out and reach for a color on one side of the box, or when drawing notice boxes for a new pack.

Open as page ↗

Suggest an entry

Tell us about a missing component or variant, or something a pack should fix. We read every suggestion.