![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
@asphalt-react/typography
Advanced tools
Typography helps establish hierarchy and communicate text content clearly. Typography components abstracts over semantic and visuals. Some Typography components can have semantics meaning attached to it.
Typography components control the font property, other applicable styles are inherited by the global or user agent styles. In order to have more control apply the styles in parent container. The purpose of the typography components is to enable adding text content that is themeable.
You can use HTML Text content elements and Content sectioning elements to organize blocks or sections of content.
Use HTML Inline text semantics define the meaning, structure, or style of a word, line, or any arbitrary piece of text.
import {Heading, Display, Code, Text} from '@asphalt-react/typography'
<Heading>The quick brown fox jumps</Heading>
<Display>The quick brown fox jumps</Display>
<Code>npm install @asphalt-react/typography</Code>
<Text>The quick brown fox jumps</Text>
<Text bold>I have a higher font weight than Text</Text>
The Heading
, Display
& Text
components have 5 intents to represent different content heirarchy and usages:
Use Heading
to represent the section heading contents, it supports all six levels of section headings from h1
till h6
.
React node for heading content.
type | required | default |
---|---|---|
node | true | N/A |
Render the content as h1 section heading.
type | required | default |
---|---|---|
bool | false | false |
Render the content as h2 section heading.
type | required | default |
---|---|---|
bool | false | false |
Render the content as h3 section heading.
type | required | default |
---|---|---|
bool | false | false |
Render the content as h4 section heading.
type | required | default |
---|---|---|
bool | false | false |
Render the content as h5 section heading.
type | required | default |
---|---|---|
bool | false | false |
Render the content as h6 section heading.
type | required | default |
---|---|---|
bool | false | false |
Renders the text with primary intent. This is the default intent.
type | required | default |
---|---|---|
bool | false | false |
Renders the text with secondary intent.
type | required | default |
---|---|---|
bool | false | false |
Renders the text with brand intent.
type | required | default |
---|---|---|
bool | false | false |
Renders the text with appropriate contrast ration to backgrounds with brand color.
type | required | default |
---|---|---|
bool | false | false |
Renders the text with muted intent.
type | required | default |
---|---|---|
bool | false | false |
Use Display
to put more emphasis on a text. Use it to display a hero or marketing text.
Display by default renders the content in p
tag, you can also choose to render in a div
or span
instead.
React node for display content.
type | required | default |
---|---|---|
node | true | N/A |
Controls the size of display.
type | required | default |
---|---|---|
enum | false | "m" |
render the display content in a p
tag.
type | required | default |
---|---|---|
bool | false | false |
render the display content in a span
tag.
type | required | default |
---|---|---|
bool | false | false |
render the display content in a div
tag.
type | required | default |
---|---|---|
bool | false | false |
Renders the text with primary intent. This is the default intent.
type | required | default |
---|---|---|
bool | false | false |
Renders the text with secondary intent.
type | required | default |
---|---|---|
bool | false | false |
Renders the text with brand intent.
type | required | default |
---|---|---|
bool | false | false |
Renders the text with appropriate contrast ratio to backgrounds with brand color.
type | required | default |
---|---|---|
bool | false | false |
Renders the text with muted intent.
type | required | default |
---|---|---|
bool | false | false |
Code
styles text content in a fashion intended to indicate that the text is a short fragment or snippet of computer code.
React node for code content.
type | required | default |
---|---|---|
node | true | N/A |
Controls the size of code content.
type | required | default |
---|---|---|
enum | false | "m" |
Use Text
to render generic text contents.
Text by default renders the text in p
tag, you can also choose to render in a div
or span
instead.
React node for text content.
type | required | default |
---|---|---|
node | true | N/A |
Controls the size of text.
type | required | default |
---|---|---|
enum | false | "m" |
Render the bold variant.
Bold variant is only supported for "xs", "s", "m" & "l" sizes.
type | required | default |
---|---|---|
bool | false | N/A |
render the content in a p
tag.
type | required | default |
---|---|---|
bool | false | false |
render the content in a span
tag.
type | required | default |
---|---|---|
bool | false | false |
render the content in a div
tag.
type | required | default |
---|---|---|
bool | false | false |
Renders the text with primary intent. This is the default intent.
type | required | default |
---|---|---|
bool | false | false |
Renders the text with secondary intent.
type | required | default |
---|---|---|
bool | false | false |
Renders the text with brand intent.
type | required | default |
---|---|---|
bool | false | false |
Renders the text with appropriate contrast ratio to backgrounds with brand color.
type | required | default |
---|---|---|
bool | false | false |
Renders the text with muted intent.
type | required | default |
---|---|---|
bool | false | false |
FAQs
Typography
We found that @asphalt-react/typography demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.