Skip to content

Commit 11b3386

Browse files
authored
Added bundled theming example (#82)
1 parent 88eaf10 commit 11b3386

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,13 @@ The `defaultProps` you'd typically apply in a basic use-case, contain a default
349349
This theme is [duotoneDark](./src/themes/duotoneDark.js).
350350
351351
While all `className`s are provided with `<Highlight />`, so that you could use your good
352-
old Prism CSS-file themes, you can also choose to use `react-prism-renderer`'s themes.
352+
old Prism CSS-file themes, you can also choose to use `react-prism-renderer`'s themes like so:
353+
354+
```jsx
355+
import dracula from 'prism-react-renderer/themes/dracula';
356+
357+
<Highlight theme={dracula} {/* ... */} />
358+
```
353359

354360
These themes are JSON-based and are heavily inspired by VSCode's theme format.
355361

0 commit comments

Comments
 (0)