Skip to content

VSCode: Need a light mode #68

@Artoria2e5

Description

@Artoria2e5

Some of us are used to using VSCode in a light mode. Perhaps a light-based bioSyntax theme can be made too?

Since we are going to be using JS, we can probably invert the lightness (but not the hue and chroma) dynamically to make a color suitable for light mode:

import {
  useMode,
  modeOklab,
  formatHex,
  toGamut,
  parseHex
} from 'culori';

const oklab = useMode(modeOklab);
const rgb = toGamut('rgb');

function hexify(x) {
  return formatHex(rgb(x))
}

function invL(x) {
  const okx = oklab(x)
  okx.l = 1 - okx.l
  return okx
}

console.log(hexify(invL(parseHex("#663399"))))

This way no additional columns need to be added to the xls.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions