This function creates the HTML & CSS that places the icons and texts from `omni_icon()` and `icon_text()` on a grid.
Examples
width_px <- 50
icon_color_fg <- "white"
icon_color_bg <- 'teal 600'
icon_text_grid(
omni_icon('education', width_px, icon_color_bg, icon_color_fg),
icon_text(
text = '**71.9%:** Any person younger than 21 caught with or suspected of consuming alcohol or marijuana is charged with Minor in Possession (MIP).'
),
omni_icon('security', width_px, icon_color_bg, icon_color_fg),
icon_text(
'**69.8%:** Adults in Colorado who knowingly hep someone younger than 18 break the law - which includes providing minors with alcohol or drubgs - can be charged with a Class 4 felony.'
),
omni_icon('vault', width_px, icon_color_bg, icon_color_fg),
icon_text(
'**34.4%:** It is legal for a person ages 18-20 to possess marijuana with a medical marijuana card.'
),
width_px = width_px
) |>
htmltools::browsable()
#> Error in omni_icon("education", width_px, icon_color_bg, icon_color_fg): `icon_color_bg` must be one of "white", "ivory", "ivory-400",
#> "orange-red-200", "orange-red-400", "orange-red-600", "golden-yellow-200",
#> "golden-yellow-400", "golden-yellow-600", "olive-green-200", "olive-green-400",
#> "olive-green-600", "teal-200", "teal-400", "teal-600", "plum-200", "plum-400",
#> "plum-600", …, "steel-blue-600", and "navy". See `omni_colors()`
#> (`?omni::omni_colors()`).