Atoms

Molecules

Components

Theme provider

Serverless design system v0.1


Getting Started

Install the design system in your application, by running the following command
npm install serverless-design-system

Usage

Add `ThemeProvider` in your application. You can also pass theme object as prop to set custom theme.
To know more, check this out.

import { ThemeProvider } from 'serverless-design-system'
export default () => (
  <ThemeProvider>
    { /*  Render the root component */ }
  </ThemeProvider>
)

Importing and using the components in your application

import { Box, Image } from 'serverless-design-system'
export default () => (
  <Box m={1}>
    <Image src={logoSource} alt="logo" />
  </Box>
)