Skip to content

feat(hooks): add useSystemTheme hook for system color scheme detection#8186

Open
somyabhalani wants to merge 6 commits into
palantir:developfrom
somyabhalani:feat/use-system-theme
Open

feat(hooks): add useSystemTheme hook for system color scheme detection#8186
somyabhalani wants to merge 6 commits into
palantir:developfrom
somyabhalani:feat/use-system-theme

Conversation

@somyabhalani

Copy link
Copy Markdown

Summary

Adds a new useSystemTheme hook that detects the user's system color scheme
preference and automatically updates when the preference changes.

Usage

import { useSystemTheme } from "@blueprintjs/core";

const theme = useSystemTheme(); // "dark" | "light"

Checklist

  • Includes tests
  • Update documentation

@palantirtech

Copy link
Copy Markdown
Member

Thanks for your interest in palantir/blueprint, @somyabhalani! Before we can accept your pull request, you need to sign our contributor license agreement - just visit https://cla.palantir.com/ and follow the instructions. Once you sign, I'll automatically update this pull request.

@changelog-app

changelog-app Bot commented Jun 24, 2026

Copy link
Copy Markdown

Generate changelog in packages/core/changelog/@unreleased

Type (Select exactly one)

  • Feature (Adding new functionality)
  • Improvement (Improving existing functionality)
  • Fix (Fixing an issue with existing functionality)
  • Break (Creating a new major version by breaking public APIs)
  • Deprecation (Removing functionality in a non-breaking way)
  • Migration (Automatically moving data/functionality to a new system)

Description

feat(hooks): add useSystemTheme hook for system color scheme detection

Check the box to generate changelog(s)

  • Generate changelog entry

@somyabhalani

somyabhalani commented Jun 25, 2026

Copy link
Copy Markdown
Author

Generate changelog in packages/core/changelog/@unreleased

Type (Select exactly one)

  • Feature (Adding new functionality)
  • Improvement (Improving existing functionality)
  • Fix (Fixing an issue with existing functionality)
  • Break (Creating a new major version by breaking public APIs)
  • Deprecation (Removing functionality in a non-breaking way)
  • Migration (Automatically moving data/functionality to a new system)

Description feat(hooks): add useSystemTheme hook for system color scheme detection

Check the box to generate changelog(s)

  • Generate changelog entry

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants