MCPcopy Create free account

hub / github.com/Innei/Pastel / functions

Functions292 in github.com/Innei/Pastel

↓ 372 callersFunctioncreateColor
(input: string)
packages/colors/src/utils.ts:276
↓ 93 callersFunctioncn
(...inputs: ClassValue[])
templates/react-starter/src/lib/cn.ts:4
↓ 35 callersFunctioncn
(...inputs: ClassValue[])
docs/src/utils/cn.ts:5
↓ 30 callersMethodsmooth
* A smooth spring with a predefined duration and no bounce that can be tuned. * * @param duration The perceptual duration, which defines the pac
docs/src/constants/spring.ts:73
↓ 29 callersFunctiongetColorString
(colorValue: any)
packages/tailwindcss-colors/src/generator.ts:65
↓ 26 callersFunctiongenerateThemeVariable
(name: string, value: string)
packages/tailwindcss-colors/src/generator.ts:19
↓ 12 callersFunctionparseOKLCH
(oklchString: string)
docs/src/components/ColorPalette/utils/colorUtils.ts:1
↓ 12 callersFunctiontoFixed
(value: number, precision = 3)
packages/colors/src/utils.ts:158
↓ 11 callersFunctionextractColorValues
( colorString: string, colorSpace: ColorFormat = 'srgb', )
packages/tailwindcss-colors/src/generator.ts:24
↓ 11 callersFunctiongenerateColorVariable
(name: string, value: string)
packages/tailwindcss-colors/src/generator.ts:14
↓ 11 callersFunctiongetColorValue
(colorData: any, channel: ColorChannel)
docs/src/components/ColorPalette/components/ColorCanvas.tsx:65
↓ 8 callersFunctioncamelToKebabCase
(str: string)
packages/tailwindcss-colors/src/generator.ts:10
↓ 7 callersFunctiongetVariantData
(selectedVariant: ColorVariant)
docs/src/components/ColorPalette/components/ColorSidebar.tsx:47
↓ 6 callersFunctionrenderColorValue
(label: string, value: string)
docs/src/components/ColorPalette/ColorModal.tsx:128
↓ 5 callersFunctiongetColorValue
(colorVariant: any, mode: 'light' | 'dark')
docs/src/components/ColorPalette/components/ColorCard.tsx:26
↓ 5 callersFunctionprocessSemanticColors
( regularSemantic: any, kawaiisemantic: any, hcSemantic: any, groupName: string, )
packages/tailwindcss-colors/src/generator.ts:335
↓ 3 callersFunctioncreateMenuItemsRenderer
(parts: MenuParts)
templates/react-starter/src/components/ui/menu/render.tsx:29
↓ 3 callersFunctioncreateModal
(props: ImperativeModalProps)
templates/react-starter/src/components/ui/modal/imperative.tsx:77
↓ 3 callersFunctionflattenNestedColors
( data: Record<string, any>, prefix: string, )
docs/src/components/ColorPalette/components/ColorSidebar.tsx:57
↓ 3 callersFunctionnotify
()
templates/react-starter/src/components/ui/modal/imperative.tsx:54
↓ 3 callersFunctionsetState
(next: Partial<ContextMenuState>)
templates/react-starter/src/components/ui/context-menu/store.ts:51
↓ 2 callersFunctioncalculateContrastRatio
(rgb1: RGB, rgb2: RGB)
packages/colors/src/utils.ts:135
↓ 2 callersFunctioncalculateRelativeLuminance
(rgb: RGB)
packages/colors/src/utils.ts:120
↓ 2 callersFunctioncloseModal
(id: string)
templates/react-starter/src/components/ui/modal/imperative.tsx:70
↓ 2 callersFunctionconfirmModal
(config: ModalConfirmConfig)
templates/react-starter/src/components/ui/modal/imperative.tsx:136
↓ 2 callersFunctiondestroyModal
(id: string)
templates/react-starter/src/components/ui/modal/imperative.tsx:72
↓ 2 callersFunctionexportAsCSS
()
docs/src/components/ColorPalette/components/CommandPalette.tsx:61
↓ 2 callersFunctiongetAllColors
()
docs/src/components/ColorPalette/components/CommandPalette.tsx:210
↓ 2 callersFunctiongetIcon
(colorType: string, category: ColorCategory)
docs/src/components/ColorPalette/components/GridSemanticColors.tsx:58
↓ 2 callersFunctionparseRGB
(rgbString: string)
packages/colors/src/utils.ts:47
↓ 2 callersFunctionprocessColorGroup
( regularGroup: any, hcGroup: any, kawaiiGroup: any, baseName: string, )
packages/tailwindcss-colors/src/generator.ts:260
↓ 2 callersFunctionshowContextMenu
(items: MenuItem[])
templates/react-starter/src/components/ui/context-menu/store.ts:56
↓ 2 callersFunctionupdateModal
(id: string, next: Partial<ImperativeModalProps>)
templates/react-starter/src/components/ui/modal/imperative.tsx:63
↓ 2 callersFunctionuseModalAnimation
()
templates/react-starter/src/components/ui/modal/atoms.tsx:179
↓ 1 callersFunctioncalculateAccessibility
(colorValue: string)
docs/src/components/ColorPalette/components/ColorCanvas.tsx:70
↓ 1 callersFunctioncloseContextMenu
()
templates/react-starter/src/components/ui/context-menu/store.ts:68
↓ 1 callersFunctioncreateColorFromOKLCH
(oklchString: string)
packages/colors/src/utils.ts:165
↓ 1 callersFunctioncreateColorFromSRGB
(srgbString: string)
packages/colors/src/utils.ts:231
↓ 1 callersFunctioncreateVirtualAnchor
(point: { x: number; y: number })
templates/react-starter/src/components/ui/context-menu/store.ts:36
↓ 1 callersFunctiongenerateCSS
(config: GeneratorConfig)
packages/tailwindcss-colors/src/generator.ts:551
↓ 1 callersFunctiongenerateTailwindTheme
( colors: ColorSystem, colorSpace: ColorFormat = 'srgb', )
packages/tailwindcss-colors/src/generator.ts:497
↓ 1 callersFunctiongenerateUnifiedThemeColorVariables
( colors: ColorSystem, colorSpace: ColorFormat = 'srgb', )
packages/tailwindcss-colors/src/generator.ts:230
↓ 1 callersFunctiongetApplicationColors
()
docs/src/components/ColorPalette/components/GridApplicationColors.tsx:63
↓ 1 callersFunctiongetApplicationColors
()
docs/src/components/ColorPalette/components/ApplicationColors.tsx:20
↓ 1 callersFunctiongetCategoryDescription
()
docs/src/components/ColorPalette/components/GridSemanticColors.tsx:103
↓ 1 callersFunctiongetColorData
()
docs/src/components/ColorPalette/components/SemanticColors.tsx:23
↓ 1 callersFunctiongetColorData
()
docs/src/components/ColorPalette/components/GridSemanticColors.tsx:21
↓ 1 callersFunctiongetColorRecommendations
(colorName: string)
docs/src/components/ColorPalette/utils/colorRecommendations.ts:161
↓ 1 callersFunctiongetColorVariants
()
docs/src/components/ColorPalette/ColorModal.tsx:87
↓ 1 callersFunctiongetColorsByVariant
()
docs/src/components/ColorPalette/components/GridRegularColors.tsx:21
↓ 1 callersFunctiongetColorsByVariant
()
docs/src/components/ColorPalette/components/RegularColors.tsx:28
↓ 1 callersFunctiongetDataAttributes
(level: ContrastLevel)
docs/src/components/ContrastDemo.tsx:46
↓ 1 callersFunctiongetMaterialColors
()
docs/src/components/ColorPalette/components/GridMaterialColors.tsx:66
↓ 1 callersFunctiongetMaterialColors
()
docs/src/components/ColorPalette/components/MaterialColors.tsx:21
↓ 1 callersFunctiongetSearchResults
()
docs/src/components/ColorPalette/components/CommandPalette.tsx:259
↓ 1 callersFunctiongetSortedColors
()
docs/src/components/ColorPalette/components/GridRegularColors.tsx:38
↓ 1 callersFunctiongetSortedColors
()
docs/src/components/ColorPalette/components/RegularColors.tsx:45
↓ 1 callersFunctionhandleCopy
(value: string)
docs/src/components/ColorPalette/ColorModal.tsx:123
↓ 1 callersFunctionhandleLike
(buttonId: string)
docs/src/components/Examples/ButtonExamples.tsx:97
↓ 1 callersFunctionhandleSelect
(optionValue: string)
docs/src/components/ui/Dropdown.tsx:65
↓ 1 callersFunctionitemKeyOf
(item: MenuItem, index: number)
templates/react-starter/src/components/ui/menu/render.tsx:27
↓ 1 callersFunctionnavigateToCategory
(categoryId: ColorCategory)
docs/src/components/ColorPalette/components/CommandPalette.tsx:203
↓ 1 callersFunctionnotify
()
templates/react-starter/src/components/ui/context-menu/store.ts:19
↓ 1 callersFunctionparseOKLCH
(oklchString: string)
packages/colors/src/utils.ts:25
↓ 1 callersFunctionrenderActionItem
(item: MenuActionItem, key: string)
templates/react-starter/src/components/ui/menu/render.tsx:30
↓ 1 callersFunctionrenderColorContent
()
docs/src/components/ColorPalette/ColorGrid.tsx:70
↓ 1 callersFunctionrenderColorLabel
()
docs/src/components/ColorPalette/components/SemanticColors.tsx:62
↓ 1 callersFunctionrenderLevelLabel
(level: string)
docs/src/components/ColorPalette/components/MaterialColors.tsx:42
↓ 1 callersFunctionrenderMenuItems
(items: MenuItem[])
templates/react-starter/src/components/ui/menu/render.tsx:75
↓ 1 callersFunctionrenderSampleButton
()
docs/src/components/ColorPalette/components/ApplicationColors.tsx:39
↓ 1 callersFunctionrenderTextLabel
()
docs/src/components/ColorPalette/components/SemanticColors.tsx:56
↓ 1 callersMethodsnappy
* A spring with a predefined duration and small amount of bounce that feels more snappy.
docs/src/constants/spring.ts:84
↓ 1 callersFunctionstarterDirectoryIndex
()
docs/vite.config.ts:10
↓ 1 callersFunctionupdateLastPointer
(event: MouseEvent | PointerEvent)
templates/react-starter/src/components/ui/context-menu/store.ts:30
↓ 1 callersFunctionuseColorDisplay
(data: ColorData, selectedChannel: ColorChannel)
docs/src/components/ColorPalette/components/ColorSidebar.tsx:30
↓ 1 callersFunctionuseModal
()
templates/react-starter/src/components/ui/modal/context.ts:17
↓ 1 callersFunctionuseModalContext
()
templates/react-starter/src/components/ui/modal/context.ts:11
FunctionAccordion
({ className, ...props }: React.ComponentProps<typeof AccordionPrimitive.Root>)
templates/react-starter/src/components/ui/accordion/accordion.tsx:6
FunctionAccordionContent
({ className, children, ...props }: React.ComponentProps<typeof AccordionPrimitive.Panel>)
templates/react-starter/src/components/ui/accordion/accordion.tsx:52
FunctionAccordionDemo
()
templates/react-starter/src/features/design-mockup/components/display.tsx:34
FunctionAccordionItem
({ className, ...props }: React.ComponentProps<typeof AccordionPrimitive.Item>)
templates/react-starter/src/components/ui/accordion/accordion.tsx:16
FunctionAccordionTrigger
({ className, children, ...props }: React.ComponentProps<typeof AccordionPrimitive.Trigger>)
templates/react-starter/src/components/ui/accordion/accordion.tsx:26
FunctionAdvancedSection
()
templates/react-starter/src/features/design-mockup/components/advanced.tsx:144
FunctionAlert
({ variant, title, description, action, dismissible = false, onDismiss, className = '', }: Alert
docs/src/components/Examples/AlertExamples.tsx:36
FunctionAlertDialog
({ open, onOpenChange, trigger, title, description, children, cancelText = 'Cancel', confirmTe
templates/react-starter/src/components/ui/alert-dialog/alert-dialog.tsx:22
FunctionAlertDialogDemo
()
templates/react-starter/src/features/design-mockup/components/display.tsx:118
FunctionAlertExamples
()
docs/src/components/Examples/AlertExamples.tsx:316
FunctionApp
()
templates/react-starter/src/App.tsx:10
FunctionApp
()
docs/src/App.tsx:12
FunctionApplicationColors
({ selectedVariant, selectedChannel, onColorClick, onCopy, })
docs/src/components/ColorPalette/components/ApplicationColors.tsx:14
FunctionApplicationSwatch
({ name, variants, onClick, })
docs/src/components/ColorPalette/components/GridApplicationColors.tsx:19
FunctionAvatar
({ src, alt, fallback, size = 'md', shape = 'circle', className, }: AvatarProps)
templates/react-starter/src/components/ui/avatar/avatar.tsx:23
FunctionAvatarDemo
()
templates/react-starter/src/features/design-mockup/components/display.tsx:59
FunctionButton
({ ref, className, variant = 'primary', size = 'md', loading, disabled, children, ...props }:
templates/react-starter/src/components/ui/button/button.tsx:28
FunctionButton
({ variant = 'primary', size = 'md', disabled = false, loading = false, children, icon, iconElem
docs/src/components/Examples/ButtonExamples.tsx:33
FunctionButton
({ ref, className, variant = 'primary', size = 'md', asChild, children, ...props }: ButtonProps
docs/src/components/ui/Button.tsx:16
FunctionButtonExamples
()
docs/src/components/Examples/ButtonExamples.tsx:88
FunctionCard
({ ref, className, ...props }: CardProps & { ref?: React.RefObject<HTMLDivElement | null> })
docs/src/components/ui/Card.tsx:7
FunctionCardExamples
()
docs/src/components/Examples/CardExamples.tsx:6
FunctionCategoryHeader
({ section, colorCount }: CategoryHeaderProps)
docs/src/components/ColorPalette/components/ColorSidebar.tsx:421
next →1–100 of 292, ranked by callers