Socket
Socket
Sign inDemoInstall

@ost-cas-fee-adv-23-24/design-system-component-library-team-batman

Package Overview
Dependencies
18
Maintainers
7
Versions
51
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @ost-cas-fee-adv-23-24/design-system-component-library-team-batman

Design System Component Library


Version published
Weekly downloads
57
decreased by-16.18%
Maintainers
7
Created
Weekly downloads
 

Readme

Source
Logo

npm


Project: Design System Component Library

This project is a design system component library built with React, TypeScript & Tailwind.
It is a project for the CAS Frontend Engineering Advanced course at the OST. The goal of this project is to create a design system component library that can be used in other projects.

Folder Structure

Logo

💻 Stack

  • ⚛️ react: JavaScript library for building user interfaces.
  • next: React framework for server-side rendering, static site generation, and more.
  • 🎨 tailwindcss: Utility-first CSS framework for rapidly building custom designs.
  • 📘 typescript: Typed superset of JavaScript that compiles to plain JavaScript.
  • 📚 storybook: UI development environment and component library for building, documenting, and testing UI components.
  • ⚙️ @headlessui/react: Completely unstyled, fully accessible UI components, designed to integrate beautifully with Tailwind CSS.
  • 🔧 tailwind-merge: Tailwind CSS plugin for merging utilities.
  • 🔗 clsx: Tiny utility for constructing className strings conditionally.
  • 🚀 framer-motion: Production-ready animation library for React.
  • 👮 eslint: Pluggable and configurable linter tool for identifying and reporting on patterns in JavaScript.
  • ✏️ prettier: Opinionated code formatter that enforces a consistent code style.

📝 Project Summary

  • src: Main source directory containing all the project's components and utilities.
  • src/docs: Directory for Storybook's documentation files.
  • src/utils: Directory for utility functions.
  • src/components: Directory for reusable UI components.

🚀 Run Locally

  1. Clone the design-system-component-library-team-batman repository:
git clone https://github.com/ost-cas-fee-adv-23-24/design-system-component-library-team-batman
  1. Install the dependencies with one of the package managers listed below:
npm install
  1. Start the development mode:
npm run storybook
  1. Open http://localhost:6006 with your browser to see the result.

💡 Tipp

Don't forget to install the recommended extensions for vscode .vscode/extensions.json

🚀 Build package

npm run build

Output will be in the dist folder.

🚀 Install package

install package from npm

npm i @ost-cas-fee-adv-23-24/design-system-component-library-team-batman

🚀 Usage

To use the components styles, you have 3 Options:

  • Option 1: import the minified css file in your project.
import '@ost-cas-fee-adv-23-24/design-system-component-library-team-batman/style.css';
module.exports = {
  presets: [require('@ost-cas-fee-adv-23-24/design-system-component-library-team-batman/tailwind.config.ts')],

  // ... rest of your config
};
module.exports = {
  content: [
    // ...
    './node_modules/@ost-cas-fee-adv-23-24/design-system-component-library-team-batman/dist/**/*.{js,ts,jsx,tsx}',
  ],
  // ... rest of your config
};

🎉 after that you can use the components in your project. 🎉

import { Button } from '@ost-cas-fee-adv-23-24/design-system-component-library-team-batman';

const App = () => {
  return <Button>Click me</Button>;
};

💡 Next.js Server Components

Next.js 13 introduces a new app/ directory structure. By default it uses Server Components. As some of our components use React hooks, we added in those cases the "use client"; tag, so you can import them directly in your React Server Components (RSC).

🙌 Maintainers (Team Batman)

onivue
onivue

contributions
risuiar2023
risuiar2023

contributions

📄 License

This project is licensed under the MIT License - see the MIT License file for details.

Keywords

FAQs

Last updated on 26 Apr 2024

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc