New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

blocky-ui

Package Overview
Dependencies
Maintainers
0
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

blocky-ui

A playful, modern design system with bold borders and crisp shadows

latest
Source
npmnpm
Version
0.1.0
Version published
Maintainers
0
Created
Source

Blocky UI

A playful, modern design system with bold borders and crisp shadows. Built with React, TypeScript, and Tailwind CSS.

Features

  • 🎨 Playful, blocky design language
  • 🌙 Dark mode support
  • 🎯 Fully typed with TypeScript
  • 📦 Tree-shakeable exports
  • 🎭 Customizable with CSS variables
  • 🚀 Built on modern tech stack

Installation

# Using npm
npm install @williavs/blocky-ui

# Using yarn
yarn add @williavs/blocky-ui

# Using pnpm
pnpm add @williavs/blocky-ui

Setup

  • Add the Tailwind CSS configuration:
// tailwind.config.js
module.exports = {
  content: [
    // ... your content paths
    "./node_modules/@williavs/blocky-ui/**/*.{js,ts,jsx,tsx}",
  ],
  theme: {
    extend: {},
  },
  plugins: [],
}
  • Import the CSS variables in your global CSS file:
@import '@williavs/blocky-ui/dist/style.css';
  • Wrap your app with the ThemeProvider:
import { ThemeProvider } from '@williavs/blocky-ui';

function App() {
  return (
    <ThemeProvider>
      {/* Your app content */}
    </ThemeProvider>
  );
}

Usage

import { Button, Card, TextArea } from '@williavs/blocky-ui';

function MyComponent() {
  return (
    <Card>
      <h2>Contact Form</h2>
      <TextArea
        label="Message"
        placeholder="Type your message..."
      />
      <Button>Send Message</Button>
    </Card>
  );
}

Components

  • Buttons & Actions

    • Button
    • Dropdown
    • ComboBox
  • Form Controls

    • TextArea
    • Checkbox
    • Radio
    • Switch
    • Select
  • Feedback

    • Progress
    • Spinner
    • Skeleton
    • Toast
  • Layout

    • Card
    • Modal
    • Tabs
    • Navigation
  • Overlay

    • Tooltip
    • Dropdown
    • Modal

Customization

You can customize the appearance by modifying CSS variables:

:root {
  --primary: rgb(187, 247, 208);
  --border: black;
  --shadow: rgba(0, 0, 0, 0.85);
  --shadow-hover: rgba(0, 0, 0, 1);
}

[data-theme="dark"] {
  --primary: rgb(134, 239, 172);
  --border: rgb(134, 239, 172);
  --shadow: rgba(240, 253, 244, 0.15);
  --shadow-hover: rgba(240, 253, 244, 0.25);
}

Contributing

We welcome contributions! Please see our Contributing Guide for details.

License

MIT © William Van Sickle

Keywords

react

FAQs

Package last updated on 10 Dec 2024

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