Module:SiteColor

local p = {}

function p.getSiteColor(theme) local switch = { ["Generic"]       = "0, 153, 255",   -- ["NIWA"]          = "255, 128, 0",   -- ["Splatoon"]      = "170, 220, 0",   -- ["Splatoon 2"]    = "240, 60, 120",  -- ["Splatoon 3"]    = "235, 238, 61",  -- ["Octo Expansion"] = "174, 21, 102", -- ["Side Order"]    = "207, 133, 120", -- }   -- return the result, or use a default if unmatched. return switch[theme] or "192, 192, 192" -- #C0C0C0 end

-- Main function that calls getTheme with a passed-in theme argument function p.main(frame) -- The theme parameter is first positional, or nil if unspecified. local theme = frame:getParent.args[1] return p.getSiteColor(theme) end

return p