All Projects โ†’ anubra266 โ†’ pill-pity

anubra266 / pill-pity

Licence: MIT License
๐ŸŽจ Hero Patterns - a collection of repeatable SVG background patterns for Chakra UI

Programming Languages

typescript
32286 projects
HTML
75241 projects

Projects that are alternatives of or similar to pill-pity

choc-autocomplete
๐Ÿ‡ Autocomplete Component Package for Chakra UI
Stars: โœญ 286 (+1261.9%)
Mutual labels:  chakra-ui, anubra266
tweet-to-image
Convert tweets to beautiful images
Stars: โœญ 134 (+538.1%)
Mutual labels:  chakra-ui
chakra-dayzed-datepicker
Chakra UI + Dayzed = datepicker
Stars: โœญ 44 (+109.52%)
Mutual labels:  chakra-ui
Void
Fast and elegant file hosting service.
Stars: โœญ 48 (+128.57%)
Mutual labels:  chakra-ui
design-patterns-for-humans-cn
Design patterns for humans ไธญๆ–‡็‰ˆ - ๅฏน่ฎพ่ฎกๆจกๅผ่ถ…็ฎ€ๅ•็š„่งฃ้‡Š
Stars: โœญ 2,432 (+11480.95%)
Mutual labels:  design
safari
Safari Dark/Light theme for Sketch
Stars: โœญ 28 (+33.33%)
Mutual labels:  design
next-prisma
๐Ÿš€ Static site with Next.js 9.4 and Prisma.
Stars: โœญ 116 (+452.38%)
Mutual labels:  chakra-ui
geo-pattern
Create beautiful generative geometric background images from a string โœจ TypeScript port of jasonlong/geo_pattern. Supports both Node.js and Browser.
Stars: โœญ 33 (+57.14%)
Mutual labels:  design
norman-portfolio
Norman Nuthu's Portfolio
Stars: โœญ 16 (-23.81%)
Mutual labels:  design
sketch-git-hooks
Easy trick how to enjoy Git versioning for Sketch files thanks to Git Hooks
Stars: โœญ 12 (-42.86%)
Mutual labels:  design
meetup
For organizing the design systems meetup in NYC.
Stars: โœญ 23 (+9.52%)
Mutual labels:  design
Bootstrap-Basics-v4
A introductory tutorial on how to use Bootstrap for our front-end design via docs on getbootstrap.com
Stars: โœญ 21 (+0%)
Mutual labels:  design
onlysetups
OnlyFans, but for pictures of desk setups.
Stars: โœญ 82 (+290.48%)
Mutual labels:  chakra-ui
events
๐Ÿ“… Upcoming events, conferences, meetups related to Open Source Design
Stars: โœญ 53 (+152.38%)
Mutual labels:  design
Calculator-App
A Neumorphic Calculator App created using Flutter.
Stars: โœญ 18 (-14.29%)
Mutual labels:  design
purity-ui-dashboard
Purity UI Dashboard - Free and Open Source Chakra UI Dashboard
Stars: โœญ 253 (+1104.76%)
Mutual labels:  chakra-ui
empathy-map
ใƒใƒผใƒ ใงใŠไบ’ใ„ใฎใ“ใจใ‚’็Ÿฅใ‚Šใ€ใ‚ดใƒผใƒซใ‚„็›ฎ็š„ใ‚’ๅ…ฑๆœ‰ใ™ใ‚‹ใ€‚
Stars: โœญ 15 (-28.57%)
Mutual labels:  design
mdb4-vue-ui-kit
Vue Bootstrap with Material Design - Powerful and free UI KIT
Stars: โœญ 73 (+247.62%)
Mutual labels:  design
react-mdl-extra
React MDL Extra components
Stars: โœญ 41 (+95.24%)
Mutual labels:  design
react-todo
A super accessible and easy to use todo list.
Stars: โœญ 13 (-38.1%)
Mutual labels:  design


๐ŸŽจ
pill-pity



npm package npm  downloads NPM

GitHub Repo stars


Hero Patterns for the Chakra UI Library.




npm i pill-pity





About

Well it's quite simple, I love๐Ÿ’– those svg backgrounds, Steve Schoger has on HeroPatterns. I've been copy pasting from that site for a while now. And I got tired.๐Ÿ˜“ So, this is supposed to simplify it. But you know me... I love to share.๐Ÿ˜„

Props

You'll get to props, leave it for now. Lemme tell you what the name pill-pity has to do with it's function.

Spoiler โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€” it's props ๐Ÿ˜‡

The default component creates your pattern with two props; patternFill and patternOpacity.

But you know how Chakra UI makes life easy, and you do bg in place of background, ml for marginLeft, and so on. Well I said, "I should make life easier too".

So I added short form props; patFill and patOpacity. Well then I thought, that's not enough, Let's just make it easiest๐Ÿ™ƒ after all.

Trust me you're not seeing it yet. But damn, I'm the laziest thing I know, so I said "tune it up", just a little more, and it became pill and pity๐Ÿ˜‚ And there it was; the name staring back at me.โœจ

I hope you enjoyed the story, but all I was trying to say is; all six props are accepted. And they override themselves in the order they are provided.

Happy Coding!

Install

npm i --save pill-pity
#or
yarn add pill-pity

Usage

import PillPity from 'pill-pity';
import { Flex } from '@chakra-ui/react';

export default () => {
  return (
    <PillPity pattern="topography" as={Flex} justify="center" align="center">
      I am a Box with Pattern
    </PillPity>
  );
};

NB:* PillPity Composes Box, so all BoxProps are accepted.

Props Reference

Prop Description Default
pattern The Hero Pattern to be applied โ€”โ€”
patternFill The foreground color applied to the pattern. It accepts all color formats; hsl, rgb, hex, you name it, plus chakra color tokens gray.600
patternOpacity The opacity of the pattern foreground 0.4

You should apply a bgColor to complement the pattern. If none is applied, the default is gray.100


Patterns

The available patterns.

Preview them Here

[
  'jigsaw',
  'overcast',
  'formal-invitation',
  'topography',
  'texture',
  'jupiter',
  'architect',
  'cutout',
  'hideout',
  'graph-paper',
  'yyy',
  'squares',
  'falling-triangles',
  'piano-man',
  'pie-factory',
  'dominos',
  'hexagons',
  'charlie-brown',
  'autumn',
  'temple',
  'stamp-collection',
  'death-star',
  'church-on-sunday',
  'i-like-food',
  'overlapping-hexagons',
  'four-point-stars',
  'bamboo',
  'bathroom-floor',
  'cork-screw',
  'happy-intersection',
  'kiwi',
  'lips',
  'lisbon',
  'random-shapes',
  'steel-beams',
  'tiny-checkers',
  'x-equals',
  'anchors-away',
  'bevel-circle',
  'brick-wall',
  'fancy-rectangles',
  'heavy-rain',
  'overlapping-circles',
  'plus',
  'rounded-plus-connected',
  'volcano-lamp',
  'wiggle',
  'bubbles',
  'cage',
  'connections',
  'current',
  'diagonal-stripes',
  'flipped-diamonds',
  'floating-cogs',
  'glamorous',
  'houndstooth',
  'leaf',
  'lines-in-motion',
  'moroccan',
  'morphing-diamonds',
  'rails',
  'rain',
  'skulls',
  'squares-in-squares',
  'stripes',
  'tic-tac-toe',
  'zig-zag',
  'aztec',
  'bank-note',
  'boxes',
  'circles-squares',
  'circuit-board',
  'curtain',
  'diagonal-lines',
  'endless-clouds',
  'eyes',
  'floor-tile',
  'groovy',
  'intersecting-circles',
  'melt',
  'overlapping-diamonds',
  'parkay-floor',
  'pixel-dots',
  'polka-dots',
  'signal',
  'slanted-stars',
  'wallpaper',
];
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].