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 🙏

© 2026 – Pkg Stats / Ryan Hefner

sklenene-komponenty_library

v0.0.8

Published

A glassmorphism styled-components library for React

Readme

Glass UI — React Styled Components Library

Reusable React components built with styled-components and a glassmorphism-inspired design system.

Installation

npm install styled-components-project-idk

NPM package

Peer dependencies (not auto-installed):

  • react >= 18
  • react-dom >= 18
  • styled-components >= 6

Quick start

Wrap your app with ThemeProvider and provide a theme matching the library tokens, then use components.

import { ThemeProvider } from 'styled-components';
import { Button, Text, Icon, Stack } from 'styled-components-project-idk';
// Optional deep-import themes if needed:
// import { lightTheme, darkTheme } from 'styled-components-project-idk/providers/theme';

const theme = /* lightTheme or your own compatible theme object */;

export default function App() {
  return (
    <ThemeProvider theme={theme}>
      <Stack direction="vertical" gap={12}>
        <Text variant="h4">Hello</Text>
        <Button isPrimary onClick={() => {}}>Primary</Button>
        <Icon name="icon_search" size={20} />
      </Stack>
    </ThemeProvider>
  );
}

Theming

The library uses styled-components ThemeProvider. A compatible theme must include these tokens (shape simplified):

type Theme = {
  colors: {
    primary: { regular: string; highlight: string; bg: string; text?: string };
    secondary: { regular: string; highlight: string };
    textColor: { text_light: string };
    status: { error: string };
    glassBg: { primary: string; secondary: string; none?: string };
    text?: string;
  };
  fonts: { body: string };
  typography: {
    p: { size: string; weight: number };
    small: { size: string };
  };
  gradientPrimary?: { start: string; end: string };
  gradientSecondary?: { start: string; end: string };
};

You can also deep-import the provided themes (if published):

import {
  lightTheme,
  darkTheme,
} from "styled-components-project-idk/providers/theme";

Components

Top-level exports (importable from the package root):

  • Button
  • Icon
  • IconText
  • Text
  • Card
  • Calendar
  • Stack, VStack, HStack, ScrollX, ScrollY
  • Header (small)
  • Checkbox, Radio, Switch, Eye
  • Table, TableRow, TableCell
  • IconInput, TextArea, Slider

Additional components (deep imports):

  • Buttons: TextButton, GradientButton, IconButton
  • Headers/Footers: HeaderLg, HeaderSmall, Footer
  • Charts: Charts/chart, Charts/DonutChart
  • Forms: forms/Register, forms/Login
  • Inputs: Inputs/Input (form input), Input (floating label input)
  • Card helpers: Card/UserInfo

Example deep import:

import GradientButton from "styled-components-project-idk/components/Buttons/GradientButton";

Icons

Use the Icon component with an IconName from the built-in set.

import { Icon } from "styled-components-project-idk";

export default () => <Icon name="icon_search" size={24} />;

To enumerate all available icons:

import { icons } from "styled-components-project-idk/assets/icons";
const names = Object.keys(icons); // IconName[]

Showcase

This repository includes a simple showcase page used during development.

  • Run dev server: npm run dev
  • Open the app and navigate to #showcase (hash route) to see all components.

Usage examples

Buttons:

import { Button } from "styled-components-project-idk";

<Button isPrimary onClick={() => {}}>
  Save
</Button>;

Inputs:

import { IconInput, TextArea, Slider } from 'styled-components-project-idk';

<IconInput icon="icon_search" placeholder="Search" />
<TextArea label="Description" rows={6} fullWidth />
<Slider min={0} max={100} defaultValue={40} onChange={() => {}} />

Table:

import { Table, TableRow, TableCell } from "styled-components-project-idk";

<Table caption="Users" maxWidth={800}>
  <thead>
    <TableRow>
      <TableCell header>Name</TableCell>
      <TableCell header>Email</TableCell>
      <TableCell header>Role</TableCell>
    </TableRow>
  </thead>
  <tbody>
    <TableRow>
      <TableCell>Jane</TableCell>
      <TableCell>[email protected]</TableCell>
      <TableCell>Admin</TableCell>
    </TableRow>
  </tbody>
</Table>;

Development

Commands:

  • npm run dev — start Vite dev server
  • npm run build — type-check and build library to dist/
  • npm run preview — preview build
  • npm run lint — run ESLint

Publishing note: The package ships dist/ only. Deep imports assume the compiled structure mirrors src/.

License

ISC — see LICENSE if present.