Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions src/pages/elements/typography/code.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,16 @@ You can use this package by writing the following:

// Include utility classes for type-related properties
@include type.type-classes();
```

## How to style an element

Outside of very conscious exceptions, style all your fonts with the Carbon
helpers so you can easily keep your code robust and consistent. Avoid using
single CSS attributes like font-weight or font-size whenever possible and rather
defer the type handling to Carbon.

```scss
.selector {
// Include a type style
@include type.style('productive-heading-01');
Expand Down
Loading