You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a set of mixins I use to apply the same basic text style variants to a bunch of different text-based components. It allows a consistent application of stuff like coloring, italic, bold, uppercase, alignment, etc. I'd like to include these in this project and update text components to include these options. They can be mixed and matched together to create a lot of variations.
Here's an example of what some of them look like:
The text was updated successfully, but these errors were encountered:
The naming structure in the typeSizes mixin is pretty limiting. What's larger than largest, or smaller than smallest? An approach we've taken on projects recently has been 'x' modifiers to allow a wider range: small, xsmall, xxsmall, etc.
The -inverse modifier could be problematic depending on the color palette for the app - what do you do for dark modes?
I agree the naming structure can be a little limiting. In fact, that is by design. Type hierarchies with a set number of steps on the scale force designers to stick to a predetermined number of size increments, creating more consistency and reigning in our (designers) tendencies. Same reason you don't want 30,000 shades of grey in a project's color scheme. I used it as a way to force good practice for myself, but for dev teams that don't have a close collaboration with whoever is designing something, this would be problematic. That's a long way of saying that I'm totally fine changing the naming convention.
I see what you mean about the -inverse issue. When I used this template for dark sites, I just flipped the color value in the inverse tag, easy peasy. But for a repository intended to be consumed via npm modules, this doesn't work. We could either remove that one for now, or if we already have a standardized way of handling light/dark modes in theming, we could leverage that to create a smarter tag that conditionally shows light or dark based on what theme is selected.
I have a set of mixins I use to apply the same basic text style variants to a bunch of different text-based components. It allows a consistent application of stuff like coloring, italic, bold, uppercase, alignment, etc. I'd like to include these in this project and update text components to include these options. They can be mixed and matched together to create a lot of variations.
Here's an example of what some of them look like:


The text was updated successfully, but these errors were encountered: