Inline shared UI styles for Git consumers
Lint / Lint (Node/Svelte) (push) Successful in 14s
Lint / Lint (Go) (push) Successful in 15s
Lint / Lint (Python) (push) Successful in 9s
Tests / Test (Node/Svelte) (push) Successful in 12s
Tests / Test (Go) (push) Successful in 15s
Tests / Test (Python) (push) Successful in 9s

This commit is contained in:
Gabriel20xx committed 2026-08-04 15:44:55 +02:00
1 parent 44c05f5a27
commit d134d6626a
2 files changed
+5 -2

No files matched your search

+5 -1
View File
@@ -2,7 +2,11 @@ import { readFile, writeFile } from 'node:fs/promises';
const source = await readFile(new URL('../packages/web-ui/dist/styles.css', import.meta.url), 'utf8');
const tokenImport = "@import '@gabriel20xx/design-tokens/theme.css';";
const componentStyles = source.replace(`${tokenImport}\n`, '');
const componentStyles = source
.split(/\r?\n/)
.filter((line) => line.trim() !== tokenImport)
.join('\n')
.trimStart();
await writeFile(
new URL('../shared-styles.css', import.meta.url),