Skip to content

Add light theme #413

@joelostblom

Description

@joelostblom

The current default theme is light on light background and dark on dark background. There is currently a dark theme that forces plots to be dark even on light backgrounds, but there doesn't seem to be an equivalent to force a light theme on a dark background. I can make a PR based on https://github.com/vega/vega-themes/blob/next/src/theme-dark.ts if this addition would be welcome. For the three colors needed to be specified, I am thinking it would be the following based on picking colors from the dark and light demo themes:

const lightColor = '#000';
const medColor = '#ddd';

const darkTheme: Config = {
  background: '#fff',

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions