1.2.3 • Published 4 years ago

@datadog/vis-style v1.2.3

Weekly downloads
-
License
-
Repository
-
Last release
4 years ago

@datadog/vis-style

This package offers Datadog styles (color palettes, design system token colors, etc), including variants for dark mode.

Install

yarn add @datadog/vis-style

Usage

API

import vega from "vega";
import { COLOR_PALETTES } from "@datadog/vis-style";

// To register all color palettes for usage with Vega-Lite
COLOR_SCHEMES.forEach(({ name, scheme }) => {
  vega.scheme(name, scheme);
});

To use individual palettes

import { COLOR_PALETTES } from "@datadog/vis-style";

// To register all color palettes for usage with Vega-Lite
const palette = COLOR_PALETTES.find((p) => p.name === "dd-classic-line");

// Colors can be found in palette.scheme as a list of color identifiers, or a color interpolation function.

See package interactive docs for visualizations of all available color swatches.

1.2.4-next.0

4 years ago

1.2.3

4 years ago

1.2.3-next.13

4 years ago

1.2.3-next.10

4 years ago

1.2.3-next.11

4 years ago

1.2.3-next.12

4 years ago

1.2.3-next.9

4 years ago

1.2.3-next.8

4 years ago

1.2.3-next.6

4 years ago

1.2.3-next.7

4 years ago

1.2.3-next.5

4 years ago

1.2.3-next.4

4 years ago

1.2.3-next.3

4 years ago

1.2.3-next.2

4 years ago

1.2.3-next.1

4 years ago

1.2.3-next.0

4 years ago

1.2.2

4 years ago

1.2.2-next.2

4 years ago

1.2.2-next.5

4 years ago

1.2.2-next.4

4 years ago

1.2.2-next.3

4 years ago

1.2.2-next.1

4 years ago

1.2.1

4 years ago

1.2.1-next.2

4 years ago

1.2.1-next.3

4 years ago

1.2.2-next.0

4 years ago

1.2.1-next.1

4 years ago

1.2.0

4 years ago

1.2.1-next.0

4 years ago

1.2.0-next.6

4 years ago

1.2.0-next.7

4 years ago

1.2.0-next.5

4 years ago

1.2.0-next.2

4 years ago

2.0.0-next.2

4 years ago

1.2.0-next.1

4 years ago

1.2.0-next.4

4 years ago

1.2.0-next.3

4 years ago

2.0.0-next.1

4 years ago

2.0.0-next.0

4 years ago