API to get user's website/app theme in-game

As a Roblox developer, it is currently too hard to automatically apply themes to UI based on a users’ preference. If Roblox added an API to get the user’s app/website color theme, it would allow games to offer a seamless experience between the app/website and game.

Currently, if you want to have both dark and light themes in your game, you have to choose one to be the default and add a setting to switch themes. Obviously, not every game wants to include multiple UI themes, but this feature would improve user experience in games that do. Many platforms, such as most major OS’s like iOS, Android, Windows, and so on allow apps to get the user’s device theme. A similar system in Roblox would be useful.

An example of how it could work, as either a function or a property:

Function
    Player:GetTheme() -- returns Enum.Theme: Dark or Light
Property
    Player.Theme -- Enum.Theme

A really bad example:
image image

If Roblox is able to address this issue, it would improve my development experience because I could offer both dark and light UI themes in my game and have it automatically accommodate the user’s preference, improving user experience.

46 Likes