db-ui / mono

DB UX Design System Monorepo - Provides Design Tokens and components for Web UIs
https://db-ui.github.io/mono/review/main/
Apache License 2.0
35 stars 6 forks source link

Add tailwind.config.ts to foundations #2709

Closed IOIO72 closed 23 hours ago

IOIO72 commented 2 weeks ago

Add tailwind.config.ts to https://github.com/db-ui/mono/tree/main/packages/foundations/tailwind

Use Config types to introduce typing into the config file: import type { Config } from 'tailwindcss';

When using the default configuration type of Tailwind, the linter shows some errors in the tailwind-tokens.json. This could be an error or the types need to be extended.

mfranzke commented 2 weeks ago

@IOIO72 thanks a lot for your feedback. @nmerget will have a look at it.

IOIO72 commented 2 weeks ago

Thanks,

btw, it seems that Tailwind recommends using zeros as strings instead of numbers.

0: '0', none: '0',