
Research
/Security News
Popular Tinycolor npm Package Compromised in Supply Chain Attack Affecting 40+ Packages
Malicious update to @ctrl/tinycolor on npm is part of a supply-chain attack hitting 40+ packages across maintainers
dibk-design
Advanced tools
Shared components for DIBK applications
Install Dependencies
This project uses pnpm as the package manager.
pnpm install
Run Storybook for Development
To view and work on components in isolation, run the Storybook development server:
pnpm run storybook
This will open Storybook in your browser, usually at http://localhost:6006
.
When you need to create a distributable version of the library or the Storybook site, use the following commands.
Bundles the library for production and generates TypeScript types. The output is saved to the /dist
folder.
pnpm run build
Only generates the TypeScript declaration files (.d.ts
).
pnpm run build:types
Builds the Storybook as a static web application. The output is saved to the /storybook-static
folder.
pnpm run build-storybook
dibk-design.css
file in your globals.css
@import 'tailwindcss';
@import './node_modules/dibk-design/dist/dibk-design.css';
"use client"
import React from 'react'
import { Button } from 'dibk-design'
const Home = () => {
return (
<main>
<Button onClick={() => {}} size="small" color="primary" content="Button">
I'm a button
</Button>
</main>
)
}
export default Home
FAQs
Shared components for DIBK applications
We found that dibk-design demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 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
Malicious update to @ctrl/tinycolor on npm is part of a supply-chain attack hitting 40+ packages across maintainers
Security News
pnpm's new minimumReleaseAge setting delays package updates to prevent supply chain attacks, with other tools like Taze and NCU following suit.
Security News
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.