Skip to content

Commit

Permalink
feat: Use Special App Variable for Text Colors - MEED-7095 - Meeds-io…
Browse files Browse the repository at this point in the history
…/MIPs#144 (#137)

This change will allow to brand application body contents independently
from General Branding/Theme color using different CSS variables.
  • Loading branch information
boubaker committed Jul 3, 2024
1 parent 5160971 commit 1c812f5
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ export function installApplication(navUri, applicationStorageId, applicationElem
export function getStyle(container, options) {
const style = {};
if (container.textColor) {
style['--allPagesBaseTextColor'] = container.textColor;
style['--appTextColor'] = container.textColor;
}
if (container.textHeaderColor) {
style['--allPagesBaseTextHeaderColor'] = container.textHeaderColor;
style['--appTextHeaderColor'] = container.textHeaderColor;
}
if (container.textSubtitleColor) {
style['--allPagesBaseTextSubtitleColor'] = container.textSubtitleColor;
style['--appTextSubtitleColor'] = container.textSubtitleColor;
}
if (!options.onlyBackgroundStyle) {
if (container.height) {
Expand Down

0 comments on commit 1c812f5

Please sign in to comment.