Skip to content

Commit

Permalink
refactor: rename theme SCSS files to avoid conflict with bs theme
Browse files Browse the repository at this point in the history
  • Loading branch information
elevatebart committed Jan 8, 2025
1 parent 29aa6cf commit b74178c
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
},
"require": "./dist/kestra-ui.umd.cjs"
},
"./style.css": "./dist/style.css",
"./style.css": "./dist/kestra-ui.css",
"./src/*": "./src/*"
},
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion scripts/generate-palette.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ function makePalettes(palette, paletteName, selector) {
const {tokenScss, cssVariableNames} = getVariableScss(palette.filter(c => !c.name.startsWith("base-color-palette/")), colorIndex)

// write the scss file containing colors in the token palette
fs.writeFileSync(path.resolve(__dirname, `../src/scss/theme-${paletteName}.scss`), `@import "./color-palette.scss";\n\n${selector}{\n\t${tokenScss}\n}`, {encoding: "utf-8"})
fs.writeFileSync(path.resolve(__dirname, `../src/scss/ks-theme-${paletteName}.scss`), `@import "./color-palette.scss";\n\n${selector}{\n\t${tokenScss}\n}`, {encoding: "utf-8"})

// write the css variables into an index for theme documentation
// NOTE: we assume that all themes will have the same variables and write the same file over and over
Expand Down
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export {default as Utils} from "./utils/Utils";
export {default as VueFlowUtils} from "./utils/VueFlowUtils";
export {default as getMDCParser} from "./composables/getMDCParser";

import "./scss/theme-light.scss";
import "./scss/theme-dark.scss";
import "./scss/ks-theme-light.scss";
import "./scss/ks-theme-dark.scss";

export * from "./components/index";
File renamed without changes.
File renamed without changes.

0 comments on commit b74178c

Please sign in to comment.