diff --git a/colors.go b/colors.go index 31dd62a..6e9199a 100644 --- a/colors.go +++ b/colors.go @@ -254,6 +254,13 @@ func checkNinjaTplColors(root string) []colorViolation { if strings.Contains(path, "/vendor/") || strings.Contains(path, "/.git/") { return nil } + // Email wrapper templates (templates/email/*.ninjatpl) legitimately + // require literal hex: mail clients don't support CSS custom + // properties, so themed emails inline resolved theme colors + // ({{ colors.* }}) with hex fallbacks (WO-WZ-021). + if strings.Contains(filepath.ToSlash(path), "/templates/email/") { + return nil + } relPath, _ := filepath.Rel(root, path) if relPath == "" {