Skip to content

Commit

Permalink
move patterns dark and light into a single file (#1183)
Browse files Browse the repository at this point in the history
* move patterns dark and light into a single file

* move patterns to individual files in components
  • Loading branch information
lukasoppermann authored Feb 6, 2025
1 parent d260e85 commit f17e7a6
Show file tree
Hide file tree
Showing 10 changed files with 2,132 additions and 2,088 deletions.
8 changes: 4 additions & 4 deletions scripts/combineThemes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,14 @@ function combine(base: Theme, override: Theme, overrideFileName: string): Theme
// Main function to handle CLI arguments
function main() {
const args = process.argv.slice(2)
if (args.length !== 3) {
if (args.length < 3 || args.length > 4) {
// eslint-disable-next-line no-console
console.error('Usage: npx tsx combineThemes.ts <baseFilePath> <overrideFilePath> <outputFilePath>')
console.error('Usage: npx tsx combineThemes.ts <baseFilePath> <overrideFilePath> <outputFilePath> <themeName?>')
process.exit(1)
}

const [baseFilePath, overrideFilePath, outputFilePath] = args
combineThemes(baseFilePath, overrideFilePath, outputFilePath)
const [baseFilePath, overrideFilePath, outputFilePath, themeName] = args
combineThemes(baseFilePath, overrideFilePath, outputFilePath, themeName || undefined)
}

main()
Loading

0 comments on commit f17e7a6

Please sign in to comment.