1.0.3 • Published 4 years ago

theme-components v1.0.3

Weekly downloads
65
License
-
Repository
-
Last release
4 years ago

For Study purposes

Install dependencies

yarn add theme-components styled-components
# or
npm i theme-components styled-components

Put the provider file

import { ThemeProvider } from 'styled-components';
import { theme } from 'theme-components';

function App({ children }) {
  return (
    <ThemeProvider theme={theme}>
      {children}
    </ThemeProvider>
  )
}

Components

import { Button } from 'theme-components';

function YourComponent() {
  return (
    <Button isBlock size="medium" color="primary">Hello World</Button>
  )
}

Theme

export default {
  baseFontSize: '14px',
  fontFamily: "'Source Sans Pro', sans-serif",
  borderRadius: '4px',
  colors,
  components: {
    // Change to Another template of Button
    Button: 'Button1',
  }
};
1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago

0.2.7

4 years ago

0.2.1

4 years ago

0.2.6

4 years ago

0.2.3

4 years ago

0.2.2

4 years ago

0.2.5

4 years ago

0.2.4

4 years ago

0.2.0

4 years ago

0.1.0

4 years ago