This commit is contained in:
Maciej Caderek
2022-02-17 04:11:36 +01:00
parent 10cea708f0
commit 031d9f7495
6 changed files with 54 additions and 11 deletions

View File

@@ -16,11 +16,11 @@ import rainbowLight from "./gradient/rainbow-light";
// import kittens from "./pic/kittens"; // import kittens from "./pic/kittens";
export default { export default {
standard,
chesscom, chesscom,
lichess, lichess,
lila, lila,
peach, peach,
standard,
violet, violet,
avocado, avocado,
calm, calm,

View File

@@ -28,7 +28,7 @@ const style: Style = {
border: { border: {
type: "solid", type: "solid",
data: { data: {
color: "#916655", color: "#80634d",
}, },
}, },
coords: { coords: {

View File

@@ -0,0 +1,41 @@
import { Style } from "../../../types";
const style: Style = {
name: "Mono",
category: "mono",
background: {
type: "solid",
data: {
color: "transparent",
},
},
dark: {
type: "solid",
data: {
color: "#999",
},
},
light: {
type: "solid",
data: {
color: "#eee",
},
},
moveIndicator: {
type: "color",
data: "#0088ff66",
},
border: {
type: "solid",
data: {
color: "#444",
},
},
coords: {
onLight: "#999",
onDark: "#eee",
onBorder: "#eee",
},
};
export default style;

View File

@@ -12,29 +12,29 @@ const style: Style = {
dark: { dark: {
type: "solid", type: "solid",
data: { data: {
color: "#999", color: "#10ad88",
}, },
}, },
light: { light: {
type: "solid", type: "solid",
data: { data: {
color: "#eee", color: "#aae4d7",
}, },
}, },
moveIndicator: { moveIndicator: {
type: "color", type: "color",
data: "#0088ff66", data: "#ffff0055",
}, },
border: { border: {
type: "solid", type: "solid",
data: { data: {
color: "#444", color: "#00735a",
}, },
}, },
coords: { coords: {
onLight: "#999", onLight: "#00735a",
onDark: "#eee", onDark: "#d4fff5",
onBorder: "#eee", onBorder: "#bbfaec",
}, },
}; };

View File

@@ -8,7 +8,7 @@ const mobile = isMobile();
const boardConfig: BoardConfig = { const boardConfig: BoardConfig = {
size: 1024, size: 1024,
tiles: 8, tiles: 8,
boardStyle: "calm", boardStyle: "standard",
piecesStyle: "tatiana", piecesStyle: "tatiana",
showBorder: !mobile, showBorder: !mobile,
showExtraInfo: true, showExtraInfo: true,

View File

@@ -63,7 +63,9 @@ const changeHSL = (
const [r, g, b] = chunk( const [r, g, b] = chunk(
colorHex.length === 4 ? 1 : 2, colorHex.length === 4 ? 1 : 2,
colorHex.slice(1).split("") colorHex.slice(1).split("")
).map((x) => parseInt(x.join(""), 16)); ).map((x) => {
return parseInt(x.join(""), 16);
});
let [h, s, l] = rgb2hsl(r, g, b); let [h, s, l] = rgb2hsl(r, g, b);
const absDelta = Math.abs(deltaH); const absDelta = Math.abs(deltaH);