Skip to content
forked from telekom/scale

Scale is the digital design system for Telekom products and experiences.

License

Notifications You must be signed in to change notification settings

verena-ifx/scale

 
 

Repository files navigation

Scale

Scale is the digital design system for Telekom products and experiences. By default, Scale is built to align with our corporate brand and design but allows for easy customization to fit your particular product. It helps you build your digital products faster and create superior experiences with ease. With production-ready components for code and design, a central library, and comprehensive documentation, Scale has everything you need. Currently, Scale is an open beta.

Scale components are customizable and written in TypeScript. If you want to represent the corporate identity of a separate brand, you need to replace the Telekom default theme (see detailed instructions below).

Scale badge License: MPL-2.0 GitHub code size in bytes GitHub repo size

Welcome to Scale

Access the comprehensive documentation for Scale.

Are you a designer?

We provide a comprehensive Sketch library for designers building Telekom software. All components in the Sketch library are also available to your developers as code, making the handover very smooth and straightforward. For more information, access the Scale website.

Customizing Scale for open source software

Although the code for Scale is free and available under the MPL 2.0 License, Deutsche Telekom fully reserves all rights to the Telekom brand. To prevent users from getting confused about the source of a digital product or experience, there are strict restrictions on using the Telekom brand and design, even when built into code that we provide. For any customization other than explicitly for the Telekom, you must replace the Deutsche Telekom default theme.

To use Scale as open source software and customize it with a neutral theme, please follow the instructions for our open source version.

Open source version

By following the instructions for the open source version, you obtain source code/packages that use a neutral theme and are fully covered by the MPL-2.0 License.

Setup with NPM

npm install @telekom/scale-components-neutral@next

To install the version prior to dark mode, do npm install @telekom/scale-components-neutral (without @next)

To use the components, you need to load a CSS file and some JavaScript. The CSS file includes the fonts and design tokens.

Setup with plain HTML

<link
  rel="stylesheet"
  href="node_modules/@telekom/scale-components-neutral/dist/scale-components/scale-components.css"
/>
<script
  type="module"
  src="node_modules/@telekom/scale-components-neutral/dist/scale-components/scale-components.esm.js"
></script>

Setup with a bundler or ES modules

import '@telekom/scale-components-neutral/dist/scale-components/scale-components.css';
import {
  applyPolyfills,
  defineCustomElements,
} from '@telekom/scale-components-neutral/loader';

applyPolyfills().then(() => {
  defineCustomElements(window);
});

NPM packages

Package name Description
@telekom/scale-components-neutral Stencil components
@telekom/scale-components-react-neutral Component proxies for React
@telekom/scale-components-vue-neutral* Component proxies for Vue
@telekom/scale-components-angular-neutral* Component proxies for Angular
@telekom/scale-design-tokens-neutral** Design tokens

*deprecated since v3.0.0-beta.X — Please use @telekom/scale-components-neutral directly, support for custom elements is already great.

**deprecated since v3.0.0-beta.100 in favor of @telekom/design-tokens

Using the source code directly

If you want to use the source code, remove the following folders. These folders contain all the protected brand and design assets of the Telekom and are not available under the MPL-2.0 License:

Folder Content
assets Scale key visual
packages/components-sketch/ Sketch generator templates
packages/components/src/components/telekom Telekom components
packages/components/src/telekom Telekom fonts & icons
packages/components/src/html/telekom Telekom code examples
packages/design-tokens/src/telekom Telekom design tokens
packages/visual-tests/ Visual tests
storybook-vue Telekom branded storybook

Telekom version

Please note that the use of the Telekom brand and design assets – including but not limited to the logos, the color magenta, the typeface and icons, as well as the footer and header components – are not available for free use and require Deutsche Telekom's express permission for use in commerce.

Setup with NPM

Install the Scale component library in your project with NPM or Yarn:

npm install @telekom/scale-components@next

To install the version prior to dark mode, do npm install @telekom/scale-components (without @next)

Setup with plain HTML

<link
  rel="stylesheet"
  href="node_modules/@telekom/scale-components/dist/scale-components/scale-components.css"
/>
<script
  type="module"
  src="node_modules/@telekom/scale-components/dist/scale-components/scale-components.esm.js"
></script>

Setup with a bundler or ES modules

import "@telekom/scale-components/dist/scale-components/scale-components.css";
import { applyPolyfills, defineCustomElements } from "@telekom/scale-components/loader";

applyPolyfills().then(() => {
  defineCustomElements(window);
});

NPM packages

Package name Description
@telekom/scale-components Stencil components
@telekom/scale-components-react Component proxies for React
@telekom/scale-components-vue* Component proxies for Vue
@telekom/scale-components-angular* Component proxies for Angular
@telekom/scale-design-tokens** Telekom design tokens

*deprecated since v3.0.0-beta.X — Please use @telekom/scale-components directly, support for custom elements is already great. Check out the info relative to frameworks in the documentation.

**deprecated since v3.0.0-beta.100 in favor of @telekom/design-tokens

Using the source code directly

Simply clone/download this repository and use the source code as is.

Monorepo packages overview

Package name Description
components Stencil components
components-angular Component proxies for Angular (auto-generated)
components-react Component proxies for React (auto-generated)
components-sketch Component templates for Sketch generation (auto-generated)
components-vue Component proxies for Vue (auto-generated)
design-token Design tokens
generator-sketch Sketch generator
html-to-sketch Component template Sketch conversion utilities
storybook-vue Our Storybook
visual-tests Visual snapshot testing

Contributing

Code of conduct

This project has adopted the Contributor Covenant in version 2.0 as our code of conduct. Please see the details in our CODE_OF_CONDUCT.md. All contributors must abide by the code of conduct.

How to contribute

We always welcome and encourage contributions and feedback. For more information on how to contribute, the project structure, as well as additional information, see our Contribution Guidelines. By participating in this project, you agree to abide by its Code of Conduct at all times.

Contributors

Our commitment to open source means that we are enabling - even encouraging - all interested parties to contribute and become part of its developer community.

Licensing

Copyright (c) 2021 Egor Kirpichev and contributors, Deutsche Telekom AG

Licensed under the Mozilla Public License 2.0 (MPL-2.0) (the "License"); you may not use this file except in compliance with the License.

You may obtain a copy of the License by reviewing the file LICENSE in the repository.

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the LICENSE for the specific language governing permissions and limitations under the License.

About

Scale is the digital design system for Telekom products and experiences.

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 42.0%
  • Handlebars 24.1%
  • CSS 14.9%
  • JavaScript 9.9%
  • HTML 6.7%
  • Vue 2.0%
  • Other 0.4%