diff --git a/scripts/verify-guidelines.sh b/scripts/verify-guidelines.sh
index b1dba14..e3eb6c8 100755
--- a/scripts/verify-guidelines.sh
+++ b/scripts/verify-guidelines.sh
@@ -203,14 +203,23 @@ fi
section "Frontend & Styling: TailwindCSS usage"
# GUIDELINE: Always use TailwindCSS classes for all styling
+# REQUIREMENT: Use local builds, not CDN (production-ready, faster, no external dependencies)
echo "Checking for TailwindCSS usage in templates..."
-if grep -q "tailwindcss" templates/*.templ 2>/dev/null || grep -q "cdn.tailwindcss.com" templates/*.templ 2>/dev/null; then
- success_msg "TailwindCSS is being used in templates"
+
+# Check for CDN usage (violates local-only requirement)
+if grep -q "cdn.tailwindcss.com" templates/*.templ 2>/dev/null; then
+ error_msg "Found TailwindCSS CDN in templates (violation: use local /static/style.css instead)"
+ grep -n "cdn.tailwindcss.com" templates/*.templ 2>/dev/null
+ echo "Replace CDN script with: "
else
- warning_msg "TailwindCSS not found in templates (custom CSS may be excessive)"
- echo "Expected patterns in templates:"
- echo "- tailwindcss in script src or href"
- echo "- cdn.tailwindcss.com in script tags"
+ # Check for local build
+ if grep -q "/static/style.css" templates/*.templ 2>/dev/null; then
+ success_msg "TailwindCSS local build is being used in templates (correct approach)"
+ else
+ warning_msg "TailwindCSS not found in templates (custom CSS may be excessive)"
+ echo "Expected pattern in templates:"
+ echo "- "
+ fi
fi
###############################################################################