diff --git a/README.md b/README.md index 5fa5254..e672c68 100644 --- a/README.md +++ b/README.md @@ -65,6 +65,13 @@ If you'd like to make some changes yourself, see the following: This project follows the [all-contributors](https://github.com/kentcdodds/all-contributors) specification. Contributions of any kind are welcome! +### A note on adding themes/languages +We're happy to accept any PRs adding new themes and languages to Carbon! Currently there are a few ways to do so: + +1. If the [theme](https://codemirror.net/demo/theme.html) or [language](https://codemirror.net/mode/index.html) is supported in Codemirror, all you have to do is add a [constant](https://github.com/dawnlabs/carbon/blob/master/lib/constants.js) for it. + +2. If it's not supported, you can add a Codemirror compliant [custom file](https://github.com/dawnlabs/carbon/tree/master/lib/customModes) to implement it and add a constant like above. + ## Thanks To [ ▲ ZEIT ](https://zeit.co/) for sponsoring Carbon's hosting.