From 600d348b130aba5340857ea61a7915ecb9434808 Mon Sep 17 00:00:00 2001 From: Sven Vogel Date: Mon, 8 Jul 2024 09:55:38 +0200 Subject: [PATCH] added: ABB branding colors --- src/branding.typ | 18 ++++++++++++++++++ src/conf.typ | 4 +++- src/lib.typ | 1 + src/style.typ | 5 ++++- template/main.typ | 4 +++- 5 files changed, 29 insertions(+), 3 deletions(-) create mode 100644 src/branding.typ diff --git a/src/branding.typ b/src/branding.typ new file mode 100644 index 0000000..c80ca6c --- /dev/null +++ b/src/branding.typ @@ -0,0 +1,18 @@ + +// Reference color scheme can be found here: +// https://brand.abb/portal/en/branding-principles/basic-brand-elements/color + +// ABB branding colors +#let ABB-RED = cmyk(0%, 100%, 95%, 0%) +#let ABB-BLACK = cmyk(0%, 0%, 0%, 100%) +#let ABB-GRAY-01 = cmyk(0%, 0%, 0%, 90%) +#let ABB-GRAY-02 = cmyk(0%, 0%, 0%, 75%) +#let ABB-GRAY-03 = cmyk(0%, 0%, 0%, 55%) +#let ABB-GRAY-04 = cmyk(0%, 0%, 0%, 35%) +#let ABB-GRAY-05 = cmyk(0%, 0%, 0%, 15%) +#let ABB-GRAY-06 = cmyk(0%, 0%, 0%, 5%) +#let ABB-WHITE = cmyk(0%, 0%, 0%, 0%) +// ABB branding functinal colors +#let ABB-BLUE = cmyk(100%, 53%, 2%, 16%) +#let ABB-GREEN = cmyk(91%, 4%, 100%, 25%) +#let ABB-YELLOW = cmyk(0%, 9%, 100%, 0%) diff --git a/src/conf.typ b/src/conf.typ index 2bb91e0..9dae1df 100644 --- a/src/conf.typ +++ b/src/conf.typ @@ -7,6 +7,8 @@ // Edited: 27.06.2024 // License: MIT +#import "branding.typ": * + // default configuration #let default-config = ( // language settings used to make decisions about hyphenation and others @@ -61,7 +63,7 @@ heading: ( font: "Montserrat"), link: ( - color: red.darken(15%)))) + color: ABB-GRAY-02))) // Insert a dictionary `update` into `base` but only the entries of update that also exist in base // Runs recursively on all sub dictionaries diff --git a/src/lib.typ b/src/lib.typ index d2c165e..702f579 100644 --- a/src/lib.typ +++ b/src/lib.typ @@ -8,6 +8,7 @@ // License: MIT #import "conf.typ": validate-config + #import "branding.typ": * #import "style.typ": global_styled_doc, content_styled, end_styled #import "pages/titlepage.typ": new_title_page #import "pages/declaration-of-authorship.typ": new_declaration_of_authorship diff --git a/src/style.typ b/src/style.typ index 65856bc..818b6f0 100644 --- a/src/style.typ +++ b/src/style.typ @@ -7,6 +7,8 @@ // Edited: 27.06.2024 // License: MIT +#import "branding.typ": * + #let watermark-color = luma(50%).transparentize(70%) #let watermark(config) = if config.draft { @@ -34,7 +36,8 @@ ligatures: true, hyphenate: true, dir: ltr, - font: style.text.font) + font: style.text.font, + fill: ABB-BLACK) show heading: set text( font: style.heading.font, diff --git a/template/main.typ b/template/main.typ index b9134f4..6fd0c24 100644 --- a/template/main.typ +++ b/template/main.typ @@ -1,4 +1,4 @@ -#import "../src/lib.typ": dhbw-template +#import "../src/lib.typ": * #import "glossary.typ": glossary #import "abstract.typ": abstract, summary @@ -34,6 +34,8 @@ = Lorem Ipsum +#text(fill: ABB-RED, "Hello ABB branding") + #lorem(25) @oidc