1.0.1 • Published 3 years ago
@scania-sdds/theme-light v1.0.1
Scania Theme
@scania/theme-light
Scania theme is a package to style Scania looks and feel in the Scania Digital Design System setup.
Installation
Import theme in the project and use it with addTheme function from corporate-ui.
import { defineCustomElements, addTheme } from '@scania/components';
import { theme as scania } from '@scania/theme-light';
defineCustomElements();
addTheme(scania);
Replace x
with available releases.
Setup in project
Initialize the theme with the c-theme
component. Set global
attribute to true in order to enable bootstrap styling.
<c-theme name="scania" global="true"></c-theme>
Setup local development
- Clone sdds repository
git clone https://github.com/scania-digital-design-system/sdds.git
- Download and install node.js: https://nodejs.org/en/
- If you're behind a firewall, CONFIGURE THE PROXY
- From the scania-theme folder, run
npm i
to install package dependencies - Start the local setup by running
npm start
- Scania theme scripts will be served on http://localhost:1338/scania-theme.js
- Use demo inside the
demo
folder in sdds project.
License
The Scania brand identity and the interaction patterns found in this repository are not available on an open source basis. Although we have great freedom to make improvements and new components, some changes to interaction patterns and use of colours etc may not be approved.
1.0.1
3 years ago
1.0.1-1
3 years ago
1.0.0-beta.2
3 years ago
1.0.0-beta.1
3 years ago
1.0.0-beta.0
3 years ago
1.1.0-beta.0
3 years ago