@dt-dds/fonts
v1.0.0-beta.6
Published
DT-DDS Design System Fonts
Readme
Fonts Package
The Fonts Package simplifies the process of integrating Daimler Truck fonts into the different applications.
Fonts Usage
- Install the package. Example using yarn:
yarn add @dt-dds/fonts- Import the css file into your application:
import '@dt-dds/fonts/index.css';or use the exported fonts object:
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
Stack
- TypeScript for static type checking
- ESLint for code linting
- Prettier for code formatting
- Tsup — TypeScript bundler powered by esbuild
- Yarn from managing packages
Commands
yarn build- Build the packageyarn dev- Run the package locallyyarn lint- Lint all files within this package
Compilation
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.
typography
└── dist
├── index.d.ts <-- Types
├── index.js <-- CommonJS version
└── index.mjs <-- ES Modules version
...Versioning
Follows semantic versioning
© License
Licensed under MIT License
