Skip to content

Commit 58b7e86

Browse files
committed
add tailwind parameters for dark mode in tictactoe
1 parent 78ffe57 commit 58b7e86

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

frontend/app/tictactoe/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ export default function TicTacToe() {
314314
}
315315

316316
return (
317-
<div className="flex flex-col items-center justify-center min-h-screen bg-white text-black p-4 sm:p-6">
317+
<div className="flex flex-col items-center justify-center min-h-screen bg-white text-black dark:bg-black dark:text-white p-4 sm:p-6">
318318
<h1 className="text-2xl sm:text-4xl font-bold mb-4 text-center">Tic - Tac - Toe</h1>
319319

320320
{error && <p className="mb-4 text-red-600">{error}</p>}
@@ -324,7 +324,7 @@ export default function TicTacToe() {
324324
)}
325325

326326
{gameData && (
327-
<div className="rounded-2xl border-4 border-black p-4 sm:p-8 w-full max-w-[400px] flex flex-col items-center justify-between">
327+
<div className="rounded-2xl border-4 border-black dark:border-white p-4 sm:p-8 w-full max-w-[400px] flex flex-col items-center justify-between">
328328
<div className="grid grid-cols-3 grid-rows-3 gap-2 w-full max-w-[192px] sm:w-48 sm:h-48 aspect-square">
329329
{board.map((cell, i) => (
330330
<button

0 commit comments

Comments
 (0)