How to Use AI to Create Custom Xiaohongshu Card Styles
Why Create Custom Card Styles?
On Xiaohongshu, visual appeal is a key factor for content success. While MD2Card provides default styles, custom styles can:
- 🎯 Increase brand recognition: establish a consistent visual identity for you or your brand
- 🔍 Enhance content appeal: unique designs stand out in the feed
- 🌈 Match content themes: choose the most suitable visual expression for different content types
Use AI to Quickly Generate Custom Styles
You can ask DeepSeek, Claude, or ChatGPT to implement CSS and quickly create card styles. Here’s an effective prompt template:
I need to implement a custom Xiaohongshu card style on md2card.com
Below is the HTML structure of a card on md2card.com:
<div class="card">
<div class="card-header"></div>
<div class="card-content">
<div class="card-content-inner">
<h1 data-text="Title">Title</h1>
<h2 data-text="Subtitle">Subtitle</h2>
<p>Content</p>
<ol>
<li data-index="0">List item</li>
</ol>
</div>
</div>
<div class="card-footer"></div>
</div>
`card-content-inner` is the area containing Markdown-rendered content, including headings, lists, quotes, code, bold, and other common Markdown elements.
Please design a card with the style of "[your desired style]" for the scenario "[your application scenario]".
[Style requirements]: [optional, add more specific requirements]
[Output requirements]: Only return CSS code
Popular Design Styles
Depending on your content theme and target audience, consider the following styles:
1. Minimal Modern
Features: generous whitespace, clean typography, soft tones, streamlined elements Use cases: knowledge sharing, professional content, business topics
2. Vibrant Colorful
Features: vivid colors, dynamic elements, creative layouts, strong contrast Use cases: lifestyle, creative content, young audiences
3. Retro Vintage
Features: vintage palettes, textured backgrounds, classic fonts, decorative elements Use cases: history, culture, art themes
4. Extreme Minimalism
Features: black-and-white palette, large whitespace, minimal layout, geometric elements Use cases: art & design, premium products, philosophical topics
5. Natural Organic
Features: natural tones, organic shapes, soft corners, eco elements Use cases: health & wellness, environmental topics, personal growth
Style Application Example
Below is a CSS example for a “Minimal Modern” style that embraces a whitespace-driven design:
.card {
margin: 0 auto;
overflow: hidden;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
background: #ffffff;
font-family:
"PingFang SC",
-apple-system,
BlinkMacSystemFont,
sans-serif;
}
.card-header {
height: 8px;
background: linear-gradient(90deg, #ff4f81 0%, #ff9b5e 100%);
}
.card-content {
padding: 24px 20px;
}
.card-content-inner {
line-height: 1.6;
color: #333;
}
.card-content-inner h1 {
font-size: 20px;
font-weight: 600;
margin-bottom: 16px;
color: #111;
line-height: 1.4;
}
.card-content-inner h2 {
font-size: 18px;
font-weight: 500;
margin: 20px 0 12px;
color: #222;
}
.card-content-inner p {
margin: 12px 0;
font-size: 16px;
}
.card-content-inner ol,
.card-content-inner ul {
padding-left: 18px;
margin: 14px 0;
}
.card-content-inner li {
margin: 8px 0;
position: relative;
}
.card-content-inner blockquote {
border-left: 3px solid #ff4f81;
padding-left: 12px;
margin: 16px 0;
color: #555;
font-style: italic;
}
.card-footer {
height: 6px;
background: #f8f8f8;
}
Customization Tips
- Color palette: choose 2–3 primary colors and keep them consistent. Tools like Adobe Color help find harmonious palettes.
- Whitespace: appropriate whitespace improves readability and visual comfort.
- Emphasize key points: use color, size, or weight changes to highlight important content.
- Consistency: keep margins, colors, and fonts consistent to enhance professionalism.
Summary
By using AI to generate custom Xiaohongshu card styles, you can achieve professional results in minutes without deep CSS knowledge. Try different design styles to find the visual expression that best fits your content, and make your Xiaohongshu posts more engaging and professional.