Home

tailwind-ctp-intellisense @4bf3af2f9af5093ce4fdc8dd7464c5e7d5e78779 - 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)
}