Home

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