pflib v2.7.0-1-gd371ab6a
Polarfire Interaction Library
|
Doxygen Awesome is a custom CSS theme for doxygen html-documentation with lots of customization parameters.
I really like how the doxygen html-documentation is structured! But IMHO it looks a bit outdated.
This theme is an attemt to update the visuals of doxygen without changing it's overall layout too much.
Copy the css
files from this repository into your project or add this repository as submodule and check out the latest release:
Then make the option HTML_EXTRA_STYLESHEET
in your Doxyfile point to the css
files:
There is two variants of the theme.
The theme comes with an experimental feature that adds a button to enable and disable the dark theme variant manually.
It requires customizations in both the header & footer html template.
Doxyfile
: header.html
, include doxygen-awesome-darkmode-toggle.js
at the end of the <head>
: footer.html
, initialize the doxygen-awesome-dark-mode-toggle
element at the end of the <body>
: This theme is highly customizable because a lot of things are parameterized with CSS variables. The following list of parameters is not complete! You can easily modify any variable with the developer tools of your browser to find out what it does.
To customize the existing theme, add your own custom.css
and overwrite the variables there:
Parameter | Default (Light) | Default (Dark) |
---|---|---|
Color Scheme: primary theme color. This will affect the entire websites color scheme: links, arrows, labels, ... | ||
--primary-color | #1779c4 | #1982d2 |
--primary-dark-color | #00559f | #5ca8e2 |
--primary-light-color | #7aabd6 | #4779ac |
--primary-lighter-color | #cae1f1 | #191e21 |
--primary-lightest-color | #e9f1f8 | #191a1c |
Spacing: default spacings. Most ui components reference these values for spacing, to provide uniform spacing on the page. | ||
--spacing-small | 5px | |
--spacing-medium | 10px | |
--spacing-large | 16px | |
Border Radius: border radius for all rounded ui components. Will affect many components, like dropdowns, memitems, codeblocks, ... | ||
--border-radius-small | 4px | |
--border-radius-medium | 6px | |
--border-radius-large | 8px | |
Content Width: The content is centered and constrained in its width. To make the content fill the whole page, set the following variable to auto . | ||
--content-maxwidth | 1000px | |
Code Fragment Colors: Color-Scheme of multiline codeblocks | ||
--fragment-background | #282c34 | |
--fragment-foreground | #fff | |
Arrow Opacity: By default the arrows in the sidebar are only visible on hover. You can override this behaviour so they are visible all the time. | ||
--side-nav-arrow-opacity | 0 | |
--side-nav-arrow-hover-opacity | 0.9 | |
Darkmode Toggle Icon: If you have enabled the darkmode toggle button, you can define the icon that is shown for the current mode. | ||
--darkmode-toggle-button-icon | ☀️ | 🌛 |
...and many more |
If you miss a configuration option or find a bug, please consider opening an issue!
The theme overrides most colors with the --primary-color-*
variables.
But there is a few small images and graphics that the theme cannot adjust or replace. To make these blend in better with the rest, it is recommended to adjust the doxygen color settings to something that matches the chosen color-scheme.
For the default color-scheme, these values work out quite well:
Tested with
To get the best looking class diagrams for your documentation, generate them with Graphviz as vector graphics with transparent background:
If you customized the theme with custom colors, spacings, font-sizes, etc. and you want to share your creation with others, you can to this here.
I am always curious to learn about how you made the theme look even better!
This theme is heavily inspired by the beautiful vuepress static site generator default theme!