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

@andeeplus/basic-tools

v1.0.18

Published

![Logo](https://basic-tools.vercel.app/static/media/basic-tools.182b331a.png)

Downloads

18

Readme

Logo

Basic Tools

Demo

Basic Tools is a collection of components made to create React application with ease. It includes all the standard elements we usually need to build a webpage.

It makes use of Stlyed Components and its prop system is based on Styled System.

Theming

Theme has been built using the default Styled System keys plus some useful extra props to have better control on specific elements. For instance you have the possibility to transform a simple text in anchor element using the link prop and assign it to the desired item. Those styles are controlled via the custom prop linkStyles in the theme.

 <Text link="cta" href="#">
   Go to another place
 </Text>

If you need to override the standard theme, you can do it updating the keys you want to change in the theme object. Say you need to update the font family used by the theme, you can ovveride the default theme object with your fonts and fontWeights options.

const theme = {
  ...btTheme,
  mode,
  fontWeights: {
    light: 100,
    regular: 400,
    semibold: 600,
    bold: 700
  },
  fonts: {
    normal: '"Inter", sans-serif',
    title: '"Inter", sans-serif'
  }
};

Standard Theme Props

| Theme Key | CSS Properties | | | | | ----------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | --- | --- | --- | | space | margin, margin-top, margin-right, margin-bottom, margin-left, padding, padding-top, padding-right, padding-bottom, padding-left, grid-gap, grid-column-gap, grid-row-gap | | fontSizes | font-size | | colors | color, background-color, border-color | | fonts | font-family | | fontWeights | font-weight | | lineHeights | line-height | | sizes | width, height, min-width, max-width, min-height, max-height | | radii | border-radius | | shadows | box-shadow, text-shadow | | zIndices | z-index |

Custom System Theme Props

| Theme Key | Component | | ------------ | --------- | | buttonStyles | Button | | textStyles | Text | | linkStyles | Text |

Notes: This library has been made mainly for personal use and with simplicity in mind. If you feel it could fits your needs or if you think it could be improved, do not hesitate to use it or to collaborate to its melioration, you are welcome.