2.0.2 • Published 6 months ago

@scania/colour v2.0.2

Weekly downloads
36
License
ISC
Repository
-
Last release
6 months ago

SDDS - Colour package

Deprecation Notice

This package has been deprecated and is no longer actively maintained.

Why is this package deprecated?

This package has reached the end of its development lifecycle, and we have decided to discontinue active support and updates for it. We recommend that you consider alternative solutions for your project to ensure ongoing compatibility, security, and stability.

Recommended Alternatives

We suggest exploring the Tegel Design System, which is the successor of SDDS and is actively maintained:

What should you do now?

  1. Migrate to an alternative package: We strongly encourage you to transition to one of the recommended alternatives mentioned above by following their documentation and migration guides on npm, SDDS -> TDS migration guide and Tegel installation on the official Tegel website.

  2. Remove the deprecated package: You can safely remove this package from your project once you have successfully migrated to an alternative solution.

Thank You!

We appreciate your support and use of this package. If you have any questions or need further assistance with the deprecation process or migration, feel free to reach out to us by creating an issue in our GitHub repository or contacting Development support channel in Teams.

Again, thank you for being a part of our community, and we hope the recommended alternatives serve your needs effectively.

*Last Updated: October 23rd 2023


This package contains both SCSS and CSS files available

  • SCSS available for import in your sass development
  • CSS classes for text and background
  • CSS custom properties / CSS variables available through scania-theme

How to install with npm

> npm i @scania/colour

How to use

See all available tokens in tegel.scania.com

// style.scss
// you need to have sass compiler in your application
@import '~node_modules/@scania/colour/dist/scss/colour';

// use get-colour(token-name) function to get colour from Tegel colour scale
.my-div {
  color: get-colour(grey-500);
}

// OR
// use in HTML as a class
// property available: text and background
//.sdds-{property}-{token-name}
<p class="sdds-text-blue-900 sdds-background-grey-200">
  An example paragraph
</p>
2.0.2

6 months ago

2.0.1

3 years ago

2.0.0

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago