@fsegurai/codemirror-theme-one-dark 0.0.0-stage → 6.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +130 -2
- package/dist/index.cjs +795 -0
- package/dist/index.d.cts +28 -0
- package/dist/index.d.ts +28 -0
- package/dist/index.js +791 -0
- package/package.json +62 -4
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 fsegurai
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,131 @@
|
|
|
1
|
-
|
|
1
|
+
<p align="center">
|
|
2
|
+
<img alt="CodeMirror 6 Themes Logo" src="https://raw.githubusercontent.com/fsegurai/codemirror-themes/main/demo/public/codemirror-themes.svg">
|
|
3
|
+
</p>
|
|
2
4
|
|
|
3
|
-
|
|
5
|
+
<p align="center">
|
|
6
|
+
<a href="https://github.com/fsegurai/codemirror-themes">
|
|
7
|
+
<img src="https://img.shields.io/azure-devops/build/fsegurai/Libraries%2520NodeJs/16/main?label=Build%20Status&"
|
|
8
|
+
alt="Test Status">
|
|
9
|
+
</a>
|
|
10
|
+
<a href="https://www.npmjs.org/package/@fsegurai/codemirror-theme-one-dark">
|
|
11
|
+
<img src="https://img.shields.io/npm/v/@fsegurai/codemirror-theme-one-dark.svg"
|
|
12
|
+
alt="Latest Release">
|
|
13
|
+
</a>
|
|
14
|
+
<a href="https://www.npmjs.com/package/@fsegurai/codemirror-theme-one-dark">
|
|
15
|
+
<img src="https://img.shields.io/npm/dt/@fsegurai/codemirror-theme-one-dark"
|
|
16
|
+
alt="Total npm downloads">
|
|
17
|
+
</a>
|
|
18
|
+
<br>
|
|
19
|
+
<img alt="GitHub contributors" src="https://img.shields.io/github/contributors/fsegurai/codemirror-themes">
|
|
20
|
+
<img alt="Dependency status for repo" src="https://img.shields.io/librariesio/github/fsegurai/codemirror-themes">
|
|
21
|
+
<a href="https://opensource.org/licenses/MIT">
|
|
22
|
+
<img alt="GitHub License" src="https://img.shields.io/github/license/fsegurai/codemirror-themes">
|
|
23
|
+
</a>
|
|
24
|
+
<br>
|
|
25
|
+
<img alt="Stars" src="https://img.shields.io/github/stars/fsegurai/codemirror-themes?style=square&labelColor=343b41"/>
|
|
26
|
+
<img alt="Forks" src="https://img.shields.io/github/forks/fsegurai/codemirror-themes?style=square&labelColor=343b41"/>
|
|
27
|
+
</p>
|
|
28
|
+
|
|
29
|
+
**A library of custom themes for CodeMirror 6.**
|
|
30
|
+
|
|
31
|
+
`@fsegurai/codemirror-theme-one-dark` is a theme for CodeMirror 6 editor, making it visually engaging and adaptable to different coding styles and user preferences.
|
|
32
|
+
|
|
33
|
+
### Table of contents
|
|
34
|
+
|
|
35
|
+
- [Installation](#installation)
|
|
36
|
+
- [@fsegurai/codemirror-theme-one-dark](#@fsegurai/codemirror-theme-one-dark)
|
|
37
|
+
- [Using Theme](#using-theme)
|
|
38
|
+
- [More Resources](#more-resources)
|
|
39
|
+
- [Available Themes](#available-themes)
|
|
40
|
+
- [Demo Application](#demo-application)
|
|
41
|
+
- [License](#license)
|
|
42
|
+
|
|
43
|
+
## Installation
|
|
44
|
+
|
|
45
|
+
### @fsegurai/codemirror-theme-one-dark
|
|
46
|
+
|
|
47
|
+
To add `@fsegurai/codemirror-theme-one-dark` along with CodeMirror 6 to your `package.json` use the following commands.
|
|
48
|
+
|
|
49
|
+
```bash
|
|
50
|
+
bun install @fsegurai/codemirror-theme-one-dark codemirror@^6.0.0 --save
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
## Using Theme
|
|
54
|
+
|
|
55
|
+
Import the respective theme from the package and apply it to your CodeMirror instance as shown below.
|
|
56
|
+
|
|
57
|
+
```javascript
|
|
58
|
+
import { EditorView, basicSetup } from 'codemirror'
|
|
59
|
+
import { markdown } from '@codemirror/lang-markdown'
|
|
60
|
+
import { oneDark } from '@fsegurai/codemirror-theme-one-dark'
|
|
61
|
+
|
|
62
|
+
let editor = new EditorView({
|
|
63
|
+
doc: '# Hello World',
|
|
64
|
+
extensions: [
|
|
65
|
+
basicSetup,
|
|
66
|
+
markdown(),
|
|
67
|
+
oneDark
|
|
68
|
+
],
|
|
69
|
+
parent: document.body
|
|
70
|
+
})
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
Read the [CodeMirror documentation](https://codemirror.net/6/examples/styling/) for more details about themes.
|
|
74
|
+
|
|
75
|
+
### Available Themes
|
|
76
|
+
|
|
77
|
+
| Theme | Package | Version | Downloads |
|
|
78
|
+
|-------|---------|---------|-----------|
|
|
79
|
+
| Abcdef | [@fsegurai/codemirror-theme-abcdef](https://www.npmjs.com/package/@fsegurai/codemirror-theme-abcdef) |  |  |
|
|
80
|
+
| Abyss | [@fsegurai/codemirror-theme-abyss](https://www.npmjs.com/package/@fsegurai/codemirror-theme-abyss) |  |  |
|
|
81
|
+
| Android Studio | [@fsegurai/codemirror-theme-android-studio](https://www.npmjs.com/package/@fsegurai/codemirror-theme-android-studio) |  |  |
|
|
82
|
+
| Andromeda | [@fsegurai/codemirror-theme-andromeda](https://www.npmjs.com/package/@fsegurai/codemirror-theme-andromeda) |  |  |
|
|
83
|
+
| Basic Dark | [@fsegurai/codemirror-theme-basic-dark](https://www.npmjs.com/package/@fsegurai/codemirror-theme-basic-dark) |  |  |
|
|
84
|
+
| Basic Light | [@fsegurai/codemirror-theme-basic-light](https://www.npmjs.com/package/@fsegurai/codemirror-theme-basic-light) |  |  |
|
|
85
|
+
| All - Bundle | [@fsegurai/codemirror-theme-bundle](https://www.npmjs.com/package/@fsegurai/codemirror-theme-bundle) |  |  |
|
|
86
|
+
| Catppuccin Latte | [@fsegurai/codemirror-theme-catppuccin-latte](https://www.npmjs.com/package/@fsegurai/codemirror-theme-catppuccin-latte) |  |  |
|
|
87
|
+
| Catppuccin Mocha | [@fsegurai/codemirror-theme-catppuccin-mocha](https://www.npmjs.com/package/@fsegurai/codemirror-theme-catppuccin-mocha) |  |  |
|
|
88
|
+
| Cobalt2 | [@fsegurai/codemirror-theme-cobalt2](https://www.npmjs.com/package/@fsegurai/codemirror-theme-cobalt2) |  |  |
|
|
89
|
+
| Dracula | [@fsegurai/codemirror-theme-dracula](https://www.npmjs.com/package/@fsegurai/codemirror-theme-dracula) |  |  |
|
|
90
|
+
| Forest | [@fsegurai/codemirror-theme-forest](https://www.npmjs.com/package/@fsegurai/codemirror-theme-forest) |  |  |
|
|
91
|
+
| GitHub Dark | [@fsegurai/codemirror-theme-github-dark](https://www.npmjs.com/package/@fsegurai/codemirror-theme-github-dark) |  |  |
|
|
92
|
+
| GitHub Light | [@fsegurai/codemirror-theme-github-light](https://www.npmjs.com/package/@fsegurai/codemirror-theme-github-light) |  |  |
|
|
93
|
+
| Gruvbox Dark | [@fsegurai/codemirror-theme-gruvbox-dark](https://www.npmjs.com/package/@fsegurai/codemirror-theme-gruvbox-dark) |  |  |
|
|
94
|
+
| Gruvbox Light | [@fsegurai/codemirror-theme-gruvbox-light](https://www.npmjs.com/package/@fsegurai/codemirror-theme-gruvbox-light) |  |  |
|
|
95
|
+
| High Contrast Dark | [@fsegurai/codemirror-theme-high-contrast-dark](https://www.npmjs.com/package/@fsegurai/codemirror-theme-high-contrast-dark) |  |  |
|
|
96
|
+
| High Contrast Light | [@fsegurai/codemirror-theme-high-contrast-light](https://www.npmjs.com/package/@fsegurai/codemirror-theme-high-contrast-light) |  |  |
|
|
97
|
+
| Material Dark | [@fsegurai/codemirror-theme-material-dark](https://www.npmjs.com/package/@fsegurai/codemirror-theme-material-dark) |  |  |
|
|
98
|
+
| Material Light | [@fsegurai/codemirror-theme-material-light](https://www.npmjs.com/package/@fsegurai/codemirror-theme-material-light) |  |  |
|
|
99
|
+
| Material Ocean | [@fsegurai/codemirror-theme-material-ocean](https://www.npmjs.com/package/@fsegurai/codemirror-theme-material-ocean) |  |  |
|
|
100
|
+
| Monokai | [@fsegurai/codemirror-theme-monokai](https://www.npmjs.com/package/@fsegurai/codemirror-theme-monokai) |  |  |
|
|
101
|
+
| Nord | [@fsegurai/codemirror-theme-nord](https://www.npmjs.com/package/@fsegurai/codemirror-theme-nord) |  |  |
|
|
102
|
+
| One Dark | [@fsegurai/codemirror-theme-one-dark](https://www.npmjs.com/package/@fsegurai/codemirror-theme-one-dark) |  |  |
|
|
103
|
+
| Palenight | [@fsegurai/codemirror-theme-palenight](https://www.npmjs.com/package/@fsegurai/codemirror-theme-palenight) |  |  |
|
|
104
|
+
| Rosé Pine Dawn | [@fsegurai/codemirror-theme-rose-pine-dawn](https://www.npmjs.com/package/@fsegurai/codemirror-theme-rose-pine-dawn) |  |  |
|
|
105
|
+
| Solarized Dark | [@fsegurai/codemirror-theme-solarized-dark](https://www.npmjs.com/package/@fsegurai/codemirror-theme-solarized-dark) |  |  |
|
|
106
|
+
| Solarized Light | [@fsegurai/codemirror-theme-solarized-light](https://www.npmjs.com/package/@fsegurai/codemirror-theme-solarized-light) |  |  |
|
|
107
|
+
| Synthwave 84 | [@fsegurai/codemirror-theme-synthwave-84](https://www.npmjs.com/package/@fsegurai/codemirror-theme-synthwave-84) |  |  |
|
|
108
|
+
| Tokyo Night Day | [@fsegurai/codemirror-theme-tokyo-night-day](https://www.npmjs.com/package/@fsegurai/codemirror-theme-tokyo-night-day) |  |  |
|
|
109
|
+
| Tokyo Night Storm | [@fsegurai/codemirror-theme-tokyo-night-storm](https://www.npmjs.com/package/@fsegurai/codemirror-theme-tokyo-night-storm) |  |  |
|
|
110
|
+
| Volcano | [@fsegurai/codemirror-theme-volcano](https://www.npmjs.com/package/@fsegurai/codemirror-theme-volcano) |  |  |
|
|
111
|
+
| VS Code Dark | [@fsegurai/codemirror-theme-vscode-dark](https://www.npmjs.com/package/@fsegurai/codemirror-theme-vscode-dark) |  |  |
|
|
112
|
+
| VS Code Light | [@fsegurai/codemirror-theme-vscode-light](https://www.npmjs.com/package/@fsegurai/codemirror-theme-vscode-light) |  |  |
|
|
113
|
+
|
|
114
|
+
## Demo Application
|
|
115
|
+
|
|
116
|
+
To see all themes in action, check out the
|
|
117
|
+
demo: [https://fsegurai.github.io/codemirror-themes](https://fsegurai.github.io/codemirror-themes).
|
|
118
|
+
|
|
119
|
+
To set up the demo locally:
|
|
120
|
+
|
|
121
|
+
```bash
|
|
122
|
+
git clone https://github.com/fsegurai/codemirror-themes.git
|
|
123
|
+
bun install
|
|
124
|
+
bun start
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
This will serve the application locally at [http://[::1]:8000](http://[::1]:8000).
|
|
128
|
+
|
|
129
|
+
## License
|
|
130
|
+
|
|
131
|
+
Licensed under [MIT](https://opensource.org/licenses/MIT).
|