diff --git a/src/textual/color.py b/src/textual/color.py index e10a63f561..35dadb0e67 100644 --- a/src/textual/color.py +++ b/src/textual/color.py @@ -223,6 +223,7 @@ def clamped(self) -> Color: return color @property + @lru_cache(1024) def rich_color(self) -> RichColor: """This color encoded in Rich's Color class.