You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: skills/igniteui-angular-generate-from-image-design/SKILL.md
+10-6Lines changed: 10 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,16 +29,16 @@ Before writing any implementation code, you must complete these steps in order:
29
29
2.**Detect platform** - Call `detect_platform` to confirm Angular + licensed status
30
30
3.**Discover components** - Call `list_components` with targeted filters to find matching components for each UI pattern
31
31
4.**Look up component docs** - Call `get_doc` for every chosen component family before coding
32
-
5.**Get best practices** - Call `get_best_practices`with the workspace path
33
-
6.**Generate theme** - (a) To generate a theme, first extract colors and create a color palette using `create_palette` or `create_custom_palette` depending on the scenario. Then extract elevations and call `create_elevations`. Then extract typography and call `create_typography`. Then call `create_theme` with the palette, elevations, and typography. (b) After a theme exists, prefer using design tokens or scoped semantic CSS variables over raw literals. (c) For every Ignite UI component, call `get_component_design_tokens`, map extracted image tokens to token roles, then call `create_component_theme` with the tokens differing from the global theme for the specific component.
34
-
7.**Implement** - Build the screenshot-first layout, data, and view components
35
-
8.**Validate and refine** - Build, test, run, compare against the image, and fix differences
32
+
5.**Generate theme** - (a) To generate a theme, first extract colors and create a color palette using `create_palette` or `create_custom_palette` depending on the scenario. Then extract elevations and call `create_elevations`. Then extract typography and call `create_typography`. Then call `create_theme`with the palette, elevations, and typography. (b) After a theme exists, prefer using design tokens or scoped semantic CSS variables over raw literals. (c) For every Ignite UI component, call `get_component_design_tokens`, map extracted image tokens to token roles, then call `create_component_theme` with the tokens differing from the global theme for the specific component.
33
+
6.**Implement** - Build the screenshot-first layout, data, and view components
34
+
7.**Refine** - Use the `set_size`, `set_spacing`, `set_roundness` tools to refine the view's visual fidelity against the image, then iterate on implementation and theming until the view matches the design closely
35
+
8.**Validate** - Build, test, run, compare against the image, and fix differences
36
36
37
37
## Step 1: Analyze the Design Image
38
38
39
39
Read the input image carefully. For each visual section, identify:
40
40
41
-
-**Layout structure**: grid rows/columns, sidebar, navbar, content area proportions, and estimated fixed widths or percentages for major regions
41
+
-**Layout structure**: grid rows/columns, sidebar, navbar, content area proportions, and estimated fixed widths or percentages for major regions.
42
42
> Note: Do not guess the exact CSS properties at this stage; just identify the high-level structure and relative proportions. Do not try to fit the view into exact breakpoints or pixel values. Try to generate a flexible layout that preserves the observed proportions and can adapt to different screen sizes. You will refine the exact CSS rules in Step 8 after building a first version of the view.
43
43
-**Component type**: chart, list, card, map, gauge, table, form, etc.
44
44
-**Color palette**: primary, secondary, surface/background, accent, text colors
@@ -194,7 +194,11 @@ In standalone Angular apps, DV chart, map, and gauge packages are imported via m
194
194
- Avoid generic placeholders when the image shows domain-specific content
195
195
- Document brief assumptions when the image is ambiguous instead of silently guessing
196
196
197
-
## Step 8: Iterate on Visual Fidelity
197
+
## Step 8: Refine
198
+
199
+
After the first implementation pass, use the `set_size`, `set_spacing`, and `set_roundness` tools to adjust the view's visual properties and close the gap with the image. Focus on the most visually distinctive elements first (e.g., panel proportions, chart shape, button prominence) before tuning smaller details (e.g., row heights, spacing between regions).
0 commit comments