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

kickass-ui

v0.0.2

Published

A React Tailwind Component Library

Downloads

7

Readme

Kickass UI

A React Tailwind Component Library

NPM JavaScript Style Guide

Installation

KICKASS-UI

Kickass-UI is available as an npm package.

npm:

npm install kickass-ui

yarn:

yarn add kickass-ui

Getting started with Kickass-UI Component

Here is an example of a basic app using Kickass-UI Component's Button component:

import * as React from 'react';
import { Button } from 'kickass-ui';
import 'kickass-ui/dist/index.css';

function App() {
  return (
    <Button variant="outlined" color="success" onClick={() => {}}>
      Hello World
    </Button>
  );
}

Using Custom themes

By default the component library uses the following color theme configuration

export const base = {
  contrast: {
    danger: '#fff',
    info: '#fff',
    onSurface: '#fff',
    primary: '#fff',
    secondary: '#fff',
    success: '#000',
    surface: '#000',
    warning: '#fff',
  },
  custom: {
    danger: '#fff',
    info: '#fff',
    onSurface: '#fff',
    primary: '#fff',
    secondary: '#fff',
    success: '#000',
    surface: '#000',
    warning: '#fff',
  },
  danger: '#ff4e4e',
  info: '#5F9DF7',
  onSurface: '#000',
  primary: '#4d89ff',
  secondary: '#999999',
  success: '#4dff4d',
  surface: '#fff',
  warning: '#ff965f',
};

However, you can define your custom theme by using the ThemeProvider context.

Here is an example of implementing custom theme using extendTheme method:

import * as React from 'react';
import { extendTheme, ThemeProvider, Typography } from 'kickass-ui';

const customTheme = extendTheme(base, {
  primary: 'pink',
  secondary: 'green',
  contrast: {
    ...base.contrast,
    primary: 'red',
  },
});

const App = () => {
  return (
    <ThemeProvider customTheme={customTheme}>
        <Typography color="primary" variant="h1">
          This is a sample theme
        </Typography>
    </ThemeProvider>
  )
}

Theme Props

| Component | Use | |---|---| | extendTheme | Create a theme object extending another theme object ( base or dark or custom ) | | applyTheme | Manually apply theme | | <ThemeProvider/> | Theme context to automatically apply custom theme. Pass props customTheme | | themes (base or dark) | Themes defined in codebase | | ColorCodes | Enum with the colorcodes, refer ColorCodes |

Component list

You can refer to the following component list and prop definitions to use the library

Atoms

| Component | Props | |------------|-------| | Button | Button Props | | Avatar | Avatar Props | | Badge | Badge Props | | Checkbox | Checkbox Props | | Radio | Radio Props | | SelectMenu | SelectMenu Props | | TextArea | TextArea Props | | Toggle | Toggle Props | | Slider | Slider Props | TextField | TextField Props | | Typography | Typography Props |

Molecules

| Component | Variant | Props | |--------------------|-------------------------------|-------| | Accordion | |Accordion Props | | ActionPanel | |ActionPanel Props | | Alert | |Alert Props | | ButtonGroups | |ButtonGroups Props | | DescriptionList | |DescriptionList Props | | EmptyStates | Simple |EmptyStates Props | | | WithRecommendations | | | | WithRecommendationsGrid | | | | WithStartingPoints | | | | WithTemplates | | | Feeds | SimpleWithIcons |Feeds Props | | | StackedWithAvatars | | | GridList | ActionsWithSharedBorders |GridList Props | | | ContactCardsWithSmallPotraits | | | | HorizontalLinkCards | | | | ImagesWithDetails | | | | SimpleCards | | | MediaObjects | | MediaObjects Props | | Modal | CenteredWithSingleAction |Modal Props | | | SimpleAlert | | | PageHeading | CardWithAvatarAndStats |PageHeading Props | | | WithActions |WithActions Props | | | WithAvatarAndActions | | | | WithBannerImage | | | RadioGroups | Cards |RadioGroups Props | | | ColorPicker | | | | ListWithDescription | | | | ListWithDescriptionInPanel | | | | ListWithRadioOnRight | | | | SimpleList | | | | SimpleTable | | | | SmallCards | | | | StackedCards | | | SectionHeading | Simple |SectionHeading Props | | | WithTabs | | | Stats | Simple |Stats Props | | | WithBrandIcon | | | | WithSharedBorders | | | Steps | Simple |Steps Props | | | Panels | | | | Circles | | | Tables | |Tables Props | | Tabs | TabsInPills |Tabs Props | | | TabsWithUnderline | | | TextAreas | |TextAreas Props | | Toggles | ShortToggle |Toggles Props | | | ToggleWithIcon | | | | WithLeftLabelAndDescription | | | | WithRightLabel | | | Tooltip | |Tooltip Props | | VerticalNavigation | |Tooltip Props |