v6.0.35

TypographyStylesProvider

Add Mantine typography styles to your html content
Import

Usage

Mantine does not expose typography global styles. Use TypographyStylesProvider to add Mantine typography styles to your html content:

import { TypographyStylesProvider } from '@asuikit/core';
function Demo() {
return (
<TypographyStylesProvider>
<div dangerouslySetInnerHTML={{ __html: '<p>Your html here</p>' }} />
</TypographyStylesProvider>
);
}

Example

Example article

This is example article from CSS-Tricks website written by Sarah Drasner. It is used as an example to showcase real world styles of TypographyStylesProvider component, please read full article on CSS-Tricks website.

Article itself

Let’s talk for a moment about how we talk about our teams. This might not seem like something that needs a whole article dedicated to it, but it’s actually quite crucial. The way that we refer to our teams sends signals: to stakeholders, to your peers, to the team itself, and even to ourselves. In addressing how we speak about our teams, we’ll also talk about accountability.

I have noticed shared similarities in those folks I consider good managers whose teams deliver well, and those who don’t. It starts with how they communicate about their teams.

Your team is “we”

There can be a perception that as a manager of an organization you are in control at all times. Part of that control can invariably be perceived as how you appear to be in charge, are competent, or how you personally perform. Due to that, some bad behaviors can arise- not due to malice, but due to fear. For this reason, it can be tempting to take credit for success and avoid credit when there is failure.

The irony is that the more that you try to hold on to these external perceptions, the more it will slip away. Why? Because the problems you are solving as a manager really aren’t about you.

Your team is “we”. You are a driving force of that team, no matter how high up the hierarchy chain. What happens on that team is your responsibility. When you speak about your org, you should include yourself in the statement.

When your team succeeds in something though, then you can praise them and leave yourself out of it. Here’s an example:

They really pulled this project over the line, despite the incredibly tight project timeline. Everyone showed up and was driven throughout the engagement. They did a fantastic job.

However, if the team failed at something, the pronoun is then I:

I didn’t recognize how tight this turnaround was and failed to prioritize the team’s time well. I need to reconvene with everyone so we can come up with a better plan.

And never, ever them:

They didn’t adhere to this tight timeline. They just weren’t able to get this project over the line.

Do you see how the last example shirks responsibility for what occurred? Too often I will hear managers relieve themselves of their duties when shit hits the fan, and that is exactly when a manager needs to step up, and dive in to the problems that are their responsibility.

The wider organization

There is another piece of this too, and it impacts how your team operates. It’s that your job is not to be the ambassador of who you manage and think of every other group as separate. You're part of a larger system. A company is composed of groups, but those groups can only be successful if they’re working together, not if they are protecting their own org at all costs.

I admit I didn’t fully understand the depth of this until I read Patrick Lencioni’s The Advantage thanks to Dalia Havens, a peer at Netlify. In the book, Lencioni talks about how organizational health, not “being smart”, as the biggest key to success. Plenty of smart people with good ideas build companies and see them fail. Success lies in being able to work together.

Fundamentally, other groups at the company are not separate from your group, rather that you’re all part of one whole. The Leadership Team is also a team, and should be treated as your team. How you speak about this team is equally important.

As such, when we talk about successes and failures of any groups, these should also be shared. There should be a sense that you’re all working towards a common goal together, and every group contributes to it. Within a leadership team there should be trust and vulnerability to own their part so that the whole organization can operate at its best.

import { TypographyStylesProvider } from '@asuikit/core';
function Demo() {
return (
<TypographyStylesProvider>
<div dangerouslySetInnerHTML={{ __html: html }} />
</TypographyStylesProvider>
);
}

All styles demo

TypographyStylesProvider includes styles for:

  • paragraphs
  • headings
  • lists
  • blockquotes
  • tables
  • links
  • images
  • hr
  • code and pre

Heading 1

Heading 2

Heading 3

Heading 4

Heading 5
Heading 6

Mantine link

Lorem ipsum, dolor sitamet consectetur adipisicing elit. Provident omnis laudantium itaque quisquam est, magnam harum, cum molestias necessitatibus obcaecati quod esse debitis velit nemo dolores deserunt. Quia, iure doloremque.

Unsplash image
  • list item - 1
  • list item - 2
  • list item - 3
  • list item - 4
  1. list item - 1
  2. list item - 2
  3. list item - 3
  4. list item - 4
Life is like an npm install – you never know what you are going to get. – Forrest Gump

This is code and mark inside paragraph

import React from 'react';
import { Avatar } from '@asuikit/core';
import image from './image.png';

export function AvatarDemo() {
  return <Avatar src={image} alt="it's me" />;
}
Element positionElement nameSymbolAtomic mass
6CarbonC12.011
7NitrogenN14.007
39YttriumY88.906
56BariumBa137.33
58CeriumCe140.12

TypographyStylesProvider component props

NameTypeDescription
children *
ReactNode
Render any content to add Mantine typography styles