+ ${style}
${content}
`;
diff --git a/src/utils.ts b/src/utils.ts
index 53c6d21..d3b3099 100644
--- a/src/utils.ts
+++ b/src/utils.ts
@@ -64,6 +64,8 @@ export const availableImageOptions = [
'fontSize',
'bgColor',
'textColor',
+ 'darkBgColor',
+ 'darkTextColor',
'textWrap',
] as const;
diff --git a/test/__snapshots__/simple-svg-placeholder.test.ts.snap b/test/__snapshots__/simple-svg-placeholder.test.ts.snap
index 27fddd0..8b44d3d 100644
--- a/test/__snapshots__/simple-svg-placeholder.test.ts.snap
+++ b/test/__snapshots__/simple-svg-placeholder.test.ts.snap
@@ -8,6 +8,10 @@ exports[`simpleSVGPlaceholder > should return accurate svg placeholder for { dat
exports[`simpleSVGPlaceholder > should return accurate svg placeholder for { dataUri: false, width: 300, height: 300, text: 'Some super long string', textColor: 'rgba(255,255,255,0.5)', bgColor: 'rgba(0,0,0,0.5)', textWrap: true } 1`] = `"
"`;
+exports[`simpleSVGPlaceholder > should return accurate svg placeholder for { dataUri: false, width: 1920, height: 1080, text: 'Dark mode background', darkBgColor: 'rgba(255,255,255,0.5)', bgColor: 'rgba(0,0,0,0.5)' } 1`] = `"
"`;
+
+exports[`simpleSVGPlaceholder > should return accurate svg placeholder for { dataUri: false, width: 1920, height: 1080, text: 'Dark mode text', darkTextColor: 'rgba(255,255,255,0.5)', textColor: 'rgba(0,0,0,0.5)' } 1`] = `"
"`;
+
exports[`simpleSVGPlaceholder > should return accurate svg placeholder for { dataUri: false, width: 1920, height: 1080, text: 'Hello World', textColor: '#fff', bgColor: '#000' } 1`] = `"
"`;
exports[`simpleSVGPlaceholder > should return accurate svg placeholder for { dataUri: false, width: 1920, height: 1080, text: 'Hello World', textColor: 'rgba(255,255,255,0.5)', bgColor: 'rgba(0,0,0,0.5)' } 1`] = `"
"`;
diff --git a/test/simple-svg-placeholder.test.ts b/test/simple-svg-placeholder.test.ts
index 4010116..771228b 100644
--- a/test/simple-svg-placeholder.test.ts
+++ b/test/simple-svg-placeholder.test.ts
@@ -36,6 +36,22 @@ describe('simpleSVGPlaceholder', () => {
textColor: 'rgba(255,255,255,0.5)',
bgColor: 'rgba(0,0,0,0.5)',
},
+ {
+ dataUri: false,
+ width: 1920,
+ height: 1080,
+ text: 'Dark mode background',
+ darkBgColor: 'rgba(255,255,255,0.5)',
+ bgColor: 'rgba(0,0,0,0.5)',
+ },
+ {
+ dataUri: false,
+ width: 1920,
+ height: 1080,
+ text: 'Dark mode text',
+ darkTextColor: 'rgba(255,255,255,0.5)',
+ textColor: 'rgba(0,0,0,0.5)',
+ },
{
dataUri: false,
width: 300,