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

@ademaydemir/ad-design

v0.2.1

Published

Reusable and extensible vanilla CSS UI framework starter

Downloads

240

Readme

ad-desing

ad-desing, farklı projelerde tekrar kullanılabilen, modüler ve ölçeklenebilir bir vanilla CSS UI framework / design system altyapısıdır.

Hedef

  • Semantic component class'ları (.btn, .card, .alert)
  • Utility class yaklaşımı (.d-flex, .mt-4, .text-center)
  • Token tabanlı theme yönetimi
  • Framework bağımsız kullanım (React, Vue, ASP.NET Core MVC, plain HTML)
  • Storybook ile yaşayan dokümantasyon

Kurulum

npm install
npm run build-tokens

NPM Paketi Olarak Kullanım

Paket başka bir projeye eklendiğinde (React, Vue, Blazor, Jinja tabanlı sunucu render vb.) tek bir derlenmiş CSS dosyası import edilir:

npm i @ademaydemir/ad-design

Bundler kullanan projelerde:

import "@ademaydemir/ad-design/dist/ad.css";

Bundler kullanmayan projelerde:

  • node_modules/@ademaydemir/ad-design/dist/ad.css dosyasını kendi statik klasörüne kopyalayın
  • layout dosyanızda <link rel="stylesheet" href="/css/ad.css"> olarak ekleyin

Storybook:

npm run storybook

Root playground (Vite):

npm run dev

Storybook Bilgi Mimarisi

  • Foundations
    • Colors
    • Typography
    • Spacing
    • Radius
    • Shadows
  • Components
    • Alert
    • Badge
    • Button
    • Card
    • Input
    • Select
    • Textarea
  • Utilities
    • Display
    • Flex
    • Spacing
    • Text
    • Radius
    • Shadow

Proje Yapısı

ad-desing/
  .github/workflows/
  .storybook/
    main.js
    preview.js
    preview-head.html
    static/logos/{en,tr}/
  tokens/
    colors.json
  src/
    assets/logos/{en,tr}/
    base/
    css/
      ad.css
      utilities.css
    styles/
      tokens.css (build ile üretilir)
    components/
      *.css
      *.js
      *.stories.js
      STORY_STANDARD.md
      StoryTemplate.js
      storyHelpers.js
    utilities/
    index.css
  build-tokens.js
  tailwind.config.js
  tailwind-preset.js
  postcss.config.js
  vite.config.js
  index.html

Token ve Theme Hattı

  • Tek kaynak: tokens/colors.json
  • Üretici script: build-tokens.js
  • Çıktı: src/styles/tokens.css

tokens.css içinde:

  • light varsayılan palette (:root)
  • dark override ([data-theme="dark"])
  • semantic alias tokenlar (--ui-color-*)
  • typography / spacing / radius / shadow / breakpoint tokenları

Tailwind Entegrasyonu

Tailwind aktif olarak projeye entegredir:

  • tailwind.config.js
  • tailwind-preset.js
  • postcss.config.js

Notlar:

  • corePlugins.preflight = false (mevcut component görünümünü korumak için)
  • Tailwind tasarım tokenları var(--ui-*) üzerinden consume eder

Component Story Standardı

Her yeni component için src/components altında:

  • <Component>.js
  • <Component>.stories.js

Önerilen story başlıkları:

  • Overview
  • Variants
  • Sizes
  • States
  • Usage
  • Playground

Form bileşenlerinde States sırası:

  1. default
  2. focus
  3. disabled
  4. invalid/error
  5. placeholder

Detaylı standart için:

  • src/components/STORY_STANDARD.md

Dark Theme Hazırlığı

Storybook toolbar üzerinden Light / Dark seçimi yapılır.

Uygulama:

  • preview.js global theme toolbar
  • root element üstünde data-theme set edilmesi
  • token değerlerinin otomatik değişmesi

Test ve Build

npm run build-tokens
npm run build-storybook
npm run test-storybook

Kısa Kullanım Örnekleri

<button class="btn btn-primary">Kaydet</button>
<input class="input" placeholder="Ad Soyad" />
<select class="select"><option>Seçim yapın</option></select>
<textarea class="textarea" placeholder="Mesaj"></textarea>
<div class="alert alert-info">Bilgilendirme</div>
<span class="badge badge-success">Aktif</span>