---
title: "Style Customization"
slug: ovhcloud-design-system-customize-style-customization
category: generic
type: overview
version: 20.0.0
tokens: 631
source: https://ovh.github.io/design-system/v20.0.0/llms/ovhcloud-design-system-customize-style-customization.txt
---
# Style Customization
Although ODS components comes with the expected designs, it is sometime useful to customize the rendering of a component
to fit your context.
Here we'll describe different ways to customize an ODS component.
## Apply style directly on the component
The ODS component host behave like any other React element, so you can apply a class directly to it.
For example, if you want to display a vertical list of `Link`, you can override the inline default display:
```html
My link 1
My link 2
```
> As there is no shadow DOM anymore, all of the component DOM can be targeted through CSS selectors.
> It is advised to not rely on cascading selector, as the DOM structure may evolve from one version to another.
>
> To ensure reliable CSS, use a specific className on the component you want to customize.
>
> If you want to specifically target underneath elements, you can rely on some [data attribute](https://developer.mozilla.org/en-US/docs/Web/HTML/How_to/Use_data_attributes#css_access), we'll update the documentation about those soon.
## Reuse existing ODS style
In some cases where you cannot use an ODS component, you may want one of your own components to look like an ODS component
(for example, when using an external library that doesn't allow custom templating).
We did expose a bunch of [Sass](https://sass-lang.com) mixins that allows you to easily apply the ODS style to your own elements.
For example, if you need to make an anchor tag looks like a `Link`:
```scss
@use '@ovhcloud/ods-react/style' as ods;
.my-link {
@include ods.ods-link();
}
```
```html
```
## CSS variables
All ODS components are using common design tokens, that are accessible through [CSS variables](https://developer.mozilla.org/en-US/docs/Web/CSS/Using_CSS_custom_properties).
We do advise to reuse those variables on your own style, this way your application follows the theme it loads, as the ODS components do (see [Themes](https://ovh.github.io/design-system/v20.0.0/guides/themes)).
You can find the whole list on the [Design Tokens](https://ovh.github.io/design-system/v20.0.0/guides/design-tokens) documentation page.
Example of CSS variables:
```html