mirror of
https://github.com/google/blockly.git
synced 2026-02-13 11:00:10 +01:00
37 lines
841 B
Markdown
37 lines
841 B
Markdown
# @blockly/theme-deuteranopia [](https://github.com/google/blockly)
|
|
|
|
A [Blockly](https://www.npmjs.com/package/blockly) theme for people that have
|
|
deuteranopia (the inability to perceive green light). This can also be used for
|
|
people that have protanopia (the inability to perceive red light).
|
|
|
|

|
|
|
|
## Installation
|
|
|
|
### Yarn
|
|
|
|
```
|
|
yarn add @blockly/theme-deuteranopia
|
|
```
|
|
|
|
### npm
|
|
|
|
```
|
|
npm install @blockly/theme-deuteranopia --save
|
|
```
|
|
|
|
## Usage
|
|
|
|
```js
|
|
import * as Blockly from 'blockly';
|
|
import Theme from '@blockly/theme-deuteranopia';
|
|
|
|
Blockly.inject('blocklyDiv', {
|
|
theme: Theme,
|
|
});
|
|
```
|
|
|
|
## License
|
|
|
|
Apache 2.0
|