# driveworks/integrationthemeexample-customloadingstates architecture

> Architecture diagram of the GitHub repository driveworks/integrationthemeexample-customloadingstates, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-18). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/driveworks/integrationthemeexample-customloadingstates
- Repository: https://github.com/driveworks/integrationthemeexample-customloadingstates

## Overview

This repository is a DriveWorks Live integration-theme example, not a standalone application: it demonstrates CSS-customized loading states in Forms and a custom loading element for a particular Client. The documented flow is to configure the example, open its HTML pages in a browser, and render Forms through a running DriveWorks Live integration theme. The README identifies which styles belong to each loading-state example; HTML and CSS implementation details were not sampled, so the relationships below reflect documented behavior only.

Main entry points: [`index.html`](https://github.com/driveworks/integrationthemeexample-customloadingstates/blob/main/index.html) (Loading examples), [`custom-loading-element.html`](https://github.com/driveworks/integrationthemeexample-customloadingstates/blob/main/custom-loading-element.html) (Custom element example), [`config.js`](https://github.com/driveworks/integrationthemeexample-customloadingstates/blob/main/config.js) (Theme configuration), [`styles/force-loading-states.css`](https://github.com/driveworks/integrationthemeexample-customloadingstates/blob/main/styles/force-loading-states.css) (Force loading styles)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_examples["Browser examples"]
  node_main_example["Loading examples<br/>[index.html]"]
  node_custom_element["Custom element example"]
end

subgraph group_styles["Loading state styles"]
  node_force_styles["Force loading styles"]
  node_inline_styles["Inline loading styles"]
  node_form_styles["Form loading styles"]
  node_preview_styles["Preview loading styles"]
end

subgraph group_integration["DriveWorks integration"]
  node_config["Theme configuration<br/>[config.js]"]
end

node_browser(("Browser user"))
node_driveworks["DriveWorks Live"]

node_browser -->|"opens"| node_main_example
node_browser -->|"opens"| node_custom_element
node_main_example -->|"demonstrates"| node_force_styles
node_main_example -->|"demonstrates"| node_inline_styles
node_main_example -->|"demonstrates"| node_form_styles
node_main_example -->|"demonstrates"| node_preview_styles
node_config -->|"configures connection"| node_driveworks
node_custom_element -->|"renders Forms through"| node_driveworks

click node_main_example "https://github.com/driveworks/integrationthemeexample-customloadingstates/blob/main/index.html"
click node_custom_element "https://github.com/driveworks/integrationthemeexample-customloadingstates/blob/main/custom-loading-element.html"
click node_config "https://github.com/driveworks/integrationthemeexample-customloadingstates/blob/main/config.js"
click node_force_styles "https://github.com/driveworks/integrationthemeexample-customloadingstates/blob/main/styles/force-loading-states.css"
click node_inline_styles "https://github.com/driveworks/integrationthemeexample-customloadingstates/blob/main/styles/inline-loading-states.css"
click node_form_styles "https://github.com/driveworks/integrationthemeexample-customloadingstates/blob/main/styles/form-loading-states.css"
click node_preview_styles "https://github.com/driveworks/integrationthemeexample-customloadingstates/blob/main/styles/preview-loading-states.css"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_main_example,node_custom_element,node_browser toneBlue
class node_force_styles,node_inline_styles,node_form_styles,node_preview_styles toneAmber
class node_config toneMint
class node_driveworks toneIndigo
```

## Components

### Browser examples

- [Loading examples](https://github.com/driveworks/integrationthemeexample-customloadingstates/blob/main/index.html): `index.html`
- [Custom element example](https://github.com/driveworks/integrationthemeexample-customloadingstates/blob/main/custom-loading-element.html): `custom-loading-element.html`

### Loading state styles

- [Force loading styles](https://github.com/driveworks/integrationthemeexample-customloadingstates/blob/main/styles/force-loading-states.css): `styles/force-loading-states.css`
- [Inline loading styles](https://github.com/driveworks/integrationthemeexample-customloadingstates/blob/main/styles/inline-loading-states.css): `styles/inline-loading-states.css`
- [Form loading styles](https://github.com/driveworks/integrationthemeexample-customloadingstates/blob/main/styles/form-loading-states.css): `styles/form-loading-states.css`
- [Preview loading styles](https://github.com/driveworks/integrationthemeexample-customloadingstates/blob/main/styles/preview-loading-states.css): `styles/preview-loading-states.css`

### DriveWorks integration

- [Theme configuration](https://github.com/driveworks/integrationthemeexample-customloadingstates/blob/main/config.js): `config.js`

### Other components

- **Browser user**
- **DriveWorks Live**

## Connections

- Browser user → Loading examples: opens (evidence: `README.md`)
- Browser user → Custom element example: opens (evidence: `README.md`)
- Loading examples → Force loading styles: demonstrates (evidence: `README.md`)
- Loading examples → Inline loading styles: demonstrates (evidence: `README.md`)
- Loading examples → Form loading styles: demonstrates (evidence: `README.md`)
- Loading examples → Preview loading styles: demonstrates (evidence: `README.md`)
- Theme configuration → DriveWorks Live: configures connection (evidence: `README.md`)
- Custom element example → DriveWorks Live: renders Forms through (evidence: `README.md`)
