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

@zimbra/x-ui

v7.0.0

Published

LESS mixins, CSS variables, and icons used by the Zimbra X client and Zimbra X compatible zimlets

Downloads

268

Readme

NPM Downloads NPM Version

@zimbra/x-ui

This repository contains the LESS variables and mixins used by zm-x-web and Zimbra X Zimlets.

Install

npm install @zimbra/x-ui

Usage

Requiring LESS variables (see variables.less):

// Gives access to @brand-primary, @icon-size-md, etc.
@import '~@zimbra/x-ui/refs.less';

Requiring Mixins (see helpers.less):

// Gives access to `fit`, `fill`, etc.
@import '~@zimbra/x-ui/helpers.less';

Requiring CSS Variables (recommended for Zimlets, see css-variables.less):

// Gives access to `--brand-primary`, `--brand-secondary`, etc.
@import '~@zimbra/x-ui/css-variables.less';

Updating the Icon font using icomoon

To support all platforms we require several versions of our icon font. Updating the full set of files is easily accomplished by the use of the icomoon tool.

  1. Check out the desired version of this repo.

  2. Run the icomoon app in Chrome: https://icomoon.io/app This will open to the Selection screen by default.

  3. If you have a zimbra-icons set from a previous iteration, Remove Set to start with a blank slate.

  4. Click Import Icons then navigate to your checked out repo and open selection.json. A confirmation dialog will ask:

    Your icon selection was loaded. Would you like to load all the settings stored in your selection file?

    Answer Yes, so that the existing codepoints for the icon font will be retained.

  5. From the Hamburger menu for the imported zimbra-icons set, select Import to Set then navigate to and open the new icon svg file(s) that you want to add to the set.

  6. To export as a font, first select all the glyps in the set. (Hamburger, Select all.) Click on the Generate Font tab along the bottom of the display. Review the resulting glyphs and metadata.

  7. When you're happy with what you see, click the Download action that's now on the Font tab, to download zimbra-icons.zip.

Update the repo with the contents of the zip file by running import-icomoon.sh.

  1. Set environment variable ZM_X_UI_DIR to point to your zm-x-ui directory; the default is $HOME/github/Zimbra/zm-x-ui

    $: export ZM_X_UI_DIR="$HOME/path/to/zm-x-ui"
  2. Run script with path to zimbra-icon.zip file as argument:

    $: ./import-icomoon.sh ./path/to/zimbra-icon.zip
  3. Regenerate icon variables:

    $: npm run build
    
      or
    
    $: node generate-icon-variables