modularizing

This commit is contained in:
Michael Freno
2025-10-31 17:42:30 -04:00
parent 747382614b
commit d947bc04e4
16 changed files with 6785 additions and 6593 deletions

16
flexlove/constants.lua Normal file
View File

@@ -0,0 +1,16 @@
-- Text size preset mappings (in vh units for auto-scaling)
local TEXT_SIZE_PRESETS = {
["2xs"] = 0.75, -- 0.75vh
xxs = 0.75, -- 0.75vh
xs = 1.25, -- 1.25vh
sm = 1.75, -- 1.75vh
md = 2.25, -- 2.25vh (default)
lg = 2.75, -- 2.75vh
xl = 3.5, -- 3.5vh
xxl = 4.5, -- 4.5vh
["2xl"] = 4.5, -- 4.5vh
["3xl"] = 5.0, -- 5vh
["4xl"] = 7.0, -- 7vh
}
return { TEXT_SIZE_PRESETS }