The design pattern we use to distinguish styled-components (SC) vs. regular React components is to add UI to the end of the name.
is-superBold
This contains the modifier styles specified in our Strong component. Similar to Sass, ampersand for className inheritance is supported.
HSDS's CSS-in-JS practices favour the use of conventional CSS modifier classes, rather than dynamically computed styles. From experience, this keeps the code much cleaner and easier to read. It also avoids clashing, which sometimes happens with dynamic styling.
export
We're making our StrongUI available as the default export, but also as a named export. The reason for this is incase we need to use the isolated SC in another component.
And that's it π! You've successfully styled our new Strong component πͺ.