@codemirror/theme-one-dark
Advanced tools
| import { Extension } from '@codemirror/state'; | ||
| import { HighlightStyle } from '@codemirror/language'; | ||
| /** | ||
| The colors used in the theme, as CSS color strings. | ||
| */ | ||
| declare const color: { | ||
| chalky: string; | ||
| coral: string; | ||
| cyan: string; | ||
| invalid: string; | ||
| ivory: string; | ||
| stone: string; | ||
| malibu: string; | ||
| sage: string; | ||
| whiskey: string; | ||
| violet: string; | ||
| darkBackground: string; | ||
| highlightBackground: string; | ||
| background: string; | ||
| tooltipBackground: string; | ||
| selection: string; | ||
| cursor: string; | ||
| }; | ||
| /** | ||
| The editor theme styles for One Dark. | ||
| */ | ||
| declare const oneDarkTheme: Extension; | ||
| /** | ||
| The highlighting style for code in the One Dark theme. | ||
| */ | ||
| declare const oneDarkHighlightStyle: HighlightStyle; | ||
| /** | ||
| Extension to enable the One Dark theme (both the editor theme and | ||
| the highlight style). | ||
| */ | ||
| declare const oneDark: Extension; | ||
| export { color, oneDark, oneDarkHighlightStyle, oneDarkTheme }; |
+5
-0
@@ -0,1 +1,6 @@ | ||
| ## 6.1.3 (2025-06-19) | ||
| ### Bug fixes | ||
| Add a .d.cts file to make TypeScript happy. | ||
| ## 6.1.2 (2023-04-17) | ||
@@ -2,0 +7,0 @@ |
+0
-2
| 'use strict'; | ||
| Object.defineProperty(exports, '__esModule', { value: true }); | ||
| var view = require('@codemirror/view'); | ||
@@ -6,0 +4,0 @@ var language = require('@codemirror/language'); |
+2
-2
| { | ||
| "name": "@codemirror/theme-one-dark", | ||
| "version": "6.1.2", | ||
| "version": "6.1.3", | ||
| "description": "One Dark theme for the CodeMirror code editor", | ||
@@ -35,3 +35,3 @@ "scripts": { | ||
| "devDependencies": { | ||
| "@codemirror/buildhelper": "^0.1.0" | ||
| "@codemirror/buildhelper": "^1.0.0" | ||
| }, | ||
@@ -38,0 +38,0 @@ "repository": { |
20037
4.99%9
12.5%305
-0.33%