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

@pikacss/nuxt-pikacss

v0.0.39

Published

PikaCSS module for Nuxt.

Readme

@pikacss/nuxt-pikacss

PikaCSS module for Nuxt.

Installation

pnpm add @pikacss/nuxt-pikacss

Quick Start

nuxt.config.ts:

export default defineNuxtConfig({
  modules: [
    '@pikacss/nuxt-pikacss'
  ],
  pikacss: {
    // options
  }
})

Features

  • 🚀 Zero-config setup for Nuxt
  • ⚡ Hot Module Replacement (HMR) support
  • 🎯 Automatic TypeScript type generation
  • 🔧 Full PikaCSS configuration support
  • 📦 Built-in integration with Nuxt build pipeline

Usage

Basic Setup

The module works out of the box with zero configuration:

// nuxt.config.ts
export default defineNuxtConfig({
  modules: [
    '@pikacss/nuxt-pikacss'
  ]
})

Configuration

You can customize PikaCSS through the pikacss option:

// nuxt.config.ts
export default defineNuxtConfig({
  modules: [
    '@pikacss/nuxt-pikacss'
  ],
  pikacss: {
    // File scanning configuration
    scan: {
      include: ['**/*.vue', '**/*.tsx', '**/*.jsx'],
      exclude: ['node_modules/**']
    },
    
    // Engine configuration or config file path
    config: './pika.config.ts',
    
    // Auto-create config file if missing
    autoCreateConfig: true,
    
    // PikaCSS function name (globally available in Nuxt)
    fnName: 'pika',
    
    // Output format for class names
    transformedFormat: 'string', // 'string' | 'array' | 'inline'
    
    // TypeScript code generation
    tsCodegen: true, // or specify a path: 'src/pika.gen.ts'
    
    // CSS code generation
    cssCodegen: true // or specify a path: 'src/pika.gen.css'
  }
})

::: tip The pika() function is globally available in Nuxt components - no import needed! :::

Using in Components

The module automatically imports the virtual pika.css module and makes pika() globally available:

<script setup lang="ts">
// ✅ No imports needed - pika() is globally injected

// Style object
const styles = pika({
  display: 'flex',
  alignItems: 'center',
  gap: '1rem'
})

// Using shortcuts
const centered = pika('flex-center')

// Combining shortcuts with styles
const button = pika('btn', {
  backgroundColor: '#3b82f6',
  color: 'white'
})
</script>

<template>
  <div :class="styles">
    <button :class="button">Click me</button>
  </div>
</template>

Options

All options from @pikacss/unplugin-pikacss are supported. See the unplugin documentation for details.

PikaCSS Configuration

Create a pika.config.ts file in your project root:

import { defineEngineConfig } from '@pikacss/core'

export default defineEngineConfig({
  // Your PikaCSS configuration
})

Documentation

For complete documentation, visit: PikaCSS Documentation

License

MIT © DevilTea