1.1.4 • Published 5 years ago

react-typekit v1.1.4

Weekly downloads
894
License
MIT
Repository
github
Last release
5 years ago

DEPRECATED:

This package is deprecated. There are now easier ways to embed Typekit fonts into your apps with a simple CSS include. This package uses the JS Embed Code method, but it provides no benefit over including the script yourself, and only causes issues if used incorrectly. Please read the embed fonts page for more information.

React Typekit

npm Build Status

This React component will generate the Adobe Typekit script required to load your webfont bundles. Though it can be used anywhere, this works great for isomorphic/universal React applications that render the entire DOM structure in React components.

Installation

w/ NPM

npm install --save react-typekit

w/ Yarn

yarn add react-typekit

Usage

Pass your Typekit Kit ID as a prop to the Typekit component. You can find this ID by logging into Adobe Typekit.

import React from 'react';
import Typekit from 'react-typekit';

const HtmlLayout = () => (
  <html>
    <body>
      <h1>My Example React Component</h1>
      <Typekit kitId="abc123" />
    </body>
  </html>
);

export default HtmlLayout;

Google Chrome SSL Warnings:

If you are loading fonts from Adobe Typekit on your website, and checked your website with DevTools in Chrome after December 1st 2017, you might have seen these notices:

The SSL certificate used to load resources from https://use.typekit.net will be distrusted in M70. Once distrusted, users will be prevented from loading these resources. See https://g.co/chrome/symantecpkicerts for more information.

The SSL certificate used to load resources from https://p.typekit.net will be distrusted in M70. Once distrusted, users will be prevented from loading these resources. See https://g.co/chrome/symantecpkicerts for more information.

The notices are not caused by your website’s SSL certificate, but because Adobe Typekit service uses SSL certificates issued by Symantec’s infrastructure, certificates that were found to be not up to industry standards. The link in the notice is very helpful, it’s a detailed article written on the official Google Security Blog where the notices are thoroughly explained. I recommend you read it.

You don’t need to make any change to your website, or push the panic button. It’s something Adobe has to fix before the release of version 70 of Google Chrome on October 23, 2018. Your font service is not affected in any way until then. For any questions about this I would recommend to contact the Adobe’s support team, it’s not something theme related.

1.1.4

5 years ago

1.1.3

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

7 years ago

1.0.10

7 years ago

1.0.9

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago