Styling
Global Styling
The global styling of your app is accessible from the Palette
button on the top bar of the editor. You can update the primary and the content colors, the shades will automatically be generated.
Note that you can match the editor colors with your app colors by using the match editor option. This can make the building easier for your eyes.

Element Styling
Each element of your project can be styled individually in the inspector, under the style tab. This allows you to customize the appearance of each component of your application, such as text, images, or buttons.
To add a style category (e.g., color, typography, size), simply click the + button in the style tab. You can enable or disable each property by clicking on its name.

Note: All styling rules available in Luna Park correspond to the CSS rules found in web standards.
Design Tokens
Luna Park also allows the use of design tokens. These are reusable values that ensure a consistent style throughout the application. For example, you can define a primary color and use it everywhere in your application. This makes style management easier and allows for quick global changes.

Note: For now, design tokens are fixed. It is not yet possible to modify or add them in the editor.
To use a design token:
- Hover over the value you want to change.
- Click the link icon to switch to design token selection mode.
- Select the design token you want to use.
Style Variables
It is also possible to use variables to style your components. These variables can be used in the style properties of your components. This allows you to create dynamic styles that change based on the state of your application.
To use a variable in a property of your component:
- Hover over the value you want to link to a variable.
- Click the lightning icon to switch to variable selection mode.
- Select the variable you want to use.
Note: Only variables matching the expected type for this property will be available in the list. For example, a numeric variable will only appear for a property expected to be a number.