Skip to content

Commit

Permalink
Light branding for the reference site (WordPress#65764)
Browse files Browse the repository at this point in the history
* Update theme.js

* auareyou changes

Color changes and added static directory to swap out logo

* Image swap

* Typography

* Update theme.js

* Format storybook/theme.js

* Logo lossless compression

---------

Co-authored-by: Marco Ciampini <[email protected]>
  • Loading branch information
auareyou and ciampo authored Oct 2, 2024
1 parent bed3a43 commit d660f37
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 2 deletions.
1 change: 1 addition & 0 deletions storybook/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ module.exports = {
disableTelemetry: true,
},
stories,
staticDirs: [ './static' ],
addons: [
{
name: '@storybook/addon-docs',
Expand Down
Binary file added storybook/static/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
35 changes: 33 additions & 2 deletions storybook/theme.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,37 @@ import { create } from '@storybook/theming/create';
export default create( {
base: 'light',
brandTitle: 'WordPress Components',
brandImage:
'https://s.w.org/style/images/about/WordPress-logotype-wmark.png',
brandImage: './[email protected]',

// Typography
fontBase:
'-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif',
fontCode: 'monospace',

//
colorPrimary: '#3858E9',
colorSecondary: '#3858E9',

// UI
appBg: '#ffffff',
appContentBg: '#ffffff',
appPreviewBg: '#ffffff',
appBorderColor: '#DCDCDE',
appBorderRadius: 4,

// Text colors
textColor: '#10162F',
textInverseColor: '#ffffff',

// Toolbar default and active colors
barTextColor: '#9E9E9E',
barSelectedColor: '#3858E9',
barHoverColor: '#3858E9',
barBg: '#ffffff',

// Form colors
inputBg: '#ffffff',
inputBorder: '#10162F',
inputTextColor: '#10162F',
inputBorderRadius: 2,
} );

0 comments on commit d660f37

Please sign in to comment.