Skip to content

Commit

Permalink
change(headers): added headerColor variable so that thematic sites ca…
Browse files Browse the repository at this point in the history
…n easily choose another heading color

- also introduced contentAreaColor since this color will probably only be set for the new eea website
  • Loading branch information
ichim-david committed Aug 20, 2022
1 parent 7d81308 commit f09d2c5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 5 additions & 2 deletions theme/themes/eea/globals/site.overrides
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,12 @@ h1, h2, h3, h4, h5, h6 {
letter-spacing: @font-letterspacing-00;
}

h2, h3, h4, h5, h6,
h2, h3, h4, h5, h6 {
color: @headerColor;
}

.content-area {
color: @tertiaryColor;
color: @contentAreaColor;
}

// text smaller than body has extra letterspacing as described in docusaurus
Expand Down
2 changes: 2 additions & 0 deletions theme/themes/eea/globals/site.variables
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@

@headerLineHeight : 1.2;
@headerFontWeight : @font-weight-7;
@headerColor: @tertiaryColor;

@h1 : unit((44 / @fontSize), rem);
@h2 : unit((32 / @fontSize), rem);
Expand Down Expand Up @@ -181,6 +182,7 @@
@lineHeight : @font-lineheight-3;
@mobileLineHeight : @font-lineheight-3;
@textColor : rgba(0, 0, 0, 1);
@contentAreaColor : @headerColor;

/*-------------------
Paragraph
Expand Down

0 comments on commit f09d2c5

Please sign in to comment.