Skip to content

Commit

Permalink
feat: add order plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
arlyon committed Aug 20, 2022
1 parent b6e0cf9 commit d6aa5ca
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/config.rs
Expand Up @@ -66,6 +66,8 @@ pub struct TailwindTheme<'a> {
pub ring_width: HashMap<&'a str, &'a str>,
#[serde(borrow)]
pub opacity: HashMap<&'a str, &'a str>,
#[serde(borrow)]
pub order: HashMap<&'a str, &'a str>,
#[serde(borrow, alias = "outlineOffset")]
pub outline_offset: HashMap<&'a str, &'a str>,
#[serde(borrow, alias = "outlineWidth")]
Expand Down
1 change: 1 addition & 0 deletions src/parse/literal.rs
Expand Up @@ -28,6 +28,7 @@ pub fn parse_literal<'a>(theme: &TailwindTheme, s: &'a str) -> Result<ObjectLit,
"delay" => Required(plugin::delay),
"duration" => Optional(plugin::duration),
"ease" => Optional(plugin::ease),
"order" => Required(plugin::order),
"border" => Optional(plugin::border),
"rounded" => Optional(plugin::rounded),
"outline" => Optional(plugin::outline),
Expand Down
1 change: 1 addition & 0 deletions src/plugin.rs
Expand Up @@ -55,6 +55,7 @@ lookup_plugin_opt!(grow, flex_grow, "flexGrow");
lookup_plugin_opt!(shrink, flex_shrink, "flexShrink");
lookup_plugin!(top, spacing, "top");
lookup_plugin!(opacity, opacity, "opacity");
lookup_plugin!(order, order, "order");
lookup_plugin!(bottom, spacing, "bottom");
lookup_plugin!(left, spacing, "left");
lookup_plugin!(right, spacing, "right");
Expand Down

0 comments on commit d6aa5ca

Please sign in to comment.