Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@phila/phila-ui-core

Package Overview
Dependencies
Maintainers
4
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@phila/phila-ui-core

Core utilities and styles for Phila UI library

latest
npmnpm
Version
2.0.0
Version published
Weekly downloads
370
421.13%
Maintainers
4
Weekly downloads
 
Created
Source

@phila/phila-ui-core

Core utilities and styles for the Phila UI library. This package provides shared TypeScript utilities and design tokens for testing purposes.

Features

  • Design Tokens: Essential colors, spacing, typography, and border radius
  • TypeScript Utilities: Class name utilities and type definitions
  • Type Safety: Full TypeScript support with comprehensive type definitions
  • Vanilla CSS: Pure CSS approach without external dependencies

Installation

pnpm add @phila/phila-ui-core

Usage

Design Tokens

import { colors, spacing, typography, borderRadius } from "@phila/phila-ui-core";

// Use design tokens in your styles
const buttonStyles = {
  backgroundColor: colors.primary[500],
  padding: spacing[4],
  fontSize: typography.fontSizes.base,
  borderRadius: borderRadius.md,
};

Class Name Utilities

import { cn } from "@phila/phila-ui-core";

// Combine class names efficiently
const buttonClass = cn("base-button", "active", className);

Type Definitions

import type { Size, Color, Variant, StyledProps } from "@phila/phila-ui-core";

interface ButtonProps extends StyledProps {
  children: React.ReactNode;
  onClick?: () => void;
}

Design Tokens

Colors

  • Primary: Blue shades for main actions
  • Secondary: Gray shades for secondary actions

Spacing

Essential spacing scale: 2, 4, 6 (0.5rem, 1rem, 1.5rem)

Typography

  • Font Sizes: sm, base, lg

Border Radius

  • Sizes: base, md

TypeScript Support

The package includes TypeScript definitions for all utilities and design tokens.

License

MIT

Keywords

ui

FAQs

Package last updated on 02 Oct 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts