diff --git a/README.md b/README.md index 4152cc8371..443117ef7f 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,25 @@ For a full list of components, along with live examples, please visit the [docum #### 1. Font -The "Roboto" font is included for development purposes, but is not included in the published package. This font should be supplied by the consuming application. If not supplied, texts will fall back to suitable alternatives. +To achieve a blazing fast rendering, our components' user interface utilizes a default cross-browser sans-serif font stack. As web components typically inherit font-related styles such as `font-family`, `font-size`, and `color`, we recommend defining these styles at a higher level, such as the `
` element. This is because we do not specify these defaults on each individual component. + +To maintain consistency with the look & feel demonstrated in this documentation, we suggest incorporating the following styles into your project: + +```css +font-family: ui-sans-serif, system-ui, sans-serif; +font-size: 0.875rem; +font-style: normal; +font-weight: 400; +color: rgb(var(--contrast-1500)); +``` + +💡 About the `color` specified above, read more on [our color system](/#/DesignGuidelines/color-system.md/). + +Feel free to customize the font-family and related styles to suit your project's needs. For example, you might prefer a different typeface like below: + +```css +font-family: 'Roboto', Arial, Verdana, sans-serif; +``` #### 2. Icons diff --git a/src/components/badge/badge.scss b/src/components/badge/badge.scss index c4eaaac92b..d6c4e31cfe 100644 --- a/src/components/badge/badge.scss +++ b/src/components/badge/badge.scss @@ -1,6 +1,5 @@ @use '../../style/functions'; @use '../../style/internal/lime-theme'; -@use '../../style/internal/lime-typography'; @use '../../style/mixins'; /** @@ -23,7 +22,6 @@ } span { - @include lime-typography.base; cursor: default; box-sizing: border-box; diff --git a/src/components/banner/banner.scss b/src/components/banner/banner.scss index 51c939640a..4f751b0525 100644 --- a/src/components/banner/banner.scss +++ b/src/components/banner/banner.scss @@ -1,5 +1,4 @@ @use '../../style/internal/lime-theme'; -@use '../../style/internal/lime-typography'; @use '../../style/internal/variables'; @use '../../style/functions'; @@ -9,7 +8,6 @@ */ .lime-banner { - @include lime-typography.typography(body2); min-height: variables.$lime-banner-height; display: none; background-color: rgba(var(--contrast-100), 0.7); diff --git a/src/components/banner/banner.tsx b/src/components/banner/banner.tsx index 3410792311..46d4d087f4 100644 --- a/src/components/banner/banner.tsx +++ b/src/components/banner/banner.tsx @@ -49,7 +49,7 @@ export class Banner {