Skip to content

Commit ac61afb

Browse files
authored
remove colors validation (#1351)
1 parent 4347a4b commit ac61afb

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

pcweb/styles/colors.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
# Customs colors from /assets/custom-colors.css
2-
from reflex.utils.types import validate_parameter_literals
32
from typing import Literal
43

54
ColorType = Literal["white", "slate", "violet", "jade", "red"]
65
ShadeType = Literal[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]
76

87

9-
@validate_parameter_literals
108
def c_color(color: ColorType, shade: ShadeType, alpha: bool = False) -> str:
119
"""Create a color variable string."""
1210
shade_str = str(shade).replace(".", "-")

0 commit comments

Comments
 (0)