Home

tailwind-ctp-intellisense @1cd4b48665451f4d94403cd624e5efb89f7740d4 - 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)
}