Skip to content

Better documentation for how colors are configured #279

@choldgraf

Description

@choldgraf

I was trying to modify the default colors in sphinx-book-theme so that they reverted to the old defaults, but I could not figure out how to do so. In particular, it says you need to use CSS variables but not SASS variables, and I couldn't get this to work. For ref:

https://pydata-sphinx-theme.readthedocs.io/en/latest/user_guide/customizing.html

I found these things confusing:

  1. Theme developers may not know the difference between CSS and SASS variables
  2. It's unclear if / how it's possible to use both kinds of variables at the same time
  3. Documenting what :root means seems important
  4. The CSS variable syntax that this theme uses --default-color: 23, 54, 23; etc, seemed to throw an error with my SCSS compiler. Is this some kind of non-standard syntax?

Perhaps @hoetmaaiers could advise on best-practices here and we can make a docs PR?

EDIT: I think I got it working but I had to use a different syntax:

https://github.com/executablebooks/sphinx-book-theme/pull/246/files#diff-e5a2bc9e76b60200872fec420e32a890b2035706e458f23e9b901b4faad9ee6cR17

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions