Skip to content

Commit

Permalink
chore: update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
Suya1671 committed May 5, 2024
1 parent 9c855ed commit ae72392
Show file tree
Hide file tree
Showing 7 changed files with 31 additions and 8 deletions.
6 changes: 3 additions & 3 deletions deno.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"imports": {
"std/": "https://deno.land/std@0.204.0/",
"culori/fn": "https://cdn.skypack.dev/culori@3.2.0/fn?dts",
"std/": "https://deno.land/std@0.224.0/",
"culori/fn": "npm:culori@4",
"mustache": "https://deno.land/x/[email protected]/mod.ts",
"yaml": "https://esm.sh/yaml@2.3.4"
"yaml": "https://esm.sh/yaml@2.4.2"
},
"importMap": "deno.jsonc",
"tasks": {
Expand Down
21 changes: 19 additions & 2 deletions deno.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 5 additions & 3 deletions dev/colourChecker.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
// @deno-types="npm:@types/culori"
import { formatCss as rgb } from "culori/fn";
import { dark } from "../palletes.ts";

const colours = Object.entries(dark);
const foregroundColours = colours.map((
[name, colour],
// @ts-expect-error this works due to the ??
[name, colour]
// @ts-expect-error well yes typescript this could be null thats why the ?? is there
) => [name, rgb(colour.foreground ?? colour)]);

const backgroundColours = colours.map((
[name, colour],
// @ts-expect-error this works due to the ??
// @ts-expect-error well yes typescript this could be null thats why the ?? is there
) => [name, rgb(colour.background ?? colour)]);

const colourRows = backgroundColours.map(([name, background]) => {
Expand Down
1 change: 1 addition & 0 deletions exporters/base16.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { fromObjectEntries, objectEntries } from "../lib.ts";
import { Base16, Palette } from "../palletes.ts";
// @deno-types="npm:@types/culori"
import { formatCss } from "culori/fn";

export const toBase16 = (
Expand Down
1 change: 1 addition & 0 deletions exporters/css.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @deno-types="npm:@types/culori"
import { formatCss } from "culori/fn";
import { HumanPalette } from "../palletes.ts";

Expand Down
1 change: 1 addition & 0 deletions exporters/hex.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @deno-types="npm:@types/culori"
import { formatHex } from "culori/fn";
import { HumanPalette } from "../palletes.ts";

Expand Down
1 change: 1 addition & 0 deletions palletes.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @deno-types="npm:@types/culori"
import { useMode, modeOklch, type Oklch } from "culori/fn";

const oklch = useMode(modeOklch);
Expand Down

0 comments on commit ae72392

Please sign in to comment.