Skip to the content

Kazu数

Generate checked Sudoku and logic puzzles, read native rules and hints, and draw or embed playable boards.

Kazu is the Japanese word 数 for number. About the name

Contents

Reference · Hitori player

HITORI_PLAY_STYLEconstant

Scoped native Hitori board and player CSS.

Import it

import { HITORI_PLAY_STYLE } from "@johnmorrisdotca/kazu/hitori/play";

Definition

const HITORI_PLAY_STYLE: "\n.kh-root{color:var(--ks-ink,#1f2320);font:16px/1.5 var(--font,system-ui,sans-serif);max-width:680px;margin:auto}\n.kh-board{position:relative;width:100%;min-width:240px;touch-action:manipulation}\n.kh-cells{position:absolute;inset:0;display:grid;padding:2px}\n.kh-cell{background:transparent;border:0;min-width:0;min-height:0;padding:0;cursor:pointer;touch-action:manipulation}\n.kh-cell:focus-visible{outline:3px solid var(--accent,#b5452c);outline-offset:-4px;border-radius:4px}\n.kh-tools{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0}\n.kh-tools button{font:inherit;border:1px solid var(--ks-rule,#ddd6c6);border-radius:999px;min-height:44px;padding:0 14px;background:var(--ks-surface,#fbf8f1);color:var(--ks-ink,#1f2320);cursor:pointer}\n.kh-tools button:disabled{opacity:.45;cursor:default}.kh-status{min-height:1.5em}.kh-help{font-size:14px;opacity:.8}" = `
.kh-root{color:var(--ks-ink,#1f2320);font:16px/1.5 var(--font,system-ui,sans-serif);max-width:680px;margin:auto}
.kh-board{position:relative;width:100%;min-width:240px;touch-action:manipulation}
.kh-cells{position:absolute;inset:0;display:grid;padding:2px}
.kh-cell{background:transparent;border:0;min-width:0;min-height:0;padding:0;cursor:pointer;touch-action:manipulation}
.kh-cell:focus-visible{outline:3px solid var(--accent,#b5452c);outline-offset:-4px;border-radius:4px}
.kh-tools{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0}
.kh-tools button{font:inherit;border:1px solid var(--ks-rule,#ddd6c6);border-radius:999px;min-height:44px;padding:0 14px;background:var(--ks-surface,#fbf8f1);color:var(--ks-ink,#1f2320);cursor:pointer}
.kh-tools button:disabled{opacity:.45;cursor:default}.kh-status{min-height:1.5em}.kh-help{font-size:14px;opacity:.8}`

Examples

import { HITORI_PLAY_STYLE } from "@johnmorrisdotca/kazu/hitori/play";

console.log(HITORI_PLAY_STYLE.length);
857

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/kazu 2.1.0.