use std::collections::HashMap; pub(crate) fn default_rules() -> HashMap { vec![ ("flex", "display: flex;"), ("flex-row", "display: flex; flex-direction: row;"), ("flex-col", "display: flex; flex-direction: column;"), ("items-center", "align-items: center"), ("justify-center", "justify-content: center"), // TODO ] .into_iter() .map(|(a, b)| (a.to_string(), b.to_string())) .collect() } pub(crate) fn default_names() -> HashMap { vec![ ("w", "width"), ("h", "height"), ("m", "margin"), ("mt", "margin-top"), ("mb", "margin-bottom"), ("ml", "margin-left"), ("mr", "margin-right"), ("p", "padding"), ("pt", "padding-top"), ("pb", "padding-bottom"), ("pl", "padding-left"), ("pr", "padding-right"), ("bg", "background"), ("bgc", "background-color"), // TODO ] .into_iter() .map(|(a, b)| (a.to_string(), b.to_string())) .collect() } pub(crate) fn default_values() -> HashMap { vec![ ("full", "100%"), // TODO ] .into_iter() .map(|(a, b)| (a.to_string(), b.to_string())) .collect() } pub(crate) fn default_modifiers() -> HashMap { vec![ ("odd", "nth-child(odd)"), ("even", "nth-child(even)"), ("first", "first-child"), ("last", "last-child"), ("only", "only-child"), // TODO ] .into_iter() .map(|(a, b)| (a.to_string(), b.to_string())) .collect() } pub(crate) fn default_pseudos() -> HashMap { vec![ ("ph", "placeholder"), // TODO ] .into_iter() .map(|(a, b)| (a.to_string(), b.to_string())) .collect() }