UNPKG

@polls-platform/core

Version:

Polls Platform core library

42 lines (41 loc) 1.55 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getThemeProperties = void 0; const types_1 = require("./types"); /* ****************************************************************************************************************** */ // region: Config /* ****************************************************************************************************************** */ const blueSteel = '#343e57'; const lightBackground = '#ffffff'; const darkBackground = '#0E0E0F'; const lightTint = '#ffffff'; const darkTint = blueSteel; // endregion /* ****************************************************************************************************************** */ // region: Utils /* ****************************************************************************************************************** */ function getThemeProperties(theme) { switch (theme) { default: case types_1.Theme.light: { return { colors: { backgroundColor: lightBackground, loadingTitleColor: darkTint, loadingIndicatorColor: darkTint, }, }; } case types_1.Theme.dark: { return { colors: { backgroundColor: darkBackground, loadingTitleColor: lightTint, loadingIndicatorColor: lightTint, }, }; } } } exports.getThemeProperties = getThemeProperties; // endregion