Skip to content

Commit

Permalink
feat(solarized): add solarizedLightInit/solarizedDarkInit method to s…
Browse files Browse the repository at this point in the history
…olarized theme.
  • Loading branch information
jaywcjlove committed Dec 6, 2022
1 parent a664aae commit 26aee9f
Show file tree
Hide file tree
Showing 2 changed files with 251 additions and 213 deletions.
24 changes: 24 additions & 0 deletions themes/solarized/README.md
Expand Up @@ -22,6 +22,30 @@ This package implements the [Solarized](https://ethanschoonover.com/solarized/)
npm install @uiw/codemirror-theme-solarized --save
```

```jsx
import { solarizedLight, solarizedLightInit, solarizedDark, solarizedDarkInit } from '@uiw/codemirror-theme-vscode';

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

## API

```tsx
import { CreateThemeOptions } from '@uiw/codemirror-themes';
export declare const solarizedLightInit: (options?: CreateThemeOptions) => import('@codemirror/state').Extension;
export declare const solarizedLight: import('@codemirror/state').Extension;
export declare const solarizedDarkInit: (options?: CreateThemeOptions) => import('@codemirror/state').Extension;
export declare const solarizedDark: import('@codemirror/state').Extension;
```

## Usage

```jsx
Expand Down

0 comments on commit 26aee9f

Please sign in to comment.