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

@dustur/tasarim-sistemi

v1.2.1

Published

DÜSTUR · T.C. Mevzuat Tasarım Sistemi · Türkiye Cumhuriyeti mevzuat sisteminin kromatik, tipografik, jeton ve UI yüzey doktrini.

Readme

DÜSTUR

T.C. Mevzuat Tasarım Sistemi · Stratejik Çerçeve

CI Visual Regression Pages npm version License W3C DTCG WCAG 2.1 AAA Akoma Ntoso

Türkiye Cumhuriyeti mevzuat sisteminin kromatik, tipografik, jeton ve UI yüzey doktrini. Anayasa'dan Tebliğ'e tüm normlara — basılı belgeden mobil arayüze tüm yüzeylere — tek bir devredilebilir kaynak.

🌐 Live demo: https://mahirkurt.github.io/Dustur/ 📦 NPM: npm install @dustur/tasarim-sistemi 📜 Reference PDF: reference/dustur-source.html (~100 sayfa, Paged.js)


Bu Repository Nedir

Bu repo, sistemin tek-kaynak-doğruluk (single source of truth) deposudur:

  • tokens/ — W3C DTCG jetonları (primitive · semantic · component · akoma-ntoso). Sistemin makine-okunabilir anayasası.
  • css/ — Web/print uygulama katmanı. CSS @layer cascade · base · components · themes (HC/RM/print) · Akoma Ntoso element stilleri.
  • docs/ — Doktrin belgesi. 7 ana bölüm + ön/arka-matter + sözlük.
  • reference/ — Tam orijinal kaynak HTML. Print-ready, Paged.js uyumlu, A4 PDF üretimi.
  • examples/ — Canlı galeri (index.html) + yüzey örnekleri + AKN XML + anatomi SVG + do/don't.
  • scripts/ — Token lint, contrast audit (WCAG+APCA), diakritik audit, usage map, fallback build.
  • .github/ — CI workflow, Issue/PR templates, CODEOWNERS, dependabot.
  • assets/ — Selçuklu motif kütüphanesi, sigil, mühür SVG'leri.

Mimarisi

Dustur/
├── tokens/                         W3C DTCG · single source of truth
│   ├── primitives/                 — Ham değer kütüphanesi (~140 jeton)
│   │   ├── color.json              · 6 aile × 12 step · $extensions kaynak/kilit
│   │   ├── typography.json         · 3 variable font + axis · lisans meta
│   │   ├── space.json              · 12-step modular (4mm base)
│   │   ├── radius.json, motion.json, z-index.json
│   ├── semantic/                   — Rol-bağlam (~80 jeton)
│   │   ├── tier.json, action.json, surface.json, typography.json
│   ├── component/                  — Bileşen-düzeyi (üçüncü katman)
│   │   ├── rozet.json, yuzey.json, atif-modal.json
│   ├── akoma-ntoso/                — XML element eşlemesi
│   │   ├── element-map.json        · AKN → CSS class → semantic jeton
│   │   └── eli-uri.schema.json     · TR ELI URI JSON Schema
│   └── index.json                  · Manifest + LOCKED jeton listesi
│
├── css/                            Web/print uygulama · @layer cascade
│   ├── tokens/                     · primitives.css · semantics.css
│   ├── base/                       · reset · typography · print
│   ├── components/                 · badges · code-block · quote-block · token-card
│   ├── themes/                     · high-contrast · reduced-motion · print
│   ├── akn/                        · element-styles.css (AKN XML render)
│   └── dustur.css                  · @layer ile bundled
│
├── docs/                           Doktrin belgesi · 7 bölüm + sözlük
│   ├── 00-overview / 01-manifesto / 02-typography / 03-color
│   ├── 04-tokens / 05-ui-surface / 06-akoma-ntoso / 07-governance
│   └── glossary/                   · Tipografik · Kromatik · Hukuk
│
├── examples/                       Canlı galeri + örnekler
│   ├── index.html                  · Sticky-nav component galerisi (tema switcher)
│   ├── madde-detay.html · badge-galeri.html
│   ├── akn/                        · TCK Madde 220 XML + render
│   ├── anatomy/                    · Annotated SVG anatomi diyagramları
│   └── do-dont/                    · Yapın/Yapmayın pattern library
│
├── scripts/                        Audit + build (zero-dependency ESM)
│   ├── lint-tokens.mjs             · DTCG + referans çözümleme
│   ├── check-contrast.mjs          · WCAG + APCA · CI strict
│   ├── check-diacritics.mjs        · TR diakritik audit
│   ├── token-usage-map.mjs         · Kullanılan/ölü token raporu
│   └── build-css-from-tokens.mjs   · Style Dictionary fallback
│
├── .github/                        Yönetişim + CI
│   ├── workflows/                  · ci.yml · release.yml
│   ├── ISSUE_TEMPLATE/             · jeton-rfc · hata-raporu · doc
│   ├── pull_request_template.md, CODEOWNERS, dependabot.yml
│
├── reference/dustur-source.html    Tam orijinal kaynak · Paged.js A4 PDF
├── assets/motifs/                  Selçuklu rozet · sigil · chain SVG'leri
│
├── package.json · style-dictionary.config.json
├── CONTRIBUTING.md · CHANGELOG.md · SECURITY.md · CODE_OF_CONDUCT.md
└── README.md                       (bu dosya)

Hızlı Başlangıç

1) CSS olarak kullanım (web · print)

<link rel="stylesheet" href="https://unpkg.com/@dustur/tasarim-sistemi/css/dustur.css">

Veya modüler:

@import "@dustur/tasarim-sistemi/css/tokens/primitives.css";
@import "@dustur/tasarim-sistemi/css/tokens/semantics.css";
@import "@dustur/tasarim-sistemi/css/base/typography.css";
@import "@dustur/tasarim-sistemi/css/components/badges.css";

Sonra bileşenler doğrudan semantic jetonlar üzerinden çalışır:

<span class="yuzey-badge kanun">KANUN</span>
<span class="yuzey-badge anayasa">ANAYASA</span>
<span class="yuzey-badge teblig">TEBLİĞ</span>

2) Cross-platform export (Style Dictionary)

npm install
npm run build:sd   # Style Dictionary tam pipeline (5 platform)
npm run build      # Style Dictionary'siz fallback (sadece CSS)

Çıktı dist/ altında üretilir:

| Platform | Dosya | Format | |---|---|---| | Web | dist/web/tcm-tokens.css | CSS Custom Properties | | iOS | dist/ios/TCMTokens.swift | Swift constants | | Android | dist/android/colors.xml · dimens.xml | Android resources | | DTCG | dist/dtcg/tcm-tokens.json | W3C DTCG JSON | | TS | dist/ts/tokens.ts | TypeScript/ES6 |

3) Audit / Quality

npm run check:all          # token lint + contrast + diakritik
npm run check:contrast     # WCAG + APCA matrisi (strict mode CI'da fail)
npm run report:usage       # Hangi token nerede kullanılıyor / ölü kod tespiti

CI'da .github/workflows/ci.yml her PR'da bu auditleri çalıştırır.

4) Tema Değiştirme

<!-- Otomatik (prefers-contrast / prefers-reduced-motion / print) -->
<html>

<!-- Manuel ekran/baskı/yüksek kontrast -->
<html data-tema="ekran">
<html data-tema="baski">
<html data-tema="yuksek-kontrast">

5) Canlı Galeri

npm run preview   # python http server :8080
# Sonra http://localhost:8080/examples/

Doktriner Temel

Üç Evren Doktrini

Sistem üç bağımsız evreni tek doktrinde birleştirir:

  1. Tipografik evren — Fraunces (serif · mevzuat), Albert Sans (sans · UI), Recursive (mono · URI/veri)
  2. Kromatik evren — Kompozit palet: TBK · Turkuvaz · Bordo · Lacivert · Amber
  3. Geometrik evren — Selçuklu motif kütüphanesi · sabit 0 radius · sade keskin köşe

Kromatik Mührler · Mevzuat Kademeleri

| Kademe | Renk | Hex (Step 9) | Doktriner Kaynak | |---|---|---|---| | Anayasa | TBK (Türk Bayrağı Kırmızısı) | #E30A17 | TS 715/2010 standardı | | AYM | Cumhuriyet Lacivert | #002664 | Devlet teamülü | | CBK | Düstûr Bordo | #5C1A1B | Yürütme mührü | | Kanun | Anadolu Selçuklu Turkuvazı | #1A8B8C | Karatay Medrese 1251 | | Yönetmelik | Turkuvaz lighter | #43A1A2 | Yönetmelik tier | | Tebliğ | Tebliğ Amber | #B45309 | Bakanlık mührü | | Genelge | Nötr Gri | #525252 | İdari teamül |

Erişilebilirlik

  • WCAG 2.1 AA zorunlu, WCAG 2.1 AAA hedef.
  • APCA (WCAG 3.0 hazırlığı) kontrast hesaplaması her semantic jeton için belgeli.
  • TR diakritik audit: 6 karakter (Ç, Ğ, İ, Ö, Ş, Ü) tüm font ailelerinde tam destek.

Jeton Yönetişim

Sistem W3C DTCG Format Module ve Semantic Versioning 2.0.0 üzerinde inşa edilmiştir.

| Bump | Tetikleyen | |---|---| | MAJOR | Jeton silme · yeniden adlandırma · scale tipolojik değişimi | | MINOR | Yeni jeton ekleme · yeni primitive aile · yeni semantic kategori | | PATCH | Mevcut jeton değer düzeltmesi · contrast iyileştirme · doc güncelleme |

Sorumluluk haritası, inceleme protokolü ve deprecation politikası: docs/07-governance/ ve docs/04-tokens/.


Belge Olarak Okuma (PDF)

Sistemin tam doktriner belgesi reference/dustur-source.html'tedir. Paged.js polyfill ile A4 PDF olarak basılır:

# Bir Paged.js çıktı aracıyla
pagedjs-cli reference/dustur-source.html -o dustur.pdf

Belge ~100 sayfa, 7 ana bölüm + ön/arka-matter içerir.


Lisans

İçerik · doktrin · görsel sistem: bkz. LICENSE.

Üçüncü-taraf:

  • Fraunces — SIL OFL 1.1 (Undercase Type)
  • Albert Sans — SIL OFL 1.1 (Florian Karsten)
  • Recursive — SIL OFL 1.1 (Arrow Type)

Katkıda Bulunmak

Bkz. CONTRIBUTING.md. Jeton değişiklik talepleri 4-aşamalı inceleme protokolüne tabidir.


"Bir tasarım sistemi insan tarafından okunsa bile, makine tarafından uygulanmadığı sürece çoğaltılamaz, devredilemez, sürdürülemez." — Bölüm IV, Jeton Mimarisi Doktrini