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

# BuildContext - Theme Extensions

> Instantly retrieve your application's ThemeData, ColorScheme, and TextTheme with simple context getters, ensuring design consistency across your app.

<Steps titleSize="h3">
  <Step title="🖼️ Primary Access">
    <ResponseField name="theme" type="ThemeData">
      Retrieves the entire application's `ThemeData`. The top-level shortcut for any theme property.

      ```dart lines wrap theme={"theme":{"light":"github-light","dark":"github-dark-dimmed"}}
      final background = context.theme.scaffoldBackgroundColor;
      ```
    </ResponseField>

    <ResponseField name="colorScheme" type="ColorScheme">
      Retrieves the application's primary `ColorScheme`. Recommended for accessing semantic colors like `primary`, `error`, and `surface`.

      ```dart lines wrap theme={"theme":{"light":"github-light","dark":"github-dark-dimmed"}}
      Container(
        color: context.colorScheme.primary,
      );
      ```
    </ResponseField>
  </Step>

  <Step title="✒️ Typography & Icons">
    <ResponseField name="textTheme" type="TextTheme">
      Retrieves the application's primary `TextTheme`. Provides quick access to standard styles (e.g., `headline`, `title`, `body`).

      ```dart lines wrap theme={"theme":{"light":"github-light","dark":"github-dark-dimmed"}}
      Text(
        "Welcome",
        style: context.textTheme.headlineLarge,
      );
      ```
    </ResponseField>

    <ResponseField name="iconTheme" type="IconThemeData">
      Retrieves the application's primary `IconThemeData`. Use this to find the default color and size for your icons.

      ```dart lines wrap theme={"theme":{"light":"github-light","dark":"github-dark-dimmed"}}
      Icon(
        Icons.star,
        color: context.iconTheme.color,
      );
      ```
    </ResponseField>
  </Step>
</Steps>
