5.17.0 • Published 7 days ago

@epignosis_llc/gnosis v5.17.0

Weekly downloads
-
License
MIT
Repository
github
Last release
7 days ago

Gnosis

Epignosis official react design system.

An internal, opinionated UI library. Primary focus is to provide a consisted and unified UI, UX and accessibility across our products.

📦 Installation

$ npm i @epignosis_llc/gnosis
$ yarn add @epignosis_llc/gnosis

The recomended font family is the "Mulish", Arial, sans-serif so please don't forget to include it (of course you can change the default font family by customizing the theme - more information below).

Please note that react >= 16.0.0 and react-dom >= 16.0.0 are peer dependencies. Also that emotion 11 is being used and that will not work in older emotion projects.

🔨 Usage

Start by wrapping your App with ThemeProvider component (see example below). All the other components MUST be into the ThemeProvider in order to get the appropriate theme context.

import { ThemeProvider, Button } from "@epignosis_llc/gnosis";

function App() {
  return (
    <ThemeProvider>
      <Button>My Button</Button>
    </ThemeProvider>
  );
}

To view all the available props of each component clone the current repo and run npm install to install all the dependencies and then npm start to view all the components in Storybook with all their available props.

✨ Theme

You can either use gnosis theme default theme (colors, fonts, etc.) or customize it to fit your project needs. This section describes the various options you can use to modify it.

🌍 Globals

You can add global styles by providing serialized styles like the example below:

const globalStyles = {
  "html, body": {
    background: "red",
  },
  h1: {
    fontSize: "5rem",
    textAlign: "center",
  },
  "#my-id": {
    color: "green",
  },
  ".my-css-class": {
    color: "blue",
  },
};

<ThemeProvider globalStyles={globalStyles}></ThemeProvider>;

🛠 Theme config

You can also apply your own brand and colors simply by providing a new color theme. Just locate the component's theme configuration you need to change - the example below is for changing the success button colors - and create an object with your new values. The new theme configuration will be merged with the default theme, and the final merged theme will apply all the new values to the success button (or any other component). The default theme's configuration files are located in ./src/theme/default/config/ directory - for example the Button component's default theme is the ./src/theme/default/config/button.ts. Have a look at the default theme's configuration and create / configure your new custom theme.

const myCustomTheme = {
  button: {
    success: {
      default: {
        background: "pink",
        borderColor: "red",
        color: "white",
      },
      hover: {
        background: "red",
        borderColor: "pink",
        color: "white",
      },
      active: {
        background: "red",
        borderColor: "pink",
        color: "white",
      },
    },
  },
};

<ThemeProvider theme={myCustomTheme}></ThemeProvider>;

✨ Icons

You can use epignosis custom Svg icons like this:

import { HomeSVG, CalendarSVG, HelpSVG } from "@epignosis_llc/gnosis/icons";

<HomeSVG height={32} />
<CalendarSVG height={32} />
<HelpSVG height={32} />

You can view all the available icon names at gnosis/src/icons/index.ts or by checking the appropriate storybook page.

Upcoming components

  • MultiSelect
  • Table
  • DateInput
  • FileInput
5.17.0

7 days ago

5.16.5

13 days ago

5.16.4

13 days ago

5.16.3

20 days ago

5.16.2

23 days ago

5.16.1

24 days ago

5.16.0

24 days ago

5.15.3

24 days ago

5.15.2

27 days ago

5.15.1

27 days ago

5.15.0

28 days ago

5.14.9

28 days ago

5.14.8

30 days ago

5.14.7

30 days ago

5.14.6

1 month ago

5.14.5

1 month ago

5.14.4

1 month ago

5.14.3

1 month ago

5.14.2

1 month ago

5.14.1

2 months ago

5.14.0

2 months ago

5.13.1

2 months ago

5.13.0

2 months ago

5.12.4

2 months ago

5.12.3

2 months ago

5.12.2

2 months ago

5.12.1

2 months ago

5.12.0

2 months ago

5.11.2

3 months ago

5.11.1

3 months ago

5.10.4

3 months ago

5.11.0

3 months ago

5.10.3

3 months ago

5.10.2

3 months ago

5.10.1

3 months ago

5.10.0

3 months ago

5.9.3

3 months ago

5.9.2

3 months ago

5.9.1

4 months ago

5.9.0

4 months ago

5.8.12

4 months ago

5.8.13

4 months ago

5.8.9

4 months ago

5.8.8

4 months ago

5.8.7

4 months ago

5.8.6

4 months ago

5.8.10

4 months ago

5.8.11

4 months ago

5.8.5

4 months ago

5.8.4

4 months ago

5.8.3

4 months ago

5.8.2

4 months ago

5.8.1

4 months ago

5.8.0

5 months ago

5.7.0

5 months ago

5.6.14

5 months ago

5.6.13

5 months ago

5.6.12

5 months ago

5.6.11

5 months ago

5.3.3

8 months ago

5.3.2

8 months ago

5.3.1

8 months ago

5.3.0

8 months ago

5.6.10

6 months ago

5.5.30

6 months ago

4.0.7

11 months ago

5.5.31

6 months ago

5.5.32

6 months ago

5.0.7

8 months ago

5.0.6

8 months ago

5.0.5

9 months ago

5.4.0

8 months ago

5.0.4

9 months ago

5.0.3

9 months ago

5.0.2

10 months ago

5.0.1

10 months ago

5.0.0

10 months ago

4.0.9

10 months ago

4.0.8

10 months ago

5.5.28

6 months ago

5.5.29

6 months ago

5.5.26

6 months ago

5.5.27

6 months ago

5.5.24

6 months ago

5.5.25

6 months ago

5.5.22

7 months ago

5.5.23

6 months ago

5.5.20

7 months ago

5.5.21

7 months ago

5.5.19

7 months ago

5.5.17

7 months ago

5.5.18

7 months ago

5.5.15

7 months ago

5.5.9

7 months ago

5.5.16

7 months ago

5.5.8

7 months ago

5.5.13

7 months ago

5.5.7

8 months ago

5.5.14

7 months ago

5.5.6

8 months ago

5.5.11

7 months ago

5.5.5

8 months ago

5.5.12

7 months ago

5.5.4

8 months ago

5.5.3

8 months ago

5.5.10

7 months ago

5.5.2

8 months ago

5.5.1

8 months ago

5.5.0

8 months ago

5.1.0

8 months ago

4.0.10

10 months ago

5.6.9

6 months ago

5.6.8

6 months ago

5.6.7

6 months ago

4.0.15

10 months ago

5.6.6

6 months ago

5.6.5

6 months ago

5.6.4

6 months ago

4.0.12

10 months ago

5.6.3

6 months ago

4.0.11

10 months ago

5.6.2

6 months ago

4.0.14

10 months ago

5.6.1

6 months ago

4.0.13

10 months ago

5.6.0

6 months ago

5.2.4

8 months ago

5.2.3

8 months ago

5.2.2

8 months ago

5.2.1

8 months ago

5.2.0

8 months ago

5.3.4

8 months ago

4.0.6

11 months ago

4.0.5

11 months ago

3.5.10

11 months ago

3.2.2

1 year ago

3.2.6

1 year ago

3.2.5

1 year ago

3.2.4

1 year ago

3.2.3

1 year ago

4.0.4

11 months ago

4.0.1

11 months ago

4.0.0

11 months ago

4.0.3

11 months ago

4.0.2

11 months ago

3.2.9

1 year ago

3.2.8

1 year ago

3.2.7

1 year ago

3.5.3

12 months ago

3.5.2

12 months ago

3.5.1

1 year ago

3.5.0

1 year ago

3.5.7

11 months ago

3.5.6

11 months ago

3.5.5

12 months ago

3.5.4

12 months ago

3.5.9

11 months ago

3.5.8

11 months ago

3.4.0

1 year ago

3.4.3

1 year ago

3.4.2

1 year ago

3.4.1

1 year ago

3.3.1

1 year ago

3.3.0

1 year ago

3.3.3

1 year ago

3.3.2

1 year ago

3.2.1

1 year ago

3.0.3

1 year ago

3.2.0

1 year ago

3.1.2

1 year ago

3.1.1

1 year ago

3.1.0

1 year ago

3.0.2

1 year ago

3.0.1

1 year ago

3.0.0

2 years ago

2.3.1

2 years ago

2.2.5

2 years ago

2.2.4

2 years ago

2.3.0

2 years ago

2.2.3

2 years ago

2.2.1

2 years ago

2.2.0

2 years ago

2.2.2

2 years ago

2.1.8

2 years ago

1.3.4

2 years ago

2.1.2

2 years ago

2.1.1

2 years ago

2.1.4

2 years ago

2.1.3

2 years ago

2.1.6

2 years ago

2.1.5

2 years ago

2.1.7

2 years ago

2.0.0-beta.1

2 years ago

2.1.0

2 years ago

2.0.0

2 years ago

1.3.3

2 years ago

1.2.0

2 years ago

1.1.0

3 years ago

1.3.2

2 years ago

1.3.1

2 years ago

1.3.0

2 years ago

1.0.2

3 years ago

1.0.1

3 years ago

0.1.0-beta.2

3 years ago

1.0.0

3 years ago

0.1.0-beta.1

3 years ago

1.0.0-next.1

3 years ago

1.0.0-next.2

3 years ago

1.0.0-beta.1

3 years ago

1.0.0-next.3

3 years ago

1.0.0-next.4

3 years ago

0.1.0-alpha.10

3 years ago

0.1.0-alpha.12

3 years ago

0.1.0-alpha.11

3 years ago

0.1.0-alpha.9

3 years ago

0.1.0-alpha.8

3 years ago

0.1.0-alpha.5

3 years ago

0.1.0-alpha.4

3 years ago

0.1.0-alpha.7

3 years ago

0.1.0-alpha.6

3 years ago

0.1.0-alpha.1

3 years ago

0.1.0-alpha.0

3 years ago

0.1.0-alpha.3

3 years ago

0.1.0-alpha.2

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago

0.0.0

3 years ago