Skip to content

Commit c5c0afe

Browse files
committedDec 6, 2022
feat(gruvbox): add gruvboxDarkInit/gruvboxLightInit method to gruvbox theme.
1 parent 129d8e3 commit c5c0afe

File tree

6 files changed

+258
-220
lines changed

6 files changed

+258
-220
lines changed
 

‎themes/gruvbox/README.md

+24
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,30 @@ This package implements the [gruvbox](https://github.com/morhetz/gruvbox) light
2222
npm install @uiw/codemirror-theme-gruvbox-dark --save
2323
```
2424

25+
```jsx
26+
import { gruvboxDark, gruvboxDarkInit, gruvboxLight, gruvboxLightInit } from '@uiw/codemirror-theme-nord';
27+
28+
<CodeMirror theme={gruvboxDark} />
29+
<CodeMirror
30+
theme={gruvboxDarkInit({
31+
settings: {
32+
caret: '#c6c6c6',
33+
fontFamily: 'monospace',
34+
}
35+
})}
36+
/>
37+
```
38+
39+
## API
40+
41+
```tsx
42+
import { CreateThemeOptions } from '@uiw/codemirror-themes';
43+
export declare const gruvboxDarkInit: (options?: CreateThemeOptions) => import('@codemirror/state').Extension;
44+
export declare const gruvboxDark: import('@codemirror/state').Extension;
45+
export declare const gruvboxLightInit: (options?: CreateThemeOptions) => import('@codemirror/state').Extension;
46+
export declare const gruvboxLight: import('@codemirror/state').Extension;
47+
```
48+
2549
## Usage
2650

2751
```jsx

0 commit comments

Comments
 (0)
Failed to load comments.