mirror of
https://github.com/google/blockly.git
synced 2026-02-14 03:20:11 +01:00
36 lines
731 B
Markdown
36 lines
731 B
Markdown
# @blockly/theme-tritanopia [](https://github.com/google/blockly)
|
|
|
|
A [Blockly](https://www.npmjs.com/package/blockly) theme for people that have
|
|
tritanopia (the inability to perceive blue light).
|
|
|
|

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