🚀svg dark mode

This commit is contained in:
platane
2021-01-12 00:56:50 +01:00
parent a3f79b9ca4
commit 1ebe73cf90
7 changed files with 61 additions and 29 deletions

View File

@@ -20,7 +20,7 @@ const lerp = (k: number, a: number, b: number) => (1 - k) * a + k * b;
export const createSnake = (
chain: Snake[],
{ sizeCell, colorSnake, sizeDot }: Options,
{ sizeCell, sizeDot }: Options,
duration: number
) => {
const snakeN = chain[0] ? getSnakeLength(chain[0]) : 0;
@@ -61,7 +61,7 @@ export const createSnake = (
const styles = [
`.s{
shape-rendering:geometricPrecision;
fill:${colorSnake};
fill:var(--cs);
animation: none linear ${duration}ms infinite
}`,