Something went wrong. Try again.
[heavy wip] dyscalculia/dyslexia friendly version of sudoku (react + rust wasm)
Something went wrong. Try again.
452 B · 22 lines
TypeScript
at main
1234567891011121314151617181920212223import styled from "styled-components";import type { SudokuCell } from "sudoku-rust";
export const indexes = [1, 2, 3, 4, 5, 6, 7, 8, 9] as const;
export const colours = [ "red", "orange", "yellow", "lightgreen", "darkgreen", "lightblue", "darkblue", "purple", "pink",] as const;
export const Colour = styled.div<{ $idx: SudokuCell }>` aspect-ratio: 1; width: 100%; background-color: ${({ $idx: i }) => colours[i - 1]};`;