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

@uiw/codemirror-theme-dracula

Package Overview
Dependencies
Maintainers
2
Versions
98
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@uiw/codemirror-theme-dracula - npm Package Compare versions

Comparing version 4.19.8 to 4.19.9

1

cjs/index.d.ts
import { CreateThemeOptions } from '@uiw/codemirror-themes';
export declare const defaultSettingsDracula: CreateThemeOptions['settings'];
export declare const draculaInit: (options?: Partial<CreateThemeOptions>) => import("@codemirror/state").Extension;
export declare const dracula: import("@codemirror/state").Extension;

28

cjs/index.js

@@ -7,3 +7,3 @@ "use strict";

});
exports.draculaInit = exports.dracula = void 0;
exports.draculaInit = exports.dracula = exports.defaultSettingsDracula = void 0;
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));

@@ -20,6 +20,18 @@ var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));

var defaultSettingsDracula = {
background: '#282a36',
foreground: '#f8f8f2',
caret: '#f8f8f0',
selection: 'rgba(255, 255, 255, 0.1)',
selectionMatch: 'rgba(255, 255, 255, 0.2)',
gutterBackground: '#282a36',
gutterForeground: '#6D8A88',
gutterBorder: 'transparent',
lineHighlight: 'rgba(255, 255, 255, 0.1)'
};
exports.defaultSettingsDracula = defaultSettingsDracula;
var draculaInit = function draculaInit(options) {
var _ref = options || {},
_ref$theme = _ref.theme,
theme = _ref$theme === void 0 ? 'light' : _ref$theme,
theme = _ref$theme === void 0 ? 'dark' : _ref$theme,
_ref$settings = _ref.settings,

@@ -31,13 +43,3 @@ settings = _ref$settings === void 0 ? {} : _ref$settings,

theme: theme,
settings: (0, _objectSpread2["default"])({
background: '#282a36',
foreground: '#f8f8f2',
caret: '#f8f8f0',
selection: 'rgba(255, 255, 255, 0.1)',
selectionMatch: 'rgba(255, 255, 255, 0.2)',
gutterBackground: '#282a36',
gutterForeground: '#6D8A88',
gutterBorder: 'transparent',
lineHighlight: 'rgba(255, 255, 255, 0.1)'
}, settings),
settings: (0, _objectSpread2["default"])((0, _objectSpread2["default"])({}, defaultSettingsDracula), settings),
styles: [{

@@ -44,0 +46,0 @@ tag: _highlight.tags.comment,

import { CreateThemeOptions } from '@uiw/codemirror-themes';
export declare const defaultSettingsDracula: CreateThemeOptions['settings'];
export declare const draculaInit: (options?: Partial<CreateThemeOptions>) => import("@codemirror/state").Extension;
export declare const dracula: import("@codemirror/state").Extension;

@@ -10,5 +10,16 @@ import _extends from "@babel/runtime/helpers/extends";

import { createTheme } from '@uiw/codemirror-themes';
export var defaultSettingsDracula = {
background: '#282a36',
foreground: '#f8f8f2',
caret: '#f8f8f0',
selection: 'rgba(255, 255, 255, 0.1)',
selectionMatch: 'rgba(255, 255, 255, 0.2)',
gutterBackground: '#282a36',
gutterForeground: '#6D8A88',
gutterBorder: 'transparent',
lineHighlight: 'rgba(255, 255, 255, 0.1)'
};
export var draculaInit = options => {
var {
theme = 'light',
theme = 'dark',
settings = {},

@@ -19,13 +30,3 @@ styles = []

theme: theme,
settings: _extends({
background: '#282a36',
foreground: '#f8f8f2',
caret: '#f8f8f0',
selection: 'rgba(255, 255, 255, 0.1)',
selectionMatch: 'rgba(255, 255, 255, 0.2)',
gutterBackground: '#282a36',
gutterForeground: '#6D8A88',
gutterBorder: 'transparent',
lineHighlight: 'rgba(255, 255, 255, 0.1)'
}, settings),
settings: _extends({}, defaultSettingsDracula, settings),
styles: [{

@@ -32,0 +33,0 @@ tag: t.comment,

{
"name": "@uiw/codemirror-theme-dracula",
"version": "4.19.8",
"version": "4.19.9",
"description": "Theme dracula for CodeMirror.",

@@ -24,3 +24,3 @@ "homepage": "https://uiwjs.github.io/react-codemirror/#/theme/data/dracula",

"dependencies": {
"@uiw/codemirror-themes": "4.19.8"
"@uiw/codemirror-themes": "4.19.9"
},

@@ -27,0 +27,0 @@ "keywords": [

@@ -41,3 +41,4 @@ <!--rehype:ignore:start-->

import { CreateThemeOptions } from '@uiw/codemirror-themes';
export declare const draculaInit: (options?: CreateThemeOptions) => import('@codemirror/state').Extension;
export declare const defaultSettingsDracula: CreateThemeOptions['settings'];
export declare const draculaInit: (options?: Partial<CreateThemeOptions>) => import('@codemirror/state').Extension;
export declare const dracula: import('@codemirror/state').Extension;

@@ -44,0 +45,0 @@ ```

@@ -10,16 +10,20 @@ /**

export const defaultSettingsDracula: CreateThemeOptions['settings'] = {
background: '#282a36',
foreground: '#f8f8f2',
caret: '#f8f8f0',
selection: 'rgba(255, 255, 255, 0.1)',
selectionMatch: 'rgba(255, 255, 255, 0.2)',
gutterBackground: '#282a36',
gutterForeground: '#6D8A88',
gutterBorder: 'transparent',
lineHighlight: 'rgba(255, 255, 255, 0.1)',
};
export const draculaInit = (options?: Partial<CreateThemeOptions>) => {
const { theme = 'light', settings = {}, styles = [] } = options || {};
const { theme = 'dark', settings = {}, styles = [] } = options || {};
return createTheme({
theme: theme,
settings: {
background: '#282a36',
foreground: '#f8f8f2',
caret: '#f8f8f0',
selection: 'rgba(255, 255, 255, 0.1)',
selectionMatch: 'rgba(255, 255, 255, 0.2)',
gutterBackground: '#282a36',
gutterForeground: '#6D8A88',
gutterBorder: 'transparent',
lineHighlight: 'rgba(255, 255, 255, 0.1)',
...defaultSettingsDracula,
...settings,

@@ -26,0 +30,0 @@ },

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