fix: add cssgen step to generate styles.css for Storybook

- Add 'npx @pandacss/dev cssgen' after panda codegen to generate the consolidated styles.css file
- The styles.css file is required by Storybook preview.ts but was not being generated by panda codegen alone
- Added error handling to allow CSS generation to continue despite warnings
This commit is contained in:
Thomas Hallock
2025-09-28 08:24:12 -05:00
parent ccca3d3415
commit 26077de78b

View File

@@ -58,6 +58,7 @@ jobs:
working-directory: apps/web
run: |
pnpm panda codegen
npx @pandacss/dev cssgen || echo "CSS generation had warnings but continued"
ls -la styled-system/
echo "Generated CSS files:"
ls -la styled-system/*.css || echo "No CSS files found"