"use strict";

import { useContext } from 'react';
import { BloomThemeContext } from "./BloomThemeProvider.js";
export function useTheme() {
  const ctx = useContext(BloomThemeContext);
  if (!ctx) {
    throw new Error('useTheme must be used within a <BloomThemeProvider>');
  }
  return ctx.theme;
}
export function useThemeColor(colorKey) {
  const theme = useTheme();
  return theme.colors[colorKey];
}
export function useBloomTheme() {
  const ctx = useContext(BloomThemeContext);
  if (!ctx) {
    throw new Error('useBloomTheme must be used within a <BloomThemeProvider>');
  }
  return ctx;
}
//# sourceMappingURL=use-theme.js.map