Skip to content

Commit 4dd4191

Browse files
feat(config): create config module for constants and styles
Extract configuration values from main.py into dedicated modules: - Create src/config/__init__.py - Create src/config/constants.py for application constants - Create src/config/styles.py for UI style constants 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent ea748b5 commit 4dd4191

File tree

3 files changed

+38
-0
lines changed

3 files changed

+38
-0
lines changed

src/config/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Config package initialization

src/config/constants.py

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# All application constants
2+
3+
# Text constants
4+
HEADER_TEXT = "COMMIT !BINGO"
5+
HEADER_TEXT_COLOR = "#0CB2B3"
6+
FREE_SPACE_TEXT = "FREE MEAT"
7+
FREE_SPACE_TEXT_COLOR = "#FF7f33"
8+
9+
# Colors
10+
TILE_CLICKED_BG_COLOR = "#100079"
11+
TILE_CLICKED_TEXT_COLOR = "#1BEFF5"
12+
TILE_UNCLICKED_BG_COLOR = "#1BEFF5"
13+
TILE_UNCLICKED_TEXT_COLOR = "#100079"
14+
HOME_BG_COLOR = "#100079"
15+
STREAM_BG_COLOR = "#00FF00"
16+
17+
# Fonts
18+
HEADER_FONT_FAMILY = "'Super Carnival', sans-serif"
19+
BOARD_TILE_FONT = "Inter"
20+
BOARD_TILE_FONT_WEIGHT = "700"
21+
BOARD_TILE_FONT_STYLE = "normal"
22+
23+
# Board configuration
24+
BOARD_SIZE = 5 # 5x5 grid
25+
FREE_SPACE_POSITION = (2, 2) # Middle of the board

src/config/styles.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# UI style-related constants
2+
3+
# CSS Classes
4+
BOARD_CONTAINER_CLASS = "flex justify-center items-center w-full"
5+
HEADER_CONTAINER_CLASS = "w-full"
6+
CARD_CLASSES = "relative p-2 rounded-xl shadow-8 w-full h-full flex items-center justify-center"
7+
COLUMN_CLASSES = "flex flex-col items-center justify-center gap-0 w-full"
8+
GRID_CONTAINER_CLASS = "w-full aspect-square p-4"
9+
GRID_CLASSES = "gap-2 h-full grid-rows-5"
10+
ROW_CLASSES = "w-full"
11+
LABEL_SMALL_CLASSES = "fit-text-small text-center select-none"
12+
LABEL_CLASSES = "fit-text text-center select-none"

0 commit comments

Comments
 (0)