![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.
@nib-styles/v2-typography
Advanced tools
Typography styles and mixins for nib. See the [nib-pattern-library](https://nib-pattern-library.firebaseapp.com/pages/typography.html) for usage.
Typography styles and mixins for nib. See the nib-pattern-library for usage.
npm run build
For older projects not using scss. To see an example:
npm run example.build
Mixins allow us to have fewer classes on html elements, without needing to rewrite styles. For the typography mixins we have left behind the v2-
prefix.
There are mixins for titles, copy and links. For lists and utils you will need to use the compiled classes (see below)
Mixin equivalent of .v2-title
, plus .v2-title--1/2/3/4
, plus new capability to adjust colour (grey default) and add padding (false by default)
Mixin equivalent of .v2-link
, plus optional .v2-link--green/grey/white
Mixin equivalent of .v2-copy
class.
Mixin equivalent of .v2-paragraph
class.
CSS:
@import "@nib-styles/v2-typography";
.box {
@include copy;
}
.custom-title {
@include title($size: 1, $color: green, $pad: false);
transform: rotate(180deg);
}
.custom-subheading {
@include title(2, white, true);
background: $green--elizabeth;
}
.custom-paragraph {
@include paragraph;
text-align: right;
}
.custom-link {
@include link(green);
}
HTML:
<div class="box">
<h1 class="custom-title">A mixed in heading</h1>
<h3 class="custom-subheading">Lorem ipsum</h3>
<p class="custom-paragraph">Nunc urna mi, <a href="#" class="custom-link">faucibus sed egestas</a> quis, laoreet sed felibitur vit risus i.</p>
</div>
CSS:
@import "@nib-styles/v2-typography/dist/compiled";
HTML:
<div class="v2-article v2-copy">
<h1 class="v2-title v2-title--3">Page title</h1>
<p class="v2-paragraph">This is a paragraph with a <a class="v2-link" href="#">link</a>.</p>
<ul class="v2-list v2-list--copy">
<li class="v2-list--item">One</li>
<li class="v2-list--item">Two</li>
<li class="v2-list--item">Three</li>
</ul>
</div>
Fluidly set the type size between a specified min and max font size, over a specified viewport size range.
Current settings:
min-font
: 14pxmax-font
: 20pxmin-width
: 400pxmax-width
: 1200pxThis means that at screen sizes at or below 400px wide, the font will be 14px. Over 1200px and the font will be fixed at 20px. In between the font will be somewhere in between.
NB: These values are yet to be ratified by the designers.
Headings 1-4 and paragraph text obey a perfect fourth modular scale. All sizes must be specified relative to the root element using rems in order to follow the scale.
color: inherit
on .v2-link
by defaultFAQs
nib styled typography
The npm package @nib-styles/v2-typography receives a total of 0 weekly downloads. As such, @nib-styles/v2-typography popularity was classified as not popular.
We found that @nib-styles/v2-typography demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 27 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.