Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/amaancoderx/npxskillui
/ functions
Functions
269 in github.com/amaancoderx/npxskillui
⨍
Functions
269
◇
Types & classes
41
↓ 20 callers
Function
addColor
(tokens: RawTokens, hex: string, source: 'css' | 'computed', name?: string)
src/extractors/tokens/http-css.ts:1630
↓ 20 callers
Function
assign
(index: number, role: ColorRole)
src/normalizer.ts:166
↓ 18 callers
Function
padAnsi
(str: string, width: number)
src/ui.ts:15
↓ 18 callers
Function
pickSpacing
(spacing: { base: number; values: number[] }, multiplier: number)
src/writers/skill.ts:1141
↓ 17 callers
Function
has
(p: string)
src/writers/animations-md.ts:283
↓ 15 callers
Function
col
(token: any, role?: string)
src/writers/skill.ts:624
↓ 13 callers
Function
col
(token: any, varName: string)
src/writers/design-md.ts:720
↓ 11 callers
Function
L
(label: string)
src/ui.ts:301
↓ 11 callers
Function
V2
(val: string)
src/ui.ts:302
↓ 9 callers
Function
flagRow
(flag: string, desc: string, hint: string)
src/ui.ts:142
↓ 9 callers
Function
loadPlaywright
()
src/playwright-loader.ts:12
↓ 7 callers
Function
tryParseColor
(value: string)
src/extractors/tokens/http-css.ts:1641
↓ 6 callers
Function
hexToRgb
(hex: string)
src/normalizer.ts:327
↓ 6 callers
Function
mergeDeep
(a: Record<string, any>, b: Record<string, any>)
src/extractors/tokens/tailwind.ts:268
↓ 6 callers
Function
normalizeHex
(v: string)
src/extractors/tokens/http-css.ts:1718
↓ 6 callers
Function
rgbToHex
(r: number, g: number, b: number)
src/extractors/tokens/http-css.ts:1727
↓ 6 callers
Function
startSpinner
(text: string)
src/ui.ts:219
↓ 6 callers
Function
succeedSpinner
(spinner: Ora, label: string, result: string)
src/ui.ts:227
↓ 5 callers
Function
failSpinner
(spinner: Ora, label: string, error: string)
src/ui.ts:234
↓ 4 callers
Function
countChildLinks
(html: string, tag: string)
src/extractors/tokens/http-css.ts:785
↓ 4 callers
Function
cssProperty
(camelCase: string)
src/writers/interactions-md.ts:161
↓ 4 callers
Function
extractClassesByPattern
(html: string, pattern: RegExp)
src/extractors/tokens/http-css.ts:1562
↓ 4 callers
Function
extractElementClasses
(html: string, tag: string)
src/extractors/tokens/http-css.ts:1545
↓ 4 callers
Function
isGenericFont
(f: string)
src/extractors/tokens/http-css.ts:1682
↓ 4 callers
Function
isValidFontName
(f: string)
src/extractors/tokens/http-css.ts:1686
↓ 4 callers
Function
parseSizeToPixels
(size: string)
src/normalizer.ts:546
↓ 4 callers
Function
pickSpacing
(spacing: { base: number; values: number[] }, multiplier: number)
src/writers/design-md.ts:801
↓ 4 callers
Function
resolveUrl
(href: string, base: string)
src/extractors/tokens/http-css.ts:1622
↓ 4 callers
Function
rgbToHex
(r: number, g: number, b: number)
src/extractors/tokens/css.ts:454
↓ 4 callers
Function
simplify
(val: string)
src/writers/layout-md.ts:116
↓ 3 callers
Function
dim
(v: number)
src/writers/skill.ts:632
↓ 3 callers
Function
formatType
(type: string)
src/writers/interactions-md.ts:151
↓ 3 callers
Function
getStyles
(el: any)
src/extractors/ultra/interactions.ts:169
↓ 3 callers
Function
guessPropertyType
(varName: string)
src/extractors/tokens/http-css.ts:1669
↓ 3 callers
Function
hslToHex
(h: number, s: number, l: number)
src/extractors/tokens/http-css.ts:1731
↓ 3 callers
Function
isColorVarName
(name: string)
src/extractors/tokens/http-css.ts:1677
↓ 3 callers
Function
isIconFont
* Returns true if a font family name looks like an icon/symbol font. * These should be excluded from the design typography documentation.
src/extractors/tokens/http-css.ts:287
↓ 3 callers
Function
isLikelyVariant
(str: string)
src/extractors/components.ts:326
↓ 3 callers
Function
isMono
(f: string)
src/writers/design-md.ts:56
↓ 3 callers
Function
isMonoFont
(family: string)
src/normalizer.ts:542
↓ 3 callers
Function
isSystemFont
* Returns true if a font family is a system font that cannot be downloaded.
src/extractors/tokens/http-css.ts:296
↓ 3 callers
Function
isValidHex
(hex: string)
src/extractors/tokens/http-css.ts:1703
↓ 3 callers
Function
normalizeHex
(v: string)
src/extractors/tokens/tokens-file.ts:193
↓ 3 callers
Function
normalizeHex
(v: string)
src/extractors/tokens/css.ts:445
↓ 3 callers
Function
screenshotElement
(el: any, filePath: string)
src/extractors/ultra/interactions.ts:188
↓ 3 callers
Function
warnLine
(message: string)
src/ui.ts:241
↓ 2 callers
Function
classifyValue
(key: string, value: string, tokens: RawTokens)
src/extractors/tokens/tokens-file.ts:111
↓ 2 callers
Function
configKeyToFontName
(key: string)
src/extractors/tokens/tailwind.ts:162
↓ 2 callers
Function
countRepeatedElements
(html: string, classPattern: string)
src/extractors/tokens/http-css.ts:792
↓ 2 callers
Function
diffStyles
(before: StyleSnapshot, after: StyleSnapshot)
src/extractors/ultra/interactions.ts:196
↓ 2 callers
Function
downloadFont
* Download a font file from a URL and save it locally. * Accepts TTF, OTF, and WOFF2 formats.
src/font-resolver.ts:108
↓ 2 callers
Function
extractImportUrls
(css: string, baseUrl: string)
src/extractors/tokens/http-css.ts:174
↓ 2 callers
Function
extractMatchingStyles
( cssRules: Map<string, string[]>, classes: Set<string>, patterns: string[] )
src/extractors/tokens/http-css.ts:1527
↓ 2 callers
Function
fetchText
(url: string)
src/extractors/tokens/http-css.ts:1599
↓ 2 callers
Function
findVariants
(classes: Set<string>, base: string)
src/extractors/tokens/http-css.ts:1577
↓ 2 callers
Function
formatRole
(role: string)
src/writers/skill.ts:1087
↓ 2 callers
Function
formatTypographyRole
(role: string)
src/writers/design-md.ts:266
↓ 2 callers
Function
generateDesignMd
(profile: DesignProfile, screenshotPath?: string | null)
src/writers/design-md.ts:7
↓ 2 callers
Function
guessPropertyType
(varName: string)
src/extractors/tokens/css.ts:437
↓ 2 callers
Function
hslToHex
(h: number, s: number, l: number)
src/extractors/tokens/css.ts:479
↓ 2 callers
Function
isColorValue
(v: string)
src/extractors/tokens/tokens-file.ts:189
↓ 2 callers
Function
isColorVarName
(name: string)
src/extractors/tokens/css.ts:458
↓ 2 callers
Function
isEmojiFont
* Returns true if a font family is an emoji font (not useful for UI design docs).
src/extractors/tokens/http-css.ts:303
↓ 2 callers
Function
isGenericConfigKey
* Check if a fontFamily config key is a generic/functional name * (e.g., "sans", "heading", "body", "display") rather than an actual font name. * Th
src/extractors/tokens/tailwind.ts:224
↓ 2 callers
Function
isSkippableFont
Returns true for fonts that cannot or should not be downloaded (system, generic, icon).
src/font-resolver.ts:16
↓ 2 callers
Function
nameBreakpoint
(px: number, unit: string)
src/extractors/tokens/http-css.ts:1163
↓ 2 callers
Function
namedColorToHex
(name: string)
src/extractors/tokens/http-css.ts:1707
↓ 2 callers
Function
normalize
( projectName: string, frameworks: Framework[], rawTokens: RawTokens, components: ComponentInfo[], l
src/normalizer.ts:23
↓ 2 callers
Function
normalizeUrl
(url: string)
src/extractors/ultra/pages.ts:194
↓ 2 callers
Function
parseCSS
(content: string, tokens: RawTokens, cssBaseUrl?: string)
src/extractors/tokens/http-css.ts:842
↓ 2 callers
Function
parseComponentContent
( name: string, content: string, filePath: string, rootDir: string )
src/extractors/components.ts:139
↓ 2 callers
Function
rel
(p: string)
src/ui.ts:339
↓ 2 callers
Function
runDirMode
(projectDir: string, nameOverride?: string)
src/modes/dir.ts:12
↓ 2 callers
Function
shadowLevelOrder
(level: ShadowLevel)
src/normalizer.ts:651
↓ 2 callers
Function
showLogo
()
src/ui.ts:22
↓ 2 callers
Function
tryParseColorValue
(value: string)
src/extractors/tokens/css.ts:463
↓ 2 callers
Function
writeTokensJson
(profile: DesignProfile, skillDir: string)
src/writers/tokens-json.ts:13
↓ 1 callers
Function
assignColorRoles
(colors: ColorToken[], isLightScheme = false)
src/normalizer.ts:161
↓ 1 callers
Function
buildCSSRuleLookup
(css: string)
src/extractors/tokens/http-css.ts:1512
↓ 1 callers
Function
buildComponentCategories
(components: ComponentInfo[])
src/normalizer.ts:809
↓ 1 callers
Function
buildDarkModePairs
(tokens: RawTokens)
src/extractors/tokens/http-css.ts:1588
↓ 1 callers
Function
buildSelector
(el: Element)
src/extractors/ultra/layout.ts:57
↓ 1 callers
Function
buildSuggestedCss
(comp: DOMComponent, tokens: TokenSet)
src/writers/components-md.ts:104
↓ 1 callers
Function
bundleFonts
( fontSources: FontSource[], fontFamilies: string[], skillDir: string, _usedWeights?: Set<string> )
src/font-resolver.ts:183
↓ 1 callers
Function
captureAnimations
( url: string, skillDir: string )
src/extractors/ultra/animations.ts:32
↓ 1 callers
Function
captureInteractions
( url: string, skillDir: string )
src/extractors/ultra/interactions.ts:41
↓ 1 callers
Function
capturePageScreenshots
( originUrl: string, skillDir: string, maxPages: number )
src/extractors/ultra/pages.ts:16
↓ 1 callers
Function
captureScreenshot
( url: string, skillDir: string )
src/screenshot.ts:11
↓ 1 callers
Function
categorize
(el: Element, classes: string[])
src/extractors/ultra/components-dom.ts:70
↓ 1 callers
Function
categorizeAnimVar
(name: string)
src/extractors/ultra/animations.ts:529
↓ 1 callers
Function
categorizeComponent
(name: string, filePath: string, content: string, classes: string[])
src/extractors/components.ts:177
↓ 1 callers
Function
classifyShadow
(value: string)
src/normalizer.ts:638
↓ 1 callers
Function
classifyTokenValue
(key: string, value: string, type: string, tokens: RawTokens)
src/extractors/tokens/tokens-file.ts:149
↓ 1 callers
Function
colorDistance
(a: { r: number; g: number; b: number }, b: { r: number; g: number; b: number })
src/normalizer.ts:319
↓ 1 callers
Function
computeDesignTraits
( colors: ColorToken[], typography: TypographyToken[], spacing: SpacingScale, shadows: ShadowToken[],
src/normalizer.ts:874
↓ 1 callers
Function
createZip
(sourceDir: string, outputPath: string)
src/writers/skill.ts:1178
↓ 1 callers
Function
deduplicateBreakpoints
Remove duplicate breakpoint values, keep unique pixel values sorted ascending.
src/normalizer.ts:342
↓ 1 callers
Function
deduplicateColors
(colors: RawTokens['colors'])
src/normalizer.ts:116
↓ 1 callers
Function
deduplicatePageSections
Remove duplicate page sections (same type appearing from multiple crawled pages).
src/normalizer.ts:358
↓ 1 callers
Function
deriveRepoName
(url: string)
src/modes/repo.ts:41
next →
1–100 of 269, ranked by callers