Styling/ USS Setup

Setting up a theme file

As always, you can refer to Game sample for an example setup.

1 - Theme File

If you want to be able to use LunaUI's style files along with your custom styles, you need to inherit from "CupkekGamesMainTheme".

setup_theme

2 - Panel Settings

Make sure your panel settings are using the correct Theme Style Sheet.

setup_panel_settings

3 - Overriding or expanding global styles

As shown in the image in step 1, colors, fonts, and dropdown style sheets have been added. These style sheets override the styles from the CupkekGamesMainTheme.

Text & font

For example, to style text and fonts, refer to Text.

Override dropdown colors

Define the base, primary and secondary colors