Gathering detailed insights and metrics for @uiw/codemirror-theme-red
Gathering detailed insights and metrics for @uiw/codemirror-theme-red
Gathering detailed insights and metrics for @uiw/codemirror-theme-red
Gathering detailed insights and metrics for @uiw/codemirror-theme-red
npm install @uiw/codemirror-theme-red
Typescript
Module System
Node Version
NPM Version
TypeScript (93.5%)
HTML (4.18%)
JavaScript (2.17%)
CSS (0.15%)
Total Downloads
212,653
Last Day
1,825
Last Week
9,325
Last Month
31,667
Last Year
197,247
1,750 Stars
934 Commits
140 Forks
8 Watching
14 Branches
50 Contributors
Latest Version
4.23.8
Package Id
@uiw/codemirror-theme-red@4.23.8
Unpacked Size
15.35 kB
Size
3.69 kB
File Count
12
NPM Version
10.8.2
Node Version
20.18.2
Publised On
04 Feb 2025
Cumulative downloads
Total Downloads
Last day
22.2%
1,825
Compared to previous day
Last week
22.6%
9,325
Compared to previous week
Last month
16.5%
31,667
Compared to previous month
Last year
1,180.3%
197,247
Compared to previous year
1
Red theme for cm6, generated from vscode themes.
1npm install @uiw/codemirror-theme-red --save
1import { EditorState } from '@codemirror/state'; 2import { javascript } from '@codemirror/lang-javascript'; 3import { red } from '@uiw/codemirror-theme-red'; 4 5const state = EditorState.create({ 6 doc: 'my source code', 7 extensions: [red, javascript({ jsx: true })], 8});
Using in React:
1import { red, redInit } from '@uiw/codemirror-theme-red'; 2 3<CodeMirror theme={red} /> 4<CodeMirror 5 theme={redInit({ 6 settings: { 7 caret: '#c6c6c6', 8 fontFamily: 'monospace', 9 } 10 })} 11/>
1import { CreateThemeOptions } from '@uiw/codemirror-themes'; 2export declare const defaultSettingsQuietlight: CreateThemeOptions['settings']; 3export declare const redInit: (options?: Partial<CreateThemeOptions>) => import('@codemirror/state').Extension; 4export declare const red: import('@codemirror/state').Extension;
1import CodeMirror from '@uiw/react-codemirror'; 2import { red } from '@uiw/codemirror-theme-red'; 3import { javascript } from '@codemirror/lang-javascript'; 4 5function App() { 6 return ( 7 <CodeMirror 8 value="console.log('hello world!');" 9 height="200px" 10 theme={red} 11 extensions={[javascript({ jsx: true })]} 12 onChange={(value, viewUpdate) => { 13 console.log('value:', value); 14 }} 15 /> 16 ); 17} 18export default App;
1import { EditorView } from '@codemirror/view'; 2import { EditorState } from '@codemirror/state'; 3import { javascript } from '@codemirror/lang-javascript'; 4import { red } from '@uiw/codemirror-theme-red'; 5 6const state = EditorState.create({ 7 doc: 'my source code', 8 extensions: [red, javascript({ jsx: true })], 9}); 10 11const view = new EditorView({ 12 parent: document.querySelector('#editor'), 13 state, 14});
As always, thanks to our amazing contributors!
Made with github-action-contributors.
Licensed under the MIT License.
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
0 existing vulnerabilities detected
Reason
packaging workflow detected
Details
Reason
4 commit(s) and 5 issue activity found in the last 90 days -- score normalized to 7
Reason
Found 5/30 approved changesets -- score normalized to 1
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
project is not fuzzed
Details
Reason
security policy file not detected
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-01-27
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More