# Build with Evolutive X

Use the actual versioned components to build the main task described by the person requesting the project. The stable default is **0.3.7-public.1** (core 0.3.7). The component catalogue also demonstrates **0.4.0-rc.2-public.1**, a review edition with six optional families. Choose that edition if the project needs one of those families and the user accepts a release candidate.

[Interactive components](https://evolutivex.com/design-system/components/) · [Component names, imports, editions and examples](https://evolutivex.com/design-system/framework.json) · [All downloads](https://evolutivex.com/design-system/versions/#archives)

## Choose the interface before building

For both new products and redesigns, follow studio standards **0.4.3**. Name one task and its observable outcome. In a redesign, run it in the existing product and record the behaviours people already rely on. Apply the [interface decision guide](https://evolutivex.com/design-system/interface-decisions.md) to the actual screen. [Try the worked example](https://evolutivex.com/design-system/principles/#interface-decisions).

| What the person needs | Web pattern | Check |
| --- | --- | --- |
| Reach or share a destination | Link with a real URL. Mark the current destination in navigation. Use tabs for peer views within a screen. | Open a direct link, refresh and go Back. Preserve meaningful list filters, position or draft where applicable. |
| Act on the current item | A named button for the common action. Group secondary commands in an action menu. | Keep essential actions discoverable at compact widths and without hover. A newcomer should be able to predict an icon’s effect. |
| Choose or enter a value | Radios for a short exclusive choice, checkboxes for independent choices, a native select for a longer known list. A switch changes an immediately applied on/off preference. | Keep a visible label, group related choices, choose the right input type and keyboard, and retain the value after an error. |
| Complete a short blocking decision | A titled dialog with a visible way out. Use a route for a substantial or independently addressable task. | Open from a scrolled screen, reach every control, cancel with Escape where appropriate, and return focus to the initiating control or a logical successor. |
| Understand or recover from a change | Inline status for ordinary results. Offer undo for a reliably reversible change. Confirm serious irreversible consequences before commitment. | State what happened and how to recover. Preserve input and prevent duplicate submissions. Show a percentage only when progress is measurable. |

Keep the current item and any draft when a layout reflows. Check short windows, enlarged text, translated labels, keyboard focus and recovery in both appearances. Keep the product’s identity and test the real task before recording a pass.

## Create a new project

1. Download the [stable kit ZIP](https://evolutivex.com/design-system/downloads/evolutive-x-web-kit-0.3.7-public.1.zip). Its SHA-256 is `4c363df335852b580e8e8a05c900eb315eebd78f6859b4db7ffa970e7d4c5a21`. The [published checksum](https://evolutivex.com/design-system/downloads/evolutive-x-web-kit-0.3.7-public.1.zip.sha256) and [file inventory](https://evolutivex.com/design-system/downloads/evolutive-x-web-kit-0.3.7-public.1.manifest.json) are available separately.
2. Put the ZIP in a fresh working folder. Using Python 3.10 or later, verify the checksum, extract the kit and create your project there. The target `my-product` must be new or empty.

```sh
python3 -c "import hashlib,pathlib; d=pathlib.Path('evolutive-x-web-kit-0.3.7-public.1.zip').read_bytes(); raise SystemExit(0 if hashlib.sha256(d).hexdigest() == '4c363df335852b580e8e8a05c900eb315eebd78f6859b4db7ffa970e7d4c5a21' else 'Checksum mismatch')" && \
  python3 -m zipfile -e evolutive-x-web-kit-0.3.7-public.1.zip . && \
  cd evolutive-x-web-kit-0.3.7-public.1 && \
  python3 create.py ../my-product --title "My product" && \
  cd ../my-product && \
  python3 verify.py && \
  python3 serve.py
```

3. Open the printed local address. Try adding an idea, then replace that example with the requested product's primary task. Record the product's intended user, main task, data handling and chosen edition in `PROJECT.md`. Keep code and styling specific to the product outside its vendor directory.

## Remaster an existing project

1. Choose one existing journey. Record its entry URL, current success and error states, keyboard behavior and a before image. Identify the existing theme, reusable controls and data boundaries. Keep the product name, URLs, stored records and established tasks.
2. Create the stable starter in a **separate empty folder** with the command above. Copy its generated `vendor/evolutive-x/` directory, including `manifest.json`, fonts, icons and licence files, to your app’s local static assets. Reuse an existing matching pin where possible. If a different edition is already in use, record the upgrade as a separate choice. Keep the kit tree intact so its file hashes still verify.
3. Load the three core stylesheets in the order shown by the starter. Adapt one existing screen or wrapper to use kit classes and behavior. Keep the existing router, submission, validation and data handlers. Put product-specific CSS in the app’s own stylesheet. For framework-managed components, attach handlers when mounted and release listeners or open dialogs on unmount.
4. Compare that same task at phone and desktop widths in System, Light and Dark. Check the keyboard path, input errors, dialog return focus and data result. Use the result to guide the remaining screens. Record the chosen runtime edition, guide edition and intentional exceptions in the project brief.

## Choose a product appearance

Use Inter and the shared typography roles as the baseline. Follow the [font samples](https://evolutivex.com/design-system/typography/), [borders and corner radii](https://evolutivex.com/design-system/shape/), [spacing](https://evolutivex.com/design-system/spacing/), [icons](https://evolutivex.com/design-system/icons/) and [motion](https://evolutivex.com/design-system/motion/).

Start with the audience, task and device. Cite the evidence for colour and primary-action placement and record what still needs testing. If a project palette is undecided, show options on the same screen in light and dark for the owner to choose. The stable kit includes the website’s studio accents: cyan links, pink errors, lime warnings and mint success in dark mode, with deep contrast-safe counterparts in light mode. See the [Studio accents](https://evolutivex.com/design-system/colour/#product) reference. When using the review kit, load `visual-guide-8/studio-theme.css` after the kit stylesheets to apply the studio colours and switch theme without fading between text and background colours. The supplement includes the compact appearance control for the review kit as well.

For a different palette, load `visual-guide-8/product-accents.css` from the source bundle below after the kit tokens, then add `data-ex-accent="coast"` or `"orchard"` to the element with `data-ex-theme`. Omitting the accent uses Studio. Try each on the [colour page](https://evolutivex.com/design-system/colour/#product). You can start your own theme from these named roles. Keep a distinct warning/error/success meaning, visible text and focus in both themes. Preserve the kit’s button and field geometry, select-arrow clearance, modal margins and focus return, reading spacing and reduced-motion behavior.

## Get a recipe from the visual guide

Pin **visual-guide-8** for illustrated recipes, product accents, the [CSV importer](https://evolutivex.com/design-system/csv-import/), the [editable data grid](https://evolutivex.com/design-system/data-grid/) and [seven chart types](https://evolutivex.com/design-system/charts/). The [source bundle](https://evolutivex.com/design-system/downloads/kit-source-visual-guide-8.json) contains the displayed HTML, styles and behaviour in its `files` map. Its SHA-256 is `68c0f612e918b6aa531363a87b37eeffd4f1841644eb86ffedf32033bf207dde`. Each recipe in the [manifest](https://evolutivex.com/design-system/framework.json) names its required kit, styles and script. With MCP, use `find_components` for a recipe and `read_kit_file` with `edition: "guide"` for its markup or source files. Search “graph” for the chart recipes or “font” for typography. See [remaining catalogue priorities](https://evolutivex.com/design-system/components/#gaps) before assuming a component ships in this edition.

For a new installation, extract the [visual guide ZIP](https://evolutivex.com/design-system/downloads/evolutive-x-visual-guide-8.zip) beside the project's `vendor/` directory. [ZIP checksum](https://evolutivex.com/design-system/downloads/evolutive-x-visual-guide-8.zip.sha256). If you are using the JSON source bundle, download it beside `vendor/` and run the following to verify and extract its files into a new `visual-guide-8/` directory.

```sh
python3 - <<'PYGUIDE'
from pathlib import Path
import json, hashlib
bundle = Path('kit-source-visual-guide-8.json').read_bytes()
if hashlib.sha256(bundle).hexdigest() != '68c0f612e918b6aa531363a87b37eeffd4f1841644eb86ffedf32033bf207dde':
    raise SystemExit('Guide supplement checksum mismatch')
root = Path('visual-guide-8')
entries = json.loads(bundle)['files']
if not all(Path(name).as_posix() == name and not Path(name).is_absolute() and '..' not in Path(name).parts for name in entries):
    raise SystemExit('Invalid guide path')
root.mkdir()
for name, content in entries.items():
    destination = root / name
    destination.parent.mkdir(parents=True, exist_ok=True)
    destination.write_bytes(content.encode('utf-8'))
PYGUIDE
```

Search MCP by task, such as “multi-step form”, “date range” or “bulk selection”, or by a chart or grid name. Use `read_kit_file` with `edition: "guide"` to retrieve its `source`, `styles`, `script` and listed `dependencies`. A source response contains at most 100 lines. When `nextLine` is present, pass it as `startLine` for the same file. Join the returned `source` chunks with one newline until `nextLine` is null, then compare the file with its SHA-256 in the manifest. Preserve the filenames and relative paths in the supplement. [Try the editable grid](https://evolutivex.com/design-system/data-grid/) · [Compare chart types](https://evolutivex.com/design-system/charts/).

- [App-wide search](https://evolutivex.com/design-system/app-search/): load `app-search.css` and `app-search.mjs`, then connect `enhanceAppSearch(root, {search, onOpen})` to your authorised results and destinations. A search callback receives `query`, `scope` and an abort `signal`. It returns records with an ID, title, type and identifying detail. The default demo keeps recent searches in that component’s memory and lets the person clear them.
- [Notification inbox](https://evolutivex.com/design-system/notification-inbox/): load `notification-inbox.css` and `notification-inbox.mjs`, then connect `enhanceNotificationInbox(root, {items, onReadChange})`. Your read callback receives `ids`, the desired `read` state and an abort `signal`. Confirm the whole change after your service saves it. Reject failures so the user can retry. Items can supply a destination in `href` and a named `linkLabel`.
- [CSV import](https://evolutivex.com/design-system/csv-import/): use the markup and `csv-import.css`, with `csv-import.mjs` and `csv-data.mjs` side by side. The preview reads UTF-8 comma-separated files in the browser. Configure destination fields with `enhanceCsvImport(root, {fields, onImport})`. On confirmation your callback receives the corrected `rows`, an abort `signal` and a reusable `importId`. On the server, validate and accept the whole batch once per import ID. A rejected save leaves the preview available for correction or retry.
- [Multi-step form](https://evolutivex.com/design-system/step-form/): copy the form, load `step-form.css` and `step-form.mjs`, and connect submission to your product. Back and review keep the entered answers.
- [Date range](https://evolutivex.com/design-system/date-range/): load `date-range.css` and `date-range.mjs`. Listen for `ex-date-range-change` to update results using the inclusive start and end calendar dates.
- [Bulk actions](https://evolutivex.com/design-system/bulk-actions/): load `bulk-actions.css` and `bulk-actions.mjs`. Keep the selection scope visible and connect archive and undo to the same application records.
- The bar, line, grouped-bar and multi-line charts take a labelled table. Load `charts.css` and `charts.mjs`. For changing data, update the values and takeaways and call `enhanceChart(figure)`.
- Pie, radar and scatter charts use `more-charts.css` and `more-charts.mjs`, with `charts.css` and `charts.mjs` beside them. Update the caption, summary and rows together; call `enhanceDataChart(figure)` after replacing rows. Pie requires nonnegative parts of a positive whole. Radar needs comparable scores on a fixed scale. Scatter uses paired numeric observations.
- The editable grid uses `data-grid.css` and `data-grid.mjs`. Copy the table schema and supply unique row IDs. The demo edits live in memory. For persistence, call `enhanceDataGrid(root, {onSave})` and return a promise for the application's save. Your callback receives `rowId`, `field`, `previousValue`, `value` and an abort signal. Reject it on failure to retain the draft for retry. Connect your own validation, access checks and storage in the application.
- Keep exact-value tables available in both appearances. Mark unavailable chart values with `data-ex-missing`; use `<data value="1200">1,200</data>` for formatted numeric cells.

For recipes that list `component-atlas.js`, load `visual-guide-8/component-atlas.css` after the kit stylesheets and use `<script type="module" src="./visual-guide-8/component-atlas.js"></script>`. Mount the chosen recipe’s HTML inside your page, give repeated instances unique IDs and wire actions to your product. For review-only recipes load the `kit_styles` paths from `vendor/evolutive-x/`. The helper imports the sibling runtime from `../vendor/evolutive-x/core/`. In a bundled app serve this layout as static ES modules or adapt imports for your build. A 404 page needs real recovery destinations and a server/router that returns HTTP 404. Use `visual-guide-8/guide-icons.svg` for navigation and the [pinned interface icons](https://evolutivex.com/design-system/icons/) for controls.

## Connect the components

- Load `vendor/evolutive-x/core/tokens.css`, `components.css` and `fonts.css` from that core directory. Keep the relative paths to the icons and fonts. Put product CSS after those files.
- Use the starter's `.ex-theme` boundary and `data-ex-theme` choice of `system`, `light` or `dark`. Use semantic tokens for text, borders, focus and surfaces.
- Use `<button type="button" class="ex-button ex-button--primary">Save</button>` for a primary action. Bind it to the real product operation.
- Use a labelled native select inside `.ex-select` with `select.ex-input` and an `aria-hidden="true"` `.ex-select-icon`. Keep space for the arrow at the inline edge.
- Open a labelled `dialog.ex-dialog` with `openDialog` imported from `./vendor/evolutive-x/core/dialog.js`. `const close = openDialog(dialog, {initialFocus: field, returnFocus: opener})` returns a function. Call `close()` on Cancel, successful save or unmount. Native Escape closes the dialog and restores focus through its close event. Check the modal on short screens.
- Read the [component manifest](https://evolutivex.com/design-system/framework.json) for each component's compatible edition, exact source file and working example. The [review kit](https://evolutivex.com/design-system/downloads/evolutive-x-web-kit-0.4.0-rc.2-public.1.zip) has SHA-256 `a7f1047f1d0b9eaca6c4a34b571c72891a3fbbf824bf2113ec1b475362afd937` and includes `API.md` and `examples/` for its optional modules.

## Check the product

Use short, familiar words. Remove taglines, repeated hints and labels that restate an action. Use a named icon for a familiar action such as appearance, a switch for an immediate on/off setting, and a select for a longer list. Keep visible words for an unfamiliar action or an important consequence. Use the `--ex-space-*` tokens in `core/tokens.css`. For text-heavy pages, copy the [article stylesheet](https://evolutivex.com/design-system/assets/prose.css) alongside your product styles, load it after the core CSS and apply `ex-prose` to the container of your paragraphs, headings and lists. It supplies 32px before a new subheading, 12px before its first paragraph and 8px between list items. Use `ex-notice` for a notice placed immediately before a title. Make the main task visible. Preserve visible labels, errors, recovery and empty states. Check both themes, keyboard navigation, focus, enlarged text, long labels and narrow screens. Test the actual product's data boundaries, permissions and failure states. Record manual screen-reader, phone and user checks that still need to happen.

## Reuse and rights

The MIT licence covers the reusable code and authored interface icons. Keep `LICENSE` and `NOTICE.md`. The self-hosted Inter fonts use the SIL Open Font License. Keep `core/fonts/OFL.txt` and `core/fonts/provenance.json`. Use the product's own identity. The Evolutive X name, wordmark and logo are reserved.
