Skip to content
CSS for Rustlang websites based on the ST3 theme `ayu`
CSS Rust
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.


Install from

demo screenshot

As seen on YouTube

Home to CSS based on the ST3 theme ayu for the purpose of beautifying various Rustlang websites. It currently supports the following:

    • If you are reading the book version that is rendered with mdBook you must have the Navy theme selected for this theme to apply
    • The Ayu theme is natively included for the book in Rust 1.22.0 and up, so this theme is mostly irrelevant now as far as the book is concerned.
  • rustbyexample
    • Note that rustbyexample also natively provides the Ayu theme, but not for the Ace editor; the CSS in this repo fixes that
    • Make sure you select the Chrome theme in the editor in order to use this theme's editor look
    • Same as above


This theme is meant to be used with something such as Stylus. If you use Stylus, installation is as simple as going here and clicking the Install Style button. It will be automatically applied to the sites that it supports by default, but it can be used successfully with any hosted rust documentation. You can even integrate it with your own, freshly-built rustdocs as shown here.

There are, of course, other extensions / plugins / add-ons that allow you to easily re-skin websites by injecting custom CSS, and if you are a user of one you can simply copy the CSS from this repo and apply it in whatever way your extension requires. If your extension of choice has a site for collecting themes (similar to, feel free to open an issue asking to have this theme posted there.


There will undoubtedly be issues with this custom CSS. When such problems arise, please open an issue on this repo with as much information as you can provide (ideally a screenshot of the offending item and some details as to where it can be found in the HTML / CSS). If it's a more subtle issue that requires some reproduction, steps for doing that would be much appreciated.

And as always, if you've fixed an issue or made an improvement yourself, feel free to open a PR! Less work for me and faster fixes for all.

You can’t perform that action at this time.