diff --git a/src/frontends/leaflet.ts b/src/frontends/leaflet.ts
index 46dafbfc..3c6712dc 100644
--- a/src/frontends/leaflet.ts
+++ b/src/frontends/leaflet.ts
@@ -74,16 +74,13 @@ const leafletLayer = (options: LeafletLayerOptions = {}): unknown => {
'Protomaps © OpenStreetMap';
super(options);
- if (options.theme) {
- const theme = themes[options.theme];
- this.paintRules = paintRules(theme);
- this.labelRules = labelRules(theme);
- this.backgroundColor = theme.background;
- } else {
- this.paintRules = options.paintRules || [];
- this.labelRules = options.labelRules || [];
- this.backgroundColor = options.backgroundColor;
- }
+ const theme = options.theme
+ ? themes[options.theme]
+ : themes.light;
+
+ this.paintRules = options.paintRules || paintRules(theme);
+ this.labelRules = options.labelRules || labelRules(theme);
+ this.backgroundColor = options.backgroundColor || theme.background;
this.lastRequestedZ = undefined;
this.tasks = options.tasks || [];