There are two sets of similar but separate puzzles here; the white puzzle (with white cells) and the black puzzle (with black cells). Each puzzle is solved independently.
Each number is a "lightsaber". It may influence $n+1$ consecutive cells in any direction, horizontal, vertical, or diagonal, starting from itself. For instance, a $0$ lights up itself, a $1$ lights up itself and a neighbor, and a $7$ lits up its row, column, or diagonal, since this is an $8\times8$ grid. Solve each puzzle such that cells of the same color, and only the same color, is lighted. Lightsabers may not swipe outside of the puzzle's boundary.
Example: