Skip to content

Commit

Permalink
feat: add caret plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
arlyon committed May 21, 2023
1 parent 1611e66 commit b7e22ed
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions crates/tailwind-parse/src/eval/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,7 @@ macro_rules! merge_plugins_arbitrary_opt {
pub(crate) use array_map_plugin;
pub(crate) use array_map_plugin_arbitrary;
pub(crate) use array_plugin;
pub(crate) use lookup_color_plugin_arbitrary;
pub(crate) use lookup_plugin;
pub(crate) use lookup_plugin_arbitrary;
pub(crate) use lookup_plugin_arbitrary_opt;
Expand Down
1 change: 1 addition & 0 deletions crates/tailwind-parse/src/eval/plugin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ lookup_plugin!(fill, colors, "fill");
lookup_plugin_arbitrary!(left, width, "left");
lookup_plugin_arbitrary!(right, width, "right");
lookup_plugin_arbitrary!(tracking, letter_spacing, "letterSpacing");
lookup_color_plugin_arbitrary!(caret, colors, "caretColor");
lookup_plugin_arbitrary!(h, height, "height");
lookup_plugin!(ring_width, ring_width, "borderWidth");
lookup_plugin!(ring_color, colors, "--tw-ring-color");
Expand Down
1 change: 1 addition & 0 deletions crates/tailwind-parse/src/literal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ impl<'a> Literal<'a> {
Left => RequiredArbitrary(plugin::left),
Right => RequiredArbitrary(plugin::right),
Tracking => RequiredArbitrary(plugin::tracking),
Caret => RequiredArbitraryTransparency(plugin::caret),
Invert => Optional(plugin::invert),
Float => Required(plugin::float),
Space => Required(plugin::space),
Expand Down
1 change: 1 addition & 0 deletions crates/tailwind-parse/src/plugin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ mod plugin {
Mb,
Z,
Text,
Caret,
Bg,
Font,
Fill,
Expand Down

0 comments on commit b7e22ed

Please sign in to comment.