var __assign = (this && this.__assign) || function () {
    __assign = Object.assign || function(t) {
        for (var s, i = 1, n = arguments.length; i < n; i++) {
            s = arguments[i];
            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
                t[p] = s[p];
        }
        return t;
    };
    return __assign.apply(this, arguments);
};
import { createThemeProvider } from "onyxia-ui";
import { createDefaultColorUseCases } from "onyxia-ui";
var providers = createThemeProvider({
    "createColorUseCases": function (params) {
        return __assign(__assign({}, createDefaultColorUseCases(params)), { "borderColor": params.isDarkModeEnabled ? "#424753" : "#d8d8d3" });
    },
});
export var StoryProvider = providers.StoryProvider, ThemeProvider = providers.ThemeProvider;
export function useTheme() {
    var theme = providers.useTheme();
    return __assign(__assign({}, theme), { "borderRadius": 4, "boxShadow": theme.isDarkModeEnabled
            ? "rgb(0 0 0 / 20%) 0 2px 5px 0"
            : "rgb(0 0 0 / 10%) 0 1px 3px 0" });
}
//# sourceMappingURL=theme.js.map