Skip to content

Overridden background color #307

@ShookLyngs

Description

@ShookLyngs

In certain pages, the background-color of the <body> is overridden.

Take the home page as an example:

image

You can observe that the current background-color of the <body> is set to --adm-color-background, while the correct one should be --neutral-01, which has been overridden. This issue is caused by the global style of antd-mobile.

To resolve it, you can add the following CSS to your styles:

:root:root {
  --adm-color-background: var(--neutral-01);
}

This solution is suggested in the Ant Design Mobile theming guide.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions