npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@tachui/symbols

v0.8.1-alpha

Published

SwiftUI-inspired symbol/icon system for tachUI framework

Readme

@tachui/symbols

SwiftUI-inspired symbol and icon system for tachUI framework

npm version License: MPL-2.0

Overview

The tachUI symbols package provides a comprehensive icon system with 1000+ symbols from Lucide, SF Symbols compatibility, and SwiftUI-style rendering with full customization support.

Features

  • 🎯 1000+ Icons - Complete Lucide icon library with SF Symbols mapping
  • 🎨 SwiftUI-style API - Familiar Symbol() component and modifiers
  • 🔧 Full Customization - Size, color, weight, and style variants
  • Performance-optimized - Tree-shakable with selective imports
  • 🎪 Multiple Styles - Filled, outlined, duotone, and custom variants
  • 🔧 TypeScript-first - Complete type safety with autocomplete

Installation

npm install @tachui/[email protected] @tachui/[email protected]
# or
pnpm add @tachui/[email protected] @tachui/[email protected]

Using Modifiers

To use modifiers with Symbol components, you also need to install and import the modifiers package:

npm install @tachui/modifiers
# or
pnpm add @tachui/modifiers

Then import it in your application:

import '@tachui/modifiers' // Registers all modifiers
import { Symbol } from '@tachui/symbols'

// Now you can use modifiers
Symbol('heart').modifier.padding(16).foregroundColor('#ff0000').build()

Quick Start

Basic Usage

import '@tachui/modifiers' // Required for modifier support
import { VStack, HStack, Text } from '@tachui/core'
import { Symbol } from '@tachui/symbols'

const iconDemo = VStack({
  children: [
    HStack({
      children: [
        Symbol('heart.fill').modifier.foregroundColor('red').size(24).build(),

        Text('Favorite').modifier.fontSize(16).build(),
      ],
      spacing: 8,
      alignment: 'center',
    }).build(),

    Symbol('star.circle')
      .modifier.size(48)
      .foregroundColor('#FFD700')
      .symbolRenderingMode('palette')
      .build(),
  ],
  spacing: 16,
}).build()

Icon Variants

import { Symbol } from '@tachui/symbols'

// Different symbol styles
const iconStyles = VStack({
  children: [
    // Outlined (default)
    Symbol('heart').modifier.size(32).build(),

    // Filled
    Symbol('heart.fill').modifier.size(32).foregroundColor('#ff4757').build(),

    // Circle variants
    Symbol('heart.circle').modifier.size(32).build(),

    Symbol('heart.circle.fill')
      .modifier.size(32)
      .foregroundColor('#3742fa')
      .build(),
  ],
  spacing: 12,
}).build()

Symbol System

SF Symbols Compatibility

tachUI symbols provides SF Symbols naming compatibility:

// SF Symbols style names
Symbol('person.fill')
Symbol('house.fill')
Symbol('star.circle')
Symbol('heart.slash')
Symbol('arrow.up.circle.fill')
Symbol('magnifyingglass')
Symbol('gearshape.fill')

Lucide Icons

Access the full Lucide icon library:

import { LucideIcon } from '@tachui/symbols'

// Direct Lucide icon usage
LucideIcon('user-circle')
LucideIcon('home')
LucideIcon('search')
LucideIcon('settings')

Custom Symbol Sets

import { createSymbolSet, registerSymbolSet } from '@tachui/symbols'

const customIcons = createSymbolSet('custom', {
  logo: '<svg>...</svg>',
  'brand-icon': '<svg>...</svg>',
  'custom-arrow': '<svg>...</svg>',
})

registerSymbolSet('custom', customIcons)

// Use custom symbols
Symbol('custom.logo')
Symbol('custom.brand-icon')

Symbol Modifiers

Size and Scaling

Symbol('star.fill')
  .modifier.size(24) // Fixed size
  .symbolScale('small') // 'small' | 'medium' | 'large'
  .symbolWeight('regular') // 'ultralight' | 'thin' | 'light' | 'regular' | 'medium' | 'semibold' | 'bold' | 'heavy' | 'black'
  .build()

Color and Rendering

Symbol('heart.fill')
  .modifier.foregroundColor('#ff4757')
  .symbolRenderingMode('monochrome') // 'monochrome' | 'multicolor' | 'hierarchical' | 'palette'
  .build()

// Multi-color symbols
Symbol('flag.fill')
  .modifier.symbolRenderingMode('palette')
  .primaryColor('#ff4757')
  .secondaryColor('#3742fa')
  .tertiaryColor('#2ed573')
  .build()

Animation

Symbol('heart')
  .modifier.size(32)
  .symbolEffect('bounce') // 'bounce' | 'pulse' | 'variable' | 'scale'
  .symbolEffectOptions({
    repeating: true,
    speed: 'normal',
  })
  .build()

Icon Categories

System Icons

// System and UI
Symbol('gear.fill') // Settings
Symbol('person.circle') // User profile
Symbol('bell.fill') // Notifications
Symbol('magnifyingglass') // Search
Symbol('plus.circle.fill') // Add/Create

// Navigation
Symbol('house.fill') // Home
Symbol('arrow.left') // Back
Symbol('arrow.right') // Forward
Symbol('chevron.up') // Collapse
Symbol('chevron.down') // Expand

Communication

// Messaging
Symbol('message.circle.fill')
Symbol('phone.fill')
Symbol('video.fill')
Symbol('mail.fill')
Symbol('paperplane.fill')

// Social
Symbol('heart.fill')
Symbol('star.fill')
Symbol('share.fill')
Symbol('bookmark.fill')

Media & Files

// Media controls
Symbol('play.fill')
Symbol('pause.fill')
Symbol('stop.fill')
Symbol('forward.fill')
Symbol('backward.fill')

// File types
Symbol('doc.fill')
Symbol('folder.fill')
Symbol('photo.fill')
Symbol('music.note')
Symbol('video.circle.fill')

Advanced Features

Dynamic Symbols

import { createDynamicSymbol } from '@tachui/symbols'

const batterySymbol = createDynamicSymbol({
  base: 'battery',
  variants: {
    0: 'battery.0percent',
    25: 'battery.25percent',
    50: 'battery.50percent',
    75: 'battery.75percent',
    100: 'battery.100percent',
  },
})

const [batteryLevel, setBatteryLevel] = createSignal(75)

batterySymbol(() => batteryLevel())
  .modifier.size(24)
  .foregroundColor(() => (batteryLevel() < 25 ? 'red' : 'green'))
  .build()

Symbol Collections

import { SymbolCollection } from '@tachui/symbols'

const toolbarSymbols = SymbolCollection({
  symbols: [
    { name: 'square.and.pencil', action: () => edit() },
    { name: 'trash.fill', action: () => delete() },
    { name: 'square.and.arrow.up', action: () => share() }
  ],
  spacing: 16,
  size: 20
}).build()

Accessibility

Built-in accessibility features:

Symbol('heart.fill')
  .modifier.accessibilityLabel('Add to favorites')
  .accessibilityHint('Double tap to add this item to your favorites')
  .accessibilityRole('button')
  .build()

Icon Search and Discovery

Available Icons

import { getAvailableSymbols, searchSymbols } from '@tachui/symbols'

// Get all available symbols
const allSymbols = getAvailableSymbols()

// Search for specific symbols
const heartIcons = searchSymbols('heart')
const circleIcons = searchSymbols('circle')
const systemIcons = searchSymbols('system', { category: 'ui' })

Icon Preview

import { SymbolGrid } from '@tachui/symbols'

const iconBrowser = SymbolGrid({
  symbols: searchSymbols('star'),
  columns: 6,
  symbolSize: 32,
  onSymbolTap: symbolName => {
    console.log(`Selected: ${symbolName}`)
  },
}).build()

Styling and Theming

Symbols inherit tachUI's modifier system:

Symbol('star.fill')
  .modifier.size(24)
  .foregroundColor('#FFD700')
  .padding(8)
  .backgroundColor('#f8f9fa')
  .cornerRadius(6)
  .shadow({ x: 0, y: 2, radius: 4, color: 'rgba(0,0,0,0.1)' })
  .onTap(() => console.log('Star tapped!'))
  .build()

Performance

  • Tree-shakable - Only bundle icons you actually use
  • Optimized SVG - Minified and compressed icon data
  • Lazy loading - Icons loaded on-demand
  • Caching - Automatic icon caching and reuse

Examples

Check out complete examples:

API Reference

Requirements

  • @tachui/core ^0.1.0 or later
  • TypeScript 5.0+ (recommended)

Contributing

See the main Contributing Guide for information on contributing to tachUI symbols.

License

Mozilla Public License 2.0 - see LICENSE for details.