feat(design): sweep off-system styles and add the check:design gate
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -451,7 +451,6 @@ function transformClassAttr(attr) {
|
||||
out = out.replace(/(?<![\w-])shadow-(?:xl|2xl)(?![\w-])/g, 'shadow-lg')
|
||||
out = out.replace(/(["'])([^"'`$]*)\1/g, (_, q, body) => q + body.trim().replace(/ {2,}/g, ' ') + q)
|
||||
out = out.replace(/^(className=\{`)\s+/, '$1').replace(/\s+(`\})$/, '$1')
|
||||
out = out.replace(/ {2,}/g, ' ')
|
||||
return out
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user