E44E Need `scheme:default` to change link color · Issue #4594 · squidfunk/mkdocs-material · GitHub
[go: up one dir, main page]

Skip to content

Need scheme:default to change link color #4594

@leonardehrenfried

Description

@leonardehrenfried

Contribution guidelines

I've found a bug and checked that ...

  • ... the problem doesn't occur with the mkdocs or readthedocs themes
  • ... the problem persists when all overrides are removed, i.e. custom_dir, extra_javascript and extra_css
  • ... the documentation does not mention anything about my problem
  • ... there are no open or closed issues that are related to my problem

Description

In order to override the primary color with

theme:
    palette:
        primary: blue

you also need the following:

        scheme: default

even though it should already be set by default.

Expected behaviour

I expected the link colour to be set to blue.

Actual behaviour

The link colour remains at indigo.

Steps to reproduce

  1. Set primary colour
  2. Don't set a theme
  3. See that link colour doesn't match primary colour.

Package versions

  • Python: 3.10.7
  • MkDocs: mkdocs 1.4.2
  • Material: 8.5.8

Configuration

theme:
    name: material
    features:
        - navigation.tabs
        - toc.integrate
    palette:
        primary: blue
        accent: blue

System information

  • Operating system: Fedora Linux
  • Browser: Firefox

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssue reports a bugresolvedIssue is resolved, yet unreleased if open

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0