05マカロン料金プラン
3つのプランをミント・レモン・バブルガムピンクのマカロンのように並べ、おすすめだけにピンクの ring とバッジを付けて少し大きくぷるぷるさせます。表なしで色だけで主役が分かります。
使いどころ3段階の料金プラン・会員プラン比較
그라디언트 링살짝 큰 추천 플랜wiggle 애니메이션

<main class="stage">
<div class="pricecandy">
<div class="pricecandy__plan pricecandy__plan--mint">
<p class="pricecandy__name">スプラウト</p>
<p class="pricecandy__price">無料</p>
<p class="pricecandy__per">ずっと無料</p>
</div>
<div class="pricecandy__plan pricecandy__plan--pick">
<span class="pricecandy__badge">人気</span>
<div class="pricecandy__inner">
<p class="pricecandy__name">バブル</p>
<p class="pricecandy__price">月19,000ウォン</p>
<p class="pricecandy__per">初月無料</p>
</div>
</div>
<div class="pricecandy__plan pricecandy__plan--lemon">
<p class="pricecandy__name">レモン</p>
<p class="pricecandy__price">月9,000ウォン</p>
<p class="pricecandy__per">年間払い</p>
</div>
</div>
</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-lemon: #ffe9a3;
$candy-mint: #b5e8d2;
$candy-lavender: #cdbcf2;
$candy-berry: #55395e;
// 무대 — 레몬 물색
@include stage(mix($candy-lemon, $stage-paper, 26%));
.pricecandy {
box-sizing: border-box;
width: clamp(280px, 94vw, 450px);
display: flex;
align-items: center;
gap: $sp-2;
}
.pricecandy__plan {
position: relative;
box-sizing: border-box;
flex: 1 1 0;
min-width: 0;
display: flex;
flex-direction: column;
gap: $sp-1;
padding: $sp-4 $sp-3;
border-radius: $r-card;
text-align: center;
}
.pricecandy__plan--mint {
background: $candy-mint;
box-shadow: 0 8px 18px rgba($candy-mint, .85);
}
.pricecandy__plan--lemon {
background: $candy-lemon;
box-shadow: 0 8px 18px rgba($candy-lemon, .9);
}
// 추천 플랜 — 핑크 그라디언트 테두리(겉을 감싼 알약) + 살짝 크게
.pricecandy__plan--pick {
flex: 1.2 1 0;
padding: $sp-1;
background: linear-gradient(135deg, $candy-bubble, $candy-lavender);
box-shadow: 0 10px 22px rgba($candy-bubble, .65);
animation: pickJiggle $duration $easing infinite;
}
.pricecandy__inner {
display: flex;
flex-direction: column;
gap: $sp-1;
padding: $sp-4 $sp-3;
border-radius: $r-card;
background: mix($candy-bubble, $stage-paper, 40%);
}
.pricecandy__badge {
position: absolute;
top: calc($sp-2 * -1);
left: 50%;
transform: translateX(-50%);
z-index: 1;
padding: $sp-1 $sp-3;
border-radius: $r-pill;
background: $stage-paper;
color: $candy-berry;
font-weight: 700; font-size: clamp(9px, 2.2vw, 11px); line-height: 1;
box-shadow: 0 4px 10px rgba($candy-bubble, .6);
}
.pricecandy__name {
margin: 0;
color: $candy-berry;
font-weight: 700; font-size: clamp(12px, 3vw, 15px); line-height: 1;
}
.pricecandy__price {
margin: 0;
color: $candy-berry;
font-weight: 700; font-size: clamp(12px, 3.2vw, 16px); line-height: 1.15;
}
.pricecandy__per {
margin: 0;
color: $candy-berry;
font-weight: 500; font-size: clamp(10px, 2.4vw, 12px); line-height: 1;
}
// 데모: 추천 플랜만 살짝 흔들리며 통통거린다 — 색과 크기가 이미 주인공임을 움직임도 돕는다
@keyframes pickJiggle {
0%, 100% { transform: rotate(0deg) translateY(0); }
25% { transform: rotate(-1.6deg) translateY(-5px); }
50% { transform: rotate(0deg) translateY(0); }
75% { transform: rotate(1.6deg) translateY(-5px); }
}
@media (prefers-reduced-motion: reduce) {
.pricecandy__plan--pick { 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: rgb(100%, 97.7568627451%, 90.6196078431%);
font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
padding: clamp(8px, 4vw, 24px);
}
.pricecandy {
box-sizing: border-box;
width: clamp(280px, 94vw, 450px);
display: flex;
align-items: center;
gap: 8px;
}
.pricecandy__plan {
position: relative;
box-sizing: border-box;
flex: 1 1 0;
min-width: 0;
display: flex;
flex-direction: column;
gap: 4px;
padding: 16px 12px;
border-radius: 16px;
text-align: center;
}
.pricecandy__plan--mint {
background: #b5e8d2;
box-shadow: 0 8px 18px rgba(181, 232, 210, 0.85);
}
.pricecandy__plan--lemon {
background: #ffe9a3;
box-shadow: 0 8px 18px rgba(255, 233, 163, 0.9);
}
.pricecandy__plan--pick {
flex: 1.2 1 0;
padding: 4px;
background: linear-gradient(135deg, #ffb9cf, #cdbcf2);
box-shadow: 0 10px 22px rgba(255, 185, 207, 0.65);
animation: pickJiggle 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}
.pricecandy__inner {
display: flex;
flex-direction: column;
gap: 4px;
padding: 16px 12px;
border-radius: 16px;
background: rgb(100%, 89.0196078431%, 92.4705882353%);
}
.pricecandy__badge {
position: absolute;
top: -8px;
left: 50%;
transform: translateX(-50%);
z-index: 1;
padding: 4px 12px;
border-radius: 999px;
background: #ffffff;
color: #55395e;
font-weight: 700;
font-size: clamp(9px, 2.2vw, 11px);
line-height: 1;
box-shadow: 0 4px 10px rgba(255, 185, 207, 0.6);
}
.pricecandy__name {
margin: 0;
color: #55395e;
font-weight: 700;
font-size: clamp(12px, 3vw, 15px);
line-height: 1;
}
.pricecandy__price {
margin: 0;
color: #55395e;
font-weight: 700;
font-size: clamp(12px, 3.2vw, 16px);
line-height: 1.15;
}
.pricecandy__per {
margin: 0;
color: #55395e;
font-weight: 500;
font-size: clamp(10px, 2.4vw, 12px);
line-height: 1;
}
@keyframes pickJiggle {
0%, 100% {
transform: rotate(0deg) translateY(0);
}
25% {
transform: rotate(-1.6deg) translateY(-5px);
}
50% {
transform: rotate(0deg) translateY(0);
}
75% {
transform: rotate(1.6deg) translateY(-5px);
}
}
@media (prefers-reduced-motion: reduce) {
.pricecandy__plan--pick {
animation: none !important;
transform: none;
}
}import type { CSSProperties } from "react";
import styles from "./PricingCandy.module.scss";
export type PricingCandyProps = {
plans?: { name: string; price: string; per: string; pick?: boolean; badge?: string }[];
/** 한 주기(기본 2000ms) */
duration?: number;
easing?: string;
color?: string;
};
type Vars = CSSProperties & { "--duration"?: string; "--easing"?: string; "--color"?: string };
export default function PricingCandy({
plans = [
{ name: "새싹", price: "무료", per: "영원히" },
{ name: "버블", price: "월 19,000원", per: "첫 달 무료", pick: true, badge: "인기" },
{ name: "레몬", price: "월 9,000원", per: "연간 결제" },
],
duration = 2000,
easing = "cubic-bezier(.2,.8,.2,1)",
color = "#ffb9cf",
}: PricingCandyProps) {
const vars: Vars = { "--duration": `${duration}ms`, "--easing": easing, "--color": color };
return (
<div className={styles.pricecandy} style={vars}>
{plans.map((p, i) =>
p.pick ? (
<div key={p.name} className={`${styles.plan} ${styles.pick}`}>
{p.badge ? <span className={styles.badge}>{p.badge}</span> : null}
<div className={styles.inner}>
<p className={styles.name}>{p.name}</p>
<p className={styles.price}>{p.price}</p>
<p className={styles.per}>{p.per}</p>
</div>
</div>
) : (
<div key={p.name} className={`${styles.plan} ${i === 0 ? styles.mint : styles.lemon}`}>
<p className={styles.name}>{p.name}</p>
<p className={styles.price}>{p.price}</p>
<p className={styles.per}>{p.per}</p>
</div>
)
)}
</div>
);
}05 マカロン料金プラン — 計測 累積面積 4.164% · 動いたフレーム 21/23GODRICH オリジナル · SCSS と React は zip に同梱 · パステル デザイン LPキット、キャンディカラーのセクション9選
このデモが属する記事
パステル デザイン LPキット、キャンディカラーのセクション9選パステル デザインは、クリーム色の地にバブルガムピンク・ピーチ・レモン・ミント・ラベンダーの淡い色を重ね、影までグレーではなく同系色のパステルで描いて、飴のようにやわらかく、さわやかに見せるスタイルです。名前がなくて検索できなかった、あのデ この記事のデモをすべて見る


