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

apexcss

v0.4.2

Published

Apex - A utility-first CSS framework with 500+ utility classes

Downloads

95

Readme

ApexCSS

This is still a work in progress and is in pre-release stage and is not fully tested. Documentation may be inaccurate. Use at your own risk

A utility-first CSS framework built with Sass. Apex provides 500+ utility classes for rapid UI development, covering everything from basic spacing and typography to advanced animations, transforms, and filters.

Features

  • 500+ Utility Classes: Coverage of a large amount of CSS properties
  • Utility-First Approach: Build designs directly in HTML using utility classes
  • Modular Architecture: Import only what you need
  • JavaScript Configuration: Customize via apex.config.js - colors, breakpoints, spacing, and more
  • Design Tokens: Sass variables and CSS custom properties for easy customization
  • State Variants: Built-in support for hover, focus, active, and disabled states
  • Dark Mode: Full dark mode support with CSS custom properties
  • RTL Support: Right-to-left language support
  • Accessibility: Strong focus on accessibility with screen reader and focus management utilities and themes for colour blind
  • Extended Utilities: Animations, transforms, filters, and aspect ratio
  • Plugin System: Extensible architecture for community contributions

Quick Start

Installation

npm install apexcss

Project Setup with Vite

1. Install Vite (if not already installed)

npm install --save-dev vite

2. Create a Vite Configuration

Create a vite.config.js in your project root:

import { defineConfig } from 'vite'

export default defineConfig({
  // Vite automatically resolves bare CSS imports from node_modules
})

3. Add Scripts to package.json

{
  "scripts": {
    "dev": "vite",
    "build": "vite build",
    "preview": "vite preview"
  }
}

4. Create an Entry HTML File

Create an index.html that links to your CSS:

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>My Apex Project</title>
    <link rel="stylesheet" href="/css/main.css" />
  </head>
  <body>
    <!-- Your content here -->
  </body>
</html>

Import Options

Option 1: Full Import

Import the complete Apex CSS framework:

/* css/main.css */
@import 'apexcss';

Option 2: Individual Layers (Recommended)

Import specific layers with cascade layer assignment:

/* css/main.css */
@layer base, utilities, themes;

@import 'apexcss/base' layer(base);
@import 'apexcss/utilities' layer(utilities);
@import 'apexcss/themes' layer(themes);

This approach allows you to:

  • Control the order of cascade layers
  • Add your own styles to each layer
  • Optimize bundle size by importing only what you need

Option 3: Specific Files

Import individual files directly:

@import 'apexcss/base';      /* Base styles (resets, typography) */
@import 'apexcss/utilities'; /* Utility classes */
@import 'apexcss/themes';    /* Theme variables and styles */

Available Package Exports

| Export Path | Description | |-------------|-------------| | apexcss | Full framework (all layers combined) | | apexcss/base | Base styles, resets, typography | | apexcss/utilities | 500+ utility classes | | apexcss/themes | Theme variables and color schemes |

Running the Project

Start the development server:

npm run dev

Build for production:

npm run build

Preview the production build:

npm run preview

Cascade Layers

Apex CSS uses CSS Cascade Layers (@layer) for predictable specificity:

  1. base - Resets and foundational styles (lowest specificity)
  2. utilities - Utility classes
  3. themes - Theme variables and color schemes

When using individual layer imports, define your layer order first:

@layer base, utilities, themes;

This ensures proper cascade order regardless of import order.

Adding Custom Styles

Extend Apex CSS by adding your own styles in the appropriate layer:

@layer base, utilities, themes;

@import 'apexcss/base' layer(base);
@import 'apexcss/utilities' layer(utilities);
@import 'apexcss/themes' layer(themes);

/* Your custom utilities */
@layer utilities {
  .my-custom-class {
    /* styles */
  }
}

Framework Integration

Apex CSS works with any framework that supports Vite. The CSS import syntax remains the same across frameworks.

React (Vite)

  1. Create a new Vite React project:

    npm create vite@latest my-app -- --template react
    cd my-app
    npm install apexcss
  2. Import in your main CSS file (src/index.css or src/App.css):

 @layer base, utilities, themes;
 
 @import 'apexcss/base' layer(base);
 @import 'apexcss/utilities' layer(utilities);
 @import 'apexcss/themes' layer(themes);
  1. Or import in your entry point (src/main.jsx):

    import 'apexcss'
    // or individual layers:
    // import 'apexcss/base'
    // import 'apexcss/utilities'
    // import 'apexcss/themes'

Vue (Vite)

  1. Create a new Vite Vue project:

    npm create vite@latest my-app -- --template vue
    cd my-app
    npm install apexcss
  2. Import in your main CSS file (src/style.css):

    @layer base, utilities, themes;
       
    @import 'apexcss/base' layer(base);
    @import 'apexcss/utilities' layer(utilities);
    @import 'apexcss/themes' layer(themes);
  3. Or import in your entry point (src/main.js):

    import 'apexcss'

Angular

  1. Create a new Angular project:

    ng new my-app
    cd my-app
    npm install apexcss
  2. Add to angular.json styles array:

    {
      "projects": {
        "my-app": {
          "architect": {
            "build": {
              "options": {
                "styles": [
                  "node_modules/apexcss/dist/apex.css",
                  "src/styles.css"
                ]
              }
            }
          }
        }
      }
    }
  3. Or import in your global styles (src/styles.css):

    @layer base, utilities, themes;
       
    @import 'apexcss/base' layer(base);
    @import 'apexcss/utilities' layer(utilities);
    @import 'apexcss/themes' layer(themes);

Svelte (Vite)

  1. Create a new Svelte project:

    npm create vite@latest my-app -- --template svelte
    cd my-app
    npm install apexcss
  2. Import in your main CSS file or entry point:

    /* src/app.css */
    @layer base, utilities, themes;
    
    @import 'apexcss/base' layer(base);
    @import 'apexcss/utilities' layer(utilities);
    @import 'apexcss/themes' layer(themes);

Configuration

Customize ApexCSS by editing apex.config.js:

export default {
  features: {
    animations: false,  // Disable features you don't need
    transforms3d: false
  },
  colors: {
    primary: { hue: 300, chroma: 0.18, lightnessScale: { /* ... */ } }
  },
  breakpoints: {
    sm: '640px',
    md: '768px',
    lg: '1024px'
  }
}

Then build:

npm run config:build
npm run build

📖 See full configuration guide

Documentation

📖 View Full Documentation

License

MIT License - see LICENSE file for details


Built with ❤️ using Sass and modern CSS features.