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

@x-app/easy-css

v1.0.1

Published

A lightweight, customizable SCSS utility library with responsive classes.

Readme

Easy CSS

مكتبة كلاسات CSS مساعدة مبنية بـ SCSS، تتضمن أدوات للمسافات والتخطيط والأبعاد والنصوص والألوان والحدود، مع كلاسات متجاوبة.

للدليل التفصيلي وقائمة الكلاسات والقيم المدعومة، راجع DOCUMENTATION.md.

التثبيت

npm install easy-css

الاستخدام في Nuxt

أضف مدخل SCSS إلى css في nuxt.config.ts:

export default defineNuxtConfig({
  css: ['easy-css/src/index.scss'],
})

يتطلب ذلك أن يدعم مشروع Nuxt ترجمة SCSS؛ ثبّت sass في التطبيق إذا لم يكن موجودًا:

npm install -D sass

ثم استخدم الكلاسات في القوالب:

<section class="grid grid-cols-3 gap-16 sm__grid-cols-1">
  <article class="p-20 rounded-12 bg-primary text-white">محتوى</article>
</section>

البادئة المتجاوبة sm__ وmd__ وغيرها تطبق قواعدها حتى عرض نقطة التوقف المحددة (max-width). نقاط التوقف الافتراضية: sm 640px، md 768px، lg 1024px، xl 1280px، xxl 1536px.

تخصيص قيم SCSS

أنشئ ملفًا محليًا مثل assets/scss/easy-css.scss، وهيّئ المتغيرات قبل استيراد المدخل الشامل:

@use 'easy-css/src/variables' with (
  $colors: (
    'transparent': transparent,
    'current': currentColor,
    'white': #fff,
    'black': #000,
    'primary': #6750a4,
    'secondary': #64748b,
    'success': #00b342,
    'danger': #df1c1c,
    'warning': #ad6d00,
    'info': #0ea5e9,
    'dark': #1e293b,
    'light': #f8fafc,
    'gray': #9ca3af,
    'gray-100': #f3f4f6,
    'gray-200': #e5e7eb,
    'gray-300': #d1d5db,
    'gray-400': #9ca3af,
    'gray-500': #6b7280,
    'gray-600': #4b5563,
    'gray-700': #374151,
    'gray-800': #1f2937,
    'gray-900': #111827
  )
);

@use 'easy-css/src/index';

بعدها أضف الملف المخصص إلى css بدلًا من استيراد المكتبة مباشرة:

export default defineNuxtConfig({
  css: ['~/assets/scss/easy-css.scss'],
})

المتغيرات التي يمكن تهيئتها تشمل نقاط التوقف والمسافات والأحجام والألوان وأحجام وأوزان الخطوط وأنصاف الأقطار والظلال وطبقات z-index والشفافية. عند تخصيص خريطة مثل $colors يجب تمرير الخريطة كاملة.

استخدام CSS الجاهز

إذا لم ترغب بترجمة SCSS أو تخصيص القيم، استورد CSS المبني:

export default defineNuxtConfig({
  css: ['easy-css/dist/easy-css.css'],
})

البناء من المصدر

npm install
npm run build

ينتج البناء dist/easy-css.css. ملفات SCSS المصدرية مضمنة في الحزمة المنشورة لدعم التخصيص.

أمثلة الكلاسات

  • المسافات: m-10, p-20, mx-auto, sm__p-10
  • Flexbox: flex, flex-col, items-center, justify-between, gap-10
  • Grid: grid, grid-cols-3, col-span-2, sm__grid-cols-1
  • الأبعاد: w-full, h-screen, max-w-600, size-50
  • النصوص والألوان: text-16, font-bold, text-primary, text-center
  • الحدود: border, border-gray-200, rounded-12
  • المساعدات: hidden, relative, z-dropdown, shadow-md, cursor-pointer

الترخيص

MIT