WIP
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ const style: Style = {
|
|||||||
border: {
|
border: {
|
||||||
type: "solid",
|
type: "solid",
|
||||||
data: {
|
data: {
|
||||||
color: "#916655",
|
color: "#80634d",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
coords: {
|
coords: {
|
||||||
|
|||||||
41
src/board/styles-board/mono/mono.ts
Normal file
41
src/board/styles-board/mono/mono.ts
Normal 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;
|
||||||
@@ -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",
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user