@adyen/adyen-shared-web
v0.2.0
Published
Readme
adyen-shared-web
Shared utilities for the Adyen npm libraries.
Usage
Install the package and create a ThemeGenerator to generate and inject semantic CSS color variables for your application:
import { ThemeGenerator } from "@adyen/adyen-shared-web";
const themeGenerator = new ThemeGenerator();
themeGenerator.create({
primary: "#0066ff",
background: "#ffffff",
neutral: "#f2f4f7",
label: "#101828",
outline: "#98a2b3",
});Pass dark: true when generating a dark theme. Call themeGenerator.destroy() when the theme is no longer needed to remove the generated styles.
Publishing a new release on npm
- Tag the
mainbranch with the new semantic version:git tag vX.Y.Zandgit push origin vX.Y.Z - Create a new release on GitHub (GitHub will automatically populate this with a changelog based on merged PRs).
- (Optional) If you want this to be a pre-release, check the "Set as pre-release" option.
- Publish the release!
Staged publishing is intentionally disabled at the moment.
