medesign 0.0.0-stage → 1.2.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/LICENSE +21 -0
- package/README.md +128 -2
- package/bin/medesign.js +200 -0
- package/integrations/claude-code/SKILL.md +20 -0
- package/integrations/cursor/medesign.mdc +26 -0
- package/medesign.config.js +46 -0
- package/package.json +62 -4
- package/presets/apple/design-tokens.css +115 -0
- package/presets/apple/guidelines.md +19 -0
- package/presets/apple/preset.json +53 -0
- package/presets/metha/design-tokens.css +127 -0
- package/presets/metha/guidelines.md +23 -0
- package/presets/metha/preset.json +53 -0
- package/presets/schema.json +102 -0
- package/presets/tesla/design-tokens.css +112 -0
- package/presets/tesla/guidelines.md +17 -0
- package/presets/tesla/preset.json +53 -0
- package/references/ai-tells.md +127 -0
- package/references/appendices.md +220 -0
- package/references/architecture.md +39 -0
- package/references/argon-design-archetypes.md +317 -0
- package/references/banner-sizes-and-styles.md +118 -0
- package/references/block-library.md +61 -0
- package/references/brand-design-tokens.md +42 -0
- package/references/catalog.json +108 -0
- package/references/cip-deliverable-guide.md +95 -0
- package/references/cip-design.md +121 -0
- package/references/cip-prompt-engineering.md +84 -0
- package/references/cip-style-guide.md +68 -0
- package/references/cli-architecture.md +146 -0
- package/references/components.md +240 -0
- package/references/dark-mode.md +23 -0
- package/references/design-core.md +42 -0
- package/references/design-md-protocol.md +75 -0
- package/references/design-routing.md +207 -0
- package/references/eng-imagery-content.md +71 -0
- package/references/eng-layout.md +28 -0
- package/references/eng-other.md +26 -0
- package/references/eng-states-theme.md +22 -0
- package/references/eng-type-color.md +44 -0
- package/references/icon-design.md +122 -0
- package/references/image-mockup-direction.md +53 -0
- package/references/image-to-code.md +46 -0
- package/references/impeccable-polish.md +85 -0
- package/references/intake.md +90 -0
- package/references/logo-color-psychology.md +101 -0
- package/references/logo-design.md +110 -0
- package/references/logo-prompt-engineering.md +158 -0
- package/references/logo-style-guide.md +109 -0
- package/references/mesurv-dna.md +104 -0
- package/references/micro-interactions-and-auto-animate.md +71 -0
- package/references/modern-craft-invariants.md +332 -0
- package/references/motion-tokens.md +99 -0
- package/references/preflight.md +110 -0
- package/references/proactive-motion.md +167 -0
- package/references/quality-gate.md +147 -0
- package/references/redesign-audit.md +38 -0
- package/references/redesign.md +52 -0
- package/references/slides-copywriting-formulas.md +84 -0
- package/references/slides-create.md +4 -0
- package/references/slides-html-template.md +295 -0
- package/references/slides-layout-patterns.md +137 -0
- package/references/slides-strategies.md +94 -0
- package/references/slides.md +42 -0
- package/references/social-photos-design.md +329 -0
- package/references/spatial-canvas-engine.md +160 -0
- package/references/stitch-system.md +184 -0
- package/references/style-extraction.md +17 -0
- package/references/styles/brutalist.md +88 -0
- package/references/styles/minimalist.md +81 -0
- package/references/styles/soft.md +94 -0
- package/references/threeui-spatial-engine.md +224 -0
- package/references/ui-styling-shadcn.md +336 -0
- package/references/ui-ux-vocabulary-vault.json +1223 -0
- package/references/ui-ux-vocabulary-vault.md +438 -0
- package/references/vocab-protocol.md +52 -0
- package/references/vocabulary.md +78 -0
- package/scripts/export-tokens.js +403 -0
- package/tests/browser-audit.js +442 -0
- package/tests/linter.js +412 -0
- package/tests/schemas/sarif-2.1.0.schema.json +2915 -0
- package/tests/visual-testbed.html +681 -0
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
# Logo Design Reference
|
|
2
|
+
|
|
3
|
+
AI-powered logo design with 55+ styles, 30 color palettes, 25 industry guides. Gemini Nano Banana is the default provider; Atlas Cloud and MuAPI are also available as explicit opt-in providers.
|
|
4
|
+
|
|
5
|
+
## Scripts
|
|
6
|
+
|
|
7
|
+
| Script | Purpose |
|
|
8
|
+
|--------|---------|
|
|
9
|
+
| `scripts/logo/search.py` | Search styles, colors, industries; generate design briefs |
|
|
10
|
+
| `scripts/logo/generate.py` | Generate logos with Gemini Nano Banana, Atlas Cloud, or MuAPI |
|
|
11
|
+
| `scripts/logo/core.py` | BM25 search engine for logo data |
|
|
12
|
+
|
|
13
|
+
## Commands
|
|
14
|
+
|
|
15
|
+
### Design Brief (Start Here)
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
python3 scripts/logo/search.py "tech startup modern" --design-brief -p "BrandName"
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
### Search Domains
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
# Styles
|
|
25
|
+
python3 scripts/logo/search.py "minimalist clean" --domain style
|
|
26
|
+
|
|
27
|
+
# Color palettes
|
|
28
|
+
python3 scripts/logo/search.py "tech professional" --domain color
|
|
29
|
+
|
|
30
|
+
# Industry guidelines
|
|
31
|
+
python3 scripts/logo/search.py "healthcare medical" --domain industry
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
### Generate Logo
|
|
35
|
+
|
|
36
|
+
**ALWAYS** use white background for output logos.
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
python3 scripts/logo/generate.py --brand "TechFlow" --style minimalist --industry tech
|
|
40
|
+
python3 scripts/logo/generate.py --prompt "coffee shop vintage badge" --style vintage
|
|
41
|
+
python3 scripts/logo/generate.py --brand "TechFlow" --provider atlas
|
|
42
|
+
python3 scripts/logo/generate.py --brand "TechFlow" --provider muapi
|
|
43
|
+
python3 scripts/logo/generate.py --brand "TechFlow" --provider muapi --muapi-model nano-banana-pro
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
Options: `--style`, `--industry`, `--prompt`, `--provider`, `--atlas-model`, `--muapi-model`
|
|
47
|
+
|
|
48
|
+
## Available Styles
|
|
49
|
+
|
|
50
|
+
| Category | Styles |
|
|
51
|
+
|----------|--------|
|
|
52
|
+
| General | Minimalist, Wordmark, Lettermark, Pictorial Mark, Abstract Mark, Mascot, Emblem, Combination Mark |
|
|
53
|
+
| Aesthetic | Vintage/Retro, Art Deco, Luxury, Playful, Corporate, Organic, Neon, Grunge, Watercolor |
|
|
54
|
+
| Modern | Gradient, Flat Design, 3D/Isometric, Geometric, Line Art, Duotone, Motion-Ready |
|
|
55
|
+
| Clever | Negative Space, Monoline, Split/Fragmented, Responsive/Adaptive |
|
|
56
|
+
|
|
57
|
+
## Color Psychology
|
|
58
|
+
|
|
59
|
+
| Color | Psychology | Best For |
|
|
60
|
+
|-------|------------|----------|
|
|
61
|
+
| Blue | Trust, stability | Finance, tech, healthcare |
|
|
62
|
+
| Green | Growth, natural | Eco, wellness, organic |
|
|
63
|
+
| Red | Energy, passion | Food, sports, entertainment |
|
|
64
|
+
| Gold | Luxury, premium | Fashion, jewelry, hotels |
|
|
65
|
+
| Purple | Creative, innovative | Beauty, creative, tech |
|
|
66
|
+
|
|
67
|
+
## Industry Defaults
|
|
68
|
+
|
|
69
|
+
| Industry | Style | Colors | Typography |
|
|
70
|
+
|----------|-------|--------|------------|
|
|
71
|
+
| Tech | Minimalist, Abstract | Blues, purples, gradients | Geometric sans |
|
|
72
|
+
| Healthcare | Professional, Line Art | Blues, greens, teals | Clean sans |
|
|
73
|
+
| Finance | Corporate, Emblem | Navy, gold | Serif or clean sans |
|
|
74
|
+
| Food | Vintage Badge, Mascot | Warm reds, oranges | Friendly, script |
|
|
75
|
+
| Fashion | Wordmark, Luxury | Black, gold, white | Elegant serif |
|
|
76
|
+
|
|
77
|
+
## Workflow
|
|
78
|
+
|
|
79
|
+
1. Generate design brief → `scripts/logo/search.py --design-brief`
|
|
80
|
+
2. Generate logo variations → `scripts/logo/generate.py --brand --style --industry`
|
|
81
|
+
3. Ask user about HTML preview → `AskUserQuestion` tool
|
|
82
|
+
4. If yes, use the bundled `ui-ux-pro-max` skill for the HTML gallery
|
|
83
|
+
|
|
84
|
+
## Detailed References
|
|
85
|
+
|
|
86
|
+
- `references/logo-style-guide.md` - Detailed style descriptions
|
|
87
|
+
- `references/logo-color-psychology.md` - Color meanings and combinations
|
|
88
|
+
- `references/logo-prompt-engineering.md` - AI generation prompts
|
|
89
|
+
|
|
90
|
+
## Setup
|
|
91
|
+
|
|
92
|
+
```bash
|
|
93
|
+
export GEMINI_API_KEY="your-key"
|
|
94
|
+
pip install google-genai
|
|
95
|
+
|
|
96
|
+
# Optional Atlas Cloud provider (no extra Python package required)
|
|
97
|
+
export ATLASCLOUD_API_KEY="your-key"
|
|
98
|
+
|
|
99
|
+
# Optional MuAPI provider (no extra Python package required)
|
|
100
|
+
export MUAPI_API_KEY="your-key"
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
MuAPI uses the asynchronous model endpoint and prediction result API. See the
|
|
104
|
+
[MuAPI API reference](https://muapi.ai/docs/api-reference) for authentication
|
|
105
|
+
and the [nano-banana model contract](https://api.muapi.ai/api/v1/models/nano-banana)
|
|
106
|
+
or [nano-banana-pro model contract](https://api.muapi.ai/api/v1/models/nano-banana-pro)
|
|
107
|
+
for the current model-specific schemas. The logo generator supports both documented
|
|
108
|
+
model slugs and sends their shared required `prompt` plus optional `aspect_ratio`
|
|
109
|
+
fields; the Pro model also accepts an optional `resolution` field that this focused
|
|
110
|
+
logo workflow leaves at the provider default.
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
# Logo AI Prompt Engineering
|
|
2
|
+
|
|
3
|
+
## Core Prompt Structure
|
|
4
|
+
|
|
5
|
+
```
|
|
6
|
+
Professional logo design for [brand/industry]:
|
|
7
|
+
[Visual description]
|
|
8
|
+
Style: [style keywords]
|
|
9
|
+
Colors: [color palette]
|
|
10
|
+
Requirements: [technical specs]
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Effective Keywords by Style
|
|
14
|
+
|
|
15
|
+
### Minimalist
|
|
16
|
+
```
|
|
17
|
+
minimalist, clean lines, simple geometric shapes, essential elements only,
|
|
18
|
+
high white space, flat design, single color, modern, uncluttered,
|
|
19
|
+
negative space, subtle, refined
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
### Vintage/Retro
|
|
23
|
+
```
|
|
24
|
+
vintage, retro, heritage, established, classic, nostalgic, weathered,
|
|
25
|
+
distressed texture, badge style, hand-lettered, craft, artisan,
|
|
26
|
+
sepia tones, muted colors, aged paper effect
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
### Luxury/Premium
|
|
30
|
+
```
|
|
31
|
+
luxury, elegant, sophisticated, premium, refined, exclusive, high-end,
|
|
32
|
+
gold accents, metallic, minimal, tasteful, upscale, prestige,
|
|
33
|
+
thin lines, serif typography, foil effect
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
### Modern/Tech
|
|
37
|
+
```
|
|
38
|
+
modern, innovative, digital, tech-forward, sleek, futuristic,
|
|
39
|
+
gradient colors, geometric, abstract, dynamic, cutting-edge,
|
|
40
|
+
clean sans-serif, circuit-like, data visualization
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
### Playful/Fun
|
|
44
|
+
```
|
|
45
|
+
playful, fun, colorful, friendly, approachable, cheerful, whimsical,
|
|
46
|
+
bouncy, rounded shapes, bright colors, cartoon-like, energetic,
|
|
47
|
+
bubbly, hand-drawn elements
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
### Organic/Natural
|
|
51
|
+
```
|
|
52
|
+
organic, natural, flowing, botanical, eco-friendly, sustainable,
|
|
53
|
+
earth tones, leaf elements, hand-drawn, imperfect lines, growth,
|
|
54
|
+
green, nature-inspired, biophilic
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
## Negative Prompts (What to Avoid)
|
|
58
|
+
|
|
59
|
+
Always include to prevent unwanted results:
|
|
60
|
+
```
|
|
61
|
+
NOT: photorealistic, 3D render with realistic textures, photograph,
|
|
62
|
+
stock image, clip art, multiple logos, busy background, text watermarks,
|
|
63
|
+
low quality, blurry, distorted, complex detailed patterns
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
## Industry-Specific Prompts
|
|
67
|
+
|
|
68
|
+
### Tech Startup
|
|
69
|
+
```
|
|
70
|
+
Modern tech company logo, abstract geometric mark, gradient blue to purple,
|
|
71
|
+
clean minimal design, innovative feel, scalable vector style,
|
|
72
|
+
professional quality, silicon valley aesthetic
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
### Healthcare
|
|
76
|
+
```
|
|
77
|
+
Healthcare medical logo, clean professional design, cross or heart symbol,
|
|
78
|
+
calming blue and teal colors, trustworthy appearance, caring feel,
|
|
79
|
+
simple scalable mark, HIPAA-appropriate conservative style
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
### Restaurant/Food
|
|
83
|
+
```
|
|
84
|
+
Restaurant logo, warm inviting colors, appetizing feel, vintage badge style,
|
|
85
|
+
chef or utensil iconography, friendly welcoming design, rustic charm,
|
|
86
|
+
established look, readable at small sizes
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
### Fashion Brand
|
|
90
|
+
```
|
|
91
|
+
Fashion brand logo, elegant sophisticated wordmark, luxury aesthetic,
|
|
92
|
+
black and gold color scheme, thin refined typography, haute couture feel,
|
|
93
|
+
minimal exclusive design, high-end positioning
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
### Eco/Sustainable
|
|
97
|
+
```
|
|
98
|
+
Eco-friendly sustainable brand logo, organic natural elements, leaf motif,
|
|
99
|
+
earth green and brown colors, growth symbolism, environmental awareness,
|
|
100
|
+
clean modern yet natural feel, recyclable-look design
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
## Technical Requirements to Include
|
|
104
|
+
|
|
105
|
+
### Scalability
|
|
106
|
+
```
|
|
107
|
+
vector-style, scalable at any size, clear silhouette,
|
|
108
|
+
works as favicon, recognizable small scale, simple shapes
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
### Versatility
|
|
112
|
+
```
|
|
113
|
+
works on light and dark backgrounds, single color version possible,
|
|
114
|
+
horizontal and stacked layouts, brand mark can stand alone
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
### Quality
|
|
118
|
+
```
|
|
119
|
+
professional quality, print-ready, high resolution,
|
|
120
|
+
crisp edges, balanced composition, centered design
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
## Prompt Templates
|
|
124
|
+
|
|
125
|
+
### Quick Generation
|
|
126
|
+
```
|
|
127
|
+
Professional [industry] logo, [style] design, [color] colors,
|
|
128
|
+
clean modern aesthetic, scalable vector style
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
### Detailed Brief
|
|
132
|
+
```
|
|
133
|
+
Professional logo design for [brand name], a [industry] company.
|
|
134
|
+
|
|
135
|
+
Visual style: [style keywords]
|
|
136
|
+
Primary colors: [hex codes]
|
|
137
|
+
Mood: [emotional keywords]
|
|
138
|
+
Symbols: [iconography hints]
|
|
139
|
+
|
|
140
|
+
Technical: Vector-style illustration, scalable, works in single color,
|
|
141
|
+
centered on plain background, no text unless specified.
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
### Variation Request
|
|
145
|
+
```
|
|
146
|
+
Alternative version of [brand] logo:
|
|
147
|
+
Keep: [elements to preserve]
|
|
148
|
+
Change: [elements to modify]
|
|
149
|
+
Style direction: [new style keywords]
|
|
150
|
+
```
|
|
151
|
+
|
|
152
|
+
## Common Pitfalls
|
|
153
|
+
|
|
154
|
+
1. **Too detailed** - AI generates complexity; request "simple"
|
|
155
|
+
2. **Unclear background** - Specify "plain white background"
|
|
156
|
+
3. **Text issues** - AI struggles with text; generate mark separately
|
|
157
|
+
4. **Wrong aspect** - Specify "1:1 square" or "horizontal"
|
|
158
|
+
5. **Realistic style** - Add "illustration, vector-style, not photorealistic"
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
# Logo Style Guide
|
|
2
|
+
|
|
3
|
+
## Core Logo Types
|
|
4
|
+
|
|
5
|
+
### 1. Wordmark (Logotype)
|
|
6
|
+
Text-only logo using custom typography.
|
|
7
|
+
- **Best for:** Established brands, distinctive names
|
|
8
|
+
- **Examples:** Google, Coca-Cola, FedEx
|
|
9
|
+
- **Typography:** Custom letterforms, unique kerning
|
|
10
|
+
- **Tip:** Name must be memorable and pronounceable
|
|
11
|
+
|
|
12
|
+
### 2. Lettermark (Monogram)
|
|
13
|
+
Initials or abbreviated letters.
|
|
14
|
+
- **Best for:** Long company names, professional firms
|
|
15
|
+
- **Examples:** IBM, HBO, NASA
|
|
16
|
+
- **Typography:** Bold geometric sans-serif
|
|
17
|
+
- **Tip:** Works well for brands with 2-4 letter abbreviations
|
|
18
|
+
|
|
19
|
+
### 3. Pictorial Mark (Brand Mark)
|
|
20
|
+
Standalone icon or symbol.
|
|
21
|
+
- **Best for:** Global brands with recognition
|
|
22
|
+
- **Examples:** Apple, Twitter, Target
|
|
23
|
+
- **Design:** Simple, scalable, memorable shape
|
|
24
|
+
- **Tip:** Requires brand equity to work alone
|
|
25
|
+
|
|
26
|
+
### 4. Abstract Mark
|
|
27
|
+
Non-representational geometric shapes.
|
|
28
|
+
- **Best for:** Tech companies, differentiating brands
|
|
29
|
+
- **Examples:** Pepsi, Airbnb, Spotify
|
|
30
|
+
- **Design:** Unique shape conveying brand values
|
|
31
|
+
- **Tip:** Can represent complex ideas simply
|
|
32
|
+
|
|
33
|
+
### 5. Mascot
|
|
34
|
+
Character representing the brand.
|
|
35
|
+
- **Best for:** Family brands, sports teams, food
|
|
36
|
+
- **Examples:** KFC, Pringles, Michelin
|
|
37
|
+
- **Design:** Friendly, expressive, versatile
|
|
38
|
+
- **Tip:** Can evolve with brand while maintaining recognition
|
|
39
|
+
|
|
40
|
+
### 6. Emblem
|
|
41
|
+
Symbol enclosed within a shape.
|
|
42
|
+
- **Best for:** Traditional brands, organizations
|
|
43
|
+
- **Examples:** Starbucks, Harley-Davidson, NFL
|
|
44
|
+
- **Design:** Badge, seal, or crest style
|
|
45
|
+
- **Tip:** May have scalability challenges
|
|
46
|
+
|
|
47
|
+
### 7. Combination Mark
|
|
48
|
+
Icon + text in unified design.
|
|
49
|
+
- **Best for:** New brands, versatile applications
|
|
50
|
+
- **Examples:** Burger King, Lacoste, Doritos
|
|
51
|
+
- **Design:** Lockup with flexible arrangements
|
|
52
|
+
- **Tip:** Most versatile, can separate elements later
|
|
53
|
+
|
|
54
|
+
## Aesthetic Styles
|
|
55
|
+
|
|
56
|
+
### Minimalist
|
|
57
|
+
- Clean lines, essential elements only
|
|
58
|
+
- High white space, simple geometry
|
|
59
|
+
- Limited color palette (1-2 colors)
|
|
60
|
+
- **Use:** Tech, professional services, modern brands
|
|
61
|
+
|
|
62
|
+
### Vintage/Retro
|
|
63
|
+
- Nostalgic, heritage feel
|
|
64
|
+
- Distressed textures, muted colors
|
|
65
|
+
- Script or slab serif typography
|
|
66
|
+
- **Use:** Craft brands, artisan products
|
|
67
|
+
|
|
68
|
+
### Luxury/Premium
|
|
69
|
+
- Elegant, refined aesthetic
|
|
70
|
+
- Gold, black, white color scheme
|
|
71
|
+
- Thin serifs or sophisticated sans
|
|
72
|
+
- **Use:** Fashion, jewelry, high-end services
|
|
73
|
+
|
|
74
|
+
### Geometric
|
|
75
|
+
- Mathematical precision
|
|
76
|
+
- Circles, triangles, squares
|
|
77
|
+
- Perfect symmetry
|
|
78
|
+
- **Use:** Architecture, tech, modern brands
|
|
79
|
+
|
|
80
|
+
### Organic/Natural
|
|
81
|
+
- Flowing, imperfect lines
|
|
82
|
+
- Earth tones, natural colors
|
|
83
|
+
- Hand-drawn feel
|
|
84
|
+
- **Use:** Eco brands, wellness, organic products
|
|
85
|
+
|
|
86
|
+
### Gradient/Modern
|
|
87
|
+
- Color transitions, vibrant palettes
|
|
88
|
+
- Dimensional depth
|
|
89
|
+
- Contemporary feel
|
|
90
|
+
- **Use:** Apps, tech startups, digital products
|
|
91
|
+
|
|
92
|
+
## Style Selection Matrix
|
|
93
|
+
|
|
94
|
+
| Brand Type | Primary Style | Secondary Options |
|
|
95
|
+
|------------|---------------|-------------------|
|
|
96
|
+
| Tech Startup | Minimalist, Abstract | Geometric, Gradient |
|
|
97
|
+
| Law Firm | Wordmark, Emblem | Lettermark |
|
|
98
|
+
| Restaurant | Mascot, Badge | Vintage, Combination |
|
|
99
|
+
| Fashion | Wordmark, Luxury | Monogram, Line Art |
|
|
100
|
+
| Healthcare | Professional, Line Art | Abstract, Combination |
|
|
101
|
+
| Non-Profit | Combination, Emblem | Organic, Hand-Drawn |
|
|
102
|
+
|
|
103
|
+
## Scalability Checklist
|
|
104
|
+
|
|
105
|
+
- [ ] Recognizable at 16x16 pixels (favicon)
|
|
106
|
+
- [ ] Clear at business card size
|
|
107
|
+
- [ ] Works in single color
|
|
108
|
+
- [ ] Maintains clarity in black/white
|
|
109
|
+
- [ ] No tiny details that disappear when scaled
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
## 6. Locked DNA Profile (MESURV — Confirmed 2026-09-29)
|
|
2
|
+
|
|
3
|
+
**Selection Journey:**
|
|
4
|
+
- Round 1: 30 styles → 13 favorites (#2,6,7,8,18,19,21,23,26,27,28,29,30)
|
|
5
|
+
- Round 2 (Blind): 12 hybrids → 7 favorites (B,C,D,F,G,K,L)
|
|
6
|
+
- Round 3 (Layout): L1,L3,L5,L6 (all no-sidebar) + Themes T1+T3
|
|
7
|
+
- Final Champions: Beta (L6 Dashboard Tabs) + Gamma (L1 Top Nav) → FUSION selected
|
|
8
|
+
|
|
9
|
+
**Final Layout DNA (Fusion):**
|
|
10
|
+
- **Pattern:** NO fixed left sidebar — top navigation bar only
|
|
11
|
+
- **Primary:** Tab-based switching (5 tabs: Knowledge | Calculator | WebGIS | Report | Settings)
|
|
12
|
+
- **Tab indicator:** thin 2px underline on active tab (NOT box, NOT pill)
|
|
13
|
+
- **Logo zone:** top-left in nav bar
|
|
14
|
+
- **Content:** full-width, max-w-6xl, centered, no sidebar
|
|
15
|
+
- **Overview section:** hero 2-col split (title+CTA left, 4 metric cards right) + 3-col knowledge card grid below
|
|
16
|
+
|
|
17
|
+
**Final Theme DNA — DUAL THEME SYSTEM:**
|
|
18
|
+
|
|
19
|
+
**Theme 1: `fieldbook` (Light — primary daytime)**
|
|
20
|
+
- **Mood:** Warm paper, daylight field survey, editorial clean
|
|
21
|
+
- **Tokens:**
|
|
22
|
+
- `bg`: `#f3f1eb` | `surface`: `#ffffff` | `surface2`: `#eceae4`
|
|
23
|
+
- `border`: `rgba(20,36,27,0.14)` | `borderStrong`: `rgba(20,36,27,0.5)`
|
|
24
|
+
- `text1`: `#14241b` | `text2`: `#43544a` | `text3`: `#78877d`
|
|
25
|
+
- `accent`: `#15803d` | `accent2`: `#b45309` | `accentText`: `#ffffff`
|
|
26
|
+
- `cardRadius`: `12px` | `btnRadius`: `8px`
|
|
27
|
+
- `shadow`: `0 2px 8px rgba(20,36,27,0.07)` | `backdrop`: `none`
|
|
28
|
+
- `fontHeading`: `'Plus Jakarta Sans', sans-serif` (Weight: `700`)
|
|
29
|
+
- `fontBody`: `'Plus Jakarta Sans', sans-serif`
|
|
30
|
+
- `fontMono`: `'Geist Mono', monospace`
|
|
31
|
+
|
|
32
|
+
**Theme 2: `terminal` (Dark — nighttime/data processing)**
|
|
33
|
+
- **Mood:** Carbon monochrome, dark evergreen, precision instrument
|
|
34
|
+
- **Tokens:**
|
|
35
|
+
- `bg`: `#050505` | `surface`: `#111111` | `surface2`: `#0a0a0a`
|
|
36
|
+
- `border`: `#262626` | `borderStrong`: `#3d3d3d`
|
|
37
|
+
- `text1`: `#ffffff` | `text2`: `#a3a3a3` | `text3`: `#525252`
|
|
38
|
+
- `accent`: `#34d399` | `accent2`: `#fcd535` | `accentText`: `#000000`
|
|
39
|
+
- `cardRadius`: `2px` | `btnRadius`: `2px`
|
|
40
|
+
- `shadow`: `none` | `backdrop`: `none`
|
|
41
|
+
- `fontHeading`: `'Plus Jakarta Sans', sans-serif` (Weight: `700`)
|
|
42
|
+
- `fontBody`: `'Plus Jakarta Sans', sans-serif`
|
|
43
|
+
- `fontMono`: `'Geist Mono', monospace`
|
|
44
|
+
|
|
45
|
+
**Anti-Patterns (What to AVOID):**
|
|
46
|
+
- No fixed left sidebar in MESURV
|
|
47
|
+
- No frosted glass / backdrop-blur effects (solid surfaces only)
|
|
48
|
+
- No gradient backgrounds (flat color only)
|
|
49
|
+
- No box/pill-style active tab indicators (use underline 2px)
|
|
50
|
+
- No emoji in section headings
|
|
51
|
+
- No heavy drop shadows
|
|
52
|
+
- No cliché AI palettes (white-orange, indigo-purple gradients)
|
|
53
|
+
- No marketing fluff in workspace tools
|
|
54
|
+
- No hover bounce/scale animations
|
|
55
|
+
|
|
56
|
+
**Positive Principles (What TO DO):**
|
|
57
|
+
- Controls placed near their content
|
|
58
|
+
- Verbs over nouns for button labels
|
|
59
|
+
- Monospace (Geist Mono) for all coordinates, numbers, technical codes
|
|
60
|
+
- Tabular-nums for metric displays
|
|
61
|
+
- Difficulty badges: BEGINNER/CORE/ADVANCED with subtle tinted backgrounds
|
|
62
|
+
- RTSD READY badge with pulsing dot
|
|
63
|
+
- Two-theme system: user can toggle fieldbook ↔ terminal with `data-theme` on `<html>`
|
|
64
|
+
- All tokens via CSS custom properties (`--bg`, `--surface`, `--accent`, etc.)
|
|
65
|
+
- Tab switching via vanilla JS toggling `.hidden` class
|
|
66
|
+
- Persist theme choice in localStorage
|
|
67
|
+
|
|
68
|
+
> **Workflow Note:** When user invokes `/medesign` for MESURV project, apply these tokens directly. Do NOT re-run selection rounds. Start from Fusion layout.
|
|
69
|
+
> **Reference note:** Lab files at `medesign-tuner/styles/champion-fusion.html` for reference
|
|
70
|
+
|
|
71
|
+
---
|
|
72
|
+
|
|
73
|
+
## 8. MeBoard Converged Component DNA & Locked Auto-Blueprints (`FINAL-01` & `FINAL-02` — Confirmed 2026-09-30)
|
|
74
|
+
|
|
75
|
+
> **🎯 STATUS: AUTO_BLUEPRINT_LOCKED**
|
|
76
|
+
> ผู้ใช้ยืนยันล็อกโครงสร้างอย่างเป็นทางการแล้ว: **`FINAL-01`** และ **`FINAL-02`** คือแม่แบบหลักถาวรสำหรับคำสั่ง `/medesign auto` (ไม่ต้องถามเลือกใหม่อีก):
|
|
77
|
+
> - **ใช้ `FINAL-01` (Editorial 3:6:3 Three-Column Command):** สำหรับหน้าจอวิเคราะห์เชิงลึกที่ต้องการอ่านสภาวะตลาด (Macro Briefing) + ดูกราฟตรงกลาง + ตรวจสเปกคำสั่งเทรดทางขวาไปพร้อมกัน
|
|
78
|
+
> - **ใช้ `FINAL-02` (Asymmetric 8:4 Split + Bento KPI Strip):** สำหรับหน้าจอแดชบอร์ดภาพรวม (Cockpit) ที่ต้องการเน้นการ์ดมาตรวัดสรุปผล (Bento KPI Strip) ด้านบน และแบ่งกราฟใหญ่คู่กล่องสัญญาณด้านล่าง
|
|
79
|
+
|
|
80
|
+
**ชิ้นส่วนที่ล็อกเข้าชุดสมบูรณ์ (Locked Component Inventory):**
|
|
81
|
+
- **Locked Navbar & Macro Ticker (`MB-03`):** Dual-Deck Editorial Masthead + แถบราคาสด Macro Benchmark Tape (`XAU/USD`, `BTC`, `ETH`, `WTI`, `QQQ`, `SET`, `USD/THB`) + แท็บขีดเส้นใต้ `2px` (`MB-06`) ไร้แถบซ้าย + สวิตช์สลับธีมสด
|
|
82
|
+
- **Locked Card & Box Anatomy (`MB-03 + MB-04 + MB-05`):**
|
|
83
|
+
- ขอบคม `1px solid` + **แถบสีคาดด้านบนหนา `3px solid` (`MB-03`)** บนการ์ดหลักทุกใบ + เงา Tactile Offset คมบาง `2px` (`MB-04`)
|
|
84
|
+
- **เส้นปะฉีกตั๋ว (`border-dashed` จาก `MB-04`)** คั่นระหว่างโซนข้อมูลด้านบนกับโซนคำสั่ง/สรุปด้านล่างในการ์ดตั๋ว
|
|
85
|
+
- **Floating Translucent HUD Pod (`MB-05`)** (`backdrop-filter: blur(16px)`) ลอยทับบนมุมกราฟเพื่อแสดง `Regime`, `CONF/VOL`, และ `Tactical Directive`
|
|
86
|
+
- **Locked Execution Setup Box (`MB-07 + MB-08`):**
|
|
87
|
+
- ตัวเลขราคาขนาดใหญ่ `32px–42px` (`Geist Mono tabular-nums` จาก `MB-08`) + **หลอดวัดระยะ `SL ──●────── TP` (`MB-08`)**
|
|
88
|
+
- **ตารางคำสั่งเทรด 4 ช่อง (`MB-07`):** `Optimal Entry`, `Take Profit (TP %)`, `Stop Loss (SL %)`, และ `R:R · 1% Bankroll Risk Size`
|
|
89
|
+
- **เช็กลิสต์โครงสร้าง `SMC × ICT` (`MB-07`):** `BOS`, `CHoCH`, `FVG CE 50%`, `Dealing Range EQM 50%`
|
|
90
|
+
- **หลอดวัดแรงซื้อขาย `L2 Order Book Imbalance` (`MB-07`):** แถบแนวนอนแสดงสัดส่วน `68% Bid / 32% Ask` พร้อมปุ่ม `📤 Copy TG Signal`
|
|
91
|
+
- **Locked Chart & Data Table (`MB-06`):**
|
|
92
|
+
- กราฟแท่งเทียน SVG พร้อมโซนแรเงา `4H FVG`, `Order Block`, เส้นประ `TP / Entry / SL` และปุ่มสลับ Timeframe `15m | 1H | 4H | 1D`
|
|
93
|
+
- ตารางสแกนสัญญาณ (Big Five + Altcoin Volatility Radar) ที่มีปุ่มกรอง `ALL | BUY | SELL | STRONG | SQUEEZE` + จุด `1H ● 4H ● 1D ●` วางคู่กับตารางบันทึกผล `WIN / LOSS / STALE` (`56.8% Win Rate · +1.34R · Paper Bot +6.4R MTD`)
|
|
94
|
+
- **Locked Dual-Theme System (`MB-03 × MB-06 × MB-08 × MB-09`):**
|
|
95
|
+
1. **Theme 1 (`editorial-paper`):** พื้นหลังกระดาษครีมอุ่น `#f6f2e9` (`#efeadd` masthead), การ์ดขาวคม `#ffffff`, ผิวทำงานแอ็กทีฟ `--surface-active: #eef7f1`, สีเน้นเขียว Forest `#0f6b32` (`6.66:1` บน `#ffffff`, `5.52:1` บน masthead `#efeadd`) & ทอง Ochre `#92400e` (`7.12:1` AAA บน `#ffffff`, `5.90:1` บน `#efeadd`), ฟอนต์หัวข้อ `Fraunces` Serif + `Plus Jakarta Sans` + `Geist Mono`
|
|
96
|
+
2. **Theme 2 (`velvet-obsidian`):** พื้นหลังดำกำมะหยี่ `#09090f` (`#050505`) พร้อมแสง Ambient Radial จางๆ (ทอง `#f2b33d`/คอปเปอร์ `#cc785c` + คราม `#6366f1`), การ์ด `#11131c`, ผิวทำงานแอ็กทีฟ `--surface-active: #122422`, สีเน้นเขียว `#34d399` & ทอง `#f2b33d`
|
|
97
|
+
- **4 Finalist Prototypes ในคลังอ้างอิง:**
|
|
98
|
+
- `FINAL-01` (`/final/1`): **Editorial 3:6:3 Three-Column Command** *(Auto-Default Primary A)*
|
|
99
|
+
- `FINAL-02` (`/final/2`): **Asymmetric 8:4 Split + Bento KPI Strip** *(Auto-Default Primary B)*
|
|
100
|
+
- `FINAL-03` (`/final/3`): **Master–Detail 45:55 Synchronized Scanner** *(Reference)*
|
|
101
|
+
- `FINAL-04` (`/final/4`): **Fusion Underline-Tab & Executive Stream** *(Reference)*
|
|
102
|
+
|
|
103
|
+
---
|
|
104
|
+
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
# Micro-Interactions & AutoAnimate Layout Protocol
|
|
2
|
+
|
|
3
|
+
ระเบียบวิธีการใส่ลูกเล่นการเคลื่อนไหว (Micro-Interactions) และการเปลี่ยนผ่านเลย์เอาต์ที่ลื่นไหลระดับสากล (ดัดแปลงจากโมเดลของ `FormKit AutoAnimate` และ `Framer Motion`) เพื่อยกระดับความรู้สึกพรีเมียม (Tactile Delight) ให้กับหน้าเว็บและแดชบอร์ด โดยไม่เพิ่มความซับซ้อนของโค้ดและรองรับ Accessibility 100%
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## 1. ปัญหาของ UI ที่กระตุกกระด้าง (Stiff Layout Transitions)
|
|
8
|
+
|
|
9
|
+
การขาด Micro-Interactions ทำให้เว็บดูราคาถูกและแข็งกระด้าง:
|
|
10
|
+
1. **Sudden DOM Snapping**: เมื่อเพิ่มแถวตาราง ลบการ์ด หรือสลับ Tab หน้าจอจะกระตุกเปลี่ยนทันที ทำให้ผู้ใช้สูญเสียการรับรู้ตำแหน่ง (Spatial Context)
|
|
11
|
+
2. **Animation Bloat**: การเขียน CSS Animation เองทุกจุดก่อให้เกิดโค้ดซ้ำซ้อนและกระตุกบนอุปกรณ์สเปกต่ำ
|
|
12
|
+
3. **Motion Sickness**: ขาดการรองรับผู้ใช้ที่มีภาวะไวต่อการเคลื่อนไหว (`prefers-reduced-motion`)
|
|
13
|
+
|
|
14
|
+
---
|
|
15
|
+
|
|
16
|
+
## 2. พลังของ Zero-Config Drop-in Animation (AutoAnimate Pattern)
|
|
17
|
+
|
|
18
|
+
`@formkit/auto-animate` มอบการเคลื่อนไหวระดับสตูดิโอให้ทุกจุดใน DOM ด้วยโค้ดเพียงบรรทัดเดียว:
|
|
19
|
+
|
|
20
|
+
```typescript
|
|
21
|
+
import { useAutoAnimate } from '@formkit/auto-animate/react';
|
|
22
|
+
|
|
23
|
+
export function OrderList({ orders }) {
|
|
24
|
+
// บังคับการเคลื่อนไหวที่ลื่นไหลทันทีที่มีการ Add/Remove/Sort รายการ
|
|
25
|
+
const [parentRef] = useAutoAnimate({ duration: 250, easing: 'ease-out' });
|
|
26
|
+
|
|
27
|
+
return (
|
|
28
|
+
<div ref={parentRef} className="space-y-3">
|
|
29
|
+
{orders.map(order => (
|
|
30
|
+
<OrderCard key={order.id} order={order} />
|
|
31
|
+
))}
|
|
32
|
+
</div>
|
|
33
|
+
);
|
|
34
|
+
}
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
---
|
|
38
|
+
|
|
39
|
+
## 3. สถาปัตยกรรม Micro-Interactions 4 มิติ
|
|
40
|
+
|
|
41
|
+
```mermaid
|
|
42
|
+
flowchart LR
|
|
43
|
+
Hover["1. Tactile Hover (Subtle Scale 1.02 + Soft Shadow)"]
|
|
44
|
+
Press["2. Active Press (Spring Downscale 0.98)"]
|
|
45
|
+
Entry["3. Enter / Exit (Smooth Slide-Fade)"]
|
|
46
|
+
Layout["4. Layout Reordering (AutoAnimate FLIP Technique)"]
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
### 1. Tactile Feedback on Buttons & Cards
|
|
50
|
+
- **Hover State**: ยกการ์ดลอยขึ้นเบาๆ (`transform: translateY(-2px)`, `box-shadow` นุ่มนวลขึ้น)
|
|
51
|
+
- **Active State**: ยุบตัวลงตามแรงกดเสมือนปุ่มจริง (`scale-98`)
|
|
52
|
+
- **Transitions**: ใช้ Spring Curve `cubic-bezier(0.16, 1, 0.3, 1)` (Apple/Linear standard)
|
|
53
|
+
|
|
54
|
+
### 2. Layout Morphing (FLIP Technique)
|
|
55
|
+
- เมื่อมีการ Reorder หรือ Filter ข้อมูล การ์ดต้องสไลด์ไปยังตำแหน่งใหม่อย่างต่อเนื่อง ไม่ใช่หายไปแล้วโผล่ใหม่
|
|
56
|
+
|
|
57
|
+
---
|
|
58
|
+
|
|
59
|
+
## 4. กฎเหล็กด้านการเข้าถึง (Accessibility Invariant)
|
|
60
|
+
|
|
61
|
+
ต้องมี Media Query ปิดการเคลื่อนไหวเมื่อผู้ใช้เปิดโหมดลดการเคลื่อนไหวเสมอ:
|
|
62
|
+
```css
|
|
63
|
+
@media (prefers-reduced-motion: reduce) {
|
|
64
|
+
*, ::before, ::after {
|
|
65
|
+
animation-duration: 0.01ms !important;
|
|
66
|
+
animation-iteration-count: 1 !important;
|
|
67
|
+
transition-duration: 0.01ms !important;
|
|
68
|
+
scroll-behavior: auto !important;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
```
|