> ## Documentation Index
> Fetch the complete documentation index at: https://auth0.generaltranslation.app/llms.txt
> Use this file to discover all available pages before exploring further.

# useAuth0Themes

<ParamField body="useAuth0Themes()" type={<span><a href="/docs/libraries/acul/react-sdk/API-Reference/Types/interfaces/FlattenedTheme">FlattenedTheme</a></span>}>
  Hook React permettant d’obtenir les options de thème actuelles avec une configuration aplatie à partir du contexte de branding.

  ## Valeur de retour

  [`FlattenedTheme`](/docs/fr-CA/libraries/acul/react-sdk/API-Reference/Types/interfaces/FlattenedTheme) | `null`

  Objet FlattenedTheme contenant les couleurs, les polices, les bordures, `pageBackground` et les configurations de widgets, ou `null` si aucun branding n’est disponible.

  ```tsx Example theme={null}
  import React from 'react';
  import { useAuth0Themes } from '@auth0/auth0-acul-react';

  const ThemedComponent: React.FC = () => {
    const theme = useAuth0Themes();

    if (!theme) {
      return <div>Aucun thème disponible</div>;
    }

    return (
      <div
        style={{
          backgroundColor: theme.colors.primary_button,
          color: theme.colors.primary_button_label,
          borderRadius: theme.borders.button_border_radius,
        }}
      >
        <h1
          style={{
            fontWeight: theme.fonts.title.bold ? 'bold' : 'normal',
            fontSize: `${theme.fonts.title.size}%`,
          }}
        >
          Stylisé avec le thème Auth0
        </h1>
        <button
          style={{
            backgroundColor: theme.colors.primary_button,
            borderRadius: theme.borders.button_border_radius,
          }}
        >
          Bouton principal
        </button>
        <p>Couleur du texte du corps : {theme.colors.body_text}</p>
      </div>
    );
  };
  ```
</ParamField>
