You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
850 B

1 year ago
#let base_color = rgb("#b00b69")
#let bc_dark = base_color.darken(35%)
#let bc_darker = base_color.darken(70%)
#let bc_light = base_color.lighten(35%)
#let bc_lighter = base_color.lighten(70%)
#let vis(color) = {
rect(width: 3cm, height: 3cm, fill: color, stroke: 8pt + white, radius: 8pt)
}
#let process_colors(colors) = {
if colors.at("base", none) == none {
colors.insert("base", rgb("#b00b69"))
}
if colors.at("light", none) == none {
colors.insert("light", colors.base.lighten(35%))
}
if colors.at("lighter", none) == none {
colors.insert("lighter", colors.base.lighten(70%))
}
if colors.at("dark", none) == none {
colors.insert("dark", colors.base.darken(35%))
}
if colors.at("darker", none) == none {
colors.insert("darker", colors.base.darken(70%))
}
}
#let colors = (:)
#process_colors(colors)