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

@ojiepermana/angular-theme

v22.0.59

Published

Composable Angular 22 application layouts, page shells, and CSS theme tokens.

Downloads

3,877

Readme

@ojiepermana/angular-theme

Theme layer for the @ojiepermana/angular design system: a runtime provider (mode / color / neutral / brand), design tokens, and the Tailwind v4 CSS that the components are styled against.

bun add @ojiepermana/angular-theme
# or: npm install @ojiepermana/angular-theme

Entry points

| Import path | Contents | | ------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | | @ojiepermana/angular-theme/styles | provideUiTheme, ThemeModeService, ThemeColorService, ThemeBrandService, ThemeRadiusService, ThemeSpaceService, … | | @ojiepermana/angular-theme/layout | Layout shell building blocks | | @ojiepermana/angular-theme/page | Page-level scaffolding | | @ojiepermana/angular-theme/theme.css | Base tokens + component styles only — lightweight, no runtime axes | | @ojiepermana/angular-theme/theme-full.css | Base + every runtime axis (color, neutral, radius, space) — needed for ThemeColorService/ThemeNeutralService switching | | @ojiepermana/angular-theme/styles/css/* | Raw CSS assets (per-axis color + neutral palettes, Tailwind map) |

Tailwind v4 setup

The CSS is published with the package and addressable by name. Use theme-full.css for the full design system (runtime color/neutral switching); use the lightweight theme.css plus only the axes you need for a smaller bundle.

/* styles.css — full design system */
@import '@ojiepermana/angular-theme/theme-full.css'; /* base + all color + neutral palettes */
@import 'tailwindcss';
@import '@ojiepermana/angular-theme/styles/css/base/tailwind.css'; /* maps tokens → bg-primary, bg-brand, text-foreground, … */

For a lightweight setup, import the base then opt in to specific axes:

/* styles.css — base + only the axes you use */
@import '@ojiepermana/angular-theme/theme.css'; /* base tokens + components, no axes */
@import 'tailwindcss';
@import '@ojiepermana/angular-theme/styles/css/base/tailwind.css';
@import '@ojiepermana/angular-theme/styles/css/color/index.css'; /* opt in to accent palettes */
@import '@ojiepermana/angular-theme/styles/css/neutral/index.css'; /* opt in to neutral families */

Requires Tailwind CSS ^4.3.0.

Provider

import { provideUiTheme } from '@ojiepermana/angular-theme/styles';

export const appConfig = {
  providers: [
    provideUiTheme({
      mode: 'light',
      color: 'base', // accent palette (base, red…rose, brand)
      neutral: 'base', // gray family (base, slate, gray, zinc, …)
      radius: 'md', // corner radius preset (none, sm, md, lg, xl, full)
      space: 'normal', // spacing density preset (compact, normal, relaxed, spacious)
      brand: { color: '221 83% 53%', foreground: '0 0% 100%' }, // consumer brand
    }),
  ],
};
  • mode — bootstraps ThemeModeService and persists the default mode (light / dark / system).
  • color — bootstraps ThemeColorService; initial accent palette (<html theme-color>).
  • neutral — initial neutral family (<html theme-neutral>); composes with any accent.
  • radius — bootstraps ThemeRadiusService; initial corner-radius preset (<html theme-radius>). Drives the single --radius-base knob so the whole --radius-* scale and rounded-* utilities follow. Values: none, sm, md (default), lg, xl, full.
  • space — bootstraps ThemeSpaceService; initial spacing-density preset (<html theme-space>). Drives the single --spacing-base knob so every p-* / m-* / gap-* / w-* / h-* utility follows. Values: compact, normal (default), relaxed, spacious.
  • brand — bootstraps ThemeBrandService; sets --brand / bg-brand and the theme-color='brand' accent preset. Accepts an HSL triplet string ('221 83% 53%') or { color, foreground }. Settable at runtime via setBrand().

A persisted choice (localStorage theme-color / theme-neutral / theme-radius / theme-space / theme-brand) always wins over the configured default.

Color system (FluxUI-style)

Four independent axes switch at runtime via attribute selectors on <html>:

  • accent (theme-color) — base (core), red … rose, and brand. Each re-tints the full palette. base = no override.
  • neutral (theme-neutral) — base (core), slate, gray, zinc, neutral, stone, mauve, olive, mist, taupe. Overrides the gray family and Layout's decorative pattern source, and is layered after accent so it wins both token groups. With neutral base, surface patterns follow the active accent; every other neutral gives them its own soft family hue.
  • radius (theme-radius) — none, sm, md (default), lg, xl, full. Sets the --radius-base knob; the full --radius-* scale and rounded-* utilities follow.
  • space (theme-space) — compact, normal (default), relaxed, spacious. Sets the --spacing-base knob; every p-* / m-* / gap-* / w-* / h-* utility follows.

theme-full.css (i.e. styles/css/index.css) bundles the core base theme plus every accent and neutral palette, so switching needs no runtime CSS loading. The lightweight theme.css ships base only — import the axis files you need on top of it (or use theme-full.css) to enable runtime switching.

Material Symbols icons (opt-in)

provideUiTheme() makes no external network request by default. To preload the Material Symbols font from Google Fonts:

provideUiTheme({ icons: { materialSymbols: true } });

Leave it off (the default) for privacy / offline / strict CSP, and self-host the font in your own stylesheet if you need it.