aboutsummaryrefslogtreecommitdiff
path: root/src/z/App/root.zig
diff options
context:
space:
mode:
authorNathan Reiner <nathan@nathanreiner.xyz>2026-10-08 06:22:41 +0200
committerNathan Reiner <nathan@nathanreiner.xyz>2026-10-08 06:22:41 +0200
commit0a2f6f8cc48258fca60df2f193790b2d94a9d0f6 (patch)
treeebc38d94f1e4d9e5c2cb30a26db5d4ec6c9b38b5 /src/z/App/root.zig
parent4e86e3e18e9b43e442a35361ac82b30dd6c0103a (diff)
wasm add resources tracking
Diffstat (limited to 'src/z/App/root.zig')
-rw-r--r--src/z/App/root.zig2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/z/App/root.zig b/src/z/App/root.zig
index a3d0916..42ef26f 100644
--- a/src/z/App/root.zig
+++ b/src/z/App/root.zig
@@ -8,6 +8,7 @@ pub const Options = struct {
globals: []const Global,
components: []const Component,
body: h.Element,
+ theme: []const u8,
pub const Global = struct {
name: []const u8,
@@ -56,6 +57,7 @@ pub fn App(comptime options: Options) type {
.name = "viewport",
.content = "width=device-width, initial-scale=1.0",
}, .void),
+ .native(.style, .{}, .content(options.theme)),
})),
.native(.body, .{}, .children(&.{
.native(.script, .{}, .content(@embedFile("object-store.js"))),