8.1.1 • Published 4 months ago

@aurodesignsystem/webcorestylesheets v8.1.1

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
4 months ago

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/design-tokens@4.x.

When upgrading your project it may be required to also retain @aurodesignsystem/design-tokens@v3.15.5 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!

resourceCDN URL
essentials.scssfonts.scsshttps://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@latest/dist/bundled/essentials.css
focus-visible.scssessentials.scssfonts.scsshttps://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/ ... ";

Multi-Theme Support

WebCoreStyleSheets provides multi-theme support for various brands in the Alaska Air Group. Each theme includes its own font definitions and styling.

Available Themes

For more information on the available themes and how to use them, please see the Auro Design Tokens documentation.

Using a Theme

To use a specific theme in your project, import the corresponding theme file.

For example:

/* Alaska Airlines theme (Auro default) */
@import "./../node_modules/@aurodesignsystem/webcorestylesheets/src/essentials-as";

Additional themes are available in the src directory.

Bundled Theme Resources

Each theme also has a bundled version in the dist/bundles directory that includes essentials for quick implementation:

For example:

/* Alaska Airlines theme (Auro default) */
dist/bundles/essentials-as.css

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.

6.1.0

7 months ago

6.0.1

8 months ago

6.3.0

5 months ago

6.2.0

5 months ago

6.0.2

8 months ago

6.5.0

5 months ago

6.4.0

5 months ago

6.3.1

5 months ago

7.0.0

4 months ago

8.1.0

4 months ago

8.0.1

4 months ago

8.0.0

4 months ago

8.1.1

4 months ago

6.6.1

5 months ago

6.6.0

5 months ago

6.6.2

5 months ago

6.0.0

1 year ago

5.1.2

1 year ago

6.0.0-beta.1

1 year ago

5.1.1

1 year ago

5.1.0

2 years ago

5.0.8

2 years ago

5.0.7

2 years ago

5.0.6

2 years ago

5.0.5

2 years ago

5.0.4

2 years ago

5.0.3

2 years ago

5.0.2

2 years ago

5.0.1

2 years ago

5.0.0

2 years ago

4.8.0

2 years ago

4.7.0

2 years ago

4.6.1

2 years ago

4.6.0

2 years ago

4.5.0

2 years ago

4.4.0

2 years ago

4.3.1

2 years ago

4.3.0

3 years ago

4.1.2

3 years ago

4.2.0

3 years ago

4.1.0

3 years ago

4.1.1

3 years ago

4.0.0

3 years ago