Is there a more efficient way to consolidate all twenty rules into one using wildcards:
.margin-bottom-1rem {
margin-bottom: 1rem;
}
.margin-bottom-2rem {
margin-bottom: 2rem;
}
...
.margin-bottom-20rem {
margin-bottom: 20rem;
}
I have searched for ways to capture all the class names, but haven't found any information on utilizing part of the captured name as a value. If wildcards cannot achieve this, is there an alternative method to avoid repeating these duplicate rules?