Home

Awesome

GitHub release (latest by date) GitHub last commit

Tegel Design System

https://tegel.scania.com/

The design system supports the design and development of digital solutions at Scania. The purpose is to secure a coherent and premium brand and user experience across all of Scania's digital touchpoints.

Browser Support

Getting started

You can use Tegel CSS custom properties to use the design tokens for colour, typography, spacing, and logotype. To have all CSS custom properties available, you need to install both compoonents and scania-theme. And then you need to include sdds-theme component in your application. Check instruction below on how to install components and scania-theme.

You can also install a standalone package for different part. These are available packages:

Package NameDescription
@scania/componentsScania reusable web components built with StencilJS
@scania/theme-lightScania default theming
@scania/typographyScania official typography styling package
@scania/colourScania official colour scale package
@scania/gridScania official grid package
@scania/iconsScania official pictograms & icons package

You can find everything in NPM

Framework demos

Clone this repo to run framework demo applications locally. Demos are available Angular, React, Vue and HTML. Each application needs to be installed individually before use. Installing creates a node_modules directory with modules needed to run the application as they're listed in the package.json-file of each app directory.

Note 1: If you install and start from root level, you will access a local copy of Tegel UI Library in Storybook.

Note 2: npm start not applicable for HTML demo

> git clone https://github.com/scania-digital-design-system/sdds.git
> cd {app-directory}
> npm i
> npm start

Run local environment

Commands to start:
> npm i
> npm start
Debugging local environment

** Proxy/network/vpn setting might interfere with the download process so make sure you have everything correctly set on your computer or try doing the commands outside office/vpn network

Migration

You can find out how to migrate by reading our MIGRATION.md file in this repository.

If you are still using older component while migrate and still need the old documentation you can visit these links

Contributing

This repository is a place for all Front End Developers to join the UI Development at Scania. It is us together that develop and maintain this repository as well as the documentation. Check out our Contributing Guide and help us improving the design system technical solution!