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

@lucaapp/design-library

v1.11.0

Published

The goal of this library is to provide a solid set of UI-Components that allow us to have a consistent and easily changeable UI.

Downloads

9

Readme

Design Library

The goal of this library is to provide a solid set of UI-Components that allow us to have a consistent and easily changeable UI.

Integration

cd yourpath/luca-web/services/<service>
yarn add @lucaapp/design-library
import { Colors, Icons, Illustration } from '@lucaapp/design-library';

<Icons.YellowStar width={16} height={16} /> // default width 16, default height 16
<Illustration.Check width={256} height={256} /> // default width 256, default height 256
<Icons.YellowStar width={85} height={44} /> // default width 85, default height 44

Local Development

Add a new icon / illustration / logo SVG file

  1. add the raw SVG file into the corresponding folder, for example: add a icon SVG file to src/raw-assets/raw-icons, add a illustration SVG file to src/raw-assets/raw-illustrations, add a logo SVG file to src/raw-assets/raw-logos

  2. run yarn icons:create or yarn illustrations:create or yarn logos:create to update the SVG files

  3. run yarn build

Test the package in a service

cd packages/design-library
yarn link

cd packages/design-library/node_modules/react
yarn link

Within the folder you are developing in, run:

cd packages/<other_package>
yarn link luca-design-library

cd packages/<other_package>
yarn link react

If you are running the service in the docker, you can copy the folder design-library/dist to your service directory and then copy it to your docker container, for example:

mv packages/design-library/dist <yourPath>/<yourserviceDir>
docker cp <yourPath>/<yourserviceDir>/dist <container name>:/containerDir/node_modules/@lucaapp/design-library

Afterwards, you can run yarn watch in the UI-Library directory to automatically rebuild the library on changes. These changes will also cause an automatic reload of the service using it, e.g. locations.