Skip to content

Commit

Permalink
Merge pull request #141 from NeOMakinG/brand-storybook
Browse files Browse the repository at this point in the history
Brand storybook to PrestaShop colors
  • Loading branch information
PierreRambaud authored Sep 10, 2021
2 parents 7b20b7b + 015e6a5 commit 939125d
Show file tree
Hide file tree
Showing 8 changed files with 58 additions and 4 deletions.
1 change: 1 addition & 0 deletions .storybook/logo-prestashop.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions .storybook/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,7 @@ module.exports = {

return config;
},
addonActionsTheme: {
BASE_COLOR: 'red',
},
};
5 changes: 5 additions & 0 deletions .storybook/manager-head.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<style>
#panel-tab-content {
color: #272a2d;
}
</style>
7 changes: 7 additions & 0 deletions .storybook/manager.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import {addons} from '@storybook/addons';
import {themes} from '@storybook/theming';
import psTheme from './ps-theme';

addons.setConfig({
theme: psTheme,
});
33 changes: 33 additions & 0 deletions .storybook/ps-theme.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
import {create} from '@storybook/theming';
import logoUrl from './logo-prestashop.svg';

export default create({
base: 'dark',
brandTitle: 'PrestaShop',
brandUrl: 'https://www.prestashop.com',
brandImage: logoUrl,

colorPrimary: '#6c868e',
colorSecondary: '#25b9d7',

// UI
appBg: '#363a41',
appContentBg: 'white',
appBorderRadius: 4,

barTextColor: 'white',
barSelectedColor: '#25b9d7',
barBg: '#272a2d',

// Typography
fontBase: '"Open Sans", sans-serif',
fontCode: 'monospace',

// Text colors
textColor: 'white',
textInverseColor: 'rgba(255,255,255,0.9)',

// Form
inputTextColor: 'black',
inputBorderRadius: 4,
});
4 changes: 4 additions & 0 deletions .storybook/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,7 @@
body {
background-color: transparent;
}

.os-host {
color: red;
}
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"build": "NODE_ENV=production webpack --progress --debug",
"scss-lint": "stylelint \"**/*.scss\"",
"scss-fix": "stylelint \"**/*.scss\" --fix",
"storybook": "start-storybook -p 6006",
"storybook": "start-storybook -p 6006 --no-manager-cache",
"build-storybook": "build-storybook"
},
"author": "PrestaShop",
Expand All @@ -39,6 +39,7 @@
"@storybook/addon-essentials": "^6.2.8",
"@storybook/addon-links": "^6.2.8",
"@storybook/html": "^6.2.8",
"@storybook/theming": "^6.2.8",
"babel-loader": "^8.1.0",
"babel-plugin-transform-es2015-modules-strip": "^0.1.1",
"babel-preset-env": "^1.6.1",
Expand Down

0 comments on commit 939125d

Please sign in to comment.