Skip to content

Dark mode with inline SVGs #45

@oemueller

Description

@oemueller

Describe the bug

When setting Astro D2 config inline to true the dark theme colors are not applied anymore.

For some reason the media query does not function in that case. Maybe someone has an idea why ..

Image

To Reproduce

  1. Update Astro config.
astroD2({
      skipGeneration: !!process.env['CI'] || !!process.env['VERCEL'],
      inline: true,
    }),
  1. run preview

  2. switch color theme

Expected behavior

dark / light colors are applied based on selected theme

How often does this bug happen?

Every time

System Info

No response

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions