3.0.12 • Published 6 years ago

typographist-react-devtools v3.0.12

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

Typographist react devtools

Typographist react devtools is part of the Typographist ecosystem. It is necessary to develop and debug web apps on react vue with the help of vertical rhythm.

Installation

User yarn or npm

yarn add typographist-react-devtools
npm i typographist-static-devtools

Connect Typographist-react-devtools

Js

requireJs

const Typographist = require('typographist-react-devtools');

es6 modules

import Typographist from 'typographist-react-devtools';

How to use?

import React, {Fragment} from 'react';
import { render } from 'react-dom';
import Typographist from 'typographist-react-devtools';
import 'typographist-react-devtools/devtools.css';

const App = () => (
  <Fragment>
    <Typographist>
      <Typographist.Switch />
      <Typographist.Debugger>{/* your components */}</Typographist.Debugger>
    </Typographist>
  </Fragment>
);

render(<App />, document.querySelector('#root'));

<Typographist.Switch />

Change zIndex

const App = () => (
  <Fragment>
    <Typographist>
      <Typographist.Switch zIndex={3000} />
      <Typographist.Debugger>{/* your components */}</Typographist.Debugger>
    </Typographist>
  </Fragment>
);

Without <Typographist.Switch />

const App = () => (
  <Fragment>
    <Typographist>
      <Typographist.Debugger>{/* your components */}</Typographist.Debugger>
    </Typographist>
  </Fragment>
);

Fluid rhythm

/* If your use */
:root {
  @root (fluid);
}

Switch the rhythm to fluid.

const App = () => (
  <Fragment>
    <Typographist root="fluid">
      <Typographist.Debugger>{/* your components */}</Typographist.Debugger>
    </Typographist>
  </Fragment>
);

Keyboard shortcuts

If you do not feel comfortable switching the rhythm step by step by pressing the button, you can use keyboard shortcuts

commandkeys
show single rhythms + r
show double rhythmd + r
hide rhythmo + r
3.0.12

6 years ago

3.0.11

6 years ago

3.0.10

6 years ago

3.0.9

6 years ago

3.0.8

6 years ago

3.0.7

6 years ago

3.0.6

6 years ago

3.0.4

6 years ago

3.0.3

6 years ago

3.0.2

6 years ago

3.0.1

6 years ago

3.0.0

6 years ago

2.0.0

6 years ago

2.0.0-alpha.1

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0-alpha.11

6 years ago

1.0.0-alpha.10

6 years ago

1.0.0-alpha.9

6 years ago

1.0.0-alpha.8

6 years ago

1.0.0-alpha.7

6 years ago

1.0.0-alpha.6

6 years ago

1.0.0-alpha.5

6 years ago

1.0.0-alpha.4

6 years ago

1.0.0-alpha.3

6 years ago

1.0.0-alpha.2

6 years ago

1.0.0-alpha.1

6 years ago

1.0.0

6 years ago

0.0.1-alpha.3

6 years ago

0.0.1-alpha.2

6 years ago