Skip to content

Commit

Permalink
initialize BauCss with a specific style element
Browse files Browse the repository at this point in the history
  • Loading branch information
FredericHeem committed Nov 11, 2024
1 parent 6ce60a6 commit 9326fa3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion bau-ui/context.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import globalStyle from "./globalStyle";

export function createContext(extra) {
const bau = Bau();
const bauCss = BauCss();
const bauCss = BauCss({ target: window.document.getElementById("bau-css") });
globalStyle(bauCss);
return {
bau,
Expand Down
1 change: 1 addition & 0 deletions bau-ui/examples/bau-ui-template-js/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Bau App</title>
<style id="bau-css"></style>
</head>
<body>
<div id="app"></div>
Expand Down
1 change: 1 addition & 0 deletions bau-ui/examples/bau-ui-template-ts/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>BauUI + TS</title>
<style id="bau-css"></style>
</head>
<body>
<div id="app"></div>
Expand Down

0 comments on commit 9326fa3

Please sign in to comment.