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

foxxhy-my-design-system

v0.1.0

Published

Ce document contient les directives et les conventions pour utiliser le Design System dans vos projets. Le Design System fournit une série de variables, de classes et de composants réutilisables pour garantir la cohérence visuelle et la facilité de dévelo

Downloads

462

Readme

@Foxxhy -My Design System

Version: 0.1.0 : This Project is in Beta..

image

Principle

This Design System project is lightweight and flexible. It is based on the principle of composition with an approach that combines elements of Tailwind and Bootstrap. My Design System offers CSS utility classes, atoms, and web components for more complex components.

Technologies & Code Quality

This project is built with SASS and the Lit library for web components. All CSS is valid according to the W3C standards.

Installation

  1. Using your favorite terminal:
    npm install Foxxhy-my-design-system
  1. Using your preferred framework, import the CSS classes:
    import 'foxxhy-my-design-system/normalize.css';  /* Reset les CSS natif */
    import 'foxxhy-my-design-system/styles.css';  /* Importe à la fois le thème et les classes CSS */
  1. An example of importing web components:
    import { FIcon } from 'foxxhy-my-design-system';

Storybook

(lien vers le storybook)[https://my-storybook-c29gds87u-foxxhys-projects.vercel.app/?path=/docs/configure-your-project--docs]

Best Practices

Theme Customization

It is recommended to override CSS variables directly from your project. This will update all related variables (except for web components).

Avoiding CSS Conflicts

To avoid conflicts between CSS classes and web components, library classes start with -f and web components start with F.

Auto-completion Plugin

For VS Code enthusiasts, it is recommended to use "IntelliSense for CSS class names in HTML".

Usage

Utility Classes

Example code for using simple styles:

    <div className="f-flex f-flex-row f-flex-wrap f-gap-6">
        my html...
    </div>

Atoms

Example code for using atoms:

    <button className="f-button-success">My Success Button</button>
    <button className="f-button-outline-success">My Outline Button</button>

Molecules

Example using slightly more complex CSS classes and React:

    import React from 'react';
    import { useState } from 'react';

    const Modal = () => {
        const [modal, setModal] = useState(false);

        return (
            <>
                <div className={modal ? 'f-modal-show' : 'f-modal-hide'} >
                    Click on cta to close modal
                    <button className="f-button-danger" onClick={() => setModal(false)} >fermer</button>
                </div>
                <div className={(modal) ? 'f-cover-shadow' : ''} ></div>
            </>
        )
    }

Web Components

The Design System offers web components based on Lit. Before importing it into your preferred framework, you may need to use a wrapper. Here's an example of implementation in ReactJS:

    import React from 'react';
    import { createComponent } from '@lit/react';
    import { FIcon } from 'foxxhy-my-design-system';

    export const Icon = createComponent({
        tagName: 'f-icon',
        elementClass: FIcon,
        react: React,
    });

    const IconContainer = () => {
        return (
            <div className='f-flex f-gap-10' >
                <Icon name='anchor' />
                <Icon name='facebook' />
                <Icon name='linkedin' />
            </div>
        )
    }

In case of TypeScript projets, it's necessary to declare a custom module:

    declare module 'foxxhy-my-design-system';

Releases Notes

  • 0.1.0 : Fix bugs and preparation of npm package
  • 0.0.7 : Fix bugs
  • 0.0.6 : Fix bugs
  • 0.0.5 : Improve Button style, fix button css, text
  • 0.0.4 : Fix bugs on Webs Components
  • 0.0.3 : Fix bugs and minors improvements
  • 0.0.2: Fix bugs and minors improvements
  • 0.0.1 : Project Launch