Socket
Socket
Sign inDemoInstall

@workday/canvas-kit-css

Package Overview
Dependencies
30
Maintainers
6
Versions
1083
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @workday/canvas-kit-css

The parent module that contains all Workday Canvas Kit CSS components


Version published
Weekly downloads
342
decreased by-92.68%
Maintainers
6
Created
Weekly downloads
 

Changelog

Source

v9.1.26 (2023-10-20)

Components

  • fix: Force PrimaryButton text color in all states (#2364) (@anicholls)

Readme

Source

Canvas Kit CSS

The bundle package containing all modules of the Canvas CSS Kit.

Mainenance Mode

In Canvas Kit v5, this package and it's components will be going into maintenance mode due to the infrequent use of our CSS modules. We will still support @workday/canvas-kit-css with bug fixes and significant visual updates, but it generally won't be receiving new components, additional features, etc. This will allow us to provide more focused support, and dedicate our efforts to making bigger and better improvements to our most used components: Canvas Kit React. If you have questions or concerns, please let us know.

Usage

Canvas Kit CSS uses tilde ~ imports to resolve imports to your project's node_modules directory.

This is done automatically in Webpack's sass-loader.

If you would like to import outside of webpack you have a few options you can pass to the SASS importer option.

  • If you are using node_sass you can try a third part importer such as node-sass-tilde-importer

  • If you are using dart_sass you will need your own custom importer, e.g.:

const tildeImporter = (url: string): {file: string} => {
  if (url[0] === '~') {
    url = `./node_modules/${url.substr(1)}`;
  }

  return {file: url};
};

Troubleshooting:

In some cases your may need to add your node_modules directory to your the SASS includePaths option.


You will then be able to import any scss file index.scss.

@import '~@workday/canvas-kit-css/index.scss';

Keywords

FAQs

Last updated on 20 Oct 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc