# @genesislcap/rapid-design-system

> Rapid Design System

Latest version **15.111.5** (published 2026-11-26) · SEE LICENSE IN license.txt license · 0 weekly downloads

## Install

```sh
npm install @genesislcap/rapid-design-system
pnpm add @genesislcap/rapid-design-system
yarn add @genesislcap/rapid-design-system
bun add @genesislcap/rapid-design-system
```

## Health

**Score 70/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; recently updated; high maintenance score; high quality score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 15.111.5 |
| Published | 2026-11-26 |
| First published | 2023-12-22 |
| Weekly downloads | 0 |
| License | SEE LICENSE IN license.txt |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 9 |
| Unpacked size | 2.3 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | genesisnpm |

## Links

- npm: https://www.npmjs.com/package/@genesislcap/rapid-design-system
- Repository: https://github.com/genesislcap/foundation-ui
- Homepage: https://github.com/genesislcap/foundation-ui#readme
- Issues: https://github.com/genesislcap/foundation-ui/issues
- npm.io page: https://npm.io/package/@genesislcap/rapid-design-system

## Dependencies (9)

- [@microsoft/fast-colors](https://npm.io/package/@microsoft/fast-colors.md) 5.3.1
- [@microsoft/fast-router](https://npm.io/package/@microsoft/fast-router.md) 0.4.8
- [@microsoft/fast-element](https://npm.io/package/@microsoft/fast-element.md) 1.14.0
- [@genesislcap/foundation-ui](https://npm.io/package/@genesislcap/foundation-ui.md) 15.111.5
- [@microsoft/fast-components](https://npm.io/package/@microsoft/fast-components.md) 2.30.6
- [@microsoft/fast-foundation](https://npm.io/package/@microsoft/fast-foundation.md) 2.50.0
- [@genesislcap/foundation-utils](https://npm.io/package/@genesislcap/foundation-utils.md) 15.111.5
- [@microsoft/fast-web-utilities](https://npm.io/package/@microsoft/fast-web-utilities.md) 5.4.1
- [@genesislcap/foundation-logger](https://npm.io/package/@genesislcap/foundation-logger.md) 15.111.5

## Recent versions

- 15.111.5 (latest) — 2026-11-26
- 15.111.5-FUI-2675.5 (FUI-2675) — 2026-11-27
- 15.111.3-GENC-2045.3 (GENC-2045) — 2026-11-26
- 15.111.2-forms-ai-prompt.2 (forms-ai-prompt) — 2026-11-26
- 15.111.1-GENC-1962.4 (GENC-1962) — 2026-11-25
- 15.105.0-GENC-2037.3 (GENC-2037) — 2026-11-24
- 15.103.2-GENC-2024.1 (GENC-2024) — 2026-11-24
- 15.102.1-GENC-2023.1 (GENC-2023) — 2026-11-23
- 15.101.0-public-telemetry.2 (public-telemetry) — 2026-11-20
- 15.96.2-GENC-1665.9 (GENC-1665) — 2026-11-17
- 15.96.3-GENC-1640.2 (GENC-1640) — 2026-11-17
- 15.95.1-TROWE-845.1 (TROWE-845) — 2026-11-12
- 15.94.0-HT-305.4 (HT-305) — 2026-11-12
- 15.94.1-alpha-6f4e61418f.0 (canary) — 2026-11-11
- 15.90.1-GENC-1829.3 (GENC-1829) — 2026-11-04
- … 2172 more at https://npm.io/package/@genesislcap/rapid-design-system/versions

## README

[![lerna](https://img.shields.io/badge/maintained%20with-lerna-cc00ff.svg)](https://lerna.js.org/)
[![TypeScript](https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg)](https://www.typescriptlang.org/)

# Genesis Rapid Design System

This package is a Design System (Rapid). It is built on top of the `foundation-ui` and provides a set of components that are ready to use without any additional configuration.

## [API Docs](./docs/api/index.md)

## Installation

To enable this module in your application, follow the steps below.

1. Add `@genesislcap/rapid-design-system` as a dependency in your `package.json` file. Whenever you change the dependencies of your project, ensure you run the `$ npm run bootstrap` command again. You can find more information in the [package.json basics](https://learn.genesis.global/secure/web/basics/package-json-basics/) page.

```json
{
  "dependencies": {
    "@genesislcap/rapid-design-system'": "latest"
  },
}
```

## Setting Up the Design System

The setup involves providing and registering Design System components from `rapid-design-system` or other places. Here's how you can do it:

### Providing the Design System & Registering All Components

Tipically, in the `components.ts` file (or your entry-point for app-level setups), you provide the design system using `provideDesignSystem` and register components against that design system. Here's an example:

```typescript
import { baseComponents, provideDesignSystem } from '@genesislcap/rapid-design-system';

provideRapidDesignSystem().register(baseComponents);
```

In the example above, `baseComponents` is a collection of components that are part of the same Design System. You can also register additional components if needed (even from other Design Systems, which will be prefixed with `rapid-` in this case).

### Registering Specific Components

If you want to register specific components, you can do so by importing them from the design system and registering them. Here's an example:

```typescript
import { rapidButton, rapidDesignSystemProvider, provideDesignSystem } from '@genesislcap/rapid-design-system';

provideRapidDesignSystem().register(
  /**
   * Design system provider element used to declaratively apply rapid config to every dom node in the host tree.
   */
  rapidDesignSystemProvider(),

  /**
   * Button component
   */
  rapidButton()
);
```

In the example above, `rapid-button` will be the only component registered in the Rapid Design System. YOu can also register multiple components at once:

```typescript
import { provideDesignSystem, rapidButton, rapidCard, rapidDesignSystemProvider, rapidnModal } from '@genesislcap/rapid-design-system';

provideDesignSystem().register(
  /**
   * Design system provider element used to declaratively apply rapid config to every dom node in the host tree.
   */
  rapidDesignSystemProvider(),

  /**
   * Components that will be registered in the Rapid Design System
   */
  rapidButton(),
  rapidCard(),
  rapidModal()
);
```

### Registering Third-Party Components

We provide a few "third-party" components that are not part of the Design System package. These can be registered in the same way as the other Design System components. Here's an example:

```typescript
import { foundationLayoutComponents } from '@genesislcap/foundation-layout';
import { baseComponents, provideDesignSystem } from '@genesislcap/rapid-design-system';
import { g2plotChartsComponents } from '@genesislcap/g2plot-chart';
import { gridComponents } from '@genesislcap/grid-pro';

provideDesignSystem().register(
  baseComponents,

  /**
   * Third-party components
   */
  foundationLayoutComponents,
  g2plotChartsComponents,
  gridComponents
);
```

The example above registers Rapid UI components from the Rapid Design System, Foundation Layout, G2Plot Charts, and Grid Pro.

## Theming `flexlayout-react`

[`flexlayout-react`](https://www.npmjs.com/package/flexlayout-react) is a third-party docking
layout that apps install themselves (it is not bundled into Foundation). The Rapid Design
System owns the **single source of truth** for how it looks, so the theme can never fall out
of sync across apps. The platform theme is a self-contained stylesheet — the vendored
`flexlayout-react` base theme **plus** the rapid token overrides — so apps should **never**
import `flexlayout-react`'s own stylesheets or copy the overrides locally.

Colours resolve from rapid design tokens, so render `flexlayout-react` under a
`<rapid-design-system-provider>` (CSS custom properties inherit across shadow boundaries).

```typescript
// Light DOM: install once at app bootstrap (injects into document, idempotent).
import { installRapidFlexLayoutReactStyles } from '@genesislcap/rapid-design-system';

installRapidFlexLayoutReactStyles();
```

```typescript
// Shadow DOM: adopt the shared, cached stylesheet into the shadow root that hosts <Layout>.
import { getRapidFlexLayoutReactStyleSheet } from '@genesislcap/rapid-design-system';

shadowRoot.adoptedStyleSheets = [...shadowRoot.adoptedStyleSheets, getRapidFlexLayoutReactStyleSheet()];
```

Also exported: `rapidFlexLayoutReactStyleText` (raw CSS string), `rapidFlexLayoutReactStyles`
(FAST `ElementStyles`), and `RAPID_FLEXLAYOUT_REACT_VERSION` (the `flexlayout-react` version
the theme targets — see the optional `flexlayout-react` peerDependency for the compatible
range).

### Maintaining the theme

- **Edit the look:** change `src/flexlayout-react-theme/flexlayout-react.overrides.css`, then
  run `pnpm --filter @genesislcap/rapid-design-system flexlayout:generate` (the package build
  does this automatically). The overrides are applied last, so they win over the base theme.
- **Bump `flexlayout-react`:** regenerate the theme in the same change. The build regenerates
  `flexlayout-react-theme.generated.ts` from the installed version, so a bump without a
  regenerate leaves the working tree dirty and fails CI's "Check working tree" gate.

## License

Note: this project provides front-end dependencies and uses licensed components listed in the next section; thus, licenses for those components are required during development. Contact [Genesis Global](https://genesis.global/contact-us/) for more details.

### Licensed components

Genesis low-code platform

---
_Source: https://npm.io/package/@genesislcap/rapid-design-system · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
