
Research
/Security News
9 Malicious NuGet Packages Deliver Time-Delayed Destructive Payloads
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.
@lunit/design-system
Advanced tools
Lunit Design System Library is a collection of reusable components and styles that are used to build Lunit's products.
It is built on top of Material UI, a popular React UI framework.
Currently, the design system only supports material ui v5, so you need to install those versions.
npm install @emotion/react@11.14.0 @emotion/styled@11.11.0 @mui/material@5.18.0 @lunit/design-system
import {
createTheme,
ThemeProvider as MuiThemeProvider,
} from "@mui/material/styles";
import { deepmerge } from "@mui/utils";
import CssBaseline from "@mui/material/CssBaseline";
import { themeOptions } from "@lunit/design-system";
const theme = createTheme(
deepmerge(themeOptions, {
typography: {
fontFamily: ["Pretendard Variable"],
},
})
);
function ThemeProvider({ children }: { children: React.ReactNode }) {
return (
<MuiThemeProvider theme={theme}>
<CssBaseline />
{children}
</MuiThemeProvider>
);
}
function App() {
return (
<ThemeProvider>
<YourApp />
</ThemeProvider>
);
}
Download the PretendardVariable.woff2 font in Pretendard GitHub and place it in your css file.
@font-face {
font-family: "Pretendard Variable";
src: url("./assets/fonts/PretendardVariable.woff2") format("woff2");
}
Apply the Pretendard font using NextFont in the Provider.
import localFont from "next/font/local";
const pretendard = localFont({
src: "./fonts/PretendardVariable.woff2",
});
const theme = createTheme(
deepmerge(themeOptions, {
typography: {
fontFamily: [pretendard.style.fontFamily, "Pretendard Variable"],
},
})
);
The color token in the design system shows different colors depending on the theme you have set up.
Here's how to set the color theme.
Note: If you don't set a theme, the
Dark 1 themeis applied,
and the text may not be visible if the background is white.
You can fix this by modifying the theme. Please refer to the guide below
repository root location
npm i : Install node modules and set Nx environmentnpm run storybook:design-system : Runs storybook local dev server on http://localhost:6006A story is simply a case in which one component is executable.
You can browse the stories in the UI and see the code behind them in files
that end with .stories.js(jsx) or .stories.ts(tsx).
// Button.stories.js|jsx
import React from "react";
import { Button } from "./Button";
export default {
/* 👇 The title controls the name shown in the storybook sidebar. */
title: "Components/Button",
component: Button,
};
export const Primary = () => <Button primary>Button</Button>;
FAQs
Lunit Design System
The npm package @lunit/design-system receives a total of 11 weekly downloads. As such, @lunit/design-system popularity was classified as not popular.
We found that @lunit/design-system demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 7 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.

Research
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.