Loading...
Loading...
Create accurate Japanese UI DESIGN.md files for AI agents with proper CJK typography, font stacks, line-height, kinsoku shori, and mixed typesetting rules.
npx skill4agent add aradotso/trending-skills awesome-design-md-jpSkill by ara.so — Daily 2026 Skills collection.
DESIGN.md0.04em0.1empaltkerngit clone https://github.com/kzhrknt/awesome-design-md-jp.git
cd awesome-design-md-jpcp template/DESIGN.md your-project/DESIGN.mdcp design-md/muji/DESIGN.md your-project/DESIGN.md
# then edit for your brandDESIGN.mdAGENTS.mdyour-project/
├── AGENTS.md # how to build
├── DESIGN.md # how it should look and feel ← add this
├── src/
└── ...# DESIGN.md
## 1. Overview
Brief description of the product, target users, and overall visual direction.
## 2. Color Palette
| Token | Value | Usage |
|-----------------|-----------|------------------|
| `--color-primary` | `#0066CC` | CTAs, links |
| `--color-bg` | `#FFFFFF` | Page background |
| `--color-text` | `#1A1A1A` | Body text |
| `--color-muted` | `#666666` | Secondary text |
## 3. Typography
### 3.1 Font Families
**和文(Japanese)**
```css
font-family:
"Noto Sans JP", /* Google Fonts — preferred web font */
"Hiragino Kaku Gothic ProN", /* macOS / iOS */
"Hiragino Sans", /* macOS newer */
"Meiryo", /* Windows */
"Yu Gothic", /* Windows 8.1+ */
sans-serif;font-family:
"Inter", /* preferred web font for Latin */
-apple-system,
BlinkMacSystemFont,
"Segoe UI",
sans-serif;@font-face| Role | Size | Weight | Line-height | Letter-spacing |
|---|---|---|---|---|
| Display | 2.5rem | 700 | 1.4 | -0.02em |
| Heading 1 | 2rem | 700 | 1.5 | -0.01em |
| Heading 2 | 1.5rem | 600 | 1.5 | 0 |
| Body | 1rem | 400 | 1.8 | 0.04em |
| Small | 0.875rem | 400 | 1.7 | 0.04em |
| Caption | 0.75rem | 400 | 1.6 | 0.06em |
0.04em0.1em0word-break: normal;
overflow-wrap: break-word;
line-break: strict; /* enforce JIS kinsoku rules */)」』】、。・:;?!…―(「『【font-feature-settings: "palt" 1, "kern" 1;
/* palt = proportional alternate widths for punctuation */
/* kern = kerning */-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-rendering: optimizeLegibility;8px| Token | Value |
|---|---|
| |
| |
| |
| |
| |
1200px24px| Name | Width |
|---|---|
| Mobile | < 768px |
| Tablet | 768–1024px |
| Desktop | > 1024px |
---
## Reference DESIGN.md Examples
### MUJI Style (Minimalist Retail)
```markdown
## Color Palette
| Token | Value |
|--------------------|-----------|
| `--color-primary` | `#000000` |
| `--color-bg` | `#F5F5F0` |
| `--color-text` | `#333333` |
| `--color-border` | `#DDDDDD` |
## Typography
### Font Stack
```css
font-family:
"Noto Serif JP",
"Hiragino Mincho ProN",
"Yu Mincho",
"MS Mincho",
Georgia,
serif;
### SmartHR Style (B2B SaaS)
```markdown
## Color Palette
| Token | Value |
|-------------------|-----------|
| `--color-primary` | `#0077C8` |
| `--color-success` | `#28A745` |
| `--color-warning` | `#FFC107` |
| `--color-danger` | `#DC3545` |
| `--color-bg` | `#F8F9FA` |
| `--color-text` | `#212529` |
## Typography
### Font Stack
```css
font-family:
"Hiragino Kaku Gothic ProN",
"Hiragino Sans",
Meiryo,
"Yu Gothic",
sans-serif;
### note Style (Media / Publishing)
```markdown
## Typography
### Font Stack
```css
/* Heading */
font-family: "Noto Serif JP", "Hiragino Mincho ProN", serif;
/* Body */
font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
---
## CSS Boilerplate for Japanese UI
Use this as a starting point in any project informed by these DESIGN.md files:
```css
/* ===== Japanese Typography Base ===== */
:root {
/* Font families */
--font-ja-sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN",
"Hiragino Sans", "Meiryo", "Yu Gothic", sans-serif;
--font-ja-serif: "Noto Serif JP", "Hiragino Mincho ProN",
"Yu Mincho", "MS Mincho", Georgia, serif;
--font-en: "Inter", -apple-system, BlinkMacSystemFont,
"Segoe UI", sans-serif;
/* Type scale */
--text-display: 2.5rem;
--text-h1: 2rem;
--text-h2: 1.5rem;
--text-h3: 1.25rem;
--text-body: 1rem;
--text-sm: 0.875rem;
--text-xs: 0.75rem;
/* Line heights */
--lh-tight: 1.4; /* headings */
--lh-normal: 1.8; /* body */
--lh-loose: 2.0; /* long-form reading */
/* Letter spacing */
--ls-tight: -0.02em;
--ls-normal: 0.04em;
--ls-wide: 0.08em;
}
/* Base Japanese text rendering */
body {
font-family: var(--font-ja-sans);
font-size: var(--text-body);
line-height: var(--lh-normal);
letter-spacing: var(--ls-normal);
font-feature-settings: "palt" 1, "kern" 1;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-rendering: optimizeLegibility;
}
/* Kinsoku shori */
p, li, td, th {
word-break: normal;
overflow-wrap: break-word;
line-break: strict;
}
/* Headings */
h1, h2, h3, h4, h5, h6 {
line-height: var(--lh-tight);
letter-spacing: var(--ls-tight);
font-feature-settings: "palt" 1;
}
/* Mixed typesetting — Latin numerals and ASCII via Inter */
@font-face {
font-family: "Inter-for-JP";
src: url("https://fonts.gstatic.com/s/inter/v13/...") format("woff2");
unicode-range: U+0020-007E; /* Basic Latin only */
}<!-- In <head> — preconnect for performance -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<!-- Noto Sans JP (recommended for most Japanese UI) -->
<link href="https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&display=swap" rel="stylesheet">
<!-- Noto Serif JP (for editorial / reading-focused UI) -->
<link href="https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@400;700&display=swap" rel="stylesheet">
<!-- Combined with Inter for mixed typesetting -->
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Noto+Sans+JP:wght@400;500;700&display=swap" rel="stylesheet">- Font: Noto Sans JP + system fallbacks
- Line-height body: 1.7
- Letter-spacing: 0.04em
- Primary color: brand-specific bold color
- Mobile-first, 375px base
- Tap targets: 48px minimum- Font: Hiragino Kaku Gothic ProN preferred (system), Noto Sans JP web
- Line-height body: 1.8 (dense data tables may use 1.5)
- Letter-spacing: 0.04em
- Neutral palette with clear action color
- Information density: high
- Data tables with sticky headers- Font: Noto Serif JP or Hiragino Mincho for body; sans for UI chrome
- Line-height body: 1.9–2.0
- Letter-spacing: 0.06em
- Max line length: 38–42 characters (約40文字)
- Code blocks: monospace with JIS-compatible fallback- Font: Serif for premium feel; sans for utility text
- Line-height: 2.0 (generous whitespace)
- Letter-spacing: 0.08em (airy)
- Achromatic or very restrained palette
- High-quality imagery as primary contentpreview.html# Open any preview locally
open design-md/muji/preview.html
open design-md/smarthr/preview.html
# Or view the full gallery
open design-md/gallery.html
# or visit: https://kzhrknt.github.io/awesome-design-md-jp/gallery.htmlRead DESIGN.md and create a Japanese landing page hero section following
the typography and color specifications defined there. Use the exact
font-family fallback chain, line-height, and letter-spacing values specified.
Implement kinsoku shori with line-break: strict.Following DESIGN.md section 3.3 (Japanese Typography Rules), update the
global CSS to add proper kinsoku shori, font-feature-settings, and
-webkit-font-smoothing for all text elements."MS Gothic"sans-serif### Font Stack (REQUIRED — do not simplify)
```css
font-family:
"Noto Sans JP", /* web font — always load via Google Fonts */
"Hiragino Kaku Gothic ProN", /* macOS / iOS system */
"Hiragino Sans", /* macOS 10.11+ */
"Meiryo", /* Windows */
"Yu Gothic", /* Windows 8.1+ */
sans-serif; /* absolute fallback */
### Line-height too tight on Japanese text
**Problem:** Agent uses `line-height: 1.5` from a Western design system.
**Fix:** Specify explicitly in DESIGN.md with a note:
```markdown
**IMPORTANT:** Japanese body text requires line-height 1.7–2.0,
NOT the Western default of 1.4–1.5. Use 1.8 for standard body copy.。、「### Kinsoku Shori (禁則処理) — REQUIRED
```css
p { line-break: strict; word-break: normal; overflow-wrap: break-word; }
### Proportional punctuation not activating
**Problem:** Japanese commas and periods render full-width, looking too spaced.
**Fix:** Ensure font-feature-settings is applied:
```markdown
font-feature-settings: "palt" 1, "kern" 1;
/* palt = proportional alternates — narrows full-width punctuation */
/* Required for Noto Sans JP, Hiragino fonts */### Mixed Typesetting (混植)
- Insert a thin space (U+202F or 0.25em margin) between Japanese and Latin runs
- OR use CSS: `ruby { margin: 0 0.1em; }` pattern
- Preferred: use a font that handles this (Noto CJK with auto-spacing)# 1. Create directory
mkdir design-md/your-service
# 2. Copy template
cp template/DESIGN.md design-md/your-service/DESIGN.md
# 3. Fill in all 9 sections including Japanese typography subsections
# 4. Create preview.html from the preview template
cp template/preview.html design-md/your-service/preview.html
# 5. Take a screenshot at 1280×800 → preview-screenshot.png