From bb9ab05b363b064655691eb894eb57536c71ad65 Mon Sep 17 00:00:00 2001 From: Priyanka Solis Date: Thu, 22 Jan 2026 13:05:00 +0000 Subject: [PATCH] Initial commit: glass panel component --- LICENSE | 16 ++++++++++++++++ README.md | 9 +++++++++ index.js | 7 +++++++ package.json | 6 ++++++ 4 files changed, 38 insertions(+) create mode 100644 LICENSE create mode 100644 README.md create mode 100644 index.js create mode 100644 package.json diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..8144893 --- /dev/null +++ b/LICENSE @@ -0,0 +1,16 @@ +MIT License + +Copyright (c) 2026 glass-panel-ui Contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to +deal in the Software without restriction, including without limitation the +rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +sell copies of the Software, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. diff --git a/README.md b/README.md new file mode 100644 index 0000000..21b56ef --- /dev/null +++ b/README.md @@ -0,0 +1,9 @@ +# glass-panel-ui + +Frosted-glass panel and card components for Tailwind CSS projects. + +## Install + +``` +npm install glass-panel-ui +``` diff --git a/index.js b/index.js new file mode 100644 index 0000000..df6d855 --- /dev/null +++ b/index.js @@ -0,0 +1,7 @@ +const plugin = require("tailwindcss/plugin"); + +module.exports = plugin(function ({ addComponents }) { + addComponents({ + ".glass-panel": { backdropFilter: "blur(12px)", background: "rgba(255,255,255,0.08)" }, + }); +}); diff --git a/package.json b/package.json new file mode 100644 index 0000000..f51f79d --- /dev/null +++ b/package.json @@ -0,0 +1,6 @@ +{ + "name": "glass-panel-ui", + "version": "0.9.2", + "main": "index.js", + "license": "MIT" +}