added accent option in color (#2713)

This commit is contained in:
wassaf shahzad 2024-02-26 04:47:56 +01:00 committed by GitHub
parent 24541aa91c
commit 4d3d9aa717
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 0 deletions

View File

@ -36,6 +36,7 @@ ColorType = Literal[
"gold",
"bronze",
"gray",
"accent",
]
ShadeType = Literal[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]

View File

@ -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):