Can sass concatenate variable names?

want to concatenate variable names in a loop

want the following results

.color01{
    border-color: -sharp137ae9;
    background-color:-sharp137ae9;
}
.color02{
    border-color: -sharp30a66a;
    background-color:-sharp30a66a;
}
...

I have some color variables

$color01: -sharp137ae9;
$color02: -sharp30a66a;
$color03: -sharpda424e;
$color04: -sharpe56281;

want to output through the following loop

@for $i from 1 through 9
      {
        &.color0-sharp{$i}
        {
          border-color: $color0-sharp{$i};
          background-color: $color0-sharp{$i};
        }
      }

result $color0-sharp {$I} cannot execute

Jan.08,2022

use map .


variable names can be concatenated. $is a keyword that cannot be directly concatenated, and can be converted into-sharp {'$'}

-sharp{'$'}color0-sharp{$i}
.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3190d-2bdac.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3190d-2bdac.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?