Crystal: Crystal docs dark theme

Created on 15 Apr 2020  路  2Comments  路  Source: crystal-lang/crystal

Some developers likes dark theme - more gentle on the eyes when codding at night :smile:

The CSS media prefers-color-scheme can be used for auto-detection o the light/dark theme user preference

The prefers-color-scheme CSS media feature is used to detect if the user has requested the system use a light or dark color theme.

Other similar tools supporting it:

feature topicdocs-generator

Most helpful comment

Custom Properties could also be a cool future addition. It would abstract the coloring of things to a single CSS file that could be overridden to allow for custom styling.

All 2 comments

Sure, sounds good enough to me.

But I would actually hold off on such non-essential features to the doc generator until we do a bigger refactor of the internal implementation. That will subsequently also make it easier to iterate on frontend features.

Custom Properties could also be a cool future addition. It would abstract the coloring of things to a single CSS file that could be overridden to allow for custom styling.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

TechMagister picture TechMagister  路  3Comments

ArthurZ picture ArthurZ  路  3Comments

RX14 picture RX14  路  3Comments

relonger picture relonger  路  3Comments

asterite picture asterite  路  3Comments