@blueprintjs/core
Version:
Core styles & components
14 lines • 633 B
JavaScript
/*
* (c) Copyright 2026 Palantir Technologies Inc. All rights reserved.
*/
import { useContext } from "react";
import { BlueprintThemeContext } from "./themeContext";
/** Returns overrides for the current subtree, or undefined when no valid theme is active. */
export function useBlueprintThemeTokens() {
return useContext(BlueprintThemeContext).tokens;
}
/** Returns the validated theme selected for this Blueprint version, preserving the input object's identity and extra fields. */
export function useBlueprintThemeValue() {
return useContext(BlueprintThemeContext).theme;
}
//# sourceMappingURL=useBlueprintTheme.js.map