@mytechtoday/augment-extensions 1.2.2 → 1.3.1
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 +22 -22
- package/augment-extensions/domain-rules/software-architecture/README.md +143 -143
- package/augment-extensions/domain-rules/software-architecture/examples/banking-layered.md +961 -961
- package/augment-extensions/domain-rules/software-architecture/examples/ecommerce-microservices.md +990 -990
- package/augment-extensions/domain-rules/software-architecture/examples/iot-eventdriven.md +882 -882
- package/augment-extensions/domain-rules/software-architecture/examples/monolith-to-microservices-migration.md +703 -703
- package/augment-extensions/domain-rules/software-architecture/examples/serverless-imageprocessing.md +957 -957
- package/augment-extensions/domain-rules/software-architecture/examples/trading-eventdriven.md +747 -747
- package/augment-extensions/domain-rules/software-architecture/module.json +119 -119
- package/augment-extensions/domain-rules/software-architecture/rules/challenges-solutions.md +763 -763
- package/augment-extensions/domain-rules/software-architecture/rules/definitions-terminology.md +409 -409
- package/augment-extensions/domain-rules/software-architecture/rules/design-principles.md +684 -684
- package/augment-extensions/domain-rules/software-architecture/rules/evaluation-testing.md +1381 -1381
- package/augment-extensions/domain-rules/software-architecture/rules/event-driven-architecture.md +616 -616
- package/augment-extensions/domain-rules/software-architecture/rules/fundamentals.md +306 -306
- package/augment-extensions/domain-rules/software-architecture/rules/industry-architectures.md +554 -554
- package/augment-extensions/domain-rules/software-architecture/rules/layered-architecture.md +776 -776
- package/augment-extensions/domain-rules/software-architecture/rules/microservices-architecture.md +503 -503
- package/augment-extensions/domain-rules/software-architecture/rules/modeling-documentation.md +1199 -1199
- package/augment-extensions/domain-rules/software-architecture/rules/monolithic-architecture.md +351 -351
- package/augment-extensions/domain-rules/software-architecture/rules/principles.md +556 -556
- package/augment-extensions/domain-rules/software-architecture/rules/quality-attributes.md +797 -797
- package/augment-extensions/domain-rules/software-architecture/rules/scalability-performance.md +1345 -1345
- package/augment-extensions/domain-rules/software-architecture/rules/security-architecture.md +1039 -1039
- package/augment-extensions/domain-rules/software-architecture/rules/serverless-architecture.md +711 -711
- package/augment-extensions/domain-rules/software-architecture/rules/skills-development.md +568 -568
- package/augment-extensions/domain-rules/software-architecture/rules/tools-methodologies.md +961 -961
- package/augment-extensions/visual-design/CHANGELOG.md +132 -0
- package/augment-extensions/visual-design/README.md +255 -0
- package/augment-extensions/visual-design/__tests__/README.md +119 -0
- package/augment-extensions/visual-design/__tests__/style-selector.test.ts +172 -0
- package/augment-extensions/visual-design/__tests__/vendor-styles.test.ts +214 -0
- package/augment-extensions/visual-design/domains/other/ai-prompt-helper.ts +157 -0
- package/augment-extensions/visual-design/domains/other/dotnet-application.ts +156 -0
- package/augment-extensions/visual-design/domains/other/linux-platform.ts +156 -0
- package/augment-extensions/visual-design/domains/other/mobile-application.ts +157 -0
- package/augment-extensions/visual-design/domains/other/motion-picture.ts +156 -0
- package/augment-extensions/visual-design/domains/other/os-application.ts +156 -0
- package/augment-extensions/visual-design/domains/other/print-campaigns.ts +158 -0
- package/augment-extensions/visual-design/domains/other/web-app.ts +157 -0
- package/augment-extensions/visual-design/domains/other/website.ts +161 -0
- package/augment-extensions/visual-design/domains/other/windows-platform.ts +156 -0
- package/augment-extensions/visual-design/domains/web-page-styles/amazon-cloudscape.ts +506 -0
- package/augment-extensions/visual-design/domains/web-page-styles/google-modern.ts +615 -0
- package/augment-extensions/visual-design/domains/web-page-styles/microsoft-fluent.ts +531 -0
- package/augment-extensions/visual-design/examples/README.md +97 -0
- package/augment-extensions/visual-design/examples/ai-prompt-generation.md +233 -0
- package/augment-extensions/visual-design/examples/basic-usage.md +216 -0
- package/augment-extensions/visual-design/examples/domain-workflows.md +257 -0
- package/augment-extensions/visual-design/examples/vendor-comparison.md +247 -0
- package/augment-extensions/visual-design/module.json +78 -0
- package/augment-extensions/visual-design/style-selector.ts +177 -0
- package/augment-extensions/visual-design/types.ts +302 -0
- package/augment-extensions/visual-design/visual-design-core.ts +469 -0
- package/augment-extensions/workflows/adr-support/README.md +227 -0
- package/augment-extensions/workflows/adr-support/__tests__/adr-validator.test.ts +203 -0
- package/augment-extensions/workflows/adr-support/adr-validator.ts +162 -0
- package/augment-extensions/workflows/adr-support/examples/complete-lifecycle-example.md +449 -0
- package/augment-extensions/workflows/adr-support/examples/integration-example.md +580 -0
- package/augment-extensions/workflows/adr-support/examples/superseding-example.md +436 -0
- package/augment-extensions/workflows/adr-support/module.json +112 -0
- package/augment-extensions/workflows/adr-support/rules/adr-creation.md +372 -0
- package/augment-extensions/workflows/adr-support/rules/beads-integration.md +443 -0
- package/augment-extensions/workflows/adr-support/rules/conflict-detection.md +486 -0
- package/augment-extensions/workflows/adr-support/rules/decision-detection.md +362 -0
- package/augment-extensions/workflows/adr-support/rules/lifecycle-management.md +427 -0
- package/augment-extensions/workflows/adr-support/rules/openspec-integration.md +465 -0
- package/augment-extensions/workflows/adr-support/rules/template-selection.md +405 -0
- package/augment-extensions/workflows/adr-support/rules/validation-rules.md +543 -0
- package/augment-extensions/workflows/adr-support/schemas/adr-config.json +191 -0
- package/augment-extensions/workflows/adr-support/schemas/adr-metadata.json +172 -0
- package/augment-extensions/workflows/adr-support/templates/business-case.md +235 -0
- package/augment-extensions/workflows/adr-support/templates/madr-elaborate.md +197 -0
- package/augment-extensions/workflows/adr-support/templates/madr-simple.md +68 -0
- package/augment-extensions/workflows/adr-support/templates/nygard.md +84 -0
- package/augment-extensions/writing-standards/screenplay/rules/file-organization.md +213 -213
- package/augment-extensions/writing-standards/screenplay/utils/__tests__/file-organization.test.ts +169 -169
- package/augment-extensions/writing-standards/screenplay/utils/file-organization.ts +165 -165
- package/cli/dist/utils/auto-sync.js +19 -19
- package/package.json +5 -3
- package/augment-extensions/workflows/openspec/README.md +0 -96
- package/augment-extensions/workflows/openspec/examples/complete-change-example.md +0 -244
- package/augment-extensions/workflows/openspec/module.json +0 -54
- package/augment-extensions/workflows/openspec/rules/best-practices.md +0 -272
- package/augment-extensions/workflows/openspec/rules/manual-setup.md +0 -231
- package/augment-extensions/workflows/openspec/rules/spec-format.md +0 -236
- package/augment-extensions/workflows/openspec/rules/workflow.md +0 -214
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
# AI Image Generation Prompt Helper
|
|
2
|
+
|
|
3
|
+
## Overview
|
|
4
|
+
|
|
5
|
+
This example demonstrates how to use the Visual Design module to generate effective prompts for AI image generation platforms (Midjourney, DALL-E, Stable Diffusion).
|
|
6
|
+
|
|
7
|
+
## Scenario
|
|
8
|
+
|
|
9
|
+
**Goal**: Generate prompts for creating marketing visuals for a tech startup
|
|
10
|
+
|
|
11
|
+
**Platforms**: Midjourney, DALL-E 3, Stable Diffusion
|
|
12
|
+
|
|
13
|
+
## Using the AI Prompt Helper Domain
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { AI_PROMPT_HELPER_DOMAIN } from './domains/other/ai-prompt-helper';
|
|
17
|
+
import { defaultStyleSelector } from './style-selector';
|
|
18
|
+
|
|
19
|
+
// Get vendor style for color/typography guidance
|
|
20
|
+
const vendorStyle = defaultStyleSelector.selectVendorStyle('google');
|
|
21
|
+
|
|
22
|
+
// Apply AI Prompt Helper domain
|
|
23
|
+
const promptHelper = {
|
|
24
|
+
...vendorStyle,
|
|
25
|
+
domain: AI_PROMPT_HELPER_DOMAIN,
|
|
26
|
+
platform: 'midjourney', // or 'dalle', 'stable-diffusion'
|
|
27
|
+
style: 'modern-tech',
|
|
28
|
+
subject: 'tech startup hero image'
|
|
29
|
+
};
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
## Example 1: Hero Image for Landing Page
|
|
33
|
+
|
|
34
|
+
### Requirements
|
|
35
|
+
- Modern, professional aesthetic
|
|
36
|
+
- Technology theme
|
|
37
|
+
- Vibrant colors (Google Material 3 palette)
|
|
38
|
+
- High quality, photorealistic
|
|
39
|
+
|
|
40
|
+
### Generated Prompt (Midjourney)
|
|
41
|
+
|
|
42
|
+
```
|
|
43
|
+
A modern tech startup office with diverse team collaborating around a holographic display,
|
|
44
|
+
vibrant purple and blue color scheme (#6750A4, #0078D4),
|
|
45
|
+
natural lighting from large windows,
|
|
46
|
+
clean minimalist interior design,
|
|
47
|
+
photorealistic,
|
|
48
|
+
cinematic composition,
|
|
49
|
+
8k resolution,
|
|
50
|
+
professional photography,
|
|
51
|
+
depth of field,
|
|
52
|
+
--ar 16:9 --v 6 --style raw
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
### Generated Prompt (DALL-E 3)
|
|
56
|
+
|
|
57
|
+
```
|
|
58
|
+
Create a photorealistic image of a modern tech startup office.
|
|
59
|
+
Show a diverse team of professionals collaborating around a futuristic holographic display.
|
|
60
|
+
Use a vibrant color palette with purple (#6750A4) and blue (#0078D4) accents.
|
|
61
|
+
The scene should have natural lighting from large windows,
|
|
62
|
+
clean minimalist interior design with modern furniture.
|
|
63
|
+
High quality, professional photography style,
|
|
64
|
+
cinematic composition with depth of field.
|
|
65
|
+
16:9 aspect ratio.
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
### Generated Prompt (Stable Diffusion)
|
|
69
|
+
|
|
70
|
+
```
|
|
71
|
+
modern tech startup office, diverse team collaboration, holographic display,
|
|
72
|
+
vibrant purple and blue colors, natural window lighting, minimalist interior,
|
|
73
|
+
photorealistic, professional photography, cinematic, 8k, depth of field,
|
|
74
|
+
high detail, sharp focus,
|
|
75
|
+
(masterpiece:1.2), (best quality:1.2), (ultra-detailed:1.2)
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
## Example 2: Product Icon
|
|
79
|
+
|
|
80
|
+
### Requirements
|
|
81
|
+
- Simple, recognizable icon
|
|
82
|
+
- Material Design style
|
|
83
|
+
- Flat design with subtle depth
|
|
84
|
+
- 1024x1024 resolution
|
|
85
|
+
|
|
86
|
+
### Generated Prompt (Midjourney)
|
|
87
|
+
|
|
88
|
+
```
|
|
89
|
+
A simple, modern app icon for a productivity tool,
|
|
90
|
+
Material Design 3 style,
|
|
91
|
+
flat design with subtle gradient,
|
|
92
|
+
purple and white color scheme (#6750A4),
|
|
93
|
+
rounded square shape with 20% corner radius,
|
|
94
|
+
minimalist,
|
|
95
|
+
clean lines,
|
|
96
|
+
centered composition,
|
|
97
|
+
--ar 1:1 --v 6 --style raw
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
## Example 3: Social Media Post
|
|
101
|
+
|
|
102
|
+
### Requirements
|
|
103
|
+
- Instagram post (1080x1080)
|
|
104
|
+
- Eye-catching, vibrant
|
|
105
|
+
- Text overlay space
|
|
106
|
+
- Brand colors
|
|
107
|
+
|
|
108
|
+
### Generated Prompt (DALL-E 3)
|
|
109
|
+
|
|
110
|
+
```
|
|
111
|
+
Create a vibrant social media graphic for Instagram.
|
|
112
|
+
Abstract geometric shapes in purple (#6750A4) and teal (#00BCD4) gradients.
|
|
113
|
+
Modern, energetic composition with plenty of negative space in the center for text overlay.
|
|
114
|
+
Smooth gradients, rounded shapes,
|
|
115
|
+
Material Design 3 aesthetic.
|
|
116
|
+
1:1 square aspect ratio,
|
|
117
|
+
high contrast,
|
|
118
|
+
professional graphic design.
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
## Prompt Template Structure
|
|
122
|
+
|
|
123
|
+
### Basic Template
|
|
124
|
+
|
|
125
|
+
```
|
|
126
|
+
[Subject] + [Style] + [Color Palette] + [Lighting] + [Composition] + [Quality] + [Technical Parameters]
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
### Detailed Breakdown
|
|
130
|
+
|
|
131
|
+
1. **Subject**: What you want to generate
|
|
132
|
+
- "modern tech office"
|
|
133
|
+
- "app icon"
|
|
134
|
+
- "abstract background"
|
|
135
|
+
|
|
136
|
+
2. **Style**: Visual aesthetic
|
|
137
|
+
- "Material Design 3"
|
|
138
|
+
- "Fluent Design"
|
|
139
|
+
- "photorealistic"
|
|
140
|
+
- "minimalist"
|
|
141
|
+
- "cinematic"
|
|
142
|
+
|
|
143
|
+
3. **Color Palette**: Specific colors from vendor styles
|
|
144
|
+
- Google: `#6750A4, #EADDFF`
|
|
145
|
+
- Microsoft: `#0078D4, #F3F2F1`
|
|
146
|
+
- Amazon: `#0972D3, #16191F`
|
|
147
|
+
|
|
148
|
+
4. **Lighting**: Light quality and direction
|
|
149
|
+
- "natural window lighting"
|
|
150
|
+
- "soft studio lighting"
|
|
151
|
+
- "dramatic side lighting"
|
|
152
|
+
- "golden hour"
|
|
153
|
+
|
|
154
|
+
5. **Composition**: Layout and framing
|
|
155
|
+
- "centered composition"
|
|
156
|
+
- "rule of thirds"
|
|
157
|
+
- "negative space"
|
|
158
|
+
- "depth of field"
|
|
159
|
+
|
|
160
|
+
6. **Quality**: Output quality descriptors
|
|
161
|
+
- "8k resolution"
|
|
162
|
+
- "high detail"
|
|
163
|
+
- "professional photography"
|
|
164
|
+
- "masterpiece"
|
|
165
|
+
|
|
166
|
+
7. **Technical Parameters**: Platform-specific
|
|
167
|
+
- Midjourney: `--ar 16:9 --v 6 --style raw`
|
|
168
|
+
- DALL-E: Aspect ratio in description
|
|
169
|
+
- Stable Diffusion: `(masterpiece:1.2), (best quality:1.2)`
|
|
170
|
+
|
|
171
|
+
## Platform-Specific Tips
|
|
172
|
+
|
|
173
|
+
### Midjourney
|
|
174
|
+
- Use `--ar` for aspect ratio (16:9, 1:1, 9:16)
|
|
175
|
+
- Use `--v 6` for latest version
|
|
176
|
+
- Use `--style raw` for more photorealistic results
|
|
177
|
+
- Use `--no` to exclude elements
|
|
178
|
+
|
|
179
|
+
### DALL-E 3
|
|
180
|
+
- Be descriptive and specific
|
|
181
|
+
- Use natural language
|
|
182
|
+
- Specify aspect ratio in description
|
|
183
|
+
- Avoid technical jargon
|
|
184
|
+
|
|
185
|
+
### Stable Diffusion
|
|
186
|
+
- Use weighted keywords: `(keyword:1.2)`
|
|
187
|
+
- Use negative prompts: `--neg`
|
|
188
|
+
- Specify model-specific keywords
|
|
189
|
+
- Use quality tags: `masterpiece, best quality`
|
|
190
|
+
|
|
191
|
+
## Combining with Vendor Styles
|
|
192
|
+
|
|
193
|
+
### Google Material 3 Prompts
|
|
194
|
+
|
|
195
|
+
```
|
|
196
|
+
Material Design 3 aesthetic,
|
|
197
|
+
dynamic color theming,
|
|
198
|
+
rounded corners,
|
|
199
|
+
subtle shadows,
|
|
200
|
+
vibrant purple (#6750A4),
|
|
201
|
+
modern and expressive
|
|
202
|
+
```
|
|
203
|
+
|
|
204
|
+
### Microsoft Fluent 2 Prompts
|
|
205
|
+
|
|
206
|
+
```
|
|
207
|
+
Fluent Design System,
|
|
208
|
+
Acrylic material effect,
|
|
209
|
+
soft transparency,
|
|
210
|
+
layered depth,
|
|
211
|
+
professional blue (#0078D4),
|
|
212
|
+
clean and corporate
|
|
213
|
+
```
|
|
214
|
+
|
|
215
|
+
### Amazon Cloudscape Prompts
|
|
216
|
+
|
|
217
|
+
```
|
|
218
|
+
Enterprise dashboard aesthetic,
|
|
219
|
+
neutral color palette,
|
|
220
|
+
data visualization,
|
|
221
|
+
clean and functional,
|
|
222
|
+
AWS blue (#0972D3),
|
|
223
|
+
professional and minimal
|
|
224
|
+
```
|
|
225
|
+
|
|
226
|
+
## Next Steps
|
|
227
|
+
|
|
228
|
+
- Experiment with different prompt structures
|
|
229
|
+
- Test across multiple platforms
|
|
230
|
+
- Refine prompts based on results
|
|
231
|
+
- Build a prompt library for your brand
|
|
232
|
+
- Combine vendor styles with domain-specific keywords
|
|
233
|
+
|
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
# Basic Usage Example
|
|
2
|
+
|
|
3
|
+
## Overview
|
|
4
|
+
|
|
5
|
+
This example demonstrates the fundamental workflow for using the Visual Design module with Augment AI.
|
|
6
|
+
|
|
7
|
+
## Scenario
|
|
8
|
+
|
|
9
|
+
**Goal**: Generate a modern landing page design using Google Material 3 Expressive style.
|
|
10
|
+
|
|
11
|
+
**Requirements**:
|
|
12
|
+
- Clean, modern aesthetic
|
|
13
|
+
- Accessible color contrast
|
|
14
|
+
- Responsive layout
|
|
15
|
+
- Mobile-first approach
|
|
16
|
+
|
|
17
|
+
## Step-by-Step Workflow
|
|
18
|
+
|
|
19
|
+
### Step 1: Query the Module
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
augx show visual-design
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
This loads the core design elements, principles, and vendor styles into the AI context.
|
|
26
|
+
|
|
27
|
+
### Step 2: Select Vendor Style
|
|
28
|
+
|
|
29
|
+
The module uses default priority: **google → microsoft → amazon**
|
|
30
|
+
|
|
31
|
+
For this example, we'll use Google Modern (Material 3 Expressive):
|
|
32
|
+
|
|
33
|
+
```typescript
|
|
34
|
+
import { defaultStyleSelector } from './style-selector';
|
|
35
|
+
import { GOOGLE_MODERN } from './domains/web-page-styles/google-modern';
|
|
36
|
+
|
|
37
|
+
// Get the default vendor style (Google)
|
|
38
|
+
const vendorStyle = defaultStyleSelector.selectVendorStyle();
|
|
39
|
+
// Returns: GOOGLE_MODERN
|
|
40
|
+
|
|
41
|
+
// Or explicitly request Google
|
|
42
|
+
const googleStyle = defaultStyleSelector.selectVendorStyle('google');
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
### Step 3: Apply Design Elements
|
|
46
|
+
|
|
47
|
+
#### Color Palette
|
|
48
|
+
|
|
49
|
+
```css
|
|
50
|
+
:root {
|
|
51
|
+
/* Primary Colors (Material 3 Dynamic Color) */
|
|
52
|
+
--color-primary: #6750A4;
|
|
53
|
+
--color-on-primary: #FFFFFF;
|
|
54
|
+
--color-primary-container: #EADDFF;
|
|
55
|
+
--color-on-primary-container: #21005D;
|
|
56
|
+
|
|
57
|
+
/* Secondary Colors */
|
|
58
|
+
--color-secondary: #625B71;
|
|
59
|
+
--color-on-secondary: #FFFFFF;
|
|
60
|
+
|
|
61
|
+
/* Neutral Colors */
|
|
62
|
+
--color-surface: #FFFBFE;
|
|
63
|
+
--color-on-surface: #1C1B1F;
|
|
64
|
+
--color-outline: #79747E;
|
|
65
|
+
|
|
66
|
+
/* Semantic Colors */
|
|
67
|
+
--color-error: #B3261E;
|
|
68
|
+
--color-success: #4CAF50;
|
|
69
|
+
}
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
#### Typography
|
|
73
|
+
|
|
74
|
+
```css
|
|
75
|
+
/* Google Sans for headings, Roboto for body */
|
|
76
|
+
@import url('https://fonts.googleapis.com/css2?family=Google+Sans:wght@400;500;700&family=Roboto:wght@400;500&display=swap');
|
|
77
|
+
|
|
78
|
+
:root {
|
|
79
|
+
--font-heading: 'Google Sans', sans-serif;
|
|
80
|
+
--font-body: 'Roboto', sans-serif;
|
|
81
|
+
|
|
82
|
+
/* Type Scale */
|
|
83
|
+
--font-size-h1: 3.5rem; /* 56px */
|
|
84
|
+
--font-size-h2: 2.75rem; /* 44px */
|
|
85
|
+
--font-size-h3: 2rem; /* 32px */
|
|
86
|
+
--font-size-body: 1rem; /* 16px */
|
|
87
|
+
--font-size-caption: 0.875rem; /* 14px */
|
|
88
|
+
|
|
89
|
+
/* Line Heights */
|
|
90
|
+
--line-height-heading: 1.2;
|
|
91
|
+
--line-height-body: 1.5;
|
|
92
|
+
}
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
#### Layout (Responsive Grid)
|
|
96
|
+
|
|
97
|
+
```css
|
|
98
|
+
.container {
|
|
99
|
+
max-width: 1200px;
|
|
100
|
+
margin: 0 auto;
|
|
101
|
+
padding: 0 16px;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.grid {
|
|
105
|
+
display: grid;
|
|
106
|
+
grid-template-columns: repeat(12, 1fr);
|
|
107
|
+
gap: 24px;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
/* Responsive breakpoints */
|
|
111
|
+
@media (max-width: 600px) {
|
|
112
|
+
.grid {
|
|
113
|
+
grid-template-columns: repeat(4, 1fr);
|
|
114
|
+
gap: 16px;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
@media (min-width: 601px) and (max-width: 1024px) {
|
|
119
|
+
.grid {
|
|
120
|
+
grid-template-columns: repeat(8, 1fr);
|
|
121
|
+
gap: 20px;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
### Step 4: Apply Design Principles
|
|
127
|
+
|
|
128
|
+
#### Hierarchy
|
|
129
|
+
|
|
130
|
+
```html
|
|
131
|
+
<header>
|
|
132
|
+
<h1>Welcome to Our Product</h1>
|
|
133
|
+
<p class="subtitle">The best solution for your needs</p>
|
|
134
|
+
</header>
|
|
135
|
+
|
|
136
|
+
<section>
|
|
137
|
+
<h2>Features</h2>
|
|
138
|
+
<div class="feature-grid">
|
|
139
|
+
<div class="feature-card">
|
|
140
|
+
<h3>Fast</h3>
|
|
141
|
+
<p>Lightning-fast performance</p>
|
|
142
|
+
</div>
|
|
143
|
+
</div>
|
|
144
|
+
</section>
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
#### Contrast (WCAG AA: 4.5:1 for text)
|
|
148
|
+
|
|
149
|
+
```css
|
|
150
|
+
/* Ensure sufficient contrast */
|
|
151
|
+
.text-on-primary {
|
|
152
|
+
color: #FFFFFF; /* White on #6750A4 = 7.2:1 ✓ */
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.text-on-surface {
|
|
156
|
+
color: #1C1B1F; /* Dark on #FFFBFE = 15.8:1 ✓ */
|
|
157
|
+
}
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
### Step 5: Generate Output
|
|
161
|
+
|
|
162
|
+
**HTML Structure**:
|
|
163
|
+
|
|
164
|
+
```html
|
|
165
|
+
<!DOCTYPE html>
|
|
166
|
+
<html lang="en">
|
|
167
|
+
<head>
|
|
168
|
+
<meta charset="UTF-8">
|
|
169
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
170
|
+
<title>Modern Landing Page</title>
|
|
171
|
+
<link rel="stylesheet" href="styles.css">
|
|
172
|
+
</head>
|
|
173
|
+
<body>
|
|
174
|
+
<header class="hero">
|
|
175
|
+
<div class="container">
|
|
176
|
+
<h1>Transform Your Workflow</h1>
|
|
177
|
+
<p class="subtitle">Powerful tools for modern teams</p>
|
|
178
|
+
<button class="cta-button">Get Started</button>
|
|
179
|
+
</div>
|
|
180
|
+
</header>
|
|
181
|
+
|
|
182
|
+
<main>
|
|
183
|
+
<section class="features">
|
|
184
|
+
<div class="container">
|
|
185
|
+
<h2>Why Choose Us</h2>
|
|
186
|
+
<div class="grid">
|
|
187
|
+
<div class="feature-card">
|
|
188
|
+
<h3>Fast</h3>
|
|
189
|
+
<p>Lightning-fast performance</p>
|
|
190
|
+
</div>
|
|
191
|
+
<!-- More feature cards -->
|
|
192
|
+
</div>
|
|
193
|
+
</div>
|
|
194
|
+
</section>
|
|
195
|
+
</main>
|
|
196
|
+
</body>
|
|
197
|
+
</html>
|
|
198
|
+
```
|
|
199
|
+
|
|
200
|
+
## Result
|
|
201
|
+
|
|
202
|
+
A modern, accessible landing page following Google Material 3 Expressive design principles with:
|
|
203
|
+
- ✅ Dynamic color theming
|
|
204
|
+
- ✅ Proper typography hierarchy
|
|
205
|
+
- ✅ Responsive grid layout
|
|
206
|
+
- ✅ WCAG AA contrast ratios
|
|
207
|
+
- ✅ Mobile-first approach
|
|
208
|
+
- ✅ Consistent spacing (8px grid)
|
|
209
|
+
|
|
210
|
+
## Next Steps
|
|
211
|
+
|
|
212
|
+
- Explore other vendor styles (Microsoft Fluent 2, Amazon Cloudscape)
|
|
213
|
+
- Try different domains (Web-app, Mobile, Print)
|
|
214
|
+
- Customize color palettes
|
|
215
|
+
- Add motion and elevation
|
|
216
|
+
|
|
@@ -0,0 +1,257 @@
|
|
|
1
|
+
# Domain-Specific Workflows
|
|
2
|
+
|
|
3
|
+
## Overview
|
|
4
|
+
|
|
5
|
+
This example demonstrates how to use the Visual Design module for different domains: Website, Web-app, Mobile, .NET Application, Linux, Windows, Motion Picture, AI Prompt Helper, and Print Campaigns.
|
|
6
|
+
|
|
7
|
+
## 1. Website Domain
|
|
8
|
+
|
|
9
|
+
**Use Case**: Multi-page marketing website with blog
|
|
10
|
+
|
|
11
|
+
**Workflow**:
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { WEBSITE_DOMAIN } from './domains/other/website';
|
|
15
|
+
import { defaultStyleSelector } from './style-selector';
|
|
16
|
+
|
|
17
|
+
// Select vendor style (Google Material 3)
|
|
18
|
+
const vendorStyle = defaultStyleSelector.selectVendorStyle('google');
|
|
19
|
+
|
|
20
|
+
// Apply website domain characteristics
|
|
21
|
+
const websiteDesign = {
|
|
22
|
+
...vendorStyle,
|
|
23
|
+
domain: WEBSITE_DOMAIN,
|
|
24
|
+
pages: ['home', 'about', 'services', 'blog', 'contact'],
|
|
25
|
+
navigation: 'horizontal-menu',
|
|
26
|
+
layout: 'multi-page-with-sidebar'
|
|
27
|
+
};
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
**Key Characteristics**:
|
|
31
|
+
- Multi-page structure with consistent navigation
|
|
32
|
+
- SEO-optimized layouts
|
|
33
|
+
- Content-focused typography
|
|
34
|
+
- Blog post templates
|
|
35
|
+
- Contact forms
|
|
36
|
+
|
|
37
|
+
## 2. Web-app Domain
|
|
38
|
+
|
|
39
|
+
**Use Case**: Interactive SPA dashboard
|
|
40
|
+
|
|
41
|
+
**Workflow**:
|
|
42
|
+
|
|
43
|
+
```typescript
|
|
44
|
+
import { WEB_APP_DOMAIN } from './domains/other/web-app';
|
|
45
|
+
|
|
46
|
+
const webAppDesign = {
|
|
47
|
+
...vendorStyle,
|
|
48
|
+
domain: WEB_APP_DOMAIN,
|
|
49
|
+
features: ['client-side-routing', 'state-management', 'real-time-updates'],
|
|
50
|
+
layout: 'app-shell-with-sidebar',
|
|
51
|
+
components: ['data-tables', 'charts', 'modals', 'notifications']
|
|
52
|
+
};
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
**Key Characteristics**:
|
|
56
|
+
- Single-page application architecture
|
|
57
|
+
- App-like navigation (sidebar, tabs)
|
|
58
|
+
- Interactive components (charts, tables)
|
|
59
|
+
- State management patterns
|
|
60
|
+
- Real-time data updates
|
|
61
|
+
|
|
62
|
+
## 3. Mobile Application Domain
|
|
63
|
+
|
|
64
|
+
**Use Case**: iOS/Android mobile app
|
|
65
|
+
|
|
66
|
+
**Workflow**:
|
|
67
|
+
|
|
68
|
+
```typescript
|
|
69
|
+
import { MOBILE_APPLICATION_DOMAIN } from './domains/other/mobile-application';
|
|
70
|
+
|
|
71
|
+
const mobileDesign = {
|
|
72
|
+
...vendorStyle,
|
|
73
|
+
domain: MOBILE_APPLICATION_DOMAIN,
|
|
74
|
+
platform: 'ios', // or 'android'
|
|
75
|
+
navigation: 'bottom-tab-bar',
|
|
76
|
+
interactions: ['touch', 'swipe', 'pull-to-refresh'],
|
|
77
|
+
safeAreas: true
|
|
78
|
+
};
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
**Key Characteristics**:
|
|
82
|
+
- Touch-first interaction design
|
|
83
|
+
- Native navigation patterns (iOS/Android)
|
|
84
|
+
- Gesture-based interactions
|
|
85
|
+
- Bottom navigation and tab bars
|
|
86
|
+
- Safe area inset handling
|
|
87
|
+
- Haptic feedback
|
|
88
|
+
|
|
89
|
+
## 4. .NET Application Domain
|
|
90
|
+
|
|
91
|
+
**Use Case**: WPF desktop application
|
|
92
|
+
|
|
93
|
+
**Workflow**:
|
|
94
|
+
|
|
95
|
+
```typescript
|
|
96
|
+
import { DOTNET_APPLICATION_DOMAIN } from './domains/other/dotnet-application';
|
|
97
|
+
|
|
98
|
+
const dotnetDesign = {
|
|
99
|
+
...vendorStyle,
|
|
100
|
+
domain: DOTNET_APPLICATION_DOMAIN,
|
|
101
|
+
framework: 'WPF', // or 'WinForms', 'MAUI', 'Blazor'
|
|
102
|
+
architecture: 'MVVM',
|
|
103
|
+
layout: 'ribbon-with-sidebar'
|
|
104
|
+
};
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
**Key Characteristics**:
|
|
108
|
+
- XAML-based UI definition
|
|
109
|
+
- MVVM architecture pattern
|
|
110
|
+
- WPF/WinForms/MAUI controls
|
|
111
|
+
- Dependency injection support
|
|
112
|
+
- Visual Studio designer support
|
|
113
|
+
|
|
114
|
+
## 5. Linux Platform Domain
|
|
115
|
+
|
|
116
|
+
**Use Case**: GNOME desktop application
|
|
117
|
+
|
|
118
|
+
**Workflow**:
|
|
119
|
+
|
|
120
|
+
```typescript
|
|
121
|
+
import { LINUX_PLATFORM_DOMAIN } from './domains/other/linux-platform';
|
|
122
|
+
|
|
123
|
+
const linuxDesign = {
|
|
124
|
+
...vendorStyle,
|
|
125
|
+
domain: LINUX_PLATFORM_DOMAIN,
|
|
126
|
+
desktopEnvironment: 'GNOME', // or 'KDE', 'XFCE'
|
|
127
|
+
toolkit: 'GTK4',
|
|
128
|
+
layout: 'headerbar-with-sidebar'
|
|
129
|
+
};
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
**Key Characteristics**:
|
|
133
|
+
- GNOME HIG / KDE HIG compliance
|
|
134
|
+
- GTK/Qt integration
|
|
135
|
+
- Desktop environment theming
|
|
136
|
+
- System integration (notifications, tray)
|
|
137
|
+
|
|
138
|
+
## 6. Windows Platform Domain
|
|
139
|
+
|
|
140
|
+
**Use Case**: Windows 11 application
|
|
141
|
+
|
|
142
|
+
**Workflow**:
|
|
143
|
+
|
|
144
|
+
```typescript
|
|
145
|
+
import { WINDOWS_PLATFORM_DOMAIN } from './domains/other/windows-platform';
|
|
146
|
+
|
|
147
|
+
const windowsDesign = {
|
|
148
|
+
...vendorStyle,
|
|
149
|
+
domain: WINDOWS_PLATFORM_DOMAIN,
|
|
150
|
+
version: 'Windows 11',
|
|
151
|
+
materials: ['Acrylic', 'Mica'],
|
|
152
|
+
layout: 'navigation-view-with-command-bar'
|
|
153
|
+
};
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
**Key Characteristics**:
|
|
157
|
+
- Windows 11 design principles
|
|
158
|
+
- Acrylic/Mica materials
|
|
159
|
+
- Fluent Design System
|
|
160
|
+
- WinUI 3 controls
|
|
161
|
+
|
|
162
|
+
## 7. Motion Picture Design Domain
|
|
163
|
+
|
|
164
|
+
**Use Case**: Film title sequence design
|
|
165
|
+
|
|
166
|
+
**Workflow**:
|
|
167
|
+
|
|
168
|
+
```typescript
|
|
169
|
+
import { MOTION_PICTURE_DOMAIN } from './domains/other/motion-picture';
|
|
170
|
+
|
|
171
|
+
const motionDesign = {
|
|
172
|
+
...vendorStyle,
|
|
173
|
+
domain: MOTION_PICTURE_DOMAIN,
|
|
174
|
+
medium: 'film', // or 'tv', 'web-series'
|
|
175
|
+
aspectRatio: '2.39:1', // Cinemascope
|
|
176
|
+
colorGrading: 'cinematic-teal-orange',
|
|
177
|
+
typography: 'bold-sans-serif-titles'
|
|
178
|
+
};
|
|
179
|
+
```
|
|
180
|
+
|
|
181
|
+
**Key Characteristics**:
|
|
182
|
+
- Cinematography principles
|
|
183
|
+
- Color grading techniques
|
|
184
|
+
- Composition rules (rule of thirds)
|
|
185
|
+
- Visual storytelling
|
|
186
|
+
- Motion graphics
|
|
187
|
+
|
|
188
|
+
## 8. AI Prompt Helper Domain
|
|
189
|
+
|
|
190
|
+
**Use Case**: Generate image prompts for Midjourney/DALL-E
|
|
191
|
+
|
|
192
|
+
**Workflow**:
|
|
193
|
+
|
|
194
|
+
```typescript
|
|
195
|
+
import { AI_PROMPT_HELPER_DOMAIN } from './domains/other/ai-prompt-helper';
|
|
196
|
+
|
|
197
|
+
const promptDesign = {
|
|
198
|
+
...vendorStyle,
|
|
199
|
+
domain: AI_PROMPT_HELPER_DOMAIN,
|
|
200
|
+
platform: 'midjourney', // or 'dalle', 'stable-diffusion'
|
|
201
|
+
style: 'photorealistic',
|
|
202
|
+
keywords: ['cinematic lighting', '8k', 'detailed']
|
|
203
|
+
};
|
|
204
|
+
```
|
|
205
|
+
|
|
206
|
+
**Key Characteristics**:
|
|
207
|
+
- Platform-specific prompt templates
|
|
208
|
+
- Style keyword suggestions
|
|
209
|
+
- Composition guidance
|
|
210
|
+
- Lighting and mood descriptors
|
|
211
|
+
|
|
212
|
+
## 9. Print Campaign Domain
|
|
213
|
+
|
|
214
|
+
**Use Case**: Event poster design
|
|
215
|
+
|
|
216
|
+
**Workflow**:
|
|
217
|
+
|
|
218
|
+
```typescript
|
|
219
|
+
import { PRINT_CAMPAIGNS_DOMAIN } from './domains/other/print-campaigns';
|
|
220
|
+
|
|
221
|
+
const printDesign = {
|
|
222
|
+
...vendorStyle,
|
|
223
|
+
domain: PRINT_CAMPAIGNS_DOMAIN,
|
|
224
|
+
format: 'poster', // or 'flyer', 'banner', 'billboard'
|
|
225
|
+
size: '24x36',
|
|
226
|
+
colorMode: 'CMYK',
|
|
227
|
+
resolution: '300dpi'
|
|
228
|
+
};
|
|
229
|
+
```
|
|
230
|
+
|
|
231
|
+
**Key Characteristics**:
|
|
232
|
+
- Print-specific color (CMYK)
|
|
233
|
+
- High resolution (300 DPI)
|
|
234
|
+
- Bleed and safe zones
|
|
235
|
+
- Physical media constraints
|
|
236
|
+
- Large-format typography
|
|
237
|
+
|
|
238
|
+
## Choosing the Right Domain
|
|
239
|
+
|
|
240
|
+
| Domain | Best For | Key Features |
|
|
241
|
+
|--------|----------|--------------|
|
|
242
|
+
| **Website** | Marketing sites, blogs | Multi-page, SEO, content-focused |
|
|
243
|
+
| **Web-app** | Dashboards, SaaS | Interactive, state-driven, real-time |
|
|
244
|
+
| **Mobile** | iOS/Android apps | Touch-first, native patterns |
|
|
245
|
+
| **.NET** | Desktop apps | XAML, MVVM, Windows integration |
|
|
246
|
+
| **Linux** | Linux desktop apps | GTK/Qt, HIG compliance |
|
|
247
|
+
| **Windows** | Windows apps | Fluent Design, Acrylic/Mica |
|
|
248
|
+
| **Motion Picture** | Film, TV, video | Cinematography, color grading |
|
|
249
|
+
| **AI Prompt** | Image generation | Prompt templates, keywords |
|
|
250
|
+
| **Print** | Posters, flyers | CMYK, high-res, physical media |
|
|
251
|
+
|
|
252
|
+
## Next Steps
|
|
253
|
+
|
|
254
|
+
- Explore vendor-specific implementations for each domain
|
|
255
|
+
- Combine multiple domains (e.g., Website + Mobile)
|
|
256
|
+
- Customize domain characteristics for your use case
|
|
257
|
+
|