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

@potato/ace

v2.0.2

Published

ACE (Accessible Custom Elements) is a library of customisable UI components that conform to the W3 WAI-ARIA Authoring Practices for accessibility

Downloads

7

Readme

ACE

Accessible Custom Elements (ACE) is a library of UI components that are accessible to users who rely on assistive technologies or keyboard navigation. ACE components have full keyboard support and all the required WAI-ARIA roles, states and properties specified in the W3 WAI-ARIA Authoring Practices 1.1.

The components all have minimal CSS styling applied to them that can be easily overridden making them compatible with almost any design system. Most of the components are provided in different variants that cover common use cases. This helps developers create rich, dynamic and creative websites that are also fully accessible for all users. More information about ACE can be found here.

Installation

The instructions below can be followed for using ACE components with JavaScript. Instructions for how to use ACE components with React, Angular and Vue can be found here.

To install all ACE components and the common files required by them run

npm i @potato/ace

or

yarn add @potato/ace

To use a component import the class into your main JavaScript file:

import '<path-to-node_modules>/@potato/ace/components/<component-name>/<component-name>';

Then import the component's SASS file into a SASS file in your project, replacing <path-to-node_modules> with the path to the node_modules directory relative to the file, and <component-name> with the component name:

@import '<path-to-node_modules>/@potato/ace/components/<component-name>/<component-name>';

Alternatively, you can import the component's CSS file into a CSS file in your project:

@import '<path-to-node_modules>/@potato/ace/components/<component-name>/<component-name>.css';

Specific instructions for how to use a particular component can be found on the component's webpage, along with live examples, or in the component's README file located at <path-to-node_modules>/@potato/ace/<component-name>/READE.md.

For example, the Accordion component instructions can be found on it's webpage or in <path-to-node_modules>/@potato/ace/accordion/README.md.

Component SASS variables

ACE components define SASS variables using the !default keyword, allowing developers to easily configure component styles by simply assigning a value to the variable before importing the SASS file where the variable is defined.

For example, the selected option highlight color of the Listbox component can be changed as follows:

/* Override ACE variable... */
$ace-listbox-selected-option-bg-color: #cccccc;

/* Then import SASS file where ACE variable is defined */
@import '<path-to-node_modules>/node_modules/@potato/ace/listbox/listbox';