1.3.21 • Published 1 year ago

@origyn/origyn-art-ui v1.3.21

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
1 year ago

ORIGYN ART UI

React UI library created for and used by Origyn Decentralized Applications.

🏁 Quickstart

Install origyn-art-ui and styled-components:

npm i @origyn/origyn-art-ui styled-components

In the component that renders your App component (for example: index.tsx), import GlobalStyle, theme and themeLight from @origyn/origyn-art-ui. Also import ThemeProvider from styled-components.

Insert <GlobalStyle /> above <App /> and wrap <App /> with <ThemeProvider theme={theme}>. You can add logic or a custom provider to toggle theme (dark theme) with themeLight (light theme).

import React from 'react';
import ReactDOM from 'react-dom/client';
import App from './App';
import { GlobalStyle, theme, themeLight } from '@origyn/origyn-art-ui';
import { ThemeProvider } from 'styled-components';

const root = ReactDOM.createRoot(
  document.getElementById('root') as HTMLElement
);

root.render(
  <React.StrictMode>
    <GlobalStyle />
    <ThemeProvider theme={theme}>
      <App />
    </ThemeProvider>
  </React.StrictMode>
);

Contributors

All components in this library can be rendered in Storybook.

npm ci
npm run storybook

Browse to http://localhost:6006/.

File Structure

All components are located in the components folder.

-.storybook/
|-main.js
|-preview.js
-components
|-layout
|-brandIdentity
|-interface

brandIdentity - information about the default setup for components (corporate color palette, used icons, typography etc.)

layout - layout components (Grid, Flex, etc.)

interface - UI components (Buttons, Dropdowns etc.)

Links to fonts

<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200" />
1.3.21

1 year ago

1.3.20

1 year ago

1.3.19

1 year ago

1.3.18

2 years ago

1.3.17

2 years ago

1.3.16

2 years ago

1.3.15

2 years ago

1.3.7

2 years ago

1.3.6

2 years ago

1.3.5

2 years ago

1.3.4

2 years ago

1.3.2

2 years ago

1.3.0

2 years ago

1.3.10

2 years ago

1.3.13

2 years ago

1.3.14

2 years ago

1.3.11

2 years ago

1.3.12

2 years ago

1.3.9

2 years ago

1.3.8

2 years ago

1.2.35

2 years ago

1.2.34

2 years ago

1.2.33

2 years ago

1.2.32

2 years ago

1.2.31

2 years ago

1.2.30

2 years ago

1.2.29

2 years ago

1.2.28

2 years ago

1.2.27

2 years ago

1.2.26

2 years ago

1.2.25

2 years ago

1.2.24

2 years ago

1.2.23

2 years ago

1.2.22

2 years ago

1.2.21

2 years ago

1.2.20

2 years ago

1.2.14

2 years ago