Files
upstream-mattermost/docs/site/src/css/tokens.css
upstream-mirror 240db4e2a7
Some checks failed
Server CI / Postgres (shard 0) (push) Has been skipped
Server CI / Postgres (shard 3) (push) Has been skipped
BuildEnv Docker Image / build-image (push) Failing after 4s
BuildEnv Docker Image / build-image-fips (push) Failing after 4s
Migration Review & Release Notes / Generate migration review & release notes (push) Failing after 3s
Server CI / Build Environment (push) Failing after 3s
Server CI / Postgres (shard 1) (push) Has been skipped
Tools CI / check-style (mattermost-govet) (push) Failing after 4s
Server CI / Postgres (shard 2) (push) Has been skipped
Tools CI / check-style (mmgotool) (push) Failing after 3s
Server CI / Elasticsearch v8 Compatibility (push) Has been skipped
Server CI / OpenSearch v2 Compatibility (push) Has been skipped
Server CI / Postgres FIPS (shard 0) (push) Has been skipped
Tools CI / Test (mattermost-govet) (push) Failing after 3s
Server CI / Postgres FIPS (shard 1) (push) Has been skipped
Server CI / Postgres FIPS (shard 2) (push) Has been skipped
Tools CI / Test (mmgotool) (push) Failing after 3s
Server CI / Postgres FIPS (shard 3) (push) Has been skipped
Server CI / Run mmctl tests (push) Has been skipped
Server CI / Run mmctl tests (FIPS) (push) Has been skipped
Server CI / Merge Postgres Test Results (push) Has been skipped
Server CI / Merge Postgres FIPS Test Results (push) Has been skipped
Server CI / Check backport migrations (push) Has been skipped
Server CI / Check generated files (push) Has been skipped
Server CI / check-style (push) Has been skipped
Server CI / Vet API (push) Has been skipped
Server CI / Build mattermost server app (push) Has been skipped
Server CI / Server CI Complete (push) Failing after 2s
Server CI / Server CI Artifacts (push) Has been skipped
Server CI / Sentry Upload (push) Has been skipped
Server CI / Server CI Report (push) Failing after 5m1s
Server CI Nightly Race / Race Detector (push) Has been skipped
CodeQL / Analyze (go) (push) Has been cancelled
CodeQL / Analyze (javascript) (push) Has been cancelled
Webapp CI Cache Warm / Warm Webapp node_modules Cache (push) Has been cancelled
E2E CI Cache Warm / Warm E2E npm Registry Cache (push) Has been cancelled
API / build (push) Has been cancelled
Web App CI / check-types (push) Has been cancelled
Web App CI / check-lint (push) Has been cancelled
Web App CI / check-i18n (push) Has been cancelled
Web App CI / check-external-links (push) Has been cancelled
Web App CI / test (platform) (push) Has been cancelled
Web App CI / test (mattermost-redux) (push) Has been cancelled
Web App CI / test (channels shard 1/4) (push) Has been cancelled
Web App CI / test (channels shard 2/4) (push) Has been cancelled
Web App CI / test (channels shard 3/4) (push) Has been cancelled
Web App CI / test (channels shard 4/4) (push) Has been cancelled
Web App CI / upload-coverage (push) Has been cancelled
Web App CI / build (push) Has been cancelled
YAML Lint / yamllint (push) Has been cancelled
Push mirrored docker images / cd/Push mirrored docker images (push) Has been cancelled
docs-cd / Build and deploy docs (push) Has been cancelled
Docs CI / build (push) Has been cancelled
E2E Cache Warm: Cypress deps / Warm Cypress deps cache (push) Has been cancelled
Scorecards supply-chain security / Scorecard analysis (push) Has been cancelled
Server CI Weekly / Postgres FIPS (push) Has been skipped
Server CI Weekly / Run mmctl tests (FIPS) (push) Has been skipped
Server CI Weekly / Postgres with binary parameters (push) Has been skipped
Server CI Weekly / Build Environment (push) Failing after 1s
Server CI Cache Warm / Warm Go Module and Build Cache (push) Failing after 2s
Server CI Nightly Race / Build Environment (push) Failing after 1s
snapshot of https://github.com/mattermost/mattermost.git (master, 2026-09-16; blobs > 131072B omitted)
2026-09-16 00:29:55 +05:00

100 lines
4.2 KiB
CSS

/*
* Mattermost brand design tokens.
* Source: Mattermost-Brand-Guidelines-2025.
* See PLAN.md §3.2 for the full token spec and rationale.
*
* Accessibility constraint (per brand guidelines): use only black or white
* text on the four primary colors — these combinations are pre-approved
* for contrast.
*/
:root {
/* === Primary palette === */
--mm-color-denim: #1E325C; /* primary brand, dominant */
--mm-color-marigold: #FFBC1F; /* accent — CTAs only, used sparingly */
--mm-color-white: #FFFFFF;
--mm-color-black: #1B1D22;
/* === Secondary palette (sparingly, never overpower) === */
--mm-color-sand: #CCC4AE;
--mm-color-bark: #604F3D;
--mm-color-sky: #C5D2EC;
/* === Denim shade ramp (derived for surfaces, borders, focus rings) === */
--mm-denim-50: #EEF1F8;
--mm-denim-100: #D6DDEC;
--mm-denim-200: #ADBBD8;
--mm-denim-300: #8499C5;
--mm-denim-400: #5B77B1;
--mm-denim-500: #1E325C; /* = denim, brand primary */
--mm-denim-600: #182849;
--mm-denim-700: #121E37;
--mm-denim-800: #0C1424;
--mm-denim-900: #060A12;
/* === Marigold shade ramp === */
--mm-marigold-100: #FFEFC8;
--mm-marigold-300: #FFD672;
--mm-marigold-500: #FFBC1F; /* = marigold, brand accent */
--mm-marigold-700: #B27F00;
/* === Typography ===
* Trade Gothic Next is licensed via Adobe Fonts and not embedded yet
* (open item — see PLAN.md §12). Until licensing is confirmed, body uses
* Inter and headlines use Archivo Black, which is the closest free match
* for Trade Gothic Heavy's geometric, ultra-bold display feel. */
--mm-font-sans: "Inter", "Trade Gothic Next", -apple-system, BlinkMacSystemFont,
"Segoe UI", "Helvetica Neue", system-ui, sans-serif;
--mm-font-heading: "Archivo Black", "Trade Gothic Next Heavy",
"Helvetica Neue", "Impact", system-ui, sans-serif;
--mm-font-mono: "JetBrains Mono", "SF Mono", "Menlo", "Consolas",
"Liberation Mono", monospace;
/* === Semantic surfaces (light) === */
--mm-bg-page: var(--mm-color-white);
--mm-bg-surface: var(--mm-color-white);
--mm-bg-inverse: var(--mm-color-denim);
--mm-bg-subtle: var(--mm-denim-50);
--mm-text-primary: var(--mm-color-black);
--mm-text-secondary: var(--mm-denim-600);
--mm-text-inverse: var(--mm-color-white);
--mm-text-on-accent: var(--mm-color-black); /* black text on marigold */
--mm-border-subtle: var(--mm-denim-100);
--mm-border-strong: var(--mm-denim-300);
/* Not --mm-color-denim (#1E325C): it clears WCAG AA against white
* (12.6:1) but sits only ~1.5:1 from --mm-text-primary, so links and
* body copy read as the same shade of "dark". This blue keeps 6.5:1+
* against the page while staying clearly apart from body text. */
--mm-link: #3D5D96;
--mm-link-hover: var(--mm-denim-700);
--mm-accent: var(--mm-color-marigold);
--mm-focus-ring: var(--mm-marigold-500);
}
/* === Dark mode (data-theme=dark applied by Docusaurus) === */
[data-theme='dark'] {
--mm-bg-page: #0E1525;
--mm-bg-surface: #14213D;
--mm-bg-inverse: var(--mm-color-denim);
--mm-bg-subtle: var(--mm-denim-800);
--mm-text-primary: var(--mm-color-white);
--mm-text-secondary: var(--mm-denim-200);
--mm-text-inverse: var(--mm-color-black);
--mm-text-on-accent: var(--mm-color-black);
--mm-border-subtle: var(--mm-denim-700);
--mm-border-strong: var(--mm-denim-500);
/* Not --mm-color-sky (#C5D2EC): passes AA against the page (~12:1),
* but sits only ~1.5:1 from white body text, so links disappear into
* surrounding copy. This blue keeps ~6.4:1 against the page while
* reading clearly darker than white body text. */
--mm-link: #5B9BF0;
--mm-link-hover: var(--mm-color-white);
--mm-accent: var(--mm-color-marigold);
/* Infima's default secondary-alert text/background pairing isn't wired
* to our palette — pin explicit, contrast-checked brand colors instead.
* Left border/accent-bar colors are deliberately left alone — a
* parallel "remove yellow left border" workstream touches those. */
--mm-callout-text: var(--mm-denim-50);
--mm-callout-note-bg: var(--mm-denim-700);
}