-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Yext branding to the Storybook site (#211)
This PR makes some changes to the branding of the Storybook site to match some of the colors and styles from our components using Storybook theming. The title of the site has been updated and includes the Yext logo, and clicking on the title opens a new tab with the Github repo. The Yext logo is also displayed on the browser tab. J=SLAP-2176 TEST=none <img width="1295" alt="Screen Shot 2022-06-29 at 12 33 11 PM" src="https://user-images.githubusercontent.com/88398086/176489016-f6977733-0397-4243-8ded-8bfc78feb729.png">
- Loading branch information
Showing
6 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<link rel="icon" href="./yextIcon.svg"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
const { addons } = require('@storybook/addons'); | ||
|
||
addons.setConfig({ | ||
theme: require('./yextTheme.cjs') | ||
}); |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
const { create } = require('@storybook/theming'); | ||
|
||
module.exports = create({ | ||
base: 'light', | ||
colorPrimary: '#eeeff0', | ||
colorSecondary: '#2563eb', | ||
|
||
// UI | ||
appBg: '#fafafa', | ||
appContentBg: 'white', | ||
appBorderColor: '#eeeff0', | ||
appBorderRadius: 6, | ||
|
||
// Text colors | ||
textColor: 'black', | ||
textMutedColor: '#4b5563', | ||
|
||
// Toolbar colors | ||
barTextColor: '#4b5563', | ||
barBg: '#eeeff0', | ||
|
||
// Form | ||
inputBg: 'white', | ||
inputTextColor: 'black', | ||
inputBorder: '#9ca3af', | ||
inputBorderRadius: 4, | ||
|
||
// Brand logo | ||
brandTitle: 'Yext Component Library', | ||
brandUrl: 'https://github.com/yext/answers-react-components', | ||
brandImage: './logo.png' | ||
}); |