Home

tailwind-ctp-intellisense @05f8df0f60bb6fa47ebdd6a60773c04e19aeb219 - refs - log -
-
https://git.jolheiser.com/tailwind-ctp-intellisense.git
Tailwind intellisense + Catppuccin
tailwind-ctp-intellisense / packages / tailwindcss-language-service / src / util / naturalExpand.ts
- raw
1
2
3
4
export function naturalExpand(value: number, total?: number): string {
  let length = typeof total === 'number' ? total.toString().length : 8
  return ('0'.repeat(length) + value).slice(-length)
}