diff --git a/content/body/img.php b/content/body/img.php
index ca569e22..4b091749 100644
--- a/content/body/img.php
+++ b/content/body/img.php
@@ -150,8 +150,8 @@
+
+
I am text in a circle
@@ -364,4 +364,35 @@
}
]
}
+
+
+Use Embed to update a SVG
+
+ false]); ?>
+
+
+ To ensure compatibility with Safari and allow dynamic color updates based on the color theme, use the embed HTML tag instead of the img tag to import SVGs. This approach facilitates greater flexibility in styling SVGs directly through CSS or JavaScript
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/css/img.css b/css/img.css
index c26f6404..11d1796a 100644
--- a/css/img.css
+++ b/css/img.css
@@ -53,6 +53,18 @@
.enable__is-dark-mode .decorative-example__icon {
filter: drop-shadow(0px 0px 14px #fff);
}
+#inline-svg-example .circle {
+ fill: #00a;
+}
+.enable__is-dark-mode #inline-svg-example .circle {
+ fill: #fff;
+}
+#inline-svg-example .text {
+ fill: #fff;
+}
+.enable__is-dark-mode #inline-svg-example .text {
+ fill: #00a;
+}
#svg-sprite-example p {
text-align: center;
}
diff --git a/images/icons/add-embed.svg b/images/icons/add-embed.svg
new file mode 100644
index 00000000..046ece8c
--- /dev/null
+++ b/images/icons/add-embed.svg
@@ -0,0 +1,16 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/less/img.less b/less/img.less
index 0dfd20a6..2235016e 100755
--- a/less/img.less
+++ b/less/img.less
@@ -54,6 +54,21 @@
}
}
+#inline-svg-example{
+ .circle {
+ fill: #00a;
+ .enable__is-dark-mode &{
+ fill: #fff;
+ }
+ }
+ .text {
+ fill: #fff;
+ .enable__is-dark-mode &{
+ fill: #00a;
+ }
+ }
+}
+
#svg-sprite-example {
p {
text-align: center;