# Theming
The Fluent UI Theme is represented by a set of tokens. Each token resolves to a single value which can be assigned to a CSS property.
You can browse all the available tokens in **[Theme](./?path=/docs/theme-colors--docs)** section of the docs.
## How theme is applied
No matter what theme is used, the component styles are always the same. The only way to change the component styling is through theme tokens which can be used in style values.
Those tokens are resolved to CSS variables. The `FluentProvider` component is responsible for setting the values of the CSS variables in DOM and changing them when the theme changes. When the theme is switched, only the variables are changed, all styles remain the same.
Place a `` at the root of your app and pass a theme to the `theme` prop. The provider will render a `div` and set all tokens as CSS variables on that element. The provider also propagates CSS variables to React portals created with [Portal component](./?path=/docs/components-portal-portal--docs).
Import `tokens` to style a component using `makeStyles`
For more details, see [Styling components](?path=/docs/concepts-developer-styling-components--docs).
### Do not use CSS variables directly
**⚠ Never use theme CSS variables directly!** The CSS variables implementation of the theme is internal to the library. We might eventually decide to change the variable names, hash them or even use direct values instead of some variables. Always use the `tokens` to access the theme.
## Available themes
Fluent UI currently exports following themes:
- Web Light (`webLightTheme`)
- Web Dark (`webDarkTheme`)
- Teams Light (`teamsLightTheme`)
- Teams Dark (`teamsDarkTheme`)
- Teams High Contrast (`teamsHighContrastTheme`)
### High contrast themes
⚠ Do not use High Contrast themes! All Fluent UI components support Windows High Contrast mode automatically regardless of the active theme. Windows high contrast mode is the recommended high contrast platform for all customers using Fluent UI.
Hardcoded High Contrast themes are considered legacy, to be used only in applications which explicitly support those.
## Customizing the theme
Applications can customize a theme in multiple ways.
### Custom Brand ramp
The brand ramp is a color ramp going from dark to light colors:
A theme is derived from a brand ramp. To use a theme with a custom brand ramp, instead of importing a predefined theme, you can use theme factory functions.
The following factory functions are available:
- `createLightTheme()`
- `createDarkTheme()`
- `createTeamsDarkTheme()`
- `createHighContrastTheme()`
### Overriding existing tokens
⚠️ If the existing tokens do not fulfill your needs, you should talk to your designer instead of overriding tokens.
A theme is a flat object containing `{ [token name]: CSS value }` pairs. You can copy the object and overwrite any tokens you wish.
Theme serialization writes `<`, `>`, `{`, `}`, `;` and `\` in token names and values as CSS escapes, so a token cannot leave its declaration, the generated rule or the surrounding `