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

liquid-glass-like-css

v1.0.0

Published

Appleが発表したiOS 26向け新インターフェースLiquid GlassのようなUIを実装できるCSSです。あくまでLiquid Glass「風」の見た目で厳密なLiquid Glassの表現、とくに屈折光を再現しているわけではありません。

Downloads

48

Readme

Liquid Glass風CSS

Appleが発表したiOS 26向け新インターフェースLiquid GlassのようなUIを実装できるCSSです。あくまでLiquid Glass「風」の見た目で厳密なLiquid Glassの表現、とくに屈折光を再現しているわけではありません。

その分、CSSのみで作られているので実装が準備なく手軽で、カスタマイズも可能です。またSafariを含むモダンブラウザなら問題なく表示されます。

使い方

CDNから利用するのが一番手軽です。

<link
  rel="stylesheet"
  href="https://unpkg.com/[email protected]/dist/main.css"
/>

<!-- 矩形 -->
<div class="cfz-liquid-glass-rect">...</div>

<!-- 円形 -->
<div class="cfz-liquid-glass-circle">...</div>

矩形用のcfz-liquid-glass-rectクラス名もしくは円形用のcfz-liquid-glass-circleクラス名を適用したい要素のクラス名として指定すれば使えます。角丸のある四角形も矩形タイプのを指定してください。円形のはまん丸のものに指定できます。

内部的には擬似要素などを用いていますので、この要素に他のスタイルをあてる際は上書きしないよう注意してください。

基本的なカスタマイズ

見た目の調整に以下の4つ(円形は3つ)のCSS変数を受け取れます。いずれもpxといった長さの単位による指定で、%などは受け取れません。

  • --radius(矩形のみ):角丸の半径。デフォルト値は16px
  • --strength:周辺部での歪みの強さ。デフォルト値は20px
  • --expand:周辺部で歪む領域の広さ。デフォルト値は8px
  • --blur:内部のぼかしの強さ。デフォルト値は2px

いずれの値も大きくしすぎると変になります。CSS変数は別のクラス名から渡してあげると便利です。

<div class="cfz-liquid-glass-rect your-class">...</div>
.your-class {
  --radius: 40px;
  --expand: 8px;
  --strength: 30px;
  --blur: 0px;
}

その他のカスタマイズ

cfz-liquid-glass-rectcfz-liquid-glass-circleもそれ自体が持っているスタイルはpositionプロパティとborder-radiusプロパティのみです。それ以外のスタイルは干渉なく適用できます。

大きさの指定

<div class="cfz-liquid-glass-rect your-class">...</div>
.your-class {
  width: 320px;
  height: 80px;
}

背景色の指定

<div class="cfz-liquid-glass-rect your-class">...</div>
.your-class {
  background-color: rgb(80 80 80 / 0.1);
}

作例

デモ(作成中🚧)