Skip to content
This repository was archived by the owner on Aug 19, 2024. It is now read-only.
/ make-my-ui Public archive

React UI library built from the ground up using Typescript and Styled Components

License

Notifications You must be signed in to change notification settings

kyrim/make-my-ui

Repository files navigation

MakeMyUI

A React UI Library built from scratch using Typescript and Styled Components.

⚠️ Warning

This library is currently a work in progress and is not ready for production. Please use at your own risk!

Demo / Components

A running instance of storybook for this library can be found at: https://www.makemyui.com

Installation

Install from npm / yarn and include it in your React build process (using Webpack etc). You will need to also install Styled Components.

npm install --save make-my-ui styled-components

or:

yarn add make-my-ui styled-components

Usage

To use MakeMyUI, you will need to use Styled Component's ThemeProvider at the root of your application. You can use either the defaultTheme, or use your own.

import React from "react";
import { ThemeProvider } from "styled-components";
import { GlobalStyle, defaultTheme, Button } from "make-my-ui";

// You can also import your own theme, extending the DefaultTheme
// import { myTheme } from "../my-theme";

class App {
  render() {
    return (
      <ThemeProvider theme={defaultTheme}>
        <>
          <GlobalStyle />
          // Use your components from MakeMyUI inside ThemeProvider
          <Button />
        </>
      </ThemeProvider>
    );
  }
}

export default App;

Customise the Theme

To create your own theme, use the defaultTheme as a template, from here. Create a new file, customise the values and provide this to the Styled Components ThemeProvider.

For example:

...
import { myTheme } from "../my-theme";
...

<ThemeProvider theme={myTheme}>
  <>
    <GlobalStyle/>
    // Use your components from MakeMyUI inside ThemeProvider
    <Button />
  </>
</ThemeProvider>

External packages

MakeMyUI uses the following packages:

About

React UI library built from the ground up using Typescript and Styled Components

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •