mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-18 09:46:07 +03:00

Recently when answering [a Discussion], I was reminded of when Tristan once linked the GTK CSS documentation and said “Perhaps good to add this to the docs of the GTK custom CSS config option”, so I decided to do that now. I also added a few random things that I found helpful when attempting to modify Ghostty's CSS; this information was mostly stolen from random people on Discord or accidentally discovered. I really do not care if this is merged or not, nor do I care if the strings are changed considerably[^1], so I am going straight for a Pull Request without bothering to open a Discussion, get that converted to an Issue after a few years, then finally remember to open a Pull Request. I only tested what this looks like in `ghostty +show-config --default --docs`, the manpage and the HTML output; I notably did not try seeing how it renders on the website. The links have to be in angle brackets for the HTML output to have it rendered as URLs, but it looks odd everywhere else; manpages have them with mathematical angle brackets, ⟨like this⟩. I also refrained from using an em (—) or en (–) dash instead of a normal dash (-) as that does not seem to be common in the rest of the documentation. [a Discussion]: https://github.com/ghostty-org/ghostty/discussions/7189 [^1]: I didn't see any guidelines or standards for these strings, so presumably these would be contested as I didn't know what to adhere to when writing them.