Component library for Daimler Truck Digital Design System.
It contains UI components, brand themes, examples and documentation.
It contains UI components, brand themes, examples and documentation.
- A unified group of utility functions commonly used, and spread across different projects
- A unified group of reusable UI components commonly used, and spread across different projects
- W3C standards, common tooling, and high quality through CI/CD lifecycle
- Accessibility meeting WCAG 2.1 AA standards
- Faster developments and implementations
- Easy collaboration and Maintenance
- Versioning and changelogs
- Documentation
@dt-dds/react uses CSS-IN-JS behind the scenes. You'll also need to add Emotion as a project dependency.
yarn add @dt-dds/react @emotion/css @emotion/react @emotion/styledImport the DT-DDS global styles in the root component.
import '@dt-dds/react/index.css';And wrap your code in a ThemeProvider component to make it available to all components.
import { Provider as ThemeProvider, theme } from '@dt-dds/react';
function App() {
return <ThemeProvider theme={theme}>
...
<ThemeProvider/>
}We provide a default Daimler Truck theme, available under the package react-core/themes
See the contributing guidelines on how to contribute to this repository, including issue creation, GitHub Workflow and Coding standards and guidelines.
Licensed under MIT License