npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

sosec-ds

v1.0.4

Published

Design System to web and desktop applications, with TypeScript + NextJS + Tailwind CSS

Downloads

9

Readme

TypeScript Version ReactJS Version Tailwind Version Storybook Version GitHub license

This repository is a design system for web and desktop applications designed for applications related to exact sciences. Here, there will be components that support scientific notation and the AsciiMath standard, which is an easy-to-write markup language for mathematics. The repository is based on the atomic design methodology, until then divided into atoms, molecules and organisms.

| Atoms | Molecules | Organisms | | :---: | :---: | :---: | | Avatar | Disclosure | Input Group | | Box | Modal | | Button | Select | | Divider | | Input | | Math Text | | Typography|

Step 1: Download de Project: You can download the project with the npm dependency manager or through github link here. You can use create-next-app to have an initial configuration.

npm i sosec-ds

Through npm, you will have the production version, which contains only the components with their types, web fonts and global style folders. On github, you will also have project documentation with Storybook. To learn more about Storybook, click here.

Step 2: Import global styles: The repository has a folder with your global styles, you must import it into your css layout file. If you are using the src folder and TypeScript, the path is usually src/app/layout.tsx.

import "sosec-ds/styles/globals.css"

Step 3: Configure the tailwind.config file: Based on tailwind documentation: By default, any configuration you add in your own tailwind.config.js file is intelligently merged with the default configuration, with your own configuration acting as a set of overrides and extensions. The presets option lets you specify a different configuration to use as your base, making it easy to package up a set of customizations that you’d like to reuse across projects.

import type { Config } from "tailwindcss";

const config: Config = {
  presets: [
    require('sosec-ds/tailwind.config')
  ],
  content: [
    "./src/pages/**/*.{js,ts,jsx,tsx,mdx}",
    "./src/components/**/*.{js,ts,jsx,tsx,mdx}",
    "./src/app/**/*.{js,ts,jsx,tsx,mdx}",
    "./node_modules/sosec-ds/components/**/*.{js,ts,jsx,tsx,mdx}"
  ],
  theme: {
  },
  plugins: [],
};
export default config;

Above, an initial file is presented with the settings that must be added, note that it is necessary to insert a configuration in the presets and another configuration in the content.

presets: [
    require('sosec-ds/tailwind.config')
  ]
content: [
    "./src/pages/**/*.{js,ts,jsx,tsx,mdx}",
    "./src/components/**/*.{js,ts,jsx,tsx,mdx}",
    "./src/app/**/*.{js,ts,jsx,tsx,mdx}",
    "./node_modules/sosec-ds/components/**/*.{js,ts,jsx,tsx,mdx}" /* Here is the part that should be added */
  ]

Step 4: Transpile the package: In your next.config file, add the 'sosec-ds' package to be transpiled.

/** @type {import('next').NextConfig} */
const nextConfig = {
  transpilePackages: ['sosec-ds']
};

export default nextConfig;

If you prefer, these steps are presented in a video on YouTube, to access, click here.

Import a Component Library: This library contains REACT components, all components and types are in same path. You can import using:

'use client';
import { Button, ButtonProps } from "sosec-ds"
import { Avatar, AvatarProps } from "sosec-ds"
import { Box, BoxProps } from "sosec-ds"
import { Disclosure, DisclosureProps } from "sosec-ds"
import { Divider, DividerProps } from "sosec-ds"
import { Input, InputProps } from "sosec-ds"
import { InputGroup, InputGroupProps } from "sosec-ds"
import { Math, MathProps } from "sosec-ds"
import { Modal, ModalProps } from "sosec-ds" 
import { Select, SelectProps } from "sosec-ds"
import { Typography, TypographyProps } from "sosec-ds"