-
Notifications
You must be signed in to change notification settings - Fork 31
Open
Description
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.