0.1.12 • Published 3 years ago

ehamlin-react-components v0.1.12

Weekly downloads
26
License
ISC
Repository
-
Last release
3 years ago

Daikin Design System in React

Installation

npm i @daikin-design/react-components

requires React, ReactDOM and Styled Components

If you don't already have a react project set up, npx create-react-app <<app-name>>

npm i styled-components

Styling

Fonts

Because some of the Daikin Design System fonts require licensing, we cannot include them in the library. Developers will have to supply them externally, using the @font-face CSS rule. The library uses a font-family property identifying the font as "DaikinThemeFont," regardless of whether the actual font is Univers, Roboto, San Francisco or something else. So your import should look something like this:

@font-face {
    font-family: 'DaikinThemeFont';
    src: url('./Univers.woff2') format('woff2');
}

Overriding styles

Most of the CSS rules can be overridden. You'll use the standard React method of styling by passing an object with camelCased properties, e.g.: style={ {backgroundColor: '#ffffff'} }

Units

The Dakin Design System uses rem units for all dimensions. This unit is a measurement relative to the global font size. If your global stylesheet reads:

html {
    font-size: 14px;
}

then 1rem = 14px, 2rem = 28px, etc.

Theming

<ThemeProvider></ThemeProvider>

0.1.10

3 years ago

0.1.11

3 years ago

0.1.12

3 years ago

0.1.9

3 years ago

0.1.8

3 years ago

0.1.7

3 years ago

0.1.6

3 years ago

0.1.5

3 years ago

0.1.4

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.3

3 years ago

0.1.0

3 years ago