Skip to content
PluginStats

tailwindcss-grid-template-areas weekly downloads statistics

By hansanghyeon · npm · Tailwind plugins

A Tailwind CSS v4 plugin to provide utilities for CSS Grid template areas

View on npm Fresh · Oct 18, 2026

tailwindcss-grid-template-areas has 7 recorded weekly downloads on npm, a decrease of 82.1% over the past 30 days, ranking #2122 of 2,322 tracked listings.

Weekly downloads
7
Official API · Oct 18, 2026
7-day growth
+75.0%
+3 weekly downloads
30-day growth
-82.1%
-32 weekly downloads
90-day growth
+40.0%
+2 weekly downloads
Rank
#2122
Among tracked npm listings

About tailwindcss-grid-template-areas

tailwindcss-grid-template-areas

A powerful Tailwind CSS v4 plugin for CSS Grid template areas with intuitive row/column separators.

Features

  • 🎯 Simple Syntax: Only grid-areas-[] pattern with clear separators
  • ⚡ Intuitive Separators: Pipe (|) for rows, comma (,) for columns
  • 🔧 Underscore Freedom: Use underscores and hyphens freely in area names
  • 📍 Grid Area Placement: grid-in-[] utilities for arbitrary area assignment
  • ⚡ Tailwind CSS v4 Compatible: Built for the latest Tailwind CSS v4
  • 🚀 Zero Configuration: Works out of the box with simple installation

Installation

npm install tailwindcss-grid-template-areas

Usage

Method 1: Production Build (Recommended)

Add the plugin to your main CSS file:

@import 'tailwindcss';
@plugin 'tailwindcss-grid-template-areas/plugin.js';
Method 2: Browser CDN
<script src="https://cdn.jsdelivr.net/npm/@tailwindcss/browser@4"></script>
<script>
  tailwind.config = {
    plugins: [
      function({ matchUtilities }) {
        const normalizeValue = (value) => {
          return value.replace(/\\\|/g, '|').replace(/ /g, '_')
        }

        matchUtilities({
          'grid-areas': (value) => {
            const normalizedValue = normalizeValue(value)

            // Pipe for rows, comma for columns
            if (normalizedValue.includes('|')) {
              const rows = normalizedValue.split('|').map(row => {
                const columns = row.split(',')
                return `"${columns.join(' ')}"`
              })
              return { 'grid-template-areas': rows.join(' ') }
            }
            // Single row handling
            if (normalizedValue.includes(',')) {
              const columns = normalizedValue.split(',')
              return { 'grid-template-areas': `"${columns.join(' ')}"` }
            }
            return { 'grid-template-areas': `"${normalizedValue}"` }
          }
        })
        matchUtilities({
          'grid-in': (value) => ({ 'grid-area': normalizeValue(value) })
        })
      }
    ]
  }
</script>

Syntax Guide

Core Rules
  • Pipe (|): Separates rows
  • Comma (,): Separates columns within a row
  • Underscore (_): Allowed in area names
  • Hyphen (-): Allowed in area names
Patterns
Single Row Layout
<div class="grid grid-areas-[main,sidebar]">
  <main class="grid-in-[main]">Main Content</main>
  <aside class="grid-in-[sidebar]">Sidebar</aside>
</div>

Generates: grid-template-areas: "main sidebar"

Multi-Row Layout
<div class="grid grid-areas-[nav,nav,nav|sidebar,main,ads|footer,footer,footer]">
  <nav class="grid-in-[nav]">Navigation</nav>
  <aside class="grid-in-[sidebar]">Sidebar</aside>
  <main class="grid-in-[main]">Main Content</main>
  <div class="grid-in-[ads]">Advertisements</div>
  <footer class="grid-in-[footer]">Footer</footer>
</div>

Generates:

grid-template-areas:
  "nav nav nav"
  "sidebar main ads"
  "footer footer footer";
Hero Layout
<div class="grid grid-areas-[hero-image,title|hero-image,content|hero-image,cta]">
  <div class="grid-in-[hero-image]">Hero Image</div>
  <h1 class="grid-in-[title]">Amazing Title</h1>
  <p class="grid-in-[content]">Great content here</p>
  <button class="grid-in-[cta]">Call to Action</button>
</div>
Complex Area Names
<div class="grid grid-areas-[hero_image,call-to-action]">
  <div class="grid-in-[hero_image]">Hero with underscore</div>
  <button class="grid-in-[call-to-action]">Button with hyphen</button>
</div>

Live Demo

🎨 View Live Demo - See all examples in action!

Why This Plugin?

Problem with Traditional Approach
/* Traditional CSS - verbose and hard to maintain */
.layout {
  grid-template-areas: 
    "nav nav nav"
    "sidebar main ads"
    "footer footer footer";
}
Solution with Our Plugin
<!-- Simple, intuitive Tailwind utility -->
<div class="grid grid-areas-[nav,nav,nav|sidebar,main,ads|footer,footer,footer]">
Key Benefits
  • Visual Structure: Pipes and commas mirror the actual grid layout
  • No Configuration: Works immediately without theme setup
  • Flexible Naming: Use underscores and hyphens naturally in area names
  • Dynamic Usage: Perfect for JavaScript-driven layouts

Advanced Examples

Dynamic Grid with JavaScript
// Dynamically change grid areas
const areas = ['header', 'main_content', 'sidebar-ads', 'footer_area'];
const gridClass = `grid-areas-[${areas.join(',')}]`;
element.className = `grid ${gridClass}`;

// Dynamic area assignment
areas.forEach((area, index) => {
  const child = element.children[index];
  child.className = `grid-in-[${area}]`;
});
Responsive Layouts
<!-- Different layouts for different screen sizes -->
<div class="
  grid 
  grid-areas-[main|sidebar] 
  md:grid-areas-[main,sidebar] 
  lg:grid-areas-[nav,nav,nav|main,sidebar,ads|footer,footer,footer]
">
  <!-- Grid items -->
</div>

Browser Support

  • Modern Browsers: Chrome 57+, Firefox 52+, Safari 10.1+, Edge 16+
  • CSS Grid Support: Required for grid-template-areas functionality
  • Tailwind CSS v4: Compatible with the latest Tailwind CSS v4

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

MIT © hansanghyeon

Description from the npm listing.

  • tailwindcss
  • tailwindcss-plugin
  • css
  • css-grid
  • grid-template-areas
  • tailwind-v4

README badge

Show your rank in a README or on your website. The badge updates automatically.

Charts

Images: 30d · 1y · all time · 1600×900 dark

Adoption over time

tailwindcss-grid-template-areas weekly downloads on npm, last 90 days: 7 weekly downloads as of Oct 18, 2026, +40.0% over 90 days.tailwindcss-grid-template-areasWeekly downloads on npm · Last 90 days7downloads / week+40.0% over 90 days010203040Jul 20Aug 4Aug 19Sep 3Sep 18Oct 3Oct 18downloads / weekobservedarchived (Internet Archive)no observationsJul 22, 2026 – Oct 18, 2026 · 89 observations · Updated Oc…pluginstats.com
tailwindcss-grid-template-areas weekly downloads on npm, last 90 days: 7 weekly downloads as of Oct 18, 2026, +40.0% over 90 days.

7/30/90-day growth

tailwindcss-grid-template-areas weekly downloads growth on npm: +75.0% over 7 days, -82.1% over 30 days, +40.0% over 90 days.tailwindcss-grid-template-areasWeekly downloads growth on npm7downloads / week now7-day growth+3 weekly downloads+75.0%30-day growth-32 weekly downloads-82.1%90-day growth+2 weekly downloads+40.0%Growth vs. nearest observation to each baseline date · Updated Oct 18, 2026pluginstats.com
tailwindcss-grid-template-areas weekly downloads growth on npm: +75.0% over 7 days, -82.1% over 30 days, +40.0% over 90 days.

Ranking history

tailwindcss-grid-template-areas npm ranking history: currently #2122 (by weekly downloads).tailwindcss-grid-template-areasnpm ranking · by weekly downloads · Last 90 days#2122current rank#2020#2040#2060#2080#2100#2120#2140Jul 22Aug 6Aug 21Sep 5Sep 20Oct 5Oct 20rankOct 18, 2026 – Oct 20, 2026 · 3 observations · Updated Oct 18, 2026pluginstats.com
tailwindcss-grid-template-areas npm ranking history: currently #2122 (by weekly downloads).

Listing placement

All npm2,320 listings · 116 pages · 1,162 shown · page 107, #6 (overall #2,126)
All npm: every listing in weekly downloads order

Listing placement

Tailwind plugins252 listings · 13 pages · page 10, #9 (overall #189)
Tailwind plugins: every listing in weekly downloads order

Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.

Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.

Recent observations

Full history (122)
Recent weekly downloads observations for tailwindcss-grid-template-areas
Date (UTC)Weekly downloadsChange vs. previous
7+2
50
50
50
50
50
5+1
4+1
30
3-1
40
40
4-1
5—

Similar npm Tailwind plugins plugins

All 20 tailwindcss-grid-template-areas alternatives

Data source

Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.

Listing: https://www.npmjs.com/package/tailwindcss-grid-template-areas. First seen Oct 16, 2026; last successful collection Oct 20, 2026. See the methodology.