Skip to content
TEDI-Design-SystemPublic

About

TEDI Angular

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

3,409 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TEDI Design System for Angular

codecov semantic-release

@tedi-design-system/angular is a library of Angular components implementing the TEDI Design System. It provides reusable, accessible, and consistent UI components to streamline building Angular applications.

Component documentation, examples and APIs are in Storybook.


Getting Started

Installation

npm install @tedi-design-system/angular

Peer dependencies: @angular/core, @angular/common, @angular/forms, @angular/platform-browser and @angular/cdk 20, 21 or 22. The text editor also needs quill and the ngx-quill major that matches your Angular version: 28 for Angular 20, 30 for 21 and 31 for 22. Design tokens, fonts and icons come from @tedi-design-system/core, which is installed with the package.

Setup

Add the stylesheet (fonts, tokens and component styles) to angular.json, next to your app's own global styles:

// projects.<app>.architect.build.options
"styles": ["node_modules/@tedi-design-system/angular/index.css", "src/styles.scss"]

To load only one Material Symbols style, use index-without-icons.css together with one of icons/outlined.css, icons/rounded.css or icons/sharp.css.

The text editor also needs Quill's stylesheets in your global styles:

// src/styles.scss
@forward "quill/dist/quill.core.css";
@forward "quill/dist/quill.snow.css";

Provide the theme and language in your application config, and start ThemeService with the app:

// app.config.ts
import { ApplicationConfig, inject, provideAppInitializer } from "@angular/core";
import { provideTedi, ThemeService } from "@tedi-design-system/angular/tedi";

export const appConfig: ApplicationConfig = {
  providers: [
    provideTedi({ language: "et", theme: "default" }),
    provideAppInitializer(() => {
      inject(ThemeService);
    }),
  ],
};

ThemeService sets the theme class on <html>. It is created only when something injects it, so without the initializer a theme other than default, or one saved in the tedi-theme cookie, is not applied on load.

Usage

Components are standalone. Import them into the component that uses them:

import { Component } from "@angular/core";
import { ButtonComponent } from "@tedi-design-system/angular/tedi";

@Component({
  selector: "app-root",
  imports: [ButtonComponent],
  template: `<button tedi-button variant="primary">Save</button>`,
})
export class AppComponent {}

TEDI-Ready components are exported from @tedi-design-system/angular/tedi, community components from @tedi-design-system/angular/community. The text editor has its own entry point, @tedi-design-system/angular/community/text-editor, so apps that don't use it don't need Quill. Prefer a TEDI-Ready component where one exists. Browse all components in Storybook.

Supported versions

The library supports the three latest Angular majors, currently Angular 20, 21 and 22. See Supported versions in the wiki for the policy and the Angular release schedule for upcoming dates.


Accessibility

TEDI follows EN 301 549 and, for web content, WCAG 2.2 level AA. Components released before TEDI moved to WCAG 2.2 were built and tested against WCAG 2.1 AA and are being reviewed for the new criteria.

The accessibility page on tedi.ee (in Estonian) describes how components are tested, what TEDI covers and what stays with your project, and how to report an accessibility issue.


AI Tooling

For consumers: the tedi-angular skill

Helps AI coding agents build UIs with @tedi-design-system/angular: component usage, forms integration, theming and translation setup.

Install it into your agent (Claude Code, Cursor, Codex and others) with the skills CLI, from your project root:

npx skills add https://github.com/TEDI-Design-System/angular --skill tedi-angular

For consumers: the tedi-angular-migrate skill

Upgrades your app to a newer @tedi-design-system/angular version. It finds the version you use, reads every release note up to the latest version, writes a migration plan to .tedi-migrate/migration-plan.md, applies the changes it can, and checks them with your typecheck, build and tests. Whatever it can't migrate is listed for you to decide. It also updates your overrides of core CSS variables that were renamed or removed.

npx skills add https://github.com/TEDI-Design-System/angular --skill tedi-angular-migrate

Then ask your agent to "upgrade TEDI to the latest version".

npm projects are fully supported. With pnpm, Yarn or Bun the skill reads the lockfile where it can and asks you for any version it can't determine.

For contributors: the contributing skill

Guides development inside this repository: creating new components, running tests and lint, WCAG audits, refactoring and Storybook stories. Available as /contributing when working in this repository. Skills for contributing across the design system live in TEDI-Design-System/ai-skills.


Contributing

See CONTRIBUTING.md for how to report issues, set up the repository and open a pull request, and for adding or dropping an Angular major. Component guidelines and coding standards are in the wiki.

To work on the library locally:

npm install
npm run start

npm run start launches Storybook for developing components in isolation.


Visual Testing

Chromatic

We use Chromatic for visual testing, reviewing UI changes, and preventing visual regressions.

License

MIT. The bundled fonts and the logos in public/ are not covered, see NOTICE.md.

About

TEDI Angular

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages