RedHat-UX / red-hat-design-system

Red Hat's Design System
https://ux.redhat.com
MIT License
100 stars 20 forks source link

[feat] Create typography and base styles for design system #1432

Open markcaron opened 10 months ago

markcaron commented 10 months ago

We need typography and general base styles for use within the design system. End solution should be a base stylesheet that we can add to our CDN or implementors can include in their sites/apps.

markcaron commented 9 months ago

Discussed in office hours:

CSS files could potentially live in rhds/utilities/styles

markcaron commented 9 months ago

Question: Do we need a tokens.css to act as the interface for the semantic tokens used in typography.css, pages.css, etc.?

Or do we reference the primitive directly?

h1 {
  font-size: var(--rh-font-size-heading-2xl, 3rem);
}

vs

h1 {
  font-size: var(--rh-font-size-h1, var(--rh-font-size-heading-2xl, 3rem));
}