mirror of
https://github.com/google/blockly.git
synced 2026-02-13 11:00:10 +01:00
36 lines
775 B
Markdown
36 lines
775 B
Markdown
# @blockly/theme-highcontrast [](https://github.com/google/blockly)
|
|
|
|
A [Blockly](https://www.npmjs.com/package/blockly theme that uses darker colors
|
|
for the blocks to create contrast between the block color and the white text.
|
|
|
|

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