Skip to content

Latest commit

 

History

History
79 lines (54 loc) · 1.29 KB

README.md

File metadata and controls

79 lines (54 loc) · 1.29 KB

Component Docs

Theming

Use ThemeProvider from styled-components to change the default theme.

import { ThemeProvider } from 'styled-components';
import { Button } from 'react-components-kit';

const theme = {
  primaryColor: '#a600cc',
  primaryColorLight: '#db3bff',
  primaryColorLighter: '#e98aff',
  primaryColorLightest: '#f5c6ff',
  primaryColorDark: '#82199a',
  primaryColorDarker: '#6d0086',
  primaryColorDarkest: '#4a005a',
};

const App = () => {
  return (
    <ThemeProvider theme={theme}>
      <Button primary>New colors yey!</Button>
    </ThemeProvider>
  );
}

The possible colors with to change are:

  • primaryColor
  • secondaryColor
  • errorColor
  • warnColor
  • successColor
  • grey

With these suffixes: Light, Lighter, Lightest, Dark, Darker, Darkest.

The remaining colors without suffixes to change are:

  • infoColor
  • textColorDark
  • textColorLight

Check out the default theme variables in createTheme.js.

Button

Badge

Card

CircleProgress

Form

Heading

Layout

LineSeparator

LoadingOverlay

Padder

PlaceholderRows

Spinner

SquareLoader

Text

ToggleSwitch

Tooltip

withRipple