わかりましたので、入力データ(テキスト)の特定の部分を強調するために、配色を作成しました。
ただし、各色の意味をユーザーに伝えるために、 Legend を作成する必要があります。これは私がこれまでに持っているものです: ` / input /
<div style="text-color: hsl($col,35%, 100%);">/*input*/</div>
<div style="text-color: hsl($col,45%, 50%);">/*input*/</div>
<div style="text-color: hsl($col,50%, 100%);">/*input*/</div>
<div style="text-color: hsl($col,55%, 100%);">/*input*/</div>
<div style="text-color: hsl($col,60%, 100%);">/*input*/</div>
<div style="text-color: hsl($col,70%, 100%);">/*input*/</div>
<div style="text-color: hsl($col,80%, 100%);">/*input*/</div>
<div style="text-color: hsl($col,90%, 100%);">/*input*/</div>
<div style="text-color: hsl($col,100%, 100%);">/*input*/</div>
` ここで、input- は色のラベルになります。たとえば、これは強い結果を意味します。$col は、毎回色を変更する変数です (例: 0 = 赤など)。
ここにある色を html ページにある凡例にする方法を知る必要があります。
何か助けてください。
ありがとう:)