Change solution to make theme color brandable

This commit is contained in:
Wolfgang Huß 2024-10-23 15:32:01 +02:00
parent ba0271a1a9
commit 54489956ff
3 changed files with 4 additions and 10 deletions

View File

@ -28,14 +28,6 @@ $color-yellow: rgb(245, 196, 0);
$color-yellow-active: rgb(255, 206, 10); $color-yellow-active: rgb(255, 206, 10);
$color-yellow-inverse: rgb(255, 252, 240); $color-yellow-inverse: rgb(255, 252, 240);
/**
* @tokens Theme
* @presenter Color
*/
// main color in general. e.g. the color in the background of the app that is visible behind the transparent iPhone status bar to name one use case, or the current color of SVGs to name another use case
$theme-color: $color-primary;
/** /**
* @tokens Color Neutral * @tokens Color Neutral
* @presenter Color * @presenter Color

View File

@ -1,9 +1,10 @@
import metadata from './metadata.js' import metadata from './metadata.js'
const { APPLICATION_NAME, APPLICATION_SHORT_NAME, APPLICATION_DESCRIPTION } = metadata const { APPLICATION_NAME, APPLICATION_SHORT_NAME, APPLICATION_DESCRIPTION, THEME_COLOR } = metadata
export default { export default {
name: APPLICATION_NAME, name: APPLICATION_NAME,
short_name: APPLICATION_SHORT_NAME, short_name: APPLICATION_SHORT_NAME,
description: APPLICATION_DESCRIPTION, description: APPLICATION_DESCRIPTION,
theme_color: '$theme-color', theme_color: THEME_COLOR,
lang: 'en', lang: 'en',
} }

View File

@ -6,4 +6,5 @@ export default {
COOKIE_NAME: 'ocelot-social-token', COOKIE_NAME: 'ocelot-social-token',
ORGANIZATION_NAME: 'ocelot.social Community', ORGANIZATION_NAME: 'ocelot.social Community',
ORGANIZATION_JURISDICTION: 'City of Angels', ORGANIZATION_JURISDICTION: 'City of Angels',
THEME_COLOR: 'rgb(23, 181, 63)', // main color in general. e.g. the color in the background of the app that is visible behind the transparent iPhone status bar to name one use case, or the current color of SVGs to name another use case
} }