WIP Update theme metadata and add license information

This commit is contained in:
Nate Butler
2022-10-20 15:32:13 -04:00
parent bd8509990a
commit fbfe8a2311
11 changed files with 53 additions and 18 deletions
+3 -3
View File
@@ -116,8 +116,8 @@ export function createTheme(
on500Ok: {
base: sample(ramps.green, 0.05),
hovered: sample(ramps.green, 0.1),
active: sample(ramps.green, 0.15)
}
active: sample(ramps.green, 0.15),
},
};
const borderColor = {
@@ -186,7 +186,7 @@ export function createTheme(
weight: fontWeights.normal,
},
"variable.special": {
color: sample(ramps.blue, 0.80),
color: sample(ramps.blue, 0.8),
weight: fontWeights.normal,
},
comment: {
+12 -4
View File
@@ -142,9 +142,13 @@ function buildStyleSet(
ramp: Scale,
backgroundBase: number,
foregroundBase: number,
step: number = 0.08,
step: number = 0.08
): StyleSet {
let styleDefinitions = buildStyleDefinition(backgroundBase, foregroundBase, step);
let styleDefinitions = buildStyleDefinition(
backgroundBase,
foregroundBase,
step
);
function colorString(indexOrColor: number | Color): string {
if (typeof indexOrColor === "number") {
@@ -172,7 +176,11 @@ function buildStyleSet(
};
}
function buildStyleDefinition(bgBase: number, fgBase: number, step: number = 0.08) {
function buildStyleDefinition(
bgBase: number,
fgBase: number,
step: number = 0.08
) {
return {
background: {
default: bgBase,
@@ -199,4 +207,4 @@ function buildStyleDefinition(bgBase: number, fgBase: number, step: number = 0.0
inverted: bgBase + step * 2,
},
};
}
}