oh-my-design-cli 1.0.2 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -18
- package/data/reference-fingerprints.json +337 -3
- package/data/reference-tags.md +15 -1
- package/package.json +2 -2
- package/skills/omd-init/SKILL.md +1 -1
- package/web/AGENTS.md +5 -0
- package/{references → web/references}/airbnb/DESIGN.md +158 -19
- package/web/references/airtable/DESIGN.md +241 -0
- package/{references → web/references}/apple/DESIGN.md +131 -76
- package/web/references/baemin/DESIGN.md +470 -0
- package/{references → web/references}/bmw/DESIGN.md +138 -9
- package/{references → web/references}/cal/DESIGN.md +173 -17
- package/{references → web/references}/claude/DESIGN.md +11 -1
- package/{references → web/references}/clay/DESIGN.md +75 -0
- package/{references → web/references}/clickhouse/DESIGN.md +74 -0
- package/{references → web/references}/cohere/DESIGN.md +75 -0
- package/web/references/coinbase/DESIGN.md +205 -0
- package/{references → web/references}/composio/DESIGN.md +74 -0
- package/web/references/coupang/DESIGN.md +487 -0
- package/{references → web/references}/cursor/DESIGN.md +74 -0
- package/web/references/dcard/DESIGN.md +567 -0
- package/{references → web/references}/elevenlabs/DESIGN.md +91 -0
- package/{references → web/references}/expo/DESIGN.md +72 -0
- package/{references → web/references}/ferrari/DESIGN.md +72 -0
- package/{references → web/references}/figma/DESIGN.md +124 -48
- package/{references → web/references}/framer/DESIGN.md +143 -16
- package/web/references/freee/DESIGN.md +558 -0
- package/{references → web/references}/hashicorp/DESIGN.md +72 -0
- package/{references → web/references}/ibm/DESIGN.md +68 -0
- package/{references → web/references}/intercom/DESIGN.md +73 -0
- package/web/references/kakao/DESIGN.md +490 -0
- package/web/references/kakaobank/DESIGN.md +533 -0
- package/web/references/karrot/DESIGN.md +431 -0
- package/web/references/kraken/DESIGN.md +219 -0
- package/web/references/krds/DESIGN.md +982 -0
- package/web/references/kurly/DESIGN.md +574 -0
- package/{references → web/references}/lamborghini/DESIGN.md +74 -0
- package/{references → web/references}/line/DESIGN.md +84 -43
- package/{references → web/references}/linear.app/DESIGN.md +8 -1
- package/{references → web/references}/lovable/DESIGN.md +73 -0
- package/web/references/mercari/DESIGN.md +464 -0
- package/{references → web/references}/minimax/DESIGN.md +72 -0
- package/{references → web/references}/mintlify/DESIGN.md +72 -0
- package/web/references/miro/DESIGN.md +252 -0
- package/{references → web/references}/mistral.ai/DESIGN.md +72 -0
- package/{references → web/references}/mongodb/DESIGN.md +72 -0
- package/web/references/musinsa/DESIGN.md +536 -0
- package/web/references/naver/DESIGN.md +518 -0
- package/{references → web/references}/notion/DESIGN.md +9 -1
- package/web/references/nvidia/DESIGN.md +491 -0
- package/web/references/ohouse/DESIGN.md +570 -0
- package/{references → web/references}/ollama/DESIGN.md +72 -0
- package/{references → web/references}/opencode.ai/DESIGN.md +73 -0
- package/web/references/pinkoi/DESIGN.md +575 -0
- package/{references → web/references}/pinterest/DESIGN.md +73 -0
- package/{references → web/references}/posthog/DESIGN.md +172 -18
- package/web/references/qanda/DESIGN.md +459 -0
- package/{references → web/references}/raycast/DESIGN.md +169 -34
- package/{references → web/references}/renault/DESIGN.md +72 -0
- package/{references → web/references}/replicate/DESIGN.md +73 -0
- package/{references → web/references}/resend/DESIGN.md +73 -0
- package/{references → web/references}/revolut/DESIGN.md +74 -0
- package/web/references/ridi/DESIGN.md +517 -0
- package/{references → web/references}/runwayml/DESIGN.md +152 -24
- package/{references → web/references}/sanity/DESIGN.md +72 -0
- package/{references → web/references}/sentry/DESIGN.md +73 -0
- package/web/references/spacex/DESIGN.md +379 -0
- package/web/references/spotify/DESIGN.md +426 -0
- package/{references → web/references}/stripe/DESIGN.md +44 -1
- package/{references → web/references}/supabase/DESIGN.md +73 -0
- package/{references → web/references}/superhuman/DESIGN.md +159 -17
- package/{references → web/references}/tesla/DESIGN.md +170 -0
- package/{references → web/references}/together.ai/DESIGN.md +73 -0
- package/{references → web/references}/toss/DESIGN.md +304 -50
- package/{references → web/references}/uber/DESIGN.md +73 -0
- package/{references → web/references}/vercel/DESIGN.md +9 -1
- package/{references → web/references}/voltagent/DESIGN.md +73 -0
- package/{references → web/references}/warp/DESIGN.md +142 -15
- package/web/references/webflow/DESIGN.md +253 -0
- package/{references → web/references}/wise/DESIGN.md +84 -0
- package/{references → web/references}/x.ai/DESIGN.md +85 -0
- package/web/references/yanolja/DESIGN.md +448 -0
- package/web/references/yeogiotte/DESIGN.md +424 -0
- package/{references → web/references}/zapier/DESIGN.md +85 -0
- package/references/airtable/DESIGN.md +0 -107
- package/references/baemin/DESIGN.md +0 -260
- package/references/coinbase/DESIGN.md +0 -129
- package/references/dcard/DESIGN.md +0 -302
- package/references/freee/DESIGN.md +0 -308
- package/references/kakao/DESIGN.md +0 -261
- package/references/karrot/DESIGN.md +0 -252
- package/references/kraken/DESIGN.md +0 -146
- package/references/mercari/DESIGN.md +0 -294
- package/references/miro/DESIGN.md +0 -108
- package/references/nvidia/DESIGN.md +0 -308
- package/references/pinkoi/DESIGN.md +0 -309
- package/references/spacex/DESIGN.md +0 -205
- package/references/spotify/DESIGN.md +0 -246
- package/references/webflow/DESIGN.md +0 -109
|
@@ -0,0 +1,567 @@
|
|
|
1
|
+
---
|
|
2
|
+
omd: 0.1
|
|
3
|
+
brand: Dcard
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Design System Inspiration of Dcard
|
|
7
|
+
|
|
8
|
+
## 1. Visual Theme & Atmosphere
|
|
9
|
+
|
|
10
|
+
Dcard is Taiwan's largest anonymous social platform — and its design system is an exemplar of **Material Design adapted for East-Asian forum culture**. The page chrome is wrapped in a deep teal-navy (`#00324e`) header bar that frames a **clean light-gray content surface** (`#f2f2f2`), inside which posts sit on **pure white cards** (`#ffffff`). This editorial framing — dark exterior, clean interior — distinguishes Dcard from the all-light Western social platforms (Reddit, Facebook) and the all-dark gamer-chic alternatives. It feels closer to a curated digital magazine than an open feed.
|
|
11
|
+
|
|
12
|
+
Typography is **Roboto-led** with comprehensive Traditional Chinese fallbacks (`Roboto, "Helvetica Neue", Helvetica, Arial, "PingFang TC", 黑體-繁, "Heiti TC", 蘋果儷中黑, "Apple LiGothic Medium", 微軟正黑體, "Microsoft JhengHei"`). Headlines use **weight 500 (medium)**, not 700 — a Material Design convention that creates hierarchy through subtle weight shifts and color (`rgba(0,0,0,0.85)` for primary text). The typography scale is exhaustive: 4 headline tiers (32/28/24/20px), title (18px/600), 2 subtitles (16/14px/500), 2 body sizes (16/14px/400), and 2 caption sizes (12/10px/500).
|
|
13
|
+
|
|
14
|
+
What truly distinguishes Dcard is the **breadth of its semantic token system**. The site exposes 200+ CSS custom properties on `:root`, organized into clear namespaces: `--color-dcard-*` for brand, `--color-state-*` for status, `--color-text-*` for foreground, `--color-bg-*` for surfaces, `--color-gender-*` for forum-specific identity colors (a unique reflection of Dcard's gender-tagged posting culture), `--shadow-level-1` through `--shadow-level-5` for elevation, `--vars-*` for layout sizing, and `--animations-*` for motion. This isn't an internal-only design system — it's a public, semantically-named token layer that any agent can read directly from the live site.
|
|
15
|
+
|
|
16
|
+
**Key Characteristics:**
|
|
17
|
+
- Roboto-led typography stack with full Traditional Chinese (`PingFang TC`, `Heiti TC`, `微軟正黑體`) fallbacks
|
|
18
|
+
- **Weight 500 (medium)** as the headline default — Material Design convention, not bold-700
|
|
19
|
+
- 200+ semantic CSS custom properties exposed on `:root` (effectively a public design system)
|
|
20
|
+
- Deep teal-navy header (`#00324e`) framing a light-gray content area (`#f2f2f2`) with white post cards
|
|
21
|
+
- Blue-monochrome brand palette: primary `#3397cf`, secondary `#006aa6`, tertiary `#00324e`
|
|
22
|
+
- 5-level Material elevation shadow system (`--shadow-level-1` to `--shadow-level-5`)
|
|
23
|
+
- Material Design easing curve: `cubic-bezier(.4, 0, .2, 1)` with `.15s` short / `.3s` medium durations
|
|
24
|
+
- Unique **gender-coded color tokens** (`--color-gender-female: #cb3a6b`, `--color-gender-male: #1c7fac`) reflecting forum culture
|
|
25
|
+
- **Gold premium accent** (`#ffc51b`) reserved for subscription/premium features
|
|
26
|
+
- **Topic purple** (`#bf8ff0`) for cross-cutting interest groups
|
|
27
|
+
- 8px border-radius is the default (buttons, cards, chips); `--vars-max-page-width: 1280px` with 728px main content + 300px aside
|
|
28
|
+
|
|
29
|
+
## 2. Color Palette & Roles
|
|
30
|
+
|
|
31
|
+
Dcard exposes its color system via CSS custom properties on `:root`. All values below are extracted directly.
|
|
32
|
+
|
|
33
|
+
### Brand
|
|
34
|
+
- **Dcard Primary** (`#3397cf`): `--color-dcard-primary`. Main brand blue. Used for primary CTAs (Download App), brand icons, link accents.
|
|
35
|
+
- **Dcard Primary Hover** (`#5ab0db`): `--color-dcard-primary-hover`. Lighter blue for hover states.
|
|
36
|
+
- **Dcard Secondary** (`#006aa6`): `--color-dcard-secondary`. Deeper supporting blue, used in search submit buttons and active states.
|
|
37
|
+
- **Dcard Tertiary** (`#00324e`): `--color-dcard-tertiary`. The signature deep teal-navy. Used as the page header bg, sidebar hover bg (`--color-bg-sidebar-hover: #032133`), and brand chrome.
|
|
38
|
+
- **Dcard Hint** (`#e7f3f9`): `--color-dcard-hint`. Very light blue tint for hover backgrounds and subtle highlights.
|
|
39
|
+
- **Dcard Premium** (`#ffc51b`): `--color-dcard-premium`. Gold for premium subscribers and paid features.
|
|
40
|
+
- **Dcard Premium Hover** (`#ffd558`): `--color-dcard-premium-hover`.
|
|
41
|
+
|
|
42
|
+
### State (Status)
|
|
43
|
+
- **Success** (`#49bd69`): `--color-state-success`. Hover `#6fc985`, active `#339653`.
|
|
44
|
+
- **Danger** (`#ea5c5c`): `--color-state-danger`. Hover `#f78c88`, active `#c44347`.
|
|
45
|
+
- **Reminder / Warning** (`#f0a955`): `--color-state-reminder`. Hover `#f0b941`, active `#da9246`.
|
|
46
|
+
|
|
47
|
+
### Backgrounds (Surfaces)
|
|
48
|
+
- **Bg Base 1** (`#f2f2f2`): `--color-bg-base-1`. Default page content background — the gray frame inside the navy header.
|
|
49
|
+
- **Bg Base 2** (`#ffffff`): `--color-bg-base-2`. Card surface, post background.
|
|
50
|
+
- **Bg Base 3** (`#ffffff`): `--color-bg-base-3`. Same as base 2; reserved for layered cards.
|
|
51
|
+
- **Bg Light** (`#ffffff`): `--color-bg-light`. Pure white, modal/dropdown surfaces.
|
|
52
|
+
- **Bg Dark** (`#000000`): `--color-bg-dark`. Reserved for inverted contexts.
|
|
53
|
+
- **Bg Container** (`#0000000d`): `--color-bg-container`. Black 5% — chip backgrounds on light surfaces.
|
|
54
|
+
- **Bg Special** (`#f0b941`): `--color-bg-special`. Same as reminder hover — used for promotional/sponsored chips.
|
|
55
|
+
- **Bg Topic** (`#bf8ff0`): `--color-bg-topic`. Lavender-purple for topic tags (cross-cutting interest groups).
|
|
56
|
+
- **Bg Snackbar** (`#2c2c2c`): `--color-bg-snackbar`. Dark gray for toast notifications.
|
|
57
|
+
- **Bg Sidebar Hover** (`#032133`): `--color-bg-sidebar-hover`. Slightly darker than tertiary for sidebar item hover.
|
|
58
|
+
- **Bg Chip on Dark** (`#ffffff14`): `--color-bg-chip-on-dark`. White 8% for chips on the navy header.
|
|
59
|
+
- **Bg Spotlight** (`#00000059`): `--color-bg-spotlight`. Black 35% — modal backdrop.
|
|
60
|
+
- **Bg Sign-up Overlay** (`#000000b3`): `--color-bg-sign-up-overlay`. Black 70% — full-page CTA overlay.
|
|
61
|
+
- **Bg Btn Disabled** (`#e0e0e0`): `--color-bg-btn-disabled`.
|
|
62
|
+
- **Shimmer Bg / Fg** (`#f2f2f2` / `#fafafa`): Loading skeleton colors.
|
|
63
|
+
|
|
64
|
+
### Text (Foreground)
|
|
65
|
+
- **Text Primary** (`#000000d9`): `--color-text-primary`. Black at 85% opacity. Used for headings, post titles, primary body text.
|
|
66
|
+
- **Text Secondary** (`#00000080`): `--color-text-secondary`. Black at 50%. Captions, timestamps, metadata.
|
|
67
|
+
- **Text Hint** (`#00000059`): `--color-text-hint`. Black at 35%. Placeholder hints.
|
|
68
|
+
- **Text Disabled** (`#0003`): `--color-text-disabled`. Black at 20%.
|
|
69
|
+
- **Text Light Primary** (`#ffffff`): `--color-text-light-primary`. White text on the navy header.
|
|
70
|
+
- **Text Light Secondary** (`#ffffff8c`): `--color-text-light-secondary`. White at 55% on dark surfaces.
|
|
71
|
+
- **Text Light Hint** (`#fff6`): `--color-text-light-hint`. White at 40%.
|
|
72
|
+
- **Text Dark Primary / Secondary**: Same as primary / secondary, semantic aliases.
|
|
73
|
+
- **Text Default Hovered** (`#00000059`): `--color-text-default-hovered`.
|
|
74
|
+
|
|
75
|
+
### Borders & Separators
|
|
76
|
+
- **Border** (`#cacaca`): `--color-border`. Standard component border (inputs, dividers).
|
|
77
|
+
- **Border Disabled** (`#e0e0e0`): `--color-border-disabled`.
|
|
78
|
+
- **Separator** (`#0000001a`): `--color-separator`. Black 10% — row dividers on light surfaces.
|
|
79
|
+
- **Separator on Dark** (`#ffffffb3`): `--color-separator-on-dark`. White 70% — separators on the navy header.
|
|
80
|
+
|
|
81
|
+
### Gender-Coded (Unique to Dcard)
|
|
82
|
+
A reflection of Dcard's posting culture, where many forums (女孩 / 男生 / 心情) display gender-tagged author chips:
|
|
83
|
+
- **Female** (`#cb3a6b`): `--color-gender-female`. Light variant `#f48fb1`.
|
|
84
|
+
- **Male** (`#1c7fac`): `--color-gender-male`. Light variant `#81d4fa`.
|
|
85
|
+
- **Other** (`#2c2c2c`): `--color-gender-other`. Light variant `#e0e0e0`.
|
|
86
|
+
|
|
87
|
+
### Icon & Misc
|
|
88
|
+
- **Icon Button** (`#000000b3`): `--color-icon-button`. Black 70% — default icon color on light surfaces.
|
|
89
|
+
- **Crop Mask** (`#000000b3`): `--color-crop-mask`. Modal/crop UI backdrop.
|
|
90
|
+
- **Brand Sponsor Hovered** (`#fcd46d`): `--color-brand-sponsor-hovered`. Sponsored content highlight.
|
|
91
|
+
|
|
92
|
+
## 3. Typography Rules
|
|
93
|
+
|
|
94
|
+
### Font Stack
|
|
95
|
+
```
|
|
96
|
+
Roboto, "Helvetica Neue", Helvetica, Arial, "PingFang TC", 黑體-繁, "Heiti TC", 蘋果儷中黑, "Apple LiGothic Medium", 微軟正黑體, "Microsoft JhengHei", sans-serif
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
Roboto leads (Material Design convention), with full Traditional Chinese fallbacks for native rendering on TW/HK Chrome environments.
|
|
100
|
+
|
|
101
|
+
### Type Scale (verified from `:root` CSS custom properties)
|
|
102
|
+
|
|
103
|
+
| Role | Token | Size | Weight | Line Height |
|
|
104
|
+
|---|---|---|---|---|
|
|
105
|
+
| Headline 1 | `--typography-headline-1-font-size` | `32px` (mobile `30px`) | `500` | `42px` (mobile `40px`) |
|
|
106
|
+
| Headline 2 | `--typography-headline-2-font-size` | `28px` (mobile `24px`) | `500` | `40px` (mobile `33px`) |
|
|
107
|
+
| Headline 3 | `--typography-headline-3-font-size` | `24px` (mobile `20px`) | `500` | `28px` |
|
|
108
|
+
| Headline 4 | `--fonts-headline-4-font-size` | `20px` | `500` | `28px` |
|
|
109
|
+
| Title | `--typography-title-font-size` | `18px` | `600` | `25px` |
|
|
110
|
+
| Subtitle 1 | `--typography-subtitle-1-font-size` | `16px` | `500` | `22px` |
|
|
111
|
+
| Subtitle 2 | `--typography-subtitle-2-font-size` | `14px` | `500` | `20px` |
|
|
112
|
+
| Body 1 | `--typography-body-1-font-size` | `16px` | `400` | `22px` |
|
|
113
|
+
| Body 1 (lh-28 variant) | `--typography-body-1-lh-28-font-size` | `16px` | `400` | `28px` (article reading) |
|
|
114
|
+
| Body 2 | `--typography-body-2-font-size` | `14px` | `400` | `20px` |
|
|
115
|
+
| Caption | `--typography-caption-font-size` | `12px` | `500` | `17px` |
|
|
116
|
+
| Caption 2 | `--typography-caption-2-font-size` | `10px` | `500` | `16px` |
|
|
117
|
+
|
|
118
|
+
### Conventions
|
|
119
|
+
- **Weight 500 (medium)** is the headline default — never weight 700/800 like commerce or news sites. Material Design heritage.
|
|
120
|
+
- **Title is the only weight-600 tier** — used sparingly for section headers in modals and editors.
|
|
121
|
+
- **Body uses weight 400** — captions and small labels jump to weight 500 to remain readable at small sizes.
|
|
122
|
+
- **Mobile sizes step down by ~20%** for headlines but stay identical for body and below.
|
|
123
|
+
- **Line-heights are generous** (1.3–1.4× ratio for body, ~1.4× for headlines) — supports CJK glyph density.
|
|
124
|
+
|
|
125
|
+
## 4. Component Stylings
|
|
126
|
+
|
|
127
|
+
### Buttons
|
|
128
|
+
|
|
129
|
+
**Primary CTA (Download App)**
|
|
130
|
+
- Background: `#3397cf` (`--color-dcard-primary`)
|
|
131
|
+
- Text: `#ffffff`
|
|
132
|
+
- Radius: 8px
|
|
133
|
+
- Padding: 8px 20px
|
|
134
|
+
- Font: 14px / 500
|
|
135
|
+
- Use: Hero "Download App" CTA
|
|
136
|
+
|
|
137
|
+
**Secondary CTA (Search Submit)**
|
|
138
|
+
- Background: `#006aa6` (`--color-dcard-secondary`)
|
|
139
|
+
- Text: `#ffffff`
|
|
140
|
+
- Radius: 0px 4px 4px 0px (joined to search input)
|
|
141
|
+
- Padding: 8px 20px
|
|
142
|
+
- Font: 14px / 500
|
|
143
|
+
- Use: Search submit button (joined to input)
|
|
144
|
+
|
|
145
|
+
**Counter / Action**
|
|
146
|
+
- Background: transparent
|
|
147
|
+
- Text: `rgba(0,0,0,0.5)`
|
|
148
|
+
- Radius: 8px
|
|
149
|
+
- Padding: 1px 14px
|
|
150
|
+
- Font: 14px / 500
|
|
151
|
+
- Use: Like / comment counters (e.g., 584, 179)
|
|
152
|
+
|
|
153
|
+
**Disabled**
|
|
154
|
+
- Background: `#e0e0e0` (`--color-bg-btn-disabled`)
|
|
155
|
+
- Text: secondary text color
|
|
156
|
+
- Radius: 8px
|
|
157
|
+
- Use: Inactive button states
|
|
158
|
+
|
|
159
|
+
### Inputs
|
|
160
|
+
|
|
161
|
+
**Search Input**
|
|
162
|
+
- Background: `#ffffff`
|
|
163
|
+
- Border: 1px solid border
|
|
164
|
+
- Radius: 4px 0px 0px 4px (left side; joined to submit on right)
|
|
165
|
+
- Padding: 8px 12px
|
|
166
|
+
- Use: Header search field (joined with Secondary CTA submit)
|
|
167
|
+
|
|
168
|
+
### Cards
|
|
169
|
+
|
|
170
|
+
**Post Entry**
|
|
171
|
+
- Background: `#ffffff` (`--color-bg-base-2`)
|
|
172
|
+
- Radius: 4px
|
|
173
|
+
- Padding: 20px (`--vars-post-entry-padding`)
|
|
174
|
+
- Use: Main feed post card on `#f2f2f2` gray content bg (contrast handles separation, no border)
|
|
175
|
+
|
|
176
|
+
**Forum Card**
|
|
177
|
+
- Background: `#ffffff`
|
|
178
|
+
- Radius: 4px
|
|
179
|
+
- Padding: 16px
|
|
180
|
+
- Use: Forum directory cards — explicit `146px × 110px` (`--vars-forum-card-width` / `-height`)
|
|
181
|
+
|
|
182
|
+
### Badges
|
|
183
|
+
|
|
184
|
+
**Topic Chip**
|
|
185
|
+
- Background: `#bf8ff0` (`--color-bg-topic`)
|
|
186
|
+
- Text: `#ffffff`
|
|
187
|
+
- Radius: 4px
|
|
188
|
+
- Padding: 4px 8px
|
|
189
|
+
- Font: 12px / 500
|
|
190
|
+
- Use: Topic chips — lavender accent
|
|
191
|
+
|
|
192
|
+
**Sponsor / Special Chip**
|
|
193
|
+
- Background: `#f0b941` (`--color-bg-special`)
|
|
194
|
+
- Text: `#ffffff`
|
|
195
|
+
- Radius: 4px
|
|
196
|
+
- Padding: 4px 8px
|
|
197
|
+
- Use: Sponsored / special-promotion chips
|
|
198
|
+
|
|
199
|
+
**On-Dark Chip**
|
|
200
|
+
- Background: `#ffffff14` (`--color-bg-chip-on-dark`)
|
|
201
|
+
- Text: `#ffffff`
|
|
202
|
+
- Radius: 4px
|
|
203
|
+
- Padding: 4px 8px
|
|
204
|
+
- Use: Chips placed on dark surfaces (header, modal)
|
|
205
|
+
|
|
206
|
+
### Tabs
|
|
207
|
+
|
|
208
|
+
**All / Following**
|
|
209
|
+
- Active text: `#000000d9` (`--color-text-primary`)
|
|
210
|
+
- Inactive text: `#00000080` (`--color-text-secondary`)
|
|
211
|
+
- Indicator: underline
|
|
212
|
+
- Header height: 48px (`--vars-tabview-header-height`)
|
|
213
|
+
- Use: Feed view switcher
|
|
214
|
+
|
|
215
|
+
### Toasts
|
|
216
|
+
|
|
217
|
+
**Snackbar**
|
|
218
|
+
- Background: `#2c2c2c` (`--color-bg-snackbar`)
|
|
219
|
+
- Text: `#ffffff` (`--color-text-light-primary`)
|
|
220
|
+
- Radius: 4px
|
|
221
|
+
- Width: 250px (`--vars-toast-width`)
|
|
222
|
+
- Position: bottom 0px (or 16px when bottom bar present)
|
|
223
|
+
- Use: System feedback toasts
|
|
224
|
+
|
|
225
|
+
### Dialogs
|
|
226
|
+
|
|
227
|
+
**Post Modal**
|
|
228
|
+
- Background: `#ffffff`
|
|
229
|
+
- Radius: 8px
|
|
230
|
+
- Width: 728px (`--vars-post-modal-width`)
|
|
231
|
+
- Backdrop: `#00000059` (`--color-bg-spotlight`) or `#0006` (`--color-mask`)
|
|
232
|
+
- Use: Full post detail view
|
|
233
|
+
|
|
234
|
+
**Comment Modal**
|
|
235
|
+
- Background: `#ffffff`
|
|
236
|
+
- Radius: 8px
|
|
237
|
+
- Width: 720px (`--vars-comment-modal-width`)
|
|
238
|
+
- Use: Comment-thread modal
|
|
239
|
+
|
|
240
|
+
**Sign-Up Overlay**
|
|
241
|
+
- Background: `#000000b3` (`--color-bg-sign-up-overlay`, black 70%)
|
|
242
|
+
- Use: Full-page overlay triggered after scroll/engagement
|
|
243
|
+
|
|
244
|
+
### Header / Navigation
|
|
245
|
+
|
|
246
|
+
- Header: 48px height (`--vars-header-height`), 20px padding, bg `#00324e` (tertiary), white text
|
|
247
|
+
- Layout: Logo + Search + Sign In/Up + Download App (horizontal)
|
|
248
|
+
- Left Sider (forum nav): 208px width (`--vars-my-page-sider-width`), light bg, icon + text rows
|
|
249
|
+
- Right Aside (widgets/ads): 300px width (`--vars-forum-aside-section-width`), 10px gap (`--vars-forum-aside-section-gap`)
|
|
250
|
+
|
|
251
|
+
## 5. Layout Principles
|
|
252
|
+
|
|
253
|
+
### Page Structure
|
|
254
|
+
- **Max page width**: `--vars-max-page-width: 1280px`
|
|
255
|
+
- **Three-column layout**:
|
|
256
|
+
- Left sider (forum nav): `208px` (`--vars-my-page-sider-width`)
|
|
257
|
+
- Main content (post list): `728px` (`--vars-min-post-list-section-width`)
|
|
258
|
+
- Right aside (widgets/ads): `300px` (`--vars-forum-aside-section-width`)
|
|
259
|
+
- Sections gap: `--vars-forum-sections-gap: 12px`
|
|
260
|
+
|
|
261
|
+
### Spacing
|
|
262
|
+
- **Header padding**: `20px`
|
|
263
|
+
- **Post entry padding**: `20px`
|
|
264
|
+
- **Post view padding**: `20px` vertical, `24px` horizontal
|
|
265
|
+
- **Post list section padding**: `20px` vertical, `24px` horizontal
|
|
266
|
+
- **Columns item horizontal**: `24px`
|
|
267
|
+
- Content title height: `60px` (`--vars-my-page-content-title-height`)
|
|
268
|
+
|
|
269
|
+
### Density
|
|
270
|
+
Dcard is **medium-density**. Posts are visually distinct (white card on gray bg), but the 728px main column packs efficiently — title + preview + thumbnail + actions in a single horizontal row at desktop sizes. Not as dense as Pinkoi commerce, not as airy as Medium articles.
|
|
271
|
+
|
|
272
|
+
## 6. Depth & Elevation
|
|
273
|
+
|
|
274
|
+
Dcard uses a **Material Design-style 5-level shadow system**, all keyed off black with low alpha for soft, neutral elevation.
|
|
275
|
+
|
|
276
|
+
| Level | Token | Value | Use |
|
|
277
|
+
|---|---|---|---|
|
|
278
|
+
| 1 | `--shadow-level-1` | `0px 1px 6px -2px #00000052` | Subtle lift (chips, hover cards) |
|
|
279
|
+
| 2 | `--shadow-level-2` | `0px 2px 8px -1px #0003` | Default card, dropdown |
|
|
280
|
+
| 3 | `--shadow-level-3` | `0px 3px 12px #0000002e` | Elevated card, popover |
|
|
281
|
+
| 4 | `--shadow-level-4` | `0px 4px 16px #00000029` | Modal, sticky bar |
|
|
282
|
+
| 5 | `--shadow-level-5` | `0px 6px 24px #0000001f` | Highest elevation: dialogs, full-screen overlays |
|
|
283
|
+
|
|
284
|
+
Note: Most post cards on the feed sit **flat without shadow** — the content area (`#f2f2f2`) provides separation against white cards via contrast. Shadows are reserved for genuinely floating elements.
|
|
285
|
+
|
|
286
|
+
### Z-Index
|
|
287
|
+
- Header is sticky and sits above content
|
|
288
|
+
- Modals use `--color-bg-spotlight` backdrop
|
|
289
|
+
- Sign-up overlay (`--color-bg-sign-up-overlay`) sits above all chrome
|
|
290
|
+
- Toast/snackbar at the highest level
|
|
291
|
+
|
|
292
|
+
### Animation
|
|
293
|
+
- Easing: `--animations-bezier: cubic-bezier(.4, 0, .2, 1)` — Material Design standard easing curve
|
|
294
|
+
- Short duration: `--animations-short-duration: .15s` (hover, press)
|
|
295
|
+
- Medium duration: `--animations-medium-duration: .3s` (page transitions, accordions)
|
|
296
|
+
|
|
297
|
+
## 7. Do's and Don'ts
|
|
298
|
+
|
|
299
|
+
- **DO** use weight 500 (medium) for headlines. Dcard never goes weight 700 — Material Design convention.
|
|
300
|
+
- **DON'T** use weight 700 except in legacy or one-off display contexts.
|
|
301
|
+
- **DO** use the semantic color token namespace: `--color-dcard-*` for brand, `--color-state-*` for status, `--color-text-*` for foreground, `--color-bg-*` for surfaces.
|
|
302
|
+
- **DON'T** introduce ad-hoc hex values. Dcard's 200+ tokens cover virtually every UI surface.
|
|
303
|
+
- **DO** wrap the page in the deep navy header (`#00324e`) and place content on the gray base (`#f2f2f2`) with white cards. The chrome/content contrast is the brand signature.
|
|
304
|
+
- **DON'T** use white-on-white nesting — the `#f2f2f2` content layer is what separates white cards visually.
|
|
305
|
+
- **DO** use `8px border-radius` as the default for buttons, cards, and chips.
|
|
306
|
+
- **DON'T** use 4px or sharp corners — Dcard's softer 8px radius is the brand's tactile signature.
|
|
307
|
+
- **DO** use `--shadow-level-2` (`0px 2px 8px -1px #0003`) for default cards that need elevation. Use higher levels only for genuinely floating UI.
|
|
308
|
+
- **DON'T** apply heavy shadows to feed posts — let the gray/white contrast separate them.
|
|
309
|
+
- **DO** use the gender colors (`--color-gender-female`, `--color-gender-male`, `--color-gender-other`) for author chips on gender-tagged posts. This is a culturally significant part of Dcard's UX.
|
|
310
|
+
- **DON'T** use gender colors for non-author contexts — it conflates identity with status.
|
|
311
|
+
- **DO** reserve gold (`#ffc51b`, `--color-dcard-premium`) for premium/subscription features only.
|
|
312
|
+
- **DON'T** use premium gold for warnings or general highlights — it weakens the subscription signal.
|
|
313
|
+
- **DO** use Material easing `cubic-bezier(.4, 0, .2, 1)` with `.15s` for hover/press and `.3s` for page transitions.
|
|
314
|
+
- **DON'T** use bouncy/elastic easing — Dcard's motion is restrained and platform-native.
|
|
315
|
+
|
|
316
|
+
## 8. Responsive Behavior
|
|
317
|
+
|
|
318
|
+
### Breakpoints (inferred from mobile-specific tokens)
|
|
319
|
+
Dcard provides explicit mobile typography sizes via `--typography-*-font-size-mobile` tokens, indicating a clear breakpoint at the tablet/mobile boundary (typically 768px in Material conventions).
|
|
320
|
+
|
|
321
|
+
| Width | Behavior |
|
|
322
|
+
|---|---|
|
|
323
|
+
| Desktop `>1280px` | Centered max-width container, three-column layout (208 / 728 / 300) |
|
|
324
|
+
| Desktop `1024–1280px` | Three-column compresses, asides may collapse |
|
|
325
|
+
| Tablet `768–1024px` | Right aside hidden, two-column (sider + main) |
|
|
326
|
+
| Mobile `<768px` | Single column. Headlines step down: H1 32px → 30px, H2 28px → 24px, H3 24px → 20px |
|
|
327
|
+
|
|
328
|
+
### Touch & Mobile
|
|
329
|
+
- Bottom navigation height token: `--vars-bottom-navigation-height: 0px` on web (used in app webviews)
|
|
330
|
+
- Safe area inset: `--safe-area-inset-bottom: 0px` (notch handling)
|
|
331
|
+
- Forum hero image: `--vars-forum-hero-image-height: 243px`
|
|
332
|
+
|
|
333
|
+
### Media Caps
|
|
334
|
+
- `--vars-max-post-media-vh: 60vh` — embedded videos/images cap at 60% viewport height
|
|
335
|
+
- Cover image: `width: 100%`, `object-fit: cover`, `height: 100%` (`--mixins-cover-image-*`)
|
|
336
|
+
|
|
337
|
+
### Text Truncation
|
|
338
|
+
- Single-line ellipsis: `--mixins-ellipsis-overflow: hidden; --mixins-ellipsis-text-overflow: ellipsis; --mixins-ellipsis-white-space: nowrap`
|
|
339
|
+
- Multi-line clamp: `--mixins-multi-ellipsis-display: -webkit-box`, `--mixins-multi-ellipsis--webkit-box-orient: vertical`, `--mixins-multi-ellipsis--webkit-line-clamp: 1`
|
|
340
|
+
- Line-clamp value can be customized per component
|
|
341
|
+
|
|
342
|
+
## 9. Agent Prompt Guide
|
|
343
|
+
|
|
344
|
+
### Quick Color Reference
|
|
345
|
+
- Primary CTA: `--color-dcard-primary` (`#3397cf`); hover `#5ab0db`
|
|
346
|
+
- Secondary CTA: `--color-dcard-secondary` (`#006aa6`)
|
|
347
|
+
- Page chrome (header bg): `--color-dcard-tertiary` (`#00324e`)
|
|
348
|
+
- Page content bg: `--color-bg-base-1` (`#f2f2f2`)
|
|
349
|
+
- Card / surface: `--color-bg-base-2` (`#ffffff`)
|
|
350
|
+
- Primary text: `--color-text-primary` (`#000000d9`, black 85%)
|
|
351
|
+
- Secondary text: `--color-text-secondary` (`#00000080`, black 50%)
|
|
352
|
+
- Border: `--color-border` (`#cacaca`)
|
|
353
|
+
- Separator: `--color-separator` (`#0000001a`, black 10%)
|
|
354
|
+
- Premium: `--color-dcard-premium` (`#ffc51b`) — subscription only
|
|
355
|
+
- Topic accent: `--color-bg-topic` (`#bf8ff0`)
|
|
356
|
+
- Success / Danger / Reminder: `#49bd69` / `#ea5c5c` / `#f0a955`
|
|
357
|
+
|
|
358
|
+
### Example Component Prompts
|
|
359
|
+
- "Create a Dcard-style post card: white bg (`#ffffff`), no border, no radius (sits on gray `#f2f2f2` page bg). Inner padding 20px. Layout: avatar (40px circle) + forum name (12px weight 500 colored per forum) + timestamp (12px weight 500 `#00000080`) on top row, post title H4 size (20px weight 500 `#000000d9`) on second row, body preview (14px weight 400 `#00000080` 2-line clamp), inline thumbnail (84px), action buttons (heart/comment/save/share) at bottom."
|
|
360
|
+
- "Build a Dcard primary button: bg `#3397cf`, white text, 8px border-radius, 14px weight 500, padding `8px 20px`. Hover: bg `#5ab0db`. Active: darken further. No shadow. Transition: `background .15s cubic-bezier(.4, 0, .2, 1)`."
|
|
361
|
+
- "Design the Dcard header: full-width sticky bar, height 48px, bg `#00324e` (tertiary navy), white logo on left (28px height), search input center (white bg, 8px radius left side, joined search submit `#006aa6` on right with `0px 8px 8px 0px` radius), Sign in/Sign up text link + Download App button (`#3397cf` bg, white text, 8px radius) on right."
|
|
362
|
+
- "Create a topic chip: bg `#bf8ff0` (lavender purple), white text, 12px weight 500, 8px radius, padding `4px 10px`. Use only for cross-cutting topics (e.g., '#study tips', '#dating advice')."
|
|
363
|
+
- "Build a sign-up overlay CTA: full-page absolute overlay with `#000000b3` (black 70%) bg, centered content card (white, 8px radius, `0px 6px 24px #0000001f` shadow level 5), heading 'From school to work, find your resonance on Dcard.' (24px weight 500 `#000000d9`), subhead 14px weight 400 `#00000080`, two buttons: Sign in (white border ghost) + Sign up (`#3397cf` filled). Triggers after 2 scroll lengths."
|
|
364
|
+
|
|
365
|
+
### Iteration Guide
|
|
366
|
+
1. **Always reference CSS variables, not hex values** — Dcard's design system is its `:root` token layer. `--color-dcard-primary` is more durable than `#3397cf`.
|
|
367
|
+
2. **Default headline weight is 500, never 700**. Dcard is Material Design-aligned.
|
|
368
|
+
3. **`8px` radius everywhere** (buttons, cards, chips). Don't use 4px or pill shapes.
|
|
369
|
+
4. **Wrap page in `#00324e` chrome + content on `#f2f2f2` + white cards** — this is the visual signature.
|
|
370
|
+
5. **Five shadow levels exist (`--shadow-level-1` to `-5`)** — use level 2 for cards by default, escalate only for floating UI.
|
|
371
|
+
6. **Roboto first, then Traditional Chinese fallbacks** — never hardcode `font-family` without including the TC stack.
|
|
372
|
+
7. **Material easing `cubic-bezier(.4, 0, .2, 1)`** with `.15s` (hover/press) or `.3s` (transitions). Don't use bounce.
|
|
373
|
+
8. **Gender colors (`--color-gender-*`) only for author chips** on gender-tagged forums (女孩/男生/感情). Never repurpose.
|
|
374
|
+
9. **Premium gold (`#ffc51b`) only for subscription/premium UI**. It's a finite signal.
|
|
375
|
+
10. **Three-column layout 208 / 728 / 300** at desktop. Right aside drops first on tablet, sider drops on mobile.
|
|
376
|
+
|
|
377
|
+
---
|
|
378
|
+
|
|
379
|
+
## 10. Voice & Tone
|
|
380
|
+
|
|
381
|
+
Dcard speaks like an older classmate on a university BBS — familiar, low-volume, Traditional-Chinese-native, with just enough informality to feel like peer conversation rather than an editorial voice. The default register is casual-polite Traditional Chinese (using `你` rather than `您`, but never colloquial internet slang on system surfaces). The platform's anonymity premise means the UI itself rarely uses the brand's first person; Dcard the product mostly *frames* user-generated content and stays out of the way. English strings exist on login/download flows for international visitors but are secondary — Traditional Chinese is the first-class voice.
|
|
382
|
+
|
|
383
|
+
| Context | Tone |
|
|
384
|
+
|---|---|
|
|
385
|
+
| CTAs | Short Traditional Chinese verb form. `登入`, `註冊`, `發文`, `下載 App`. English fallback on international flows: `Sign in`, `Sign up`. |
|
|
386
|
+
| Forum names (brand surface) | Single Traditional Chinese noun — `女孩`, `男生`, `心情`, `工作`, `感情`, `時事`. Never bilingual labels; the forum name IS the space. |
|
|
387
|
+
| Post-card metadata | Time + school/forum + anonymized author. Formatted as `B站大學 · 3 小時前` pattern. No decorative punctuation. |
|
|
388
|
+
| Empty states | Single-sentence explanation + one action. Blameless — never implies the user did something wrong. |
|
|
389
|
+
| Error messages | State the condition, never apologize with `不好意思` openers. Actionable single sentence. |
|
|
390
|
+
| Sign-up overlay | Aspirational-but-brief one-liner about finding your people. Avoids FOMO-framing ("Don't miss out"). |
|
|
391
|
+
| Comments / reactions | Counter numbers without units — just `584`, `179`, `12` with an icon. The icon is the unit. |
|
|
392
|
+
| Legal / policy | Formal `您` register + `敬啟` / `謹此` patterns. Single exception to the casual default. |
|
|
393
|
+
|
|
394
|
+
**Forbidden phrases.** `不好意思,系統發生錯誤` (generic apology opener), `很抱歉` on non-destructive failures, emoji in system-generated surfaces (emoji is *user* territory, not UI-chrome territory — exception: user-authored post content and sticker reactions), exclamation-mark-as-emphasis on buttons (`立即下載!` is wrong — `下載 App` is right), marketing adjectives `最佳`, `極致`, `革命性`, Simplified Chinese characters in TW surfaces (`网络` → always `網路`; `视频` → always `影片`). No cartoon illustrations on error screens — Dcard is a text-first forum, not an app mascot brand.
|
|
395
|
+
|
|
396
|
+
**Voice samples.**
|
|
397
|
+
|
|
398
|
+
- `下載 App` — primary CTA on the right of the desktop header. <!-- verified: https://www.dcard.tw/f via live Playwright recon 2026-04 (base DESIGN.md §1 confirms this CTA) -->
|
|
399
|
+
- `登入` / `註冊` — header auth links, Traditional Chinese verbs, no punctuation. <!-- verified: https://www.dcard.tw/f via live Playwright recon 2026-04 (base DESIGN.md §4 confirms auth chrome) -->
|
|
400
|
+
- `Binding Generations. Breaking Limitations. Building with Passion.` — public tagline on the engineering publication, the clearest first-person brand statement Dcard publishes. <!-- cited: https://medium.com/dcardlab masthead, fetched 2026-04 -->
|
|
401
|
+
- `還沒有文章` — illustrative empty-state pattern for a forum the user has just joined. Three characters, stated not apologized. <!-- illustrative: not verified as live Dcard copy; follows Traditional-Chinese UI convention observed in §14 pattern -->
|
|
402
|
+
- `這篇文章已被刪除` — illustrative post-removed state, factual single sentence, no blame. <!-- illustrative: not verified as live Dcard copy -->
|
|
403
|
+
- `搜尋 Dcard` — illustrative search input placeholder. Verb + brand; matches base DESIGN.md §4 header recon which confirms the search input component without quoting its placeholder. <!-- illustrative: not verified as live Dcard copy -->
|
|
404
|
+
|
|
405
|
+
## 11. Brand Narrative
|
|
406
|
+
|
|
407
|
+
Dcard began on **2011-12-16 at National Taiwan University** as a late-night "card-match" experiment: every midnight the app surfaces one profile to another, and the two students get 24 hours to decide whether to connect. The **`D`** in the name stands for *Destiny*. The founding premise was narrow — bored college students, the specific hour of 00:00, a single random pairing — and the product's entire structure flows from that origin. Dcard is built on the presumption that **online belonging in Taiwan is school-anchored and time-scoped**, not interest-anchored and always-on like Reddit or Facebook. ([en.wikipedia.org/wiki/Dcard](https://en.wikipedia.org/wiki/Dcard) — founding facts)
|
|
408
|
+
|
|
409
|
+
From that single-feature card-match, Dcard expanded into **topic forums** in 2012 — `女孩`, `男生`, `感情`, `心情`, `時事`, and dozens more — each moderated by volunteers drawn from the community. The company, Dcard Taiwan Ltd., was formally established in Taipei in **October 2015**, and by November 2022 the platform had **over 6 million members and 18 million monthly unique visitors** — a platform-scale audience inside a 23-million-person country. ([en.wikipedia.org/wiki/Dcard](https://en.wikipedia.org/wiki/Dcard)) <!-- source: Wikipedia via WebFetch 2026-04; not re-verified against live Dcard data. -->
|
|
410
|
+
|
|
411
|
+
The design language reflects three things the product must hold simultaneously. **One**, it must stay school-coded enough that a 21-year-old in Kaohsiung or Taipei doesn't feel like they're using a corporate social network — hence Material Design's restrained medium-weight typography rather than the bold-700 display type of commerce or news apps. **Two**, it must frame user content without competing with it — hence the dark-navy chrome (`#00324e`) + light-gray content area (`#f2f2f2`) + white post cards: the product is the frame, the posts are the picture. **Three**, it must surface *identity-under-anonymity* gracefully — the same user posts anonymously but is labeled by their school and gender forum affiliation, which is why Dcard invests in gender-coded author chips (`--color-gender-female: #cb3a6b`, `--color-gender-male: #1c7fac`) as first-class design tokens where other platforms would treat gender as metadata.
|
|
412
|
+
|
|
413
|
+
What Dcard refuses: the open-graph identity of Facebook (school-verified but anonymous-posting is the point), the karma-and-moderation-wars culture of Reddit (Taiwan forum culture is softer, more mutual), the full-dark aesthetic of gamer or crypto platforms (Dcard is a well-lit reading space), and the heavy illustration style of consumer super-apps (the content is the illustration).
|
|
414
|
+
|
|
415
|
+
The Dcard Tech Blog publishes under the tagline **"Binding Generations. Breaking Limitations. Building with Passion."** ([medium.com/dcardlab](https://medium.com/dcardlab)), which frames the brand's own ambition for its engineering — not a user-facing slogan, but the clearest first-person statement the company makes in public.
|
|
416
|
+
|
|
417
|
+
## 12. Principles
|
|
418
|
+
|
|
419
|
+
1. **The product is the frame, posts are the picture.** Every surface outside a post body is deliberately subdued — muted chrome, no decorative illustration, no brand mascots in the reading flow. Dcard earns attention only where attention is required (auth, composition, notifications). *UI implication:* No illustrations on post-list screens. No brand color inside the content area. The `#f2f2f2` content bg + `#ffffff` post card is the canonical composition; any UI that breaks that contrast must justify itself.
|
|
420
|
+
|
|
421
|
+
2. **Medium is the new bold.** Weight 500 is the highest weight Dcard UI uses for headlines; weight 600 is reserved for the `Title` tier (modal headers and editor labels); weight 700 is **forbidden** on product surfaces. Hierarchy is built through size, opacity, and vertical rhythm — not by making things fatter. *UI implication:* Headlines `font-weight: 500`. Never upgrade an H2 to 700 for emphasis; instead increase size from 28px → 32px or use the 85%-black text color instead of the 50%-black metadata color.
|
|
422
|
+
|
|
423
|
+
3. **Identity tokens are semantic, not decorative.** `--color-gender-female` and `--color-gender-male` exist because anonymous posting in a school-anchored community needs *some* axis of identity, and gender is the axis Dcard's community inherited from its origin forums. These tokens are never to be recycled as brand accent colors. *UI implication:* Use gender colors only on author chips and gender-forum headers. A danger toast must use `--color-state-danger`, never `--color-gender-female`, even if the pinks are similar.
|
|
424
|
+
|
|
425
|
+
4. **Gold is a subscription, not a highlight.** `--color-dcard-premium: #ffc51b` is reserved exclusively for subscription, paid, or verified-premium surfaces. Using it as a generic warning or "featured" accent devalues a finite economic signal. *UI implication:* Warnings use `--color-state-reminder` (`#f0a955`, orange). Featured-without-payment content uses topic lavender (`--color-bg-topic: #bf8ff0`). Premium gold appears only behind a paid wall.
|
|
426
|
+
|
|
427
|
+
5. **8px is tactile.** Every Dcard button, card, chip, and input uses 8px border-radius. This single radius token does the work of communicating "soft product, safe space" across the entire UI. 4px reads as utility/enterprise; 16px reads as playful/commerce; pill-shaped reads as iOS-native. Dcard sits at 8px. *UI implication:* `border-radius: 8px` is the default. Pills are for toggles only. Sharp corners are for nothing.
|
|
428
|
+
|
|
429
|
+
6. **Shadows are for floating, not for separating.** Post cards in the feed sit flat — the `#f2f2f2` content bg separates them from the `#ffffff` card surface via contrast. Shadows are reserved for UI that genuinely floats above the surface (dropdowns, modals, toasts). *UI implication:* No default shadow on feed cards. Use `--shadow-level-2` only for dropdowns and elevated cards. `--shadow-level-5` only for full-screen dialogs.
|
|
430
|
+
|
|
431
|
+
7. **Traditional Chinese first, English second.** The font stack starts with Roboto (Latin/numerals) and layers on `PingFang TC`, `黑體-繁`, `Heiti TC`, `微軟正黑體`. Simplified Chinese characters are never acceptable on TW surfaces — the distinction is culturally load-bearing, not cosmetic. *UI implication:* Every `font-family` declaration includes the TC fallback stack. String tables use `網路` not `网络`, `影片` not `视频`, `資料` not `数据`. Hardcoded `font-family: sans-serif` is a bug.
|
|
432
|
+
|
|
433
|
+
8. **Anonymity requires generous metadata.** The author is anonymous, but the context isn't. Every post surfaces school name + forum + timestamp + gender chip (if the forum warrants it). That metadata cluster is why a Dcard feed feels informative rather than chaotic — you know *where* and *when* without knowing *who*. *UI implication:* Every post-card component must render the school-forum-time triplet with consistent typography (12px weight 500 `--color-text-secondary`). Never hide it for density; never elaborate it with icons.
|
|
434
|
+
|
|
435
|
+
## 13. Personas
|
|
436
|
+
|
|
437
|
+
*Personas are fictional archetypes informed by publicly described Dcard user segments (Taiwanese college students and recent graduates, 2022 figure of 6M+ members reported by Wikipedia), not individual people.*
|
|
438
|
+
|
|
439
|
+
**宥廷 (You-Ting), 20, Taipei.** Second-year university student. Opens Dcard late at night on her phone — after class, before sleep — and reads the `女孩` and `感情` forums for an hour without posting. Comments anonymously maybe once a week, posts original content twice a semester. Treats Dcard as a quieter alternative to Threads or IG comments. Will not install another forum app — Dcard is the forum app.
|
|
440
|
+
|
|
441
|
+
**Kytu, 24, Hsinchu.** Recent engineering grad, first tech job at a semiconductor firm. Uses Dcard primarily on the `工作` and `科技業` forums for salary-transparency threads and interview-prep AMAs. Posts about work experiences under a throwaway-feel chip (still anonymous, but wants the school-verified credibility tag). Would never tag himself identifiably. Reads the Dcard Tech Blog on Medium for engineering posts and recognizes Kytu Lin's byline.
|
|
442
|
+
|
|
443
|
+
**小柔 (Xiao-Rou), 22, Taichung.** Third-year undergrad, active in the `美妝` and `購物` forums. Cross-references Dcard threads before any skincare purchase — treats the forum as peer-verified product reviews. Clicks into `Good Choice` when a thread recommends a product that's listed. Strong preference for Traditional Chinese interface; if a brand website is Simplified-Chinese-only she won't buy.
|
|
444
|
+
|
|
445
|
+
## 14. States
|
|
446
|
+
|
|
447
|
+
| State | Treatment |
|
|
448
|
+
|---|---|
|
|
449
|
+
| **Empty (new forum subscribed)** | Single paragraph of `--color-text-secondary` (`#00000080`) body text explaining what the forum covers + one CTA button in `--color-dcard-primary` bg to compose the first post. No illustration. Example pattern: `還沒有文章 · 成為第一個發文的人`. |
|
|
450
|
+
| **Empty (search no results)** | Single line of `--color-text-secondary` 14px caption — `找不到符合的文章`. No suggested searches, no autocomplete spam. The user refines the query themselves. |
|
|
451
|
+
| **Loading (feed first paint)** | Shimmer skeleton using `--color-bg-shimmer-bg` (`#f2f2f2`) → `--color-bg-shimmer-fg` (`#fafafa`) linear gradient. Card-shaped blocks matching final layout. Duration: `--animations-medium-duration` (300ms) shimmer cycle. |
|
|
452
|
+
| **Loading (infinite scroll)** | Centered spinner at bottom of feed, 24px, `--color-dcard-primary` stroke. No full-screen block; existing cards remain interactive. |
|
|
453
|
+
| **Error (inline form field)** | 1px border replaced with `--color-state-danger` (`#ea5c5c`), error caption below in `--color-state-danger` 12px weight 500. One actionable sentence. |
|
|
454
|
+
| **Error (toast)** | Snackbar: bg `--color-bg-snackbar` (`#2c2c2c`), white 14px weight 400 text, 3s auto-dismiss. Bottom of screen with 20px safe-area inset. No icon, no illustration. |
|
|
455
|
+
| **Error (post deleted)** | Full card replaced with single line `這篇文章已被刪除` in `--color-text-secondary` 14px, centered. Card chrome (radius, padding) preserved so feed rhythm is intact. |
|
|
456
|
+
| **Success (post published)** | Snackbar in `--color-bg-snackbar` with white text `文章已發布` + secondary action link `查看文章` in `--color-dcard-primary`. 4s auto-dismiss. |
|
|
457
|
+
| **Success (upvote/heart)** | Inline icon color transitions from `--color-icon-button` (`rgba(0,0,0,0.7)`) to `--color-state-danger` (heart) or `--color-dcard-primary` (upvote) over `--animations-short-duration` (150ms). Counter number increments without animation. |
|
|
458
|
+
| **Disabled (button)** | bg `--color-bg-btn-disabled` (`#e0e0e0`), text `--color-text-secondary` (`#00000080`). No opacity reduction — the swatch change is the signal. |
|
|
459
|
+
| **Skeleton (post body)** | Three shimmer lines at 100% / 90% / 70% width, 14px line height, 8px gap. `--animations-bezier` easing on the shimmer gradient. |
|
|
460
|
+
| **Sign-up overlay (anonymous scroll wall)** | Full-page backdrop `--color-bg-sign-up-overlay` (`#000000b3`). Centered card, `--shadow-level-5`, 8px radius. One headline (`--typography-headline-3` weight 500), one subhead (`--typography-body-2`), two buttons: ghost `Sign in` + primary `Sign up`. Triggers after ~2 scroll lengths of anonymous browsing. |
|
|
461
|
+
|
|
462
|
+
## 15. Motion & Easing
|
|
463
|
+
|
|
464
|
+
Dcard's motion system is Material-Design-standard. The entire runtime design token layer ships with exactly three motion tokens — `--animations-bezier`, `--animations-short-duration`, `--animations-medium-duration` — which is the whole point: restraint.
|
|
465
|
+
|
|
466
|
+
**Durations:**
|
|
467
|
+
|
|
468
|
+
| Token | Value | Use |
|
|
469
|
+
|---|---|---|
|
|
470
|
+
| `motion-instant` | 0ms | Toggle flips, checkbox state, counter increments |
|
|
471
|
+
| `motion-short` (`--animations-short-duration`) | 150ms | Hover, press, small reveals, icon color transitions |
|
|
472
|
+
| `motion-medium` (`--animations-medium-duration`) | 300ms | Accordion expand, dropdown open, tab switch, page transitions |
|
|
473
|
+
| `motion-long` | 500ms | Emphasized transitions only — sign-up overlay entrance, first-load shimmer fade-out |
|
|
474
|
+
|
|
475
|
+
**Easings:**
|
|
476
|
+
|
|
477
|
+
| Token | Curve | Use |
|
|
478
|
+
|---|---|---|
|
|
479
|
+
| `ease-standard` (`--animations-bezier`) | `cubic-bezier(0.4, 0, 0.2, 1)` | The default. Material Design standard. Used for 95%+ of Dcard's motion. |
|
|
480
|
+
| `ease-enter` | `cubic-bezier(0.0, 0.0, 0.2, 1)` | Sheets rising, toasts entering, modals appearing |
|
|
481
|
+
| `ease-exit` | `cubic-bezier(0.4, 0.0, 1, 1)` | Dismissals, pops, toast departures |
|
|
482
|
+
|
|
483
|
+
**Spring stance.** Spring / overshoot easing is **forbidden** on Dcard product surfaces. Rationale: Dcard is a reading platform for a community that uses it late at night, often to discuss sensitive topics (`感情`, `心情`, `工作壓力`). Kinetic overshoot on a card-flip or button-press contradicts the platform's emotional register. The community's culture is *quiet*; the motion design matches. The only place where Dcard's original card-match origin might have licensed overshoot — the midnight match reveal — sits inside a specific ritual surface, not the general UI; treat it as a legacy product moment, not a reusable motion token.
|
|
484
|
+
|
|
485
|
+
**Signature motions.**
|
|
486
|
+
|
|
487
|
+
1. **Feed card tap.** On press, card background transitions from `#ffffff` to a very subtle `--color-bg-base-3` tint over `motion-short / ease-standard`. No scale, no shadow pulse. The user's finger is the feedback, not the animation.
|
|
488
|
+
|
|
489
|
+
2. **Sign-up overlay entrance.** The backdrop fades from `rgba(0,0,0,0)` to `--color-bg-sign-up-overlay` (`#000000b3`) over `motion-long / ease-enter` while the centered card slides from `y+20px` to its final position over `motion-medium / ease-enter`. Coordinated, not simultaneous — the backdrop lands first.
|
|
490
|
+
|
|
491
|
+
3. **Infinite-scroll reveal.** Newly-loaded cards fade in with `opacity 0 → 1` over `motion-medium / ease-standard`. No slide — the feed is already scrolled, cards just materialize in place. A slide-in would read as "new content arrived" (social-feed paradigm); Dcard treats it as "your next page of reading" (forum paradigm).
|
|
492
|
+
|
|
493
|
+
4. **Sidebar forum-switch.** Selected forum item's left-indicator bar (2px) animates its height from collapsed to full over `motion-short / ease-standard`; the old selection's indicator collapses over the same duration. No color fade on the text — the indicator does the work.
|
|
494
|
+
|
|
495
|
+
**Reduce motion.** Under `prefers-reduced-motion: reduce`, all `motion-*` tokens collapse to `motion-instant`. Shimmer skeletons become static `#f2f2f2` blocks. Card fade-ins become immediate opacity-1. Sign-up overlay appears without coordinated entrance — just present. No exceptions.
|
|
496
|
+
|
|
497
|
+
<!--
|
|
498
|
+
OmD v0.1 Sources — Philosophy Layer (sections 10–15)
|
|
499
|
+
Augmented: 2026-04-20
|
|
500
|
+
|
|
501
|
+
⚠️ SOURCING CAVEAT: Dcard publishes almost no public brand-philosophy
|
|
502
|
+
documentation. The company is a college-community forum platform, not a
|
|
503
|
+
design-forward brand. Most of the Philosophy layer above is INFERRED from
|
|
504
|
+
three sources:
|
|
505
|
+
|
|
506
|
+
1. The base DESIGN.md §1–9 (UI patterns extracted from `:root` CSS variables
|
|
507
|
+
via Playwright MCP runtime recon on 2026-04-17). This is the most
|
|
508
|
+
authoritative source for what the product actually does; it is NOT the
|
|
509
|
+
same as the company's self-stated philosophy.
|
|
510
|
+
|
|
511
|
+
2. Wikipedia's Dcard entry (https://en.wikipedia.org/wiki/Dcard), fetched
|
|
512
|
+
2026-04-20. Used for founding year (2011-12-16), founding location
|
|
513
|
+
(National Taiwan University, NOT NCCU as a common misconception),
|
|
514
|
+
founder name (Kytu Lin / 林裕欽), the "D = Destiny" name origin, and
|
|
515
|
+
the 6M members / 18M monthly UV figure from November 2022. None of these
|
|
516
|
+
have been re-verified against primary Dcard sources.
|
|
517
|
+
|
|
518
|
+
3. The Dcard Tech Blog (https://medium.com/dcardlab), fetched 2026-04-20.
|
|
519
|
+
Confirms the tagline "Binding Generations. Breaking Limitations. Building
|
|
520
|
+
with Passion." as Dcard's clearest first-person public brand statement.
|
|
521
|
+
The blog lists Kytu Lin as one of four editors, confirming he remains
|
|
522
|
+
publicly associated with the engineering org.
|
|
523
|
+
|
|
524
|
+
Direct verification of live Dcard microcopy was NOT possible:
|
|
525
|
+
WebFetch against dcard.tw / about.dcard.tw / dcard.tw/service/about all
|
|
526
|
+
returned HTTP 403 (Cloudflare bot challenge, consistent with the base
|
|
527
|
+
recon's note that only Playwright MCP successfully passes the challenge).
|
|
528
|
+
Re-running this augmentation with Playwright MCP would allow direct voice
|
|
529
|
+
sample verification; that was out of scope for this pass.
|
|
530
|
+
|
|
531
|
+
Voice samples in §10:
|
|
532
|
+
- `下載 App`, `登入`, `註冊` — verified via base DESIGN.md §4 header recon
|
|
533
|
+
(Playwright, 2026-04-17).
|
|
534
|
+
- `Binding Generations. Breaking Limitations. Building with Passion.` —
|
|
535
|
+
cited from medium.com/dcardlab masthead, fetched 2026-04-20.
|
|
536
|
+
- `還沒有文章`, `這篇文章已被刪除`, `搜尋 Dcard` — ILLUSTRATIVE only.
|
|
537
|
+
These follow Traditional-Chinese UI conventions observed in the base
|
|
538
|
+
recon's component catalog, but were not confirmed as live Dcard strings.
|
|
539
|
+
Do not present these to the brand owner as verbatim Dcard copy.
|
|
540
|
+
|
|
541
|
+
Interpretive claims (editorial readings, not documented Dcard statements):
|
|
542
|
+
- "The D in Dcard stands for Destiny" is from Wikipedia and treated as fact.
|
|
543
|
+
- "Taiwan forum culture is softer, more mutual" (§11 what-Dcard-refuses
|
|
544
|
+
section) is an editorial reading of the product's tone, not a sourced
|
|
545
|
+
Dcard statement.
|
|
546
|
+
- All §12 Principles are derived from observable UI patterns (8px radius,
|
|
547
|
+
weight-500 defaults, gender color tokens, shadow-reserved-for-floating);
|
|
548
|
+
they are not quotations from a Dcard design-principles document, which
|
|
549
|
+
does not publicly exist.
|
|
550
|
+
- §13 Personas are fictional archetypes. Any resemblance to specific
|
|
551
|
+
Dcard users is unintended.
|
|
552
|
+
|
|
553
|
+
NCCU vs NTU note: the augmentation brief suggested NCCU (National Chengchi
|
|
554
|
+
University) as the founding site, but Wikipedia attributes the founding to
|
|
555
|
+
National Taiwan University (NTU). This narrative uses NTU per Wikipedia; if
|
|
556
|
+
a more authoritative source (Dcard press page, founder interview) confirms
|
|
557
|
+
NCCU, §11 should be corrected.
|
|
558
|
+
-->
|
|
559
|
+
|
|
560
|
+
---
|
|
561
|
+
|
|
562
|
+
**Verified:** 2026-05-08 (omd:migrate run 21 — Apple-tier)
|
|
563
|
+
**Tier 1 sources:** dcard.tw/f (live DOM — `#3397cf` Dcard Blue 8px / 14×1 / 32px / 14px·500 Download App + Sign in CTAs); about.dcard.tw/ (corporate nav — same `#3397cf` accent text, 200+ token `:root` system).
|
|
564
|
+
**Tier 2 sources:** styles.refero.design / getdesign.md — no record.
|
|
565
|
+
**Tier 2 (Philosophy/founders):** Wikipedia (Dcard — Kytu Lin / 林裕欽 / NTU 2011-12-16 founding / D=Destiny / 6M+ members Nov 2022); medium.com/dcardlab masthead.
|
|
566
|
+
**Style ref:** `pinkoi` (TW Asian marketplace tone). **Conflicts unresolved:** none. NCCU/NTU founding origin remains a noted editorial-only research gap (NTU per Wikipedia is canonical here).
|
|
567
|
+
|