From a23d38c90fd3be242280a6eb91935eb1fc6ad451 Mon Sep 17 00:00:00 2001 From: tnichols217 <62992267+tnichols217@users.noreply.github.com> Date: Mon, 17 Feb 2025 13:18:04 -0500 Subject: [PATCH] Add branding.yml to the build --- src/_brand.yml | 14 ++++++++++++++ src/build.py | 1 + src/colors/black.sh | 3 +++ src/colors/color.sh | 3 +++ src/colors/red.sh | 3 +++ src/colors/white.sh | 3 +++ 6 files changed, 27 insertions(+) create mode 100644 src/_brand.yml diff --git a/src/_brand.yml b/src/_brand.yml new file mode 100644 index 0000000..2909001 --- /dev/null +++ b/src/_brand.yml @@ -0,0 +1,14 @@ +color: + palette: + military-red: "${RED}" + resolute-gold: "${GOLD}" + process-black: "${BLACK}" + white: "${WHITE}" + background: white + foreground: process-black + primary: military-red + secondary: resolute-gold +logo: + small: branding/logo-${COLOR}.svg + medium: branding/logomark-uni-${COLOR}.svg + large: branding/stacked-uni-${COLOR}.svg \ No newline at end of file diff --git a/src/build.py b/src/build.py index af8a357..1fb292f 100644 --- a/src/build.py +++ b/src/build.py @@ -37,6 +37,7 @@ for color in colors: script += f''' source ./colors/{color}.sh source ./style.sh + envsubst -i ./_brand.yml -o out/_brand-{color}.yml ''' for logo in logos: diff --git a/src/colors/black.sh b/src/colors/black.sh index 6bc2037..01468f8 100644 --- a/src/colors/black.sh +++ b/src/colors/black.sh @@ -1,2 +1,5 @@ export RED="#000000" export GOLD="#000000" +export BLACK="#000000" +export WHITE="#FFFFFF" +export COLOR="black" diff --git a/src/colors/color.sh b/src/colors/color.sh index bbc8474..55f9ad0 100644 --- a/src/colors/color.sh +++ b/src/colors/color.sh @@ -1,2 +1,5 @@ export RED="#C8102E" # PMS 186 export GOLD="#B9975B" # PMS 465 +export BLACK="#000000" +export WHITE="#FFFFFF" +export COLOR="color" diff --git a/src/colors/red.sh b/src/colors/red.sh index 79a10b6..5b1fa12 100644 --- a/src/colors/red.sh +++ b/src/colors/red.sh @@ -1,2 +1,5 @@ export RED="#C8102E" # PMS 186 export GOLD="#C8102E" # PMS 186 +export BLACK="#000000" +export WHITE="#FFFFFF" +export COLOR="red" diff --git a/src/colors/white.sh b/src/colors/white.sh index fe21f9f..76b75ac 100644 --- a/src/colors/white.sh +++ b/src/colors/white.sh @@ -1,2 +1,5 @@ export RED="#FFFFFF" export GOLD="#FFFFFF" +export BLACK="#000000" +export WHITE="#000000" +export COLOR="white"