@fsegurai/codemirror-theme-basic-light v6.2.0
A library of custom themes for CodeMirror 6.
@fsegurai/codemirror-theme-basic-light is a theme for CodeMirror 6 editor, making it visually engaging and adaptable
to different coding styles and user preferences.
Table of contents
- Installation - @fsegurai/codemirror-theme-basic-light - Using Theme - Available Themes - Demo Application
- License
Installation
@fsegurai/codemirror-theme-basic-light
To add @fsegurai/codemirror-theme-basic-light along with CodeMirror 6 to your package.json use the following
commands.
npm install @fsegurai/codemirror-theme-basic-light codemirror@^6.0.0 --saveUsing Theme
Import the respective theme from the package and apply it to your CodeMirror instance as shown below.
import { EditorView, basicSetup } from 'codemirror'
import { markdown } from '@codemirror/lang-markdown'
import { basicLight } from '@fsegurai/codemirror-theme-basic-basic-light'
let editor = new EditorView({
doc: '# Hello World',
extensions: [
basicSetup,
markdown(),
basicLight
],
parent: document.body
})Read the CodeMirror documentation for more details about themes.
Available Themes
Demo Application
To see all themes in action, check out the demo: https://fsegurai.github.io/codemirror-themes.
To set up the demo locally:
git clone https://github.com/fsegurai/codemirror-themes.git
npm install
npm startThis will serve the application locally at http://[::1]:8000.
License
Licensed under MIT.
8 months ago
1 year ago
1 year ago
8 months ago
1 year ago
9 months ago
9 months ago
1 year ago
8 months ago
1 year ago
8 months ago
8 months ago
8 months ago
8 months ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago