brand <- as_brand_yml(list(
meta = list(name = "Example Brand"),
color = list(primary = "#FF5733")
))
# Check if brand has a primary color
brand_has(brand, "color", "primary") # TRUE
# Check if brand has a secondary color
brand_has(brand, "color", "secondary") # FALSE
Run the code above in your browser using DataLab