Loading...
Loading...
Compile Tailwind CSS for Hyvä themes in Magento 2. This skill should be used when the user wants to build styles, generate CSS, compile Tailwind, run Tailwind, or create production/development stylesheets for a Hyvä theme. Triggers on phrases like "compile tailwind", "build styles", "generate css", "run tailwind", "build css", or "npm build for theme".
npx skill4agent add hyva-themes/hyva-ai-tools hyva-compile-tailwind-csshyva-exec-shell-cmdhyva-theme-listapp/design/frontend/vendor/hyva-themes/app/design/frontend/vendor/hyva-themes/hyva-child-theme# Install deps only if node_modules missing
if [ ! -d "<theme-path>/web/tailwind/node_modules" ]; then
cd <theme-path>/web/tailwind && npm ci
fi
# Production build (default)
cd <theme-path>/web/tailwind && npm run build
# OR watch mode (only if explicitly requested)
cd <theme-path>/web/tailwind && npm run watch<theme-path>/web/css/styles.cssnpm cibin/magento setup:static-content:deploy