diff --git a/Dumper/HtmlDumper.php b/Dumper/HtmlDumper.php
index 4da275f2..0f35c957 100644
--- a/Dumper/HtmlDumper.php
+++ b/Dumper/HtmlDumper.php
@@ -94,6 +94,26 @@ public function setStyles(array $styles)
$this->styles = $styles + $this->styles;
}
+ /**
+ * Replace a single css styles.
+ *
+ * @param string $class Any existing css class like default, num, const, etc
+ * @param string $property CSS property existing within class
+ * @param string $value Desired value of property
+ *
+ * @return static
+ */
+ public function changeStyle(string $class, string $property, string $value)
+ {
+ if (!isset($this->styles[$class])) {
+ return;
+ }
+
+ $this->styles[$class] = preg_replace('/'.preg_quote($property).':[a-zA-Z0-9#%\-, ]+(;|$)/', "{$property}:{$value};", $this->styles[$class]);
+
+ return $this;
+ }
+
public function setTheme(string $themeName)
{
if (!isset(static::$themes[$themeName])) {