Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@uiw/codemirror-themes

Package Overview
Dependencies
Maintainers
2
Versions
99
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@uiw/codemirror-themes - npm Package Compare versions

Comparing version 4.13.2 to 4.14.0

2

cjs/index.d.ts

@@ -33,2 +33,4 @@ import { Extension } from '@codemirror/state';

gutterForeground?: string;
/** Text active color inside gutter. */
gutterActiveForeground?: string;
/** Gutter right border color. */

@@ -35,0 +37,0 @@ gutterBorder?: string;

9

cjs/index.js

@@ -37,2 +37,6 @@ "use strict";

}
var activeLineGutterStyle = {};
if (settings.gutterActiveForeground) {
activeLineGutterStyle.color = settings.gutterActiveForeground;
}
if (settings.lineHighlight) {

@@ -42,6 +46,5 @@ themeOptions['.cm-activeLine'] = {

};
themeOptions['.cm-activeLineGutter'] = {
backgroundColor: settings.lineHighlight
};
activeLineGutterStyle.backgroundColor = settings.lineHighlight;
}
themeOptions['.cm-activeLineGutter'] = activeLineGutterStyle;
if (settings.selection) {

@@ -48,0 +51,0 @@ themeOptions['&.cm-focused .cm-selectionBackground .cm-selectionBackground, & .cm-selectionLayer .cm-selectionBackground, ::selection'] = {

@@ -33,2 +33,4 @@ import { Extension } from '@codemirror/state';

gutterForeground?: string;
/** Text active color inside gutter. */
gutterActiveForeground?: string;
/** Gutter right border color. */

@@ -35,0 +37,0 @@ gutterBorder?: string;

@@ -33,2 +33,6 @@ import { EditorView } from '@codemirror/view';

}
var activeLineGutterStyle = {};
if (settings.gutterActiveForeground) {
activeLineGutterStyle.color = settings.gutterActiveForeground;
}
if (settings.lineHighlight) {

@@ -38,6 +42,5 @@ themeOptions['.cm-activeLine'] = {

};
themeOptions['.cm-activeLineGutter'] = {
backgroundColor: settings.lineHighlight
};
activeLineGutterStyle.backgroundColor = settings.lineHighlight;
}
themeOptions['.cm-activeLineGutter'] = activeLineGutterStyle;
if (settings.selection) {

@@ -44,0 +47,0 @@ themeOptions['&.cm-focused .cm-selectionBackground .cm-selectionBackground, & .cm-selectionLayer .cm-selectionBackground, ::selection'] = {

{
"name": "@uiw/codemirror-themes",
"version": "4.13.2",
"version": "4.14.0",
"description": "Themes for CodeMirror.",

@@ -5,0 +5,0 @@ "homepage": "https://uiwjs.github.io/react-codemirror/#/theme/doc",

@@ -197,2 +197,8 @@ # Custom Codemirror Themes

**vscode**
<a href="https://uiwjs.github.io/react-codemirror/#/theme/data/vscode/dark">
<img width="436" alt="codemirror-theme-vscode dark" src="https://user-images.githubusercontent.com/1680273/202343079-7eca1c90-da69-4ef2-a18c-4c9f5ea4e396.png">
</a>
**xcode**

@@ -199,0 +205,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc