![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
@nordcloud/gnui
Advanced tools
Nordcloud Design System - a collection of reusable React components used in Nordcloud's SaaS products
This repo contains the Nordcloud Design System - a collection of reusable React components used in Nordcloud's SaaS products.
/src/components
)/src/stories
)npm install @nordcloud/gnui
or
yarn add @nordcloud/gnui
Make sure you have a proper versions of required packages installed, they are specified in peerDependencies
field inside package.json
.
Version 7 or greater of npm
should install them automatically, if not, run:
npm install react react-dom styled-components
Don't forget to install types if you are using TypeScript:
npm install -D @types/react @types/react-dom @types/styled-components
Apply global GNUI styles at the top level of your app:
import { SetGlobalStyle } from "@nordcloud/gnui";
ReactDOM.render(
<React.StrictMode>
<SetGlobalStyle customScrollbars />
<App />
</React.StrictMode>,
document.getElementById("root")
);
Switch themes:
import {
Button,
SVGIcon,
useThemeSwitcher,
THEME_OPTIONS,
} from "@nordcloud/gnui";
function UserSettings() {
const { currentTheme, setTheme } = useThemeSwitcher();
return (
<Button onClick={() => setTheme(nextTheme)}>
<IconWrap>
<SVGIcon name="dashboard" />
</IconWrap>
Switch to {THEME_OPTIONS[nextTheme].toLowerCase()} theme
</Button>
);
}
Storybook allows you to preview components. It deploys the code automatically with Amplify Console triggered by changes on branch master
. Pipeline steps are found in amplify.yml
.
When you create a PR against the master
branch, Amplify creates a new deployment automatically - the environment will be attached to the PR at Github. Reviewers can preview changes using this deployment - after the PR gets merged or rejected, the environment is destroyed automatically by Amplify Console.
src/components
and update stories in stores
.Below versions of Node & npm are required:
"node": ">=18.12.0",
"npm": ">=8.19.2"
Run nvm use
to use supported version.
npm install
npm run storybook
There is a possibility to build & test the package locally in the project it's currently used in.
npm run build
npm pack
You will get a tarball with the freshly built package, you can copy it inside your project's folder and install with
npm install nordcloud-gnui-${VERSION}.tgz
After the successful installation it's ready to be tested (remember to restart the dev server)
raczyk | Dominik N | Jan Osio | Horay |
This project follows the all-contributors specification. Contributions of any kind are welcome!
Licensed under the MIT License, Copyright © 2020 Nordcloud Engineering
See LICENSE for more information.
FAQs
Nordcloud Design System - a collection of reusable React components used in Nordcloud's SaaS products
The npm package @nordcloud/gnui receives a total of 318 weekly downloads. As such, @nordcloud/gnui popularity was classified as not popular.
We found that @nordcloud/gnui demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.