import { generateColorsVars as w } from "./packages/sdk/dist/shared/themes/color-system.js";
function getThemeCss(theme) {
  const shades = w(theme);
  const injected = `@layer upstart-theme {
    :root {
      color-scheme: ${theme.browserColorScheme};
      /* cache buster */
      --rnd: ${Date.now()};
      ${Object.entries(shades).map(([key, value]) => `--${key}: ${value};`).join("\n")}
    }
  }`;
  return injected;
}
export {
  getThemeCss
};
//# sourceMappingURL=get-theme-css.js.map
