The Magento 2 Snowdog menu defines its own styles, including hover text colors. To override those styles or other Snowdog menu CSS, follow these steps:
- Open the file app/design/frontend/Theme/hyva/web/tailwind/postcss.config.js in your Hyvä child theme.
- Add the following code to exclude the Snowdog menu extension’s layout:
123postcssImportHyvaModules({excludeDirs: ["vendor/snowdog/module-menu"],}), - Copy the file vendor/snowdog/module-menu/view/frontend/tailwind/tailwind-source.css to the following location in your Hyvä child theme: app/design/frontend/Theme/hyva/Snowdog_Menu/tailwind/tailwind-source.css
- Open the copied file and adjust its contents to your needs.
- Run the
from your Magento 2 root directory and redeploy the static content.1npm --prefix app/design/frontend/Theme/hyva/web/tailwind run build-prod
Done. Reload the storefront and check that your CSS changes appear.
Overriding Snowdog menu CSS in Hyvä
Need help implementing this solution, or still looking for a fix to your Magento problem? Get in touch and I will be happy to help with your project.