mirror of
https://github.com/wkulhanek/bonob.git
synced 2025-12-22 01:43:29 +01:00
Ability to specify hex colors (#72)
This commit is contained in:
@@ -3,6 +3,7 @@ import logger from "./logger";
|
||||
import url from "./url_builder";
|
||||
|
||||
export const WORD = /^\w+$/;
|
||||
export const COLOR = /^#?\w+$/;
|
||||
|
||||
type EnvVarOpts = {
|
||||
default: string | undefined;
|
||||
@@ -64,10 +65,10 @@ export default function () {
|
||||
secret: bnbEnvVar("SECRET", { default: "bonob" })!,
|
||||
icons: {
|
||||
foregroundColor: bnbEnvVar("ICON_FOREGROUND_COLOR", {
|
||||
validationPattern: WORD,
|
||||
validationPattern: COLOR,
|
||||
}),
|
||||
backgroundColor: bnbEnvVar("ICON_BACKGROUND_COLOR", {
|
||||
validationPattern: WORD,
|
||||
validationPattern: COLOR,
|
||||
}),
|
||||
},
|
||||
sonos: {
|
||||
|
||||
Reference in New Issue
Block a user