03테두리 하이라이트 카드
다크 카드 격자에서 한 칸씩 순서대로 테두리가 파란 빛으로 밝아졌다 가라앉으며 시선을 이끕니다.
쓰임기능 소개 격자, 제품 비교
border-color 전환순차 delayradius 16

<main class="stage">
<section class="grid is-demo">
<article class="grid__card grid__card--1">
<span class="grid__dot" aria-hidden="true"></span>
<p class="grid__label">자동 배포</p>
</article>
<article class="grid__card grid__card--2">
<span class="grid__dot" aria-hidden="true"></span>
<p class="grid__label">이슈 추적</p>
</article>
<article class="grid__card grid__card--3">
<span class="grid__dot" aria-hidden="true"></span>
<p class="grid__label">로드맵</p>
</article>
<article class="grid__card grid__card--4">
<span class="grid__dot" aria-hidden="true"></span>
<p class="grid__label">API 연동</p>
</article>
</section>
</main>@use "../../../../site/static/demo-tokens" as *;
$duration: $dur-loop; // 카드 한 장이 밝아졌다 가라앉는 한 주기
$easing: $ease-out;
$color: $subject-blue;
@include stage($stage-orange);
.grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: $sp-3;
width: clamp(220px, 76vw, 320px);
}
.grid__card {
border-radius: $r-card;
background: $subject-ink;
border: 1px solid rgba($subject-cream, .08);
padding: $sp-4;
display: flex;
flex-direction: column;
gap: $sp-4;
animation-name: cardGlow;
animation-duration: $duration;
animation-timing-function: $easing;
animation-iteration-count: infinite;
}
.grid__card--1 { animation-delay: 0s; }
.grid__card--2 { animation-delay: $duration * -0.75; }
.grid__card--3 { animation-delay: $duration * -0.5; }
.grid__card--4 { animation-delay: $duration * -0.25; }
.grid__dot {
width: $sp-4;
height: $sp-4;
border-radius: $r-xs;
background: rgba($color, .35);
}
.grid__label {
margin: 0;
color: $subject-cream;
font: 600 clamp(11px, 2.8vw, 13px)/1.3 -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
}
@keyframes cardGlow {
0%, 76%, 100% { border-color: rgba($subject-cream, .08); box-shadow: none; }
13% { border-color: $color; box-shadow: 0 0 0 1px rgba($color, .5), $shadow-raised; }
}
@media (prefers-reduced-motion: reduce) {
.grid__card { animation: none !important; border-color: rgba($subject-cream, .08); box-shadow: none; }
}html, body {
margin: 0;
overflow: hidden;
}
.stage {
box-sizing: border-box;
min-height: 100vh;
display: grid;
place-items: center;
margin: 0;
background: #ff4d1f;
font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
padding: clamp(8px, 4vw, 24px);
}
.grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 12px;
width: clamp(220px, 76vw, 320px);
}
.grid__card {
border-radius: 16px;
background: #17141a;
border: 1px solid rgba(255, 247, 230, 0.08);
padding: 16px;
display: flex;
flex-direction: column;
gap: 16px;
animation-name: cardGlow;
animation-duration: 2s;
animation-timing-function: ease-out;
animation-iteration-count: infinite;
}
.grid__card--1 {
animation-delay: 0s;
}
.grid__card--2 {
animation-delay: -1.5s;
}
.grid__card--3 {
animation-delay: -1s;
}
.grid__card--4 {
animation-delay: -0.5s;
}
.grid__dot {
width: 16px;
height: 16px;
border-radius: 4px;
background: rgba(47, 109, 246, 0.35);
}
.grid__label {
margin: 0;
color: #fff7e6;
font: 600 clamp(11px, 2.8vw, 13px)/1.3 -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
}
@keyframes cardGlow {
0%, 76%, 100% {
border-color: rgba(255, 247, 230, 0.08);
box-shadow: none;
}
13% {
border-color: #2f6df6;
box-shadow: 0 0 0 1px rgba(47, 109, 246, 0.5), 0 14px 24px rgba(23, 20, 26, 0.32);
}
}
@media (prefers-reduced-motion: reduce) {
.grid__card {
animation: none !important;
border-color: rgba(255, 247, 230, 0.08);
box-shadow: none;
}
}import type { CSSProperties } from "react";
import styles from "./CardGridLinear.module.scss";
export type CardGridLinearProps = {
labels?: [string, string, string, string];
/** 카드 한 장이 밝아졌다 가라앉는 한 주기(기본 2000ms) */
duration?: number;
easing?: string;
color?: string;
};
type Vars = CSSProperties & { "--duration"?: string; "--easing"?: string; "--color"?: string };
export default function CardGridLinear({
labels = ["자동 배포", "이슈 추적", "로드맵", "API 연동"],
duration = 2000,
easing = "ease-out",
color = "#2f6df6",
}: CardGridLinearProps) {
const vars: Vars = { "--duration": `${duration}ms`, "--easing": easing, "--color": color };
const delays = ["0s", `${-duration * 0.75}ms`, `${-duration * 0.5}ms`, `${-duration * 0.25}ms`];
return (
<section className={styles.grid} style={vars}>
{labels.map((label, i) => (
<article key={label} className={styles.card} style={{ animationDelay: delays[i] }}>
<span className={styles.dot} aria-hidden="true" />
<p className={styles.label}>{label}</p>
</article>
))}
</section>
);
}03 테두리 하이라이트 카드 — 측정 누적면적 12.578% · 움직인 프레임 23/23GODRICH 원작 · zip 에 SCSS·React 포함 · 다크 SaaS 랜딩에 스며든 리니어 디자인 시스템 9종
이 데모가 속한 글
다크 SaaS 랜딩에 스며든 리니어 디자인 시스템 9종핀터레스트를 뒤덮은 리니어 디자인 시스템은 이슈 트래커 Linear.app이 쓰는 짙은 잉크 배경에 파란 글로우 하나로 포인트를 주는 다크 스타일입니다. 이 글의 데모 전부 보기


