fix(web): preserve primary token in dark theme
This commit is contained in:
@@ -66,6 +66,9 @@ if (existsSync('public/senlinai-icon.svg')) {
|
|||||||
if (icon.includes('role=') || icon.includes('aria-labelledby=')) failures.push('brand SVG must not expose presentation ARIA')
|
if (icon.includes('role=') || icon.includes('aria-labelledby=')) failures.push('brand SVG must not expose presentation ARIA')
|
||||||
}
|
}
|
||||||
const appStyles = readFileSync('src/App.css', 'utf8')
|
const appStyles = readFileSync('src/App.css', 'utf8')
|
||||||
|
if (/\.theme-dark\s*\{[^}]*--color-primary\s*:/s.test(appStyles)) {
|
||||||
|
failures.push('theme-dark must not override the #165DFF primary token')
|
||||||
|
}
|
||||||
if (!appStyles.includes('.brand-icon {')) failures.push('brand-icon must have an explicit base size')
|
if (!appStyles.includes('.brand-icon {')) failures.push('brand-icon must have an explicit base size')
|
||||||
if (!appStyles.includes('.brand-lockup.large .brand-icon')) failures.push('login brand icon must have an explicit size')
|
if (!appStyles.includes('.brand-lockup.large .brand-icon')) failures.push('login brand icon must have an explicit size')
|
||||||
if (!appStyles.includes('.rail-brand {')) failures.push('rail brand button must have explicit layout')
|
if (!appStyles.includes('.rail-brand {')) failures.push('rail brand button must have explicit layout')
|
||||||
|
|||||||
@@ -12,7 +12,6 @@
|
|||||||
--color-text: #cccccc;
|
--color-text: #cccccc;
|
||||||
--color-muted: #858585;
|
--color-muted: #858585;
|
||||||
--color-soft-blue: rgba(0, 122, 204, 0.22);
|
--color-soft-blue: rgba(0, 122, 204, 0.22);
|
||||||
--color-primary: #007acc;
|
|
||||||
--color-status: #007acc;
|
--color-status: #007acc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user