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

lism-css

v0.11.0

Published

Lism CSS is a layout-first CSS framework for websites.

Downloads

1,740

Readme

lism-css

English | 日本語

npm version License: MIT

What is lism-css?

Lism CSS is a lightweight CSS design framework for quickly and beautifully building website layouts.

Inspired by Every Layout's layout primitives, Tailwind CSS's utility-first approach, and ITCSS's layering concept, Lism CSS integrates these ideas into a cohesive architecture.

No build step or configuration is required. Simply load the CSS file via CDN or import it from npm to get started. It also provides React and Astro components whose props are converted into CSS classes and custom properties, enabling component-based development without runtime style generation.

Features

  • Lightweight — The entire CSS bundle is approximately 30 KB (~8 KB gzipped).
  • Zero-Build Framework — Works with plain HTML by simply loading a CSS file. No build tool, preprocessor, or configuration needed. Available via CDN or npm.
  • Layout-First Module Architecture — Pre-built layout modules (l--flex, l--stack, l--grid, l--columns, l--center, l--sideMain, etc.) let you compose common layout patterns without writing custom CSS.
  • CSS Layer Structure — Uses @layer (lism-reset → lism-base → lism-modules → lism-utility) for clear specificity management. Minimizes specificity conflicts.
  • Design Tokens — Colors, spacing, font sizes, shadows, and border radii are managed as CSS custom properties. Easy to customize by overriding variables.
  • Flexible Prop Classes — A -{prop}:{value} naming convention (e.g., -p:20, -bgc:base-2, -fz:l) maps CSS properties to utility classes for quick, readable styling.
  • Responsive System — Breakpoint-specific classes and CSS variables (e.g., -p_sm, -p_md) use container queries by default for parent-based responsive design. Switchable to media queries.
  • React & Astro Components — Dedicated components for both React and Astro translate props into Lism CSS classes and variables automatically. Write <Stack g="20"> instead of class="l--stack -g:20".

Installation

CDN (no build required)

<link href="https://cdn.jsdelivr.net/npm/lism-css@0/dist/css/main.css" rel="stylesheet" />

npm

npm i lism-css

or

pnpm add lism-css

Setup

Import the CSS as a global style:

import 'lism-css/main.css';

For Next.js, load it in layout.js (App Router) or _app.js (Pages Router).

For Astro, add the following to astro.config.js to allow importing .astro components from node_modules:

export default defineConfig({
  vite: {
    ssr: {
      noExternal: ['lism-css'],
    },
  },
});

Usage

React

import { Box, Flex, Stack, Grid, Text, Heading } from 'lism-css/react';

<Stack g="20">
  <Heading tag="h2" fz="xl">Welcome</Heading>
  <Flex g="20" ai="center">
    <Box p="20" bgc="base-2" bdrs="20">
      <Text fz="l">Card A</Text>
    </Box>
    <Box p="20" bgc="base-2" bdrs="20">
      <Text fz="l">Card B</Text>
    </Box>
  </Flex>
</Stack>

Astro

---
import { Box, Flex, Stack, Text, Heading } from 'lism-css/astro';
---

<Stack g="20">
  <Heading tag="h2" fz="xl">Welcome</Heading>
  <Flex g="20" ai="center">
    <Box p="20" bgc="base-2" bdrs="20">
      <Text fz="l">Card A</Text>
    </Box>
    <Box p="20" bgc="base-2" bdrs="20">
      <Text fz="l">Card B</Text>
    </Box>
  </Flex>
</Stack>

HTML (CSS-only)

<div class="l--stack -g:20">
  <h2 class="-fz:xl">Welcome</h2>
  <div class="l--flex -g:20 -ai:center">
    <div class="-p:20 -bgc:base-2 -bdrs:20">
      <p class="-fz:l">Card A</p>
    </div>
    <div class="-p:20 -bgc:base-2 -bdrs:20">
      <p class="-fz:l">Card B</p>
    </div>
  </div>
</div>

Core Components

Lism CSS provides the following React and Astro components:

Layout Components: Lism, Box, Flow, Flex, Cluster, Stack, Grid, FluidCols, SwitchCols, SideMain, Center, Columns, Frame

Structure Components: Container, Wrapper, Layer, LinkBox

Content Components: Text, Heading, Inline, Link, Group, List

Atomic Components: Icon, Media, Decorator, Divider, Spacer

All components accept Lism props (e.g., p, m, g, fz, bgc, bdrs) that automatically map to CSS classes and variables.

CSS Class System

Lism CSS uses a structured naming convention for CSS classes:

| Type | Pattern | Examples | |------|---------|----------| | Layout Module | l--{name} | l--flex, l--grid, l--stack, l--center, l--columns, l--sideMain | | State Module | is--{name} | is--wrapper, is--container, is--layer | | Prop Class | -{prop}:{value} | -p:20, -m:auto, -bgc:base-2, -fz:l, -ta:center | | Breakpoint | -{prop}_{bp} | -p_sm, -g_md, -fz_lg | | Utility Class | u--{name} | u--cbox |

Responsive System

Responsive values are set using breakpoint-specific classes and CSS variables:

HTML:

<div class="-p:20 -p_sm -p_md" style="--p_sm:var(--s30);--p_md:var(--s40)">
  <p>Padding changes at sm (480px) and md (800px) breakpoints</p>
</div>

JSX (React / Astro):

<Lism p={['20', '30', '40']}>
  <p>Padding changes at sm (480px) and md (800px) breakpoints</p>
</Lism>

Default breakpoints: sm = 480px, md = 800px, lg = 1120px (container queries by default).

Design Tokens

Lism CSS provides CSS custom properties for consistent design:

  • Colors: --base, --base-2, --text, --text-2, --link, --divider, --brand, --accent, plus palette colors (--red, --blue, --green, etc.)
  • Spacing: --s10 through --s50 (mapped to rem values)
  • Font Sizes: --fz--xs through --fz--2xl
  • Border Radius: --bdrs--5 (2px) through --bdrs--99 (99rem)
  • Shadows: --shsz--5 through --shsz--50 with configurable shadow colors
  • Container Sizes: --sz--xs (32rem) through --sz--xl (1600px)

UI Components

For interactive UI components (Accordion, Modal, Tabs, Alert, Avatar, Badge, Button, etc.), see the separate package @lism-css/ui.

npm i @lism-css/ui

AI Tool Integration

llms.txt

For AI assistants and LLM-powered tools, a machine-readable documentation index is available:

https://lism-css.com/llms.txt

MCP Server

An MCP (Model Context Protocol) server is available for AI coding tools:

Claude Code:

claude mcp add lism-css -- npx -y @lism-css/mcp

Cursor:

// .cursor/mcp.json
{
  "mcpServers": {
    "lism-css": {
      "command": "npx",
      "args": ["-y", "@lism-css/mcp"]
    }
  }
}

VS Code (GitHub Copilot):

// .vscode/mcp.json
{
  "servers": {
    "lism-css": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "@lism-css/mcp"]
    }
  }
}

Documentation

For full documentation, visit lism-css.com.

Community

For feedback or questions, join the Lism CSS Discord server.

Credits

License

MIT