01グラデーションミストのヒーロー
クリーム背景の上をバブルガムピンク・ピーチ・ラベンダーの柔らかい円が霧のように漂い、手前の白いカードがふわっと浮かびます。影もグレーではなくカードに合うピンクの影を使います。
使いどころデザートショップ・美容ブランドのLP最初の画面
3색 그라디언트 원색 그림자radius 16

<main class="stage">
<section class="herocandy">
<span class="herocandy__mist herocandy__mist--a" aria-hidden="true"></span>
<span class="herocandy__mist herocandy__mist--b" aria-hidden="true"></span>
<span class="herocandy__mist herocandy__mist--c" aria-hidden="true"></span>
<div class="herocandy__card">
<p class="herocandy__eyebrow">プリン</p>
<h1 class="herocandy__title">ふわふわがいい</h1>
<p class="herocandy__desc">やわらかパステルのLP</p>
<button class="herocandy__cta" type="button">無料で始める</button>
</div>
</section>
</main>@use "../../../../site/static/demo-tokens" as *;
$duration: $dur-loop; // 안개가 한 바퀴 떠도는 주기
$easing: $ease-spring; // 통통하게 떠오르는 곡선
$color: $stage-ink; // 글자 색 기본값(토큰) — 아래 캔디 팔레트의 베리 잉크로 덮는다
// 캔디 팔레트 — 이 편의 역할 색. 값은 tailwind.config.js · tokens.css 와 같다
$candy-cream: #fff6f0; // 크림 바탕
$candy-bubble: #ffb9cf; // 버블검 핑크 — 주인공
$candy-peach: #ffd2b8; // 피치
$candy-lemon: #ffe9a3; // 레몬
$candy-mint: #b5e8d2; // 민트
$candy-lavender: #cdbcf2; // 라벤더
$candy-berry: #55395e; // 베리 잉크 — 글자는 항상 이 색(대비 9:1)
@include stage($candy-cream);
.herocandy {
position: relative;
width: clamp(220px, 76vw, 360px);
}
.herocandy__mist {
position: absolute;
width: clamp(96px, 36vw, 150px);
aspect-ratio: 1;
border-radius: 50%;
pointer-events: none;
filter: blur(6px);
}
.herocandy__mist--a {
top: -22px;
left: -20px;
background: radial-gradient(circle at 35% 35%, rgba($candy-bubble, .95), rgba($candy-bubble, 0) 70%);
animation: mistA $duration $easing infinite;
}
.herocandy__mist--b {
right: -24px;
top: 26%;
background: radial-gradient(circle at 60% 40%, rgba($candy-peach, .95), rgba($candy-peach, 0) 70%);
animation: mistB $duration $easing infinite;
animation-delay: -1s;
}
.herocandy__mist--c {
left: 6%;
bottom: -26px;
background: radial-gradient(circle at 45% 55%, rgba($candy-lavender, .9), rgba($candy-lavender, 0) 70%);
animation: mistA $duration $easing infinite;
animation-delay: -.5s;
}
.herocandy__card {
position: relative;
box-sizing: border-box;
width: 100%;
display: flex;
flex-direction: column;
align-items: flex-start;
gap: $sp-2;
padding: $sp-5;
border-radius: $r-card;
background: $stage-paper;
box-shadow: 0 10px 24px rgba($candy-bubble, .55);
animation: cardBob $duration $easing infinite;
}
.herocandy__eyebrow {
margin: 0;
color: $candy-berry;
font-weight: 700; font-size: clamp(10px, 2.6vw, 12px); line-height: 1;
letter-spacing: .08em;
text-transform: uppercase;
}
.herocandy__title {
margin: 0;
color: $candy-berry;
font-weight: 700; font-size: clamp(18px, 4.6vw, 24px); line-height: 1.2;
}
.herocandy__desc {
margin: 0;
color: rgba($candy-berry, .78);
font-weight: 500; font-size: clamp(12px, 2.8vw, 14px); line-height: 1.4;
}
.herocandy__cta {
margin-top: $sp-1;
border: 0;
border-radius: $r-pill;
background: $stage-paper;
color: $candy-berry;
padding: $sp-2 $sp-5;
font-weight: 700; font-size: clamp(12px, 2.8vw, 14px); line-height: 1;
box-shadow: 0 6px 14px rgba($candy-bubble, .6);
}
.herocandy__cta:focus-visible {
outline: 3px solid $candy-berry;
outline-offset: 2px;
}
// 데모: 안개 세 개가 각자 다른 위상으로 떠다니고, 카드는 살짝 들썩인다 (WAAPI 시계가 잡을 수 있게 keyframes)
@keyframes mistA {
0%, 100% { transform: translate(0, 0) scale(1); }
50% { transform: translate(7%, 9%) scale(1.14); }
}
@keyframes mistB {
0%, 100% { transform: translate(0, 0) scale(1); }
50% { transform: translate(-6%, -7%) scale(.88); }
}
@keyframes cardBob {
0%, 100% { transform: translateY(0); box-shadow: 0 10px 24px rgba($candy-bubble, .55); }
50% { transform: translateY(-7px); box-shadow: 0 16px 30px rgba($candy-bubble, .5); }
}
// 반응형: 320×200 처럼 세로가 짧은 화면에선 안개 번짐과 카드 속을 줄인다(BD9 — 219 크랙 편에서 실측한 방식)
@media (max-width: 340px), (max-height: 220px) {
.herocandy__mist { width: clamp(60px, 22vw, 86px); }
.herocandy__mist--a { top: -8px; left: -8px; }
.herocandy__mist--b { right: -8px; top: 12%; }
.herocandy__mist--c { left: 8%; bottom: -8px; }
.herocandy__card { padding: $sp-3 $sp-4; gap: $sp-1; }
.herocandy__eyebrow { display: none; }
}
@media (prefers-reduced-motion: reduce) {
.herocandy__mist, .herocandy__card { animation: none !important; transform: none; }
}html, body {
margin: 0;
overflow: hidden;
}
.stage {
box-sizing: border-box;
min-height: 100vh;
display: grid;
place-items: center;
margin: 0;
background: #fff6f0;
font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
padding: clamp(8px, 4vw, 24px);
}
.herocandy {
position: relative;
width: clamp(220px, 76vw, 360px);
}
.herocandy__mist {
position: absolute;
width: clamp(96px, 36vw, 150px);
aspect-ratio: 1;
border-radius: 50%;
pointer-events: none;
filter: blur(6px);
}
.herocandy__mist--a {
top: -22px;
left: -20px;
background: radial-gradient(circle at 35% 35%, rgba(255, 185, 207, 0.95), rgba(255, 185, 207, 0) 70%);
animation: mistA 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}
.herocandy__mist--b {
right: -24px;
top: 26%;
background: radial-gradient(circle at 60% 40%, rgba(255, 210, 184, 0.95), rgba(255, 210, 184, 0) 70%);
animation: mistB 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
animation-delay: -1s;
}
.herocandy__mist--c {
left: 6%;
bottom: -26px;
background: radial-gradient(circle at 45% 55%, rgba(205, 188, 242, 0.9), rgba(205, 188, 242, 0) 70%);
animation: mistA 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
animation-delay: -0.5s;
}
.herocandy__card {
position: relative;
box-sizing: border-box;
width: 100%;
display: flex;
flex-direction: column;
align-items: flex-start;
gap: 8px;
padding: 20px;
border-radius: 16px;
background: #ffffff;
box-shadow: 0 10px 24px rgba(255, 185, 207, 0.55);
animation: cardBob 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}
.herocandy__eyebrow {
margin: 0;
color: #55395e;
font-weight: 700;
font-size: clamp(10px, 2.6vw, 12px);
line-height: 1;
letter-spacing: 0.08em;
text-transform: uppercase;
}
.herocandy__title {
margin: 0;
color: #55395e;
font-weight: 700;
font-size: clamp(18px, 4.6vw, 24px);
line-height: 1.2;
}
.herocandy__desc {
margin: 0;
color: rgba(85, 57, 94, 0.78);
font-weight: 500;
font-size: clamp(12px, 2.8vw, 14px);
line-height: 1.4;
}
.herocandy__cta {
margin-top: 4px;
border: 0;
border-radius: 999px;
background: #ffffff;
color: #55395e;
padding: 8px 20px;
font-weight: 700;
font-size: clamp(12px, 2.8vw, 14px);
line-height: 1;
box-shadow: 0 6px 14px rgba(255, 185, 207, 0.6);
}
.herocandy__cta:focus-visible {
outline: 3px solid #55395e;
outline-offset: 2px;
}
@keyframes mistA {
0%, 100% {
transform: translate(0, 0) scale(1);
}
50% {
transform: translate(7%, 9%) scale(1.14);
}
}
@keyframes mistB {
0%, 100% {
transform: translate(0, 0) scale(1);
}
50% {
transform: translate(-6%, -7%) scale(0.88);
}
}
@keyframes cardBob {
0%, 100% {
transform: translateY(0);
box-shadow: 0 10px 24px rgba(255, 185, 207, 0.55);
}
50% {
transform: translateY(-7px);
box-shadow: 0 16px 30px rgba(255, 185, 207, 0.5);
}
}
@media (max-width: 340px), (max-height: 220px) {
.herocandy__mist {
width: clamp(60px, 22vw, 86px);
}
.herocandy__mist--a {
top: -8px;
left: -8px;
}
.herocandy__mist--b {
right: -8px;
top: 12%;
}
.herocandy__mist--c {
left: 8%;
bottom: -8px;
}
.herocandy__card {
padding: 12px 16px;
gap: 4px;
}
.herocandy__eyebrow {
display: none;
}
}
@media (prefers-reduced-motion: reduce) {
.herocandy__mist, .herocandy__card {
animation: none !important;
transform: none;
}
}import type { CSSProperties } from "react";
import styles from "./HeroCandy.module.scss";
export type HeroCandyProps = {
eyebrow?: string;
title?: string;
desc?: string;
cta?: string;
/** 한 주기(기본 2000ms) */
duration?: number;
easing?: string;
color?: string;
};
type Vars = CSSProperties & { "--duration"?: string; "--easing"?: string; "--color"?: string };
export default function HeroCandy({
eyebrow = "푸딩",
title = "말랑한 게 좋아",
desc = "부드러운 파스텔 랜딩",
cta = "무료로 시작",
duration = 2000,
easing = "cubic-bezier(.2,.8,.2,1)",
color = "#ffb9cf",
}: HeroCandyProps) {
const vars: Vars = { "--duration": `${duration}ms`, "--easing": easing, "--color": color };
return (
<section className={styles.herocandy} style={vars}>
<span className={`${styles.mist} ${styles.mistA}`} aria-hidden="true" />
<span className={`${styles.mist} ${styles.mistB}`} aria-hidden="true" />
<span className={`${styles.mist} ${styles.mistC}`} aria-hidden="true" />
<div className={styles.card}>
<p className={styles.eyebrow}>{eyebrow}</p>
<h1 className={styles.title}>{title}</h1>
<p className={styles.desc}>{desc}</p>
<button type="button" className={styles.cta}>{cta}</button>
</div>
</section>
);
}01 グラデーションミストのヒーロー — 計測 累積面積 10.269% · 動いたフレーム 12/23GODRICH オリジナル · SCSS と React は zip に同梱 · パステル デザイン LPキット、キャンディカラーのセクション9選
このデモが属する記事
パステル デザイン LPキット、キャンディカラーのセクション9選パステル デザインは、クリーム色の地にバブルガムピンク・ピーチ・レモン・ミント・ラベンダーの淡い色を重ね、影までグレーではなく同系色のパステルで描いて、飴のようにやわらかく、さわやかに見せるスタイルです。名前がなくて検索できなかった、あのデ この記事のデモをすべて見る


