Replies: 1 comment
-
You can do this already by working with the Server directly, and providing the template. See https://github.com/Textualize/textual-serve/blob/main/src/textual_serve/server.py#L65 Clipboard should already work. I'd accept a PR to add it to the textual-dev command line. |
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.
-
Feature Request: Allow textual serve to inject custom CSS and JavaScript for browser-delivered Textual apps
I'd love to enhance the experience of Textual apps when served over the web (via textual serve) by injecting custom CSS and JavaScript. This would allow developers to:
Match branding (fonts/colors)
Integrate clipboard/Web APIs
Improve accessibility
Add tooltips, help overlays, or modals
Suggested syntax:
textual serve app.py --inject-css static/style.css --inject-js static/app.js
This would not affect terminal clients, just the browser delivery.
Would this be feasible or in line with Textual’s vision of browser-extended terminals?
Beta Was this translation helpful? Give feedback.
All reactions