Design System 2.5
Payment Module — Foundations, tokens, and UI patterns
Colors
Brand
Accent
#e11d74
--accent
Accent Sub
#fdf2f8
--accent-sub
Danger
#ef4444
--danger
Danger Sub
#fef2f2
--danger-sub
Surfaces
Page BG
#fdfcfa
--bg
Surface 2
#fefefd
--surface-2
Surface
#ffffff
--surface
Info BG
#f5f8fc
--surface-info
Muted BG
#f2f2f2
--surface-muted
Text
Primary
#1f1f1f
--text-1
Secondary
#6b6b6b
--text-2
Muted
#a3a3a3
--text-3
Borders
Default
#f2ede7
--border
UI
#e5e5e5
--border-ui
Status Badges
Green BG
#ebf4f1
--badge-grn-bg
Green FG
#4f8f7c
--badge-grn-fg
Blue BG
#eef2f8
--badge-blu-bg
Blue FG
#4a6fa5
--badge-blu-fg
Gray Stroke
#e4e4e7
--badge-gry-stroke
Gray FG
#8a8a8a
--badge-gry-fg
Red BG
#f6eef1
--badge-red-bg
Red FG
#9e4a5e
--badge-red-fg
Typography
Font family: Inter — weights 400 · 500 · 600 · 700
| Token | Size / LH | Weights | Sample |
|---|---|---|---|
| ACTIVE · DEFAULT · SUBSCRIPTION | |||
| Expires 08 / 2027 | |||
| What you pay each month. ···· ···· ···· 4242 | |||
| Subscription Billed monthly | |||
| $20/mo |
Spacing
Border Radius
None
0 · --r-none
XS
2px · --r-xs
SM
6px · --r-sm
MD
8px · --r-md
LG
10px · --r-lg
2XL
16px · --r-2xl
Full
9999px · --r-full
Shadows
Surfaces and dropdowns only. Never on buttons.
XS
0 1px 2px rgba(0,0,0,.05)
--shadow-xs
SM
0 1px 3px rgba(0,0,0,.10),
0 1px 2px rgba(0,0,0,.06)
--shadow-sm
Components
- Please update your card or add a new payment method so we can retry the payment. We'll try once a day.
- Your store and orders will continue running while we retry the payment.
- If the payment is still unsuccessful by Oct 21, 2026, your subscription will be canceled. To restore paid features, you'll need to subscribe again.
Nav item states
My Account footer
Pink background --accent-sub, pink text + chevron
Active tab = --accent text + font-weight 600 only. No background pill. No indicator bar. White pill container with border.
Account active
Subscription active
No shadow on any button variant. States: Default · Disabled (40% opacity) · Pressed.
| Variant / Size | Default | Disabled | Pressed |
|---|---|---|---|
| Outline · Icon+Label · SM (32px) | |||
| Outline · + Icon · SM | |||
| Outline · Download Icon · SM | |||
| Ghost · Label · SM (no border) | |||
| Ghost · Label · SM (Set as Default) | |||
| Ghost · Icon only · SM (32px) | |||
| Primary · SM (32px) | |||
| Primary · MD (36px) | |||
| Primary · MD (I Consent) | |||
| Primary · SM (Save card) | |||
| Dark · MD (Yes, Cancel) | |||
| Destructive · SM (Remove card) | |||
| Outline · SM (Send to Email) |
Subscription (not subscribed)
Subscription
What you pay Shopcord each month.
What's included
Free Trial
Subscription
ActiveWhat you pay Shopcord each month.
Free Plan
Active
Subscription
ActiveWhat you pay Shopcord each month.
Billed monthly
Canceling
Subscription
ActiveWhat you pay Shopcord each month.
Billed monthly
View
Subscription
ActiveWhat you pay Shopcord each month.
Billed monthly
Chargeback / Canceled
Subscription
CanceledWhat you pay Shopcord each month.
Expires 08 / 2027
Expired 07 / 2026
Your Visa ····4242 was declined on Aug 15. Update your card and everything retries immediately.
Expires 08 / 2027
Height 40px · 12px medium · dashed --text-1 border · hover = solid border
Default
Hover (solid border)
Clicked / Pressed
Disabled
Page Layout
Shell & Sidebar Layout
모든 Shopcord 페이지에 적용되는 레이아웃 구조. Shell → Sidebar + Main → Tab Bar + Content 순서.
Spacing Spec
| Element | Value | Reference point |
|---|---|---|
| .shell padding | 16px | All sides, viewport |
| .sidebar width | 256px | Fixed, includes border |
| .shell gap | 0px | Sidebar ↔ main column |
| .main padding (H) | 16px | Tab pill left from sidebar right |
| .main gap | 48px | Tab bar ↔ content area |
| .content padding (H) | 32px | From tab pill left edge (= 48px from sidebar right) |
| .tab-list height | 64px | Full-width pill, border-radius 16px |
CSS
/* Shell */
.shell { display: flex; min-height: 100vh; padding: 16px; gap: 0; align-items: flex-start; }
/* Sidebar */
.sidebar {
width: 256px; flex-shrink: 0;
background: var(--surface-2);
border: 1px solid var(--border); border-radius: 16px;
position: sticky; top: 16px; height: calc(100vh - 32px);
overflow-y: auto; align-self: stretch;
}
/* Main column */
.main {
flex: 1; min-width: 0;
display: flex; flex-direction: column;
gap: 48px; /* tab bar ↔ content */
padding: 0 16px 48px; /* H: tab pill 16px from sidebar */
}
/* Tab bar — full-width pill, NO border-bottom */
.tabs-bar { display: flex; align-items: center; flex-shrink: 0; }
.tab-list {
display: flex; align-items: center;
width: 100%; height: 64px;
background: var(--surface-2);
border: 1px solid var(--border); border-radius: 16px;
padding: 0 16px;
}
.tab-btn { padding: 6px 24px; border-radius: 8px; font-size: 14px; font-weight: 500; }
.tab-btn:hover:not(.active) { background: none; }
.tab-btn.active { background: var(--accent-sub); color: var(--text-1); }
/* Content — 32px from tab pill left = 48px from sidebar right */
.content { flex: 1; padding: 0 32px; max-width: 1024px; width: 100%; }