From 4d3d9aa7174214d0d785d295903a6b37f84a90e2 Mon Sep 17 00:00:00 2001 From: wassaf shahzad Date: Mon, 26 Feb 2024 04:47:56 +0100 Subject: [PATCH] added accent option in color (#2713) --- reflex/constants/colors.py | 1 + tests/utils/test_serializers.py | 1 + 2 files changed, 2 insertions(+) diff --git a/reflex/constants/colors.py b/reflex/constants/colors.py index fe4616abc..5408e15b1 100644 --- a/reflex/constants/colors.py +++ b/reflex/constants/colors.py @@ -36,6 +36,7 @@ ColorType = Literal[ "gold", "bronze", "gray", + "accent", ] ShadeType = Literal[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12] diff --git a/tests/utils/test_serializers.py b/tests/utils/test_serializers.py index ba3dd993e..2a5a27ba6 100644 --- a/tests/utils/test_serializers.py +++ b/tests/utils/test_serializers.py @@ -172,6 +172,7 @@ class BaseSubclass(Base): ), (Color(color="slate", shade=1), "var(--slate-1)"), (Color(color="orange", shade=1, alpha=True), "var(--orange-a1)"), + (Color(color="accent", shade=1, alpha=True), "var(--accent-a1)"), ], ) def test_serialize(value: Any, expected: str):