DT-DDS Design System Fonts
npm install @dt-dds/fontsThe Fonts Package simplifies the process of integrating Daimler Truck fonts into the different applications.
1. Install the package. Example using yarn:
``bash`
yarn add @dt-dds/fonts
2. Import the css file into your application:
`ts`
import '@dt-dds/fonts/index.css';
or use the exported fonts object:
`ts`
import { fonts } from '@dt-dds/fonts';
Additionally, the fonts are also directly accessible on the package:
- @dt-dds/fonts/DaimlerCS-Regular.woff
- @dt-dds/fonts/DaimlerCS-Regular.woff2
- @dt-dds/fonts/DaimlerCS-Bold.woff
- @dt-dds/fonts/DaimlerCS-Bold.woff2
- TypeScript for static type checking
- ESLint for code linting
- Prettier for code formatting
- Tsup — TypeScript bundler powered by esbuild
- Yarn from managing packages
- yarn build - Build the packageyarn dev
- - Run the package locallyyarn lint
- - Lint all files within this package
Running yarn build from the root of the package will use tsup to compile the raw TypeScript code to plain JavaScript.
The /dist folder contains the compiled output.
`bash``
typography
└── dist
├── index.d.ts <-- Types
├── index.js <-- CommonJS version
└── index.mjs <-- ES Modules version
...
Follows semantic versioning
Licensed under MIT License