1.0.3 • Published 2 months ago

@amazon-connect/theme v1.0.3

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
2 months ago

Amazon Connect SDK - Theme

The theme package defines and applies the Connect theme when developing with Cloudscape.

Installation

% npm install -P @amazon-connect/theme

Usage

The theme package must be imported once at the entry point of the application.

src/index.ts

import { applyConnectTheme } from "@amazon-connect/theme";

applyConnectTheme();

From then on cloudscape components and design tokens can be used directly from Cloudscape.

src/App.ts

import * as React from "react";
import Button from "@cloudscape-design/components/button";

export default () => {
  return <Button variant="primary">Button</Button>;
}
1.0.3

2 months ago

1.0.2

5 months ago