From d726cf935b137b0feef6dd6d2cd818921054ef0f Mon Sep 17 00:00:00 2001 From: Connor James Smith Date: Sat, 21 Dec 2024 19:47:25 -0500 Subject: [PATCH 1/2] Add alt text to logo image --- core/src/main/scala/io/circe/sbt/CirceOrgSitePlugin.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/scala/io/circe/sbt/CirceOrgSitePlugin.scala b/core/src/main/scala/io/circe/sbt/CirceOrgSitePlugin.scala index 18b91a0..85d7b13 100644 --- a/core/src/main/scala/io/circe/sbt/CirceOrgSitePlugin.scala +++ b/core/src/main/scala/io/circe/sbt/CirceOrgSitePlugin.scala @@ -108,7 +108,7 @@ object CirceOrgSitePlugin extends AutoPlugin { .topNavigationBar( homeLink = ImageLink.external( "https://github.com/circe/circe", - Image.internal(Root / "images" / "circe_light_no_border_146x173.png") + Image.internal(Root / "images" / "circe_light_no_border_146x173.png", alt = Some("circe logo")) ), navLinks = Seq( IconLink.external("https://discord.gg/XF3CXcMzqD", HeliumIcon.chat) From 033d6981fdd2acca13203aeb1e8baf4488a80861 Mon Sep 17 00:00:00 2001 From: Connor James Smith Date: Sat, 21 Dec 2024 19:48:01 -0500 Subject: [PATCH 2/2] Update CirceOrgSite Theme to have better contrast --- .../io/circe/sbt/CirceOrgSitePlugin.scala | 24 +++++++++++++------ 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/core/src/main/scala/io/circe/sbt/CirceOrgSitePlugin.scala b/core/src/main/scala/io/circe/sbt/CirceOrgSitePlugin.scala index 85d7b13..671054f 100644 --- a/core/src/main/scala/io/circe/sbt/CirceOrgSitePlugin.scala +++ b/core/src/main/scala/io/circe/sbt/CirceOrgSitePlugin.scala @@ -85,16 +85,26 @@ object CirceOrgSitePlugin extends AutoPlugin { /* See scaladoc on laika.helium.config.CommonConfigOps#themeColors() * old circe website color theme reference point: * https://github.com/circe/circe/blob/c666f32f3bd02644a927b624f7534fdeccbd62a6/build.sbt#L151 + * + * The inline comments are because many editors recognize hex colors + * in the #4a4a4a format, so you should be able to see them at a glance. + * */ + // format: off .themeColors( - primary = Color.hex("222749"), - secondary = Color.hex("222749"), - primaryMedium = Color.hex("292E53"), - primaryLight = Color.hex("5B5988"), - text = Color.hex("5f5f5f"), - background = Color.hex("F4F3F4"), - bgGradient = (Color.hex("F4F3F4"), Color.hex("E5E5E6")) + primary = Color.hex("34324D"), // #34324D + secondary = Color.hex("262D52"), // #262D52 + primaryMedium = Color.hex("8F8BD5"), // #8F8BD5 + primaryLight = Color.hex("A29DF2"), // #A29DF2 + text = Color.hex("4a4a4a"), // #4a4a4a + background = Color.hex("F8F5FF"), // #F8F5FF + // gradient not used in current configuraiton + bgGradient = ( + Color.hex("F4F3F4"), + Color.hex("E5E5E6") + ) ) + // format: on .site .favIcons( Favicon.internal(Root / "images" / "circe_light_no_border_146x173.png", "32x32")