From 215a3a18e4d591a8043471ed64be658b986c8685 Mon Sep 17 00:00:00 2001 From: Ava Gaiety W Date: Fri, 19 Sep 2025 20:38:51 -0600 Subject: [PATCH] latest color concept --- src/palette.ts | 24 ++++++++++++------------ src/preview/cli-snippet.ts | 10 +++++----- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/src/palette.ts b/src/palette.ts index 7bd84f6..f4009cf 100644 --- a/src/palette.ts +++ b/src/palette.ts @@ -49,10 +49,10 @@ export const text = new Color('Text', { h: hueLevels.cave, }) -export const red = new Color('Red', { +export const teal = new Color('Teal', { l: lightnessLevels.window, - c: chromaLevels.colorSecondary, - h: absDegrees(hueLevels.orange - hueOffset), + c: chromaLevels.colorPrimary, + h: hueLevels.teal, }) export const orange = new Color('Orange', { @@ -61,6 +61,12 @@ export const orange = new Color('Orange', { h: hueLevels.orange, }) +export const red = new Color('Red', { + l: lightnessLevels.window, + c: chromaLevels.colorSecondary, + h: absDegrees(hueLevels.orange - hueOffset), +}) + export const yellow = new Color('Yellow', { l: lightnessLevels.window, c: chromaLevels.colorSecondary, @@ -73,12 +79,6 @@ export const green = new Color('Green', { h: absDegrees(hueLevels.teal - hueOffset), }) -export const teal = new Color('Teal', { - l: lightnessLevels.window, - c: chromaLevels.colorPrimary, - h: hueLevels.teal, -}) - export const blue = new Color('Blue', { l: lightnessLevels.window, c: chromaLevels.colorSecondary, @@ -88,7 +88,7 @@ export const blue = new Color('Blue', { export const purple = new Color('Purple', { l: lightnessLevels.window, c: chromaLevels.colorSecondary, - h: absDegrees(hueLevels.teal + (hueOffset * 3)), + h: absDegrees(hueLevels.teal + (hueOffset * 5)), }) export default [ @@ -96,11 +96,11 @@ export default [ depths, stope, text, - red, orange, + teal, + red, yellow, green, - teal, blue, purple, ] diff --git a/src/preview/cli-snippet.ts b/src/preview/cli-snippet.ts index e038b39..65f0c0f 100644 --- a/src/preview/cli-snippet.ts +++ b/src/preview/cli-snippet.ts @@ -3,12 +3,12 @@ import { pit, depths, stope, text, teal, orange, purple, blue, green, yellow } f const bg = chalk.bgHex(pit.toHex()).hex(text.toHex()) const chalkDefinition = chalk.hex(teal.toHex()) -const chalkVariable = chalk.hex(orange.toHex()) -const chalkAssignments = chalk.hex(purple.toHex()) +const chalkVariable = chalk.hex(blue.toHex()) +const chalkAssignments = chalk.hex(green.toHex()) const chalkParenthesis = chalk.hex(stope.toHex()) -const chalkParameter = chalk.hex(yellow.toHex()) -const chalkType = chalk.hex(blue.toHex()) -const chalkReturn = chalk.hex(green.toHex()) +const chalkParameter = chalk.hex(orange.toHex()) +const chalkType = chalk.hex(yellow.toHex()) +const chalkReturn = chalk.hex(purple.toHex()) const chalkComment = chalk.italic.hex(depths.toHex()) export default () => {