Skip to content

Commit

Permalink
feat(gruvbox): add gruvboxDarkInit/gruvboxLightInit method to gruvbox…
Browse files Browse the repository at this point in the history
… theme.
  • Loading branch information
jaywcjlove committed Dec 6, 2022
1 parent 129d8e3 commit c5c0afe
Show file tree
Hide file tree
Showing 6 changed files with 258 additions and 220 deletions.
24 changes: 24 additions & 0 deletions themes/gruvbox/README.md
Expand Up @@ -22,6 +22,30 @@ This package implements the [gruvbox](https://github.com/morhetz/gruvbox) light
npm install @uiw/codemirror-theme-gruvbox-dark --save
```

```jsx
import { gruvboxDark, gruvboxDarkInit, gruvboxLight, gruvboxLightInit } from '@uiw/codemirror-theme-nord';

<CodeMirror theme={gruvboxDark} />
<CodeMirror
theme={gruvboxDarkInit({
settings: {
caret: '#c6c6c6',
fontFamily: 'monospace',
}
})}
/>
```

## API

```tsx
import { CreateThemeOptions } from '@uiw/codemirror-themes';
export declare const gruvboxDarkInit: (options?: CreateThemeOptions) => import('@codemirror/state').Extension;
export declare const gruvboxDark: import('@codemirror/state').Extension;
export declare const gruvboxLightInit: (options?: CreateThemeOptions) => import('@codemirror/state').Extension;
export declare const gruvboxLight: import('@codemirror/state').Extension;
```

## Usage

```jsx
Expand Down

0 comments on commit c5c0afe

Please sign in to comment.