Tailwind-ish TCSS support might be a good choice :-) #6450
NiJingzhe
started this conversation in
Show and tell
Replies: 1 comment
-
|
mainly implemented in here |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Cause I've done some work on Generative UI base on React.js before and found tailwind css seems to be a good paradigm to inline complex styles and animation.
And recently I've been trying to build something like Generative TUI base on Textual. That's why I came up with the idea to add an light weighted compile layer and a builtin tailwind.tcss file with a cli command you could export it to a target folder.
Show Code:
More detailed, you could now write code like:
You'll notice that
[params]are now supported cause I've add an simple pre compile layer which generate alias rules for these syntax and the actual classes name will also be replaced automatically ones alias rules were created and all the alias rules will be injected into app.CSS after deduplication.Snapshot:
What you get:
Beta Was this translation helpful? Give feedback.
All reactions