Skip to content

Commit

Permalink
📝 Update theme docs for contributing
Browse files Browse the repository at this point in the history
  • Loading branch information
almond-bongbong committed Jun 7, 2023
1 parent 966f710 commit b7a88ff
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
18 changes: 13 additions & 5 deletions example/src/page/theme/theme.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -223,12 +223,20 @@ export default function App() {
</p>
<ul className={styles.list}>
<li>
Add your theme name to the <code>theme</code> attribute in the{' '}
<code>ToastOptions</code>{' '}
<a href="https://github.com/almond-bongbong/react-simple-toasts/blob/780b253c165a038258efbd7f1c062a35f75274a8/src/index.tsx#L20">
interface
Add your theme name to the <code>Themes</code> constant in the{' '}
<a href="https://github.com/almond-bongbong/react-simple-toasts/blob/master/src/index.tsx#L20">
source code
</a>
.
. It should look something like this:
<div className={styles.code}>
<CommonHighlighter language="javascript">{`// After addition, your theme should be included as follows:
export const Themes = {
LIGHT: 'light',
DARK: 'dark',
YOUR_THEME_NAME: 'your_theme_name',
} as const;`}</CommonHighlighter>
</div>
<br />
</li>
<li>
Create a CSS file with the same name as your theme, and add it to
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-simple-toasts",
"version": "4.0.0",
"version": "4.0.1",
"description": "React Simple Toasts is a simple and easy-to-use toast message popup for React.",
"author": "almond-bongbong",
"homepage": "https://github.com/almond-bongbong/react-simple-toasts",
Expand Down

0 comments on commit b7a88ff

Please sign in to comment.