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

@aurodesignsystem/webcorestylesheets

v6.0.0

Published

Auro core foundation Sass UI Kit

Downloads

8,309

Readme

WC Style Sheets

WC Style Sheets(WCSS) is a responsive, mobile-first collection of styles and tools designed to make it quick and simple for developers to create web experiences using the Auro Design Language.

What's included

This repository is a library of core level styles, functions, and mixins that can be used for consistent front-end UI development. This will include full descriptions of CSS selectors, mixins and any other supporting functions or tools.

Documentation

Please see the documentation site for all information related to WC Style Sheets.

Design tokens and legacy component support

Upgrading to WCSS v5.x requires @aurodesignsystem/[email protected].

When upgrading your project it may be required to also retain @aurodesignsystem/[email protected] in order to support Auro custom elements have not been updated to support the new design token naming convention.

Please also see Auro design tokens migration from 3.x to 4.x for additional information.

Install

Build Status See it on NPM! License issues ESM supported

Pre-processed bundled resources

At a limited scale, some files have been pre-processed to CSS so that it can be delivered via CDN and used in environments where this rendered resource is required.

API Note: First supporting version v2.9.0

NOTICE! Use @latest at your own risk. This will not restrict updates and will allow instant access to MAJOR releases that will contain BREAKING CHANGES. You have been warned!

| resource | CDN URL | |---|--- | essentials.scssfonts.scss|https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@latest/dist/bundled/essentials.css| | focus-visible.scssessentials.scssfonts.scss|https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@latest/dist/bundled/essentials+fv.css|

Using the files in Sass from npm resource

$ npm i @aurodesignsystem/webcorestylesheets

There are no core files to import, rather WCSS is an à la carte solution allowing for users to import what they want and when they want it. In most cases you can simply import the Sass file as illustrated below:

@import "./../node_modules/@aurodesignsystem/webcorestylesheets/src/ ... "

Installing the essentials

While WCSS is an à la carte solution, there are things that should be considered when adding WCSS to your project. For example, if the project has little or no legacy CSS, it is suggested to set the following foundation, in this order:

// baseline design tokens as Sass variables
@import "./../node_modules/@aurodesignsystem/design-tokens/src/tokens/SCSSVariables";

// globally add the mixins so that any future reference will be addressed
@import './../node_modules/@aurodesignsystem/webcorestylesheets/src/breakpoints';

// it's typically best practice to load the @font-face rules prior to any reference of the custom web fonts
@import './../node_modules/@aurodesignsystem/webcorestylesheets/src/fonts';

// set a baseline browser normalize
@import './../node_modules/@aurodesignsystem/webcorestylesheets/src/normalize';

// opt-in support for `:focus-visible` accessibility feature
@import './../node_modules/@aurodesignsystem/webcorestylesheets/src/focus-visible';

// essentials setup baseline primitive selectors for any UI development
@import './../node_modules/@aurodesignsystem/webcorestylesheets/src/essentials';

For an example of setting up a master file that imports all of WCSS's resources, see the styleTest.scss in the project.

Tokens Dependency

WCSS uses Sass and has a dependency on the SCSSVariables.scss file from Design Tokens package. This reference needs to be imported before any reference of a WCSS partial.

@import "./../node_modules/@aurodesignsystem/design-tokens/dist/tokens/SCSSVariables";
@import "./../node_modules/@aurodesignsystem/webcorestylesheets/src/ ... ";

Web font dependency

WC style sheets has full support for Auro's web fonts, ASCircular. When importing the following code, this will import the (3) Auro web fonts that are loaded from our CDN for light, medium, and book weights.

@import "./../node_modules/@aurodesignsystem/webcorestylesheets/src/fonts"

Any references to ASCircularWeb-Book, ASCircularWeb-Medium, or ASCircularWeb-Light would be considered redundant and you should remove those legacy references.

Any references to ASCircularWeb-Bold or any other ASCircularWeb- style font family is not supported and these references are considered fully deprecated.

Development

To develop against WCSS run both npm run watch and npm run serve in separate terminals.

The watch command will run a Sass linter, process a test file from Sass to CSS and run a post CSS linter. This will ensure the quality of all new Sass added to the repo.

If additional selectors or scenarios are needed, please update the ./scripts/testBuild.scss file to test your code.

Running the serve command will open the Sassdoc view. Please review all changes as Sassdoc produces all documentation.