Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@andeeplus/basic-tools

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@andeeplus/basic-tools

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

latest
Source
npmnpm
Version
1.0.18
Version published
Maintainers
1
Created
Source

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 KeyCSS Properties
spacemargin, 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
fontSizesfont-size
colorscolor, background-color, border-color
fontsfont-family
fontWeightsfont-weight
lineHeightsline-height
sizeswidth, height, min-width, max-width, min-height, max-height
radiiborder-radius
shadowsbox-shadow, text-shadow
zIndicesz-index

Custom System Theme Props

Theme KeyComponent
buttonStylesButton
textStylesText
linkStylesText


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.

FAQs

Package last updated on 08 Jun 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts