Skip to main content

Config Creator

This section will allow you to build a config object for customising the UI. It will also help you encode it and preview it in the browser.

info
You can still use the top-level query params, discussed previously, such as ?access_token=... or ?hide_navigation=true. These will take precedence over the values defined in the config.

Authentication

or

Unauthenticated

Business

Override PowerAPI's name

Override PowerAPI's logo

Select...

Users business that should be selected initially, defaults to the first business

Controls

Hide header
Hide navigation
Hide tabs
Select...

Overrides the users and browsers preference

CSS

:root {
--powerapi-color-primary: 192 38 211;
/* change colors using r,g,b values */
/* try changing the following to */
/* orange using 234 88 12 */
--powerapi-color-primary-light: 219 39 119;
--powerapi-color-primary-dark: 23 27 94;
--powerapi-color-error: 230 14 82;
--powerapi-color-danger: 234 49 35;
--powerapi-color-warning: 247 194 0;
--powerapi-color-success: 30 170 102;
--powerapi-color-disabled: 174 179 189
}

Strings

Preview

The initial url or path and query which will be merged into the preview URL

Output

Config
{
"hide": {
"header": false,
"navigation": false,
"tabs": false
},
"css": "data:text/css;base64,OnJvb3QgewogICAgLS1wb3dlcmFwaS1jb2xvci1wcmltYXJ5OiAxOTIgMzggMjExOwogICAgLyogY2hhbmdlIGNvbG9ycyB1c2luZyByLGcsYiB2YWx1ZXMgKi8KICAgIC8qIHRyeSBjaGFuZ2luZyB0aGUgZm9sbG93aW5nIHRvICovCiAgICAvKiBvcmFuZ2UgdXNpbmcgMjM0IDg4IDEyICovCiAgICAtLXBvd2VyYXBpLWNvbG9yLXByaW1hcnktbGlnaHQ6IDIxOSAzOSAxMTk7CiAgICAtLXBvd2VyYXBpLWNvbG9yLXByaW1hcnktZGFyazogMjMgMjcgOTQ7CiAgICAtLXBvd2VyYXBpLWNvbG9yLWVycm9yOiAyMzAgMTQgODI7CiAgICAtLXBvd2VyYXBpLWNvbG9yLWRhbmdlcjogMjM0IDQ5IDM1OwogICAgLS1wb3dlcmFwaS1jb2xvci13YXJuaW5nOiAyNDcgMTk0IDA7CiAgICAtLXBvd2VyYXBpLWNvbG9yLXN1Y2Nlc3M6IDMwIDE3MCAxMDI7CiA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for the preview, use the Authentication widget at the top of the page to generate one.