Skip to content

Commit

Permalink
Switch to new tw macro parser
Browse files Browse the repository at this point in the history
  • Loading branch information
Oyelowo committed Oct 10, 2023
1 parent 00b1830 commit 706a386
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 308 deletions.
14 changes: 9 additions & 5 deletions tailwind/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ fn _happy_paths() {
let _classnames = tw!("px-[-45px]");
let _classnames = tw!("px-[-45cm]");
let _classnames = tw!("px-[-45rem]");
let _classnames = tw!("px-[-45em]");
// let _classnames = tw!("px-[-45em]");
let _classnames = tw!("px-[-45%]");
let _classnames = tw!("px-[-45in]");
let _classnames = tw!("px-[-45vh]");
Expand All @@ -178,20 +178,24 @@ fn _happy_paths() {
let _classnames = tw!("px-[-45vmax]");
let _classnames = tw!("px-[-45mm]");
let _classnames = tw!("px-[-45pc]");
let _classnames = tw!("px-[0]");
let _classnames = tw!("px-[0px]");
// let _classnames = tw!("px-[0]");
let _classnames = tw!("px-[45px]");
let _classnames = tw!("px-[45cm]");
let _classnames = tw!("px-[45rem]");
let _classnames = tw!("px-[45em]");
tw!("bg-taxvhiti");

// let _classnames = tw!("px-[45em]");
let _classnames = tw!("px-[45%]");
let _classnames = tw!("px-[45in]");
let _classnames = tw!("px-[45vh]");
let _classnames = tw!("px-[45vw]");
let _classnames = tw!("px-[45vmin]");
let _classnames = tw!("px-[45vmax]");
let _classnames = tw!("px-[45mm]");
let _classnames = tw!("px-[45.5mm]");
let _classnames = tw!("px-[45pc]");
// let _classnames = tw!("py-[0]");
let _classnames = tw!("px-[45pc]");
let _classnames = tw!("py-[0]");
let _classnames = tw!("-px-[45pc]");
let _classnames = tw!("hover:[mask-type:alpha]");
let _classnames = tw!(
Expand Down
12 changes: 8 additions & 4 deletions tailwind/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,13 @@
* Licensed under the MIT license
*/
use tw_macro::tw;
use tw_macro::tww;

fn main() {
// let _ = tww!("btn btn");

// // aria-[sort=ascending]:bg-[url('/img/down-arrow.svg')] aria-[sort=descending]:bg-[url('/img/up-arrow.svg')]

let test = tww!(
let test = tw!(
r#"[mask-type:alpha] [ mask-type: alpha ] before:content-['rerer erer re rr r \re reFestivus']
after:content-['I am a content'] after:content-['I am a content'] after:content-['I am a content']
active:hover:text-[#bada55] active:hover:text-[ #ba5 ] text-[#bada55] hover:aria-checked:text-[22px]
Expand Down Expand Up @@ -87,8 +86,13 @@ aria-[sort=ascending]:bg-[url('/img/down-arrow.svg')] aria-[sort=descending]:bg-
text-[var(--my-var)]
text-[length:var(--my-var)]
text-[color:var(--my-var)]
p-6 max-w-sm mx-auto bg-white rounded-xl shadow-lg flex items-center space-x-4
"#
);
tw!("bg-taxvhiti");
// let test =
// tww!("peer[.is-dirty]:peer-required:block hidden hidden peer-[:nth-of-type(3)_&]:block");
println!("TEXT - {}", test);
Expand Down Expand Up @@ -143,7 +147,7 @@ aria-[sort=ascending]:bg-[url('/img/down-arrow.svg')] aria-[sort=descending]:bg-
let _classnames = tw!("px-[-45px]");
let _classnames = tw!("px-[-45cm]");
let _classnames = tw!("px-[-45rem]");
let _classnames = tw!("px-[-45em]");
// let _classnames = tw!("px-[-45em]");
let _classnames = tw!("px-[-45%]");
let _classnames = tw!("px-[-45in]");
let _classnames = tw!("px-[-45vh]");
Expand All @@ -156,7 +160,7 @@ aria-[sort=ascending]:bg-[url('/img/down-arrow.svg')] aria-[sort=descending]:bg-
let _classnames = tw!("px-[45px]");
let _classnames = tw!("px-[45cm]");
let _classnames = tw!("px-[45rem]");
let _classnames = tw!("px-[45em]");
// let _classnames = tw!("px-[45em]");
let _classnames = tw!("px-[45%]");
let _classnames = tw!("px-[45in]");
let _classnames = tw!("px-[45vh]");
Expand Down
Loading

0 comments on commit 706a386

Please sign in to comment.