✨ Add css package (@navikt/ds-css) with Button and typography styles

Styles reference CSS custom properties from @navikt/ds-tokens.
build.mjs copies source stylesheets to dist/.
This commit is contained in:
Aksel Mini committed 2026-08-06 13:45:00 +02:00
1 parent 7382e691ef
commit b4930f754e
6 files changed
+178

No files matched your search

+17
View File
@@ -0,0 +1,17 @@
import { mkdirSync, readdirSync, copyFileSync } from "node:fs";
import { dirname, join } from "node:path";
import { fileURLToPath } from "node:url";
const root = dirname(fileURLToPath(import.meta.url));
const src = join(root, "src");
const dist = join(root, "dist");
mkdirSync(dist, { recursive: true });
for (const file of readdirSync(src)) {
if (file.endsWith(".css")) {
copyFileSync(join(src, file), join(dist, file));
}
}
console.log(`Copied styles to dist/`);