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 🙏

© 2024 – Pkg Stats / Ryan Hefner

@anjuna/theme

v1.2.19

Published

Anjuna Theme and Static Assets

Downloads

199

Readme

@anjuna/theme

The @anjuna/theme package consists of a few different pieces to use in your app.

  • Raw SASS files to be imported directly into your app.
  • Compiled CSS to be included in your app via CDN.
    • theme.css: includes color palette and utility classes to be used by libraries and apps.
    • icons.css: includes color palette and utility classes to be used by libraries and apps.
    • application.css: Subset of Bootstrap blended with our theme for use by applications.
  • Static assets (favicon for example) which are also included via the CDN.

Using CSS via CDN

Using the CDN is comparable to using any other CDN assets. CSS can either be included either directly in the application HTML like such:

<link href="//cdn.zuora.com/@anjuna/[email protected]/css/dist/application.css" rel="stylesheet">

Or you can import the file into your CSS/SASS like this:

@import url('//cdn.zuora.com/@anjuna/[email protected]/dist/css/application.css');

Using assets

Assets on the CDN work the same way except they are in the "assets" path, not the "css" path.

<link rel="shortcut icon" href="//cdn.zuora.com/@anjuna/[email protected]/dist/assets/cloud-favicon.ico" type="image/x-icon" />

Using the SASS

To use Bootstrap and Anjuna SASS variables and mixins within your application, install the @anjuna/theme npm package.

npm install @anjuna/theme

The shared sass file can then be imported into your application's sass.

@import "~@anjuna/theme/sass/anjuna";

NOTE: While it is possible to just import the anjuna.scss sass file wherever you need, that is not recommended. Instead we suggest creating your own _shared.scss partial, including anjuna.scss there, and then including your application specific shared file into your other sass files. This will let you leverage not only the Bootstrap and Anjuna helpers, but also your own. Like the Anjuna sass file, your own shared file shouldn't generate any output.