Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/adrian-ub/shadcn-ng
/ functions
Functions
148 in github.com/adrian-ub/shadcn-ng
⨍
Functions
148
◇
Types & classes
731
↓ 63 callers
Function
cn
(...inputs: ClassValue[])
apps/www/src/registry/default/lib/utils.ts:5
↓ 63 callers
Function
cn
(...inputs: ClassValue[])
apps/www/src/registry/new-york/lib/utils.ts:5
↓ 62 callers
Function
cn
(...inputs: ClassValue[])
apps/v4/src/registry/new-york-v4/lib/utils.ts:5
↓ 16 callers
Function
handleError
(error: unknown)
src/utils/handle-error.ts:5
↓ 8 callers
Function
fetchRegistry
(urlRegistry: string, paths: string[])
src/registry/api.ts:43
↓ 8 callers
Function
resolveImport
( importPath: string, config: Pick<ConfigLoaderSuccessResult, 'absoluteBaseUrl' | 'paths'>, )
src/cli/stages/resolve-import.ts:4
↓ 5 callers
Function
cancelProcess
(exitCode: number = 0)
src/cli/utils/cancel-process.ts:11
↓ 5 callers
Function
colorsData
()
apps/www/src/registry/registry-colors.ts:1812
↓ 5 callers
Function
getConfig
(cwd: string)
src/cli/stages/get-config.ts:22
↓ 5 callers
Function
getProjectInfo
(cwd: string)
src/cli/stages/get-project-info.ts:32
↓ 5 callers
Function
header
()
src/cli/utils/header.ts:6
↓ 5 callers
Function
verifyIsCancelPrompt
(value: unknown, exitCode = 0)
src/cli/utils/cancel-process.ts:5
↓ 4 callers
Function
buildTailwindThemeColorsFromCssVars
( cssVars: Record<string, string>, )
src/utils/updaters/update-tailwind-config.ts:1
↓ 4 callers
Function
getNodeAttributeByName
(node: UnistNode, name: string)
apps/www/src/plugins/rehype-component.ts:179
↓ 4 callers
Function
getRegistryBaseColor
(urlRegistry: string, baseColor: string)
src/registry/api.ts:163
↓ 4 callers
Function
getRegistryIndex
(urlRegistry: string)
src/registry/api.ts:116
↓ 3 callers
Function
getProjectTailwindVersionFromConfig
( config: Config, )
src/cli/stages/get-project-info.ts:211
↓ 3 callers
Function
getRegistryBaseColors
()
src/registry/api.ts:189
↓ 3 callers
Function
getRegistryStyles
(urlRegistry: string)
src/registry/api.ts:127
↓ 3 callers
Method
isBrowser
()
apps/v4/src/components/mode-switcher.ts:74
↓ 3 callers
Function
isUrl
(path: string)
src/registry/api.ts:23
↓ 3 callers
Function
parseObjectLiteralExpression
(node: ObjectLiteralExpression)
src/cli/stages/updaters/update-tailwind-config.ts:379
↓ 3 callers
Function
resolveConfigPaths
(cwd: string, config: RawConfig)
src/cli/stages/get-config.ts:63
↓ 3 callers
Function
resolveFilePath
( file: v.InferOutput<typeof RegistryItemFileSchema>, config: Config, )
src/cli/stages/updaters/update-files.ts:165
↓ 3 callers
Function
runInit
(options: InitOptions)
src/cli/stages/run-init.ts:22
↓ 3 callers
Function
toLinear
(number: number)
apps/www/src/lib/colors.ts:71
↓ 3 callers
Function
upsertThemeNode
(root: Root)
src/cli/stages/updaters/update-css-vars.ts:370
↓ 2 callers
Function
_createSourceFile
(input: string, config: Config | null)
src/cli/stages/updaters/update-tailwind-config.ts:71
↓ 2 callers
Function
addComponents
( components: string[], config: Config, options: { overwrite?: boolean }, )
src/cli/stages/add-components.ts:13
↓ 2 callers
Function
cn
(...inputs: ClassValue[])
apps/www/src/lib/utils.ts:5
↓ 2 callers
Function
createProject
(options: Pick<InitOptions, 'cwd' | 'force' | 'components'>)
src/cli/stages/create-project.ts:19
↓ 2 callers
Function
diffComponent
( component: v.InferOutput<typeof RegistryIndexSchema>[number], config: Config, )
src/cli/stages/run-diff.ts:116
↓ 2 callers
Function
fetchTree
( urlRegistry: string, style: string, tree: v.InferOutput<typeof RegistryIndexSchema>, )
src/registry/api.ts:174
↓ 2 callers
Function
flattenNode
(node)
apps/www/src/lib/toc.ts:10
↓ 2 callers
Function
getNormalizedFileContent
(content: string)
src/cli/stages/updaters/update-files.ts:161
↓ 2 callers
Function
getRegistryUrl
(urlRegistry: string, path: string)
src/registry/api.ts:34
↓ 2 callers
Function
isLocalHSLValue
(value: string)
src/cli/stages/updaters/update-css-vars.ts:255
↓ 2 callers
Function
nestSpreadProperties
(obj: ObjectLiteralExpression)
src/cli/stages/updaters/update-tailwind-config.ts:290
↓ 2 callers
Function
parseValue
(node: any)
src/cli/stages/updaters/update-tailwind-config.ts:406
↓ 2 callers
Function
registryResolveItemsTree
( urlRegistry: string, names: v.InferOutput<typeof RegistryItemSchema>['name'][], config: Config, )
src/registry/api.ts:265
↓ 2 callers
Function
transform
(opts: TransformOpts, transformers: Transformer[] = [ transformImport, transformCssVars, ])
src/cli/stages/transformers/index.ts:36
↓ 2 callers
Function
unnestSpreadProperties
(obj: ObjectLiteralExpression)
src/cli/stages/updaters/update-tailwind-config.ts:451
↓ 1 callers
Function
_getQuoteChar
(configObject: ObjectLiteralExpression)
src/cli/stages/updaters/update-tailwind-config.ts:88
↓ 1 callers
Function
addCustomVariant
({ params }: { params: string })
src/cli/stages/updaters/update-css-vars.ts:180
↓ 1 callers
Function
addOrUpdateVars
( baseLayer: AtRule, selector: string, vars: Record<string, string>, )
src/cli/stages/updaters/update-css-vars.ts:139
↓ 1 callers
Function
addProjectComponents
( components: string[], config: Config, options: { overwrite?: boolean }, )
src/cli/stages/add-components.ts:28
↓ 1 callers
Function
addTailwindConfigPlugin
( configObject: ObjectLiteralExpression, plugin: string, )
src/cli/stages/updaters/update-tailwind-config.ts:209
↓ 1 callers
Function
addTailwindConfigProperty
( configObject: ObjectLiteralExpression, property: { name: string value: string }, { quote
src/cli/stages/updaters/update-tailwind-config.ts:147
↓ 1 callers
Function
addTailwindConfigTheme
( configObject: ObjectLiteralExpression, theme: UpdaterTailwindConfig['theme'], )
src/cli/stages/updaters/update-tailwind-config.ts:247
↓ 1 callers
Function
applyColorMapping
( input: string, mapping: v.InferOutput<typeof RegistryBaseColorSchema>['inlineColors'], )
src/cli/stages/transformers/transform-css-vars.ts:62
↓ 1 callers
Function
buildRegistry
(registry: Registry)
apps/www/src/__registry__/index.ts:18
↓ 1 callers
Function
buildRegistry
(url: string = 'https://ui.adrianub.dev/r')
src/registry/api.ts:493
↓ 1 callers
Function
cn
(...inputs: ClassValue[])
apps/v4/src/lib/utils.ts:5
↓ 1 callers
Function
createTempSourceFile
(filename: string)
apps/www/src/pages/r/styles/[style]/[name].json.ts:41
↓ 1 callers
Function
createTempSourceFile
(filename: string)
src/cli/stages/transformers/index.ts:31
↓ 1 callers
Function
getForegroundFromBackground
(rgb: string)
apps/www/src/lib/colors.ts:78
↓ 1 callers
Method
getInitialTheme
()
apps/v4/src/components/mode-switcher.ts:61
↓ 1 callers
Function
getItemTargetPath
( config: Config, item: Pick<v.InferOutput<typeof RegistryItemSchema>, 'type'>, override?: string, )
src/registry/api.ts:241
↓ 1 callers
Function
getItems
(node, current)
apps/www/src/lib/toc.ts:30
↓ 1 callers
Function
getProjectConfig
( cwd: string, defaultProjectInfo: ProjectInfo | null = null, )
src/cli/stages/get-project-info.ts:165
↓ 1 callers
Function
getQuoteType
(root: Root)
src/cli/stages/updaters/update-css-vars.ts:444
↓ 1 callers
Function
getRawConfig
(cwd: string)
src/cli/stages/get-config.ts:37
↓ 1 callers
Function
getRegistryIcons
(urlRegistry: string)
src/registry/api.ts:138
↓ 1 callers
Function
getRegistryItem
(urlRegistry: string, name: string, style: string)
src/registry/api.ts:149
↓ 1 callers
Function
getRegistryParentMap
( registryItems: v.InferOutput<typeof RegistryItemSchema>[], )
src/registry/api.ts:467
↓ 1 callers
Function
getRegistryTypeAliasMap
()
src/registry/api.ts:483
↓ 1 callers
Function
getTailwindConfigFile
(cwd: string)
src/cli/stages/get-project-info.ts:127
↓ 1 callers
Function
getTailwindCssFile
(cwd: string)
src/cli/stages/get-project-info.ts:77
↓ 1 callers
Function
getTailwindVersion
( cwd: string, )
src/cli/stages/get-project-info.ts:106
↓ 1 callers
Function
getTargetStyleFromConfig
(cwd: string, fallback: string)
src/cli/stages/get-config.ts:111
↓ 1 callers
Function
getTsConfigAliasPrefix
(cwd: string)
src/cli/stages/get-project-info.ts:140
↓ 1 callers
Function
isColorValue
(value: string)
src/cli/stages/updaters/update-css-vars.ts:392
↓ 1 callers
Function
main
()
src/cli/index.ts:10
↓ 1 callers
Function
nestSpreadElements
(arr: ArrayLiteralExpression)
src/cli/stages/updaters/update-tailwind-config.ts:334
↓ 1 callers
Function
parseArrayLiteralExpression
(node: ArrayLiteralExpression)
src/cli/stages/updaters/update-tailwind-config.ts:427
↓ 1 callers
Function
parseObjectLiteral
(objectLiteralString: string)
src/cli/stages/updaters/update-tailwind-config.ts:359
↓ 1 callers
Function
preFlightAdd
(options: AddOptions)
src/cli/stages/preflight-add.ts:14
↓ 1 callers
Function
preFlightBuild
( options: BuildOptions, )
src/cli/stages/preflight-build.ts:12
↓ 1 callers
Function
preFlightInit
(options: InitOptions)
src/cli/stages/preflight-init.ts:19
↓ 1 callers
Function
printDiff
(diff: Change[])
src/cli/stages/run-diff.ts:163
↓ 1 callers
Function
promptForConfig
(defaultConfig: Config | null = null, projectInfo: ProjectInfo | null = null)
src/cli/stages/run-init.ts:133
↓ 1 callers
Function
promptForMinimalConfig
( defaultConfig: Config, opts: InitOptions, )
src/cli/stages/run-init.ts:68
↓ 1 callers
Function
promptForRegistryComponents
( options: v.InferOutput<typeof AddOptionsSchema>, )
src/cli/stages/prompt-for-registry-components.ts:10
↓ 1 callers
Function
registryGetTheme
(urlRegistry: string, name: string, config: Config)
src/registry/api.ts:385
↓ 1 callers
Function
resolveDependencies
(itemUrl: string)
src/registry/api.ts:350
↓ 1 callers
Function
resolveFileTargetDirectory
( file: v.InferOutput<typeof RegistryItemFileSchema>, config: Config, )
src/cli/stages/updaters/update-files.ts:194
↓ 1 callers
Function
resolveNestedFilePath
( filePath: string, targetDir: string, )
src/cli/stages/updaters/update-files.ts:217
↓ 1 callers
Function
resolveRegistryDependencies
( urlRegistry: string, url: string, config: Config, )
src/registry/api.ts:338
↓ 1 callers
Function
resolveRegistryItems
(urlRegistry: string, names: string[], config: Config)
src/registry/api.ts:453
↓ 1 callers
Function
resolveTree
( index: v.InferOutput<typeof RegistryIndexSchema>, names: string[], )
src/registry/api.ts:214
↓ 1 callers
Function
runAdd
(options: AddOptions)
src/cli/stages/run-add.ts:16
↓ 1 callers
Function
runBuild
(options: BuildOptions)
src/cli/stages/run-build.ts:14
↓ 1 callers
Function
runDiff
(options: DiffOptions)
src/cli/stages/run-diff.ts:20
↓ 1 callers
Function
splitClassName
(className: string)
src/cli/stages/transformers/transform-css-vars.ts:31
↓ 1 callers
Function
toCamelCase
(str: string)
apps/www/src/plugins/rehype-component.ts:12
↓ 1 callers
Function
transformCssVars
( input: string, cssVars: v.InferOutput<typeof RegistryItemCssVarsSchema>, config: Config, options: {
src/cli/stages/updaters/update-css-vars.ts:48
↓ 1 callers
Function
transformTailwindConfig
( input: string, tailwindConfig: UpdaterTailwindConfig, config: Config, )
src/cli/stages/updaters/update-tailwind-config.ts:96
↓ 1 callers
Function
unnsetSpreadElements
(arr: ArrayLiteralExpression)
src/cli/stages/updaters/update-tailwind-config.ts:484
↓ 1 callers
Function
updateBaseLayerPlugin
()
src/cli/stages/updaters/update-css-vars.ts:574
↓ 1 callers
Function
updateCssVars
( cssVars: v.InferOutput<typeof RegistryItemCssVarsSchema> | undefined, config: Config, options: { t
src/cli/stages/updaters/update-css-vars.ts:15
next →
1–100 of 148, ranked by callers