Skip to content
This repository has been archived by the owner on Jan 16, 2022. It is now read-only.

Commit

Permalink
feat: accept primary color to be configured (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
jamiebuilds authored and juanpicado committed Apr 25, 2019
1 parent eda98b8 commit d6a8f55
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/webui/template/index.html
Expand Up @@ -12,6 +12,7 @@
window.VERDACCIO_API_URL = '<%= htmlWebpackPlugin.options.verdaccioURL %>/-/verdaccio/';
window.VERDACCIO_SCOPE = '<%= htmlWebpackPlugin.options.scope %>';
window.VERDACCIO_LOGO = '<%= htmlWebpackPlugin.options.logo %>';
window.VERDACCIO_PRIMARY_COLOR = '<%= htmlWebpackPlugin.options.primary_color %>';
window.VERDACCIO_VERSION = '<%= htmlWebpackPlugin.options.version_app %>';
</script>
</head>
Expand Down
2 changes: 1 addition & 1 deletion src/webui/utils/styles/colors.js
Expand Up @@ -30,7 +30,7 @@ const colors = {
// Main colors
// -------------------------

primary: '#4b5e40',
primary: window.VERDACCIO_PRIMARY_COLOR || '#4b5e40',
secondary: '#20232a',

};
Expand Down
1 change: 1 addition & 0 deletions tools/webpack.prod.config.babel.js
Expand Up @@ -47,6 +47,7 @@ const prodConf = {
title: 'ToReplaceByTitle',
scope: 'ToReplaceByScope',
logo: 'ToReplaceByLogo',
primary_color: 'ToReplaceByPrimaryColor',
filename: 'index.html',
favicon: `${env.SRC_ROOT}/webui/template/favicon.ico`,
verdaccioURL: 'ToReplaceByVerdaccio',
Expand Down

0 comments on commit d6a8f55

Please sign in to comment.