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

# useAuth0Themes

<ParamField body="useAuth0Themes()" type={<span><a href="/es/docs/libraries/acul/react-sdk/API-Reference/Types/interfaces/FlattenedTheme">FlattenedTheme</a></span>}>
  Hook de React para obtener las opciones del tema actual con la configuración consolidada desde el contexto de marca.

  ## Devuelve

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

  Objeto FlattenedTheme que contiene configuraciones de colores, fuentes, bordes, pageBackground y widgets, o `null` si no hay ninguna configuración de marca disponible

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

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

    if (!theme) {
      return <div>No hay ningún tema 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}%`,
          }}
        >
          Aplica el estilo con el tema de Auth0
        </h1>
        <button
          style={{
            backgroundColor: theme.colors.primary_button,
            borderRadius: theme.borders.button_border_radius,
          }}
        >
          Botón principal
        </button>
        <p>Color del texto del cuerpo: {theme.colors.body_text}</p>
      </div>
    );
  };
  ```
</ParamField>
