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

@qonsoll/react-design

v2.2.22

Published

React-components and design system for enterprise-level products.

Downloads

40

Readme

React design

AntdD + styled system based on CSS vars. Extended antd components with additional style properties and advanced grid system.

NPM JavaScript Style Guide

Install

Install dependencies

npm install --save antd @ant-design/icons styled-components

or

yarn add antd @ant-design/icons styled-components

Install library

npm install --save @qonsoll/react-design

or

yarn add @qonsoll/react-design

Usage

  1. In your index.js file insert two imports:
import "@qonsoll/react-design/dist/styles/styles.css"; 
import "@qonsoll/react-design/dist/styles/vars/index.css"

ReactDOM.render(
  <React.StrictMode>
    <App />
  </React.StrictMode>,
  document.getElementById("root")
);
  1. Create folder styles/ in root of project, if you don't already have this folder in your project
 mkdir styles

Create vars.css files inside styles/ directory.

There is an example how vars.css file should look like. Copy and insert this code to vars.css file. You can add own values for vars, they will be override default vars from library

:root {
  /* Colors —————————————————————————————— Start */
  --ql-color-accent1: rgb(102, 72, 191);
  /* Colors —————————————————————————————— End */

  /* Typography —————————————————————————————— Start */
  --ql-font-family-main:  "Rubik";
  /* Typography —————————————————————————————— End */
}

It is not necessary to use comments, but when your file have a lot of variables better to use comment for grouping

  1. Add this import in file index.js
import './styles/vars.css'

Be careful, it string must be only after string with importing default library's vars. Otherwise, your vars will not work.

How to override specific property?

Variables for all components, typography, colors and so on you can find in folder @qonsoll/react-design/dist/styles/vars. There are all vars, that you use.

If you need to set variable for specific component, you need to go to component folder and find name of one. In file you will find name of var, that you need. For example, in order to change background for card, you need to:

  • go to file components/Card/_card.css;
  • find variable --card-background;
  • copy name of this var;
  • go to file /styles/vars.css in your project;
  • insert it
  /* Card —————————————————————————————— Start */
  --card-background:  #a7a7a796;
  /* Card —————————————————————————————— End */

How to import components?

import { Container, Row, Col, Button, Text } from "@qonsoll/react-design"

Documentation (Storybook)

https://qonsoll.github.io/react-design

Deploy Storybook changes to GitPages

Switch to root directory, then push changes and deploy it to GitPages:

git add . && git commit -m 'Commit message...' && git push && npm publish && npm run deploy-storybook

License

MIT © alexpassss