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

costajob picture costajob  路  3Comments

Papierkorb picture Papierkorb  路  3Comments

jhass picture jhass  路  3Comments

Sija picture Sija  路  3Comments

grosser picture grosser  路  3Comments