3.0.19 • Published 8 months ago
@nefex-ui/react v3.0.19
@nefex-ui/react
Installation
- First install the styled-components on your project using:
# with npm
npm install styled-components
# with yarn
yarn add styled-components
- Second config the theme on your project
import { ThemeProvider } from 'styled-components';
import { defaultTheme } from '@nefex-ui/react';
function App() {
return (
<ThemeProvider theme={defaultTheme}>
<h1>Hello World!</h1>
</ThemeProvider>
);
}
export default App;
- You can also use your own colors, create the folder
styles
on src and add new filetheme
, now you can import your own theme on app:- Here you can change the whole theme to suit your preferences.
// project/scr/styles/theme.ts
import { defaultTheme } from '@nefex-ui/react';
const { colors, ...restDefaultTheme } = defaultTheme;
const { primary, secondary, ...restColors } = colors;
export const theme = {
colors: {
primary: 'your_primary_color',
secondary: 'your_secondary_color',
...restColors,
},
...restDefaultTheme,
};
3.0.18
8 months ago
3.0.19
8 months ago
3.0.13
9 months ago
3.0.16
8 months ago
3.0.17
8 months ago
3.0.14
9 months ago
3.0.15
9 months ago
3.0.12
9 months ago
3.0.11
9 months ago
3.0.9
9 months ago
3.0.8
9 months ago
3.0.7
9 months ago
3.0.6
9 months ago
3.0.4
9 months ago
3.0.3
9 months ago
3.0.2
9 months ago
3.0.5
9 months ago
3.0.1
9 months ago
3.0.0
9 months ago
2.0.8
9 months ago
2.0.7
9 months ago
2.0.6
9 months ago
2.0.5
10 months ago
2.0.4
10 months ago
2.0.3
10 months ago
2.0.1
10 months ago
2.0.0
10 months ago
1.5.0
10 months ago
1.4.0
10 months ago
1.2.0
10 months ago
1.1.0
10 months ago
1.0.0
10 months ago