0
現在、以下の構文を使用してjsxに状態色を埋め込みます。Lighten Css機能をJsx/Reactに埋め込む
<div className="preview-box" style={{backgroundColor:this.state.color}}>
このようなことを行うには、CSSのlighten機能を使用する方法はありますか?
<div className="preview-box" style={{backgroundColor: lighten(this.state.color, 15%)}}>