Skip to main content

dev_tools/
brand.rs

1//! Brand-kit foundation for `dev-tools` output (HTML meta-report, etc.).
2//!
3//! v0.9.3 ships only the seam. The constants here are placeholders; the
4//! final palette and footer text land in a later release once the brand
5//! kit is finalized. Downstream renderers (the HTML meta-report in
6//! particular) reference these constants through CSS custom properties
7//! so the same template renders with the real palette once it lands.
8//!
9//! These constants are not feature-gated — the HTML meta-report depends
10//! on them being available in the default build.
11//!
12//! # Example
13//!
14//! ```
15//! use dev_tools::brand;
16//!
17//! // Placeholder values; real palette lands later.
18//! assert!(brand::COLOR_ACCENT.starts_with('#'));
19//! assert!(!brand::FOOTER.is_empty());
20//! ```
21
22/// Primary accent color (links, focused borders, hero badges). Placeholder.
23pub const COLOR_ACCENT: &str = "#0066cc";
24
25/// Color used to mark a passing verdict. Placeholder.
26pub const COLOR_PASS: &str = "#1f8d3a";
27
28/// Color used to mark a failing verdict. Placeholder.
29pub const COLOR_FAIL: &str = "#c0392b";
30
31/// Color used to mark a warning verdict. Placeholder.
32pub const COLOR_WARN: &str = "#d68910";
33
34/// Color used to mark a lint finding (clippy etc.). Placeholder.
35pub const COLOR_LINT: &str = "#d68910";
36
37/// Background color for dark surfaces. Placeholder.
38pub const COLOR_BG: &str = "#0e1116";
39
40/// Foreground (body text) color. Placeholder.
41pub const COLOR_FG: &str = "#e6e6e6";
42
43/// Footer line printed by the HTML meta-report. Placeholder.
44pub const FOOTER: &str = "dev-tools verification suite";