Skip to content

Commit

Permalink
Merge pull request #78 from codepunkt/slack_themes
Browse files Browse the repository at this point in the history
feat: slack themes
  • Loading branch information
octref authored Sep 2, 2020
2 parents c9ec43a + abf65b2 commit 8b1c9c9
Show file tree
Hide file tree
Showing 6 changed files with 1,152 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

### 0.2.3 | 2020-09-02

- Add `slack-theme-dark-mode` and `slack-theme-ochin` themes. Thanks to contribution from [Christoph Werner](https://github.com/codepunkt). [#78](https://github.com/shikijs/shiki/pull/78).

### 0.2.2 | 2020-08-26

- Fix dark-plus syntax highlighting for uncolored white text.
Expand Down
6 changes: 4 additions & 2 deletions packages/themes/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,16 @@ export type Theme =
| 'min-light'
| 'monokai'
| 'nord'
| 'slack-theme-dark-mode'
| 'slack-theme-ochin'
| 'solarized-dark'
| 'solarized-light'
```
## Yours
```js
const shiki = require('shiki')
const shiki = require('shiki')

const t = shiki.loadTheme('./my-theme.json')

Expand All @@ -53,4 +55,4 @@ Here are the places you need to change:
- `yarn update:themes`
- [./src/index.ts](./src/index.ts)
- [./src/types.ts](./src/types.ts)
- [Literal Values](./README.md#literal-values)
- [Literal Values](./README.md#literal-values)
Loading

0 comments on commit 8b1c9c9

Please sign in to comment.