feat: add inlineCss optional param in get_screen_code - #179
Open
k-i-k-s wants to merge 1 commit into
Open
Conversation
Owner
|
Woah! This is super cool. Thank you so much @k-i-k-s . I'm gonna make some time to review. I like this idea a lot. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Tailwind CSS is excellent when the final code is written with Tailwind classes, as it produces lean and maintainable output. However, there are cases where the output needs to be plain CSS rather than Tailwind — for example, when integrating with systems that don't support Tailwind, or when the LLM needs to further manipulate the styles. In these scenarios, LLMs often either miss the conversion from Tailwind to CSS entirely, or the conversion process consumes a significant amount of tokens. Inlining CSS directly into the HTML eliminates this burden and produces self-contained, ready-to-use output.
Changes
Code:
tailwind-to-inlinepackage dependencyinlineCssboolean parameter toget_screen_codetool insrc/commands/tool/virtual-tools/get-screen-code.tsTests:
src/commands/tool/virtual-tools/get-screen-code.test.tsto cover the new parameterDocumentation:
docs/build-agent-skills.mdwith usage exampledocs/build-virtual-tools.mdwith usage exampledocs/tool-catalog.mdwith parameter documentation