PigUI

A Svelte 5 component library themed entirely by Tailwind CSS V4 semantic tokens. Override the tokens in one @theme block to reskin every component — light and dark in one go.

Button

import { Button } from 'pigui'

Four variants across three sizes, with optional icons and a round icon-only mode.

Variants
Sizes
Icons & states

Badge

import { Badge } from 'pigui'

Compact labels that share the variant and status palettes.

Variants & statuses
primarysecondarytertiarylinknonedangersuccesswarninginfo
Sizes
smmdlg

Loader

import { Loader } from 'pigui'

A minimal spinner for pending states.

Progress

import { Progress } from 'pigui'

A determinate progress bar in every status color and size.

Input

import { Input } from 'pigui'

Text, number (with decimals and separators), and password fields.

Select

import { Select } from 'pigui'

A native select styled with the token palette.

Card

import { Card } from 'pigui'

Wraps arbitrary content in a themed surface with a border and rounded corners.

Card title

Cards wrap arbitrary content in a themed surface with a border and rounded corners.

ButtonGroup

import { ButtonGroup } from 'pigui'

Segments a set of related buttons into a single bordered control.

CopyButton

import { CopyButton } from 'pigui'

A button that runs a copy action and flips to a checkmark for feedback.

Checkbox

import { Checkbox } from 'pigui'

A checkbox that allows user to toggle an option.

Alert

import { Alert } from 'pigui'

Inline status messages, optionally dismissible via onClose.

Tooltip

import { Tooltip } from 'pigui'

Hover or focus a target to reveal a positioned tooltip.

Tabbar

import { Tabbar } from 'pigui'

A segmented tab control that binds to the selected value.

Pagination

import { Pagination } from 'pigui'

Page controls with a customizable label.

Page: 3 / 10

Dialog

import { Dialog } from 'pigui'

A focused confirm/cancel prompt for destructive actions.

Delete row?
This action cannot be undone.

Popover

import { Popover } from 'pigui'

Arbitrary content anchored to a trigger, dismissed on outside click or Escape.

Popover

Click outside or press Escape to dismiss.

Floating

import { Floating } from 'pigui'

The positioning primitive behind Dropdown/Popover — anchor any content with the native popover API.

Anchored to the button with the native popover API.

Toast

import { showToast, ToastContainer } from 'pigui'

Fire transient notifications from anywhere with showToast(). Render one ToastContainer at the app root.

SearchSelect

import { SearchSelect } from 'pigui'

A filterable combobox.

DateSelector

import { DateSelector } from 'pigui'

An inline calendar for choosing a date.

January 1970
Mon
Tue
Wed
Thu
Fri
Sat
Sun

TimeSelector

import { TimeSelector } from 'pigui'

An inline stepped time list.

DatePicker

import { DatePicker } from 'pigui'

A text field with a calendar popover.

January 1970
Mon
Tue
Wed
Thu
Fri
Sat
Sun

TimePicker

import { TimePicker } from 'pigui'

A time field with a stepped dropdown.

Accordion

import { Accordion } from 'pigui'

Collapsible sections, optionally exclusive so only one stays open.

What is PigUI?

A Svelte 5 component library themed entirely by Tailwind CSS semantic tokens.

How is it themed?

Every color comes from a semantic token defined in theme.css.

Does it support dark mode?

Yes — tokens use light-dark(), so the color-scheme property switches the palette.

Table

import { Table } from 'pigui'

A sortable data table with optional filtering, foldable columns, editing, and a summary row.

Plain
Ada LovelaceEngineer36.00
Grace HopperAdmiral85.00
Alan TuringMathematician41.00
Margaret HamiltonEngineer88.00
Katherine JohnsonMathematician101.00
Edsger DijkstraProfessor72.00
Per Page
Delete Row?
Do you really want to remove this row?
Filterable
Ada LovelaceEngineer36.00
Grace HopperAdmiral85.00
Alan TuringMathematician41.00
Margaret HamiltonEngineer88.00
Katherine JohnsonMathematician101.00
Edsger DijkstraProfessor72.00
Per Page
Delete Row?
Do you really want to remove this row?
Foldable
Ada LovelaceEngineer36.00
Grace HopperAdmiral85.00
Alan TuringMathematician41.00
Margaret HamiltonEngineer88.00
Katherine JohnsonMathematician101.00
Edsger DijkstraProfessor72.00
Per Page
Delete Row?
Do you really want to remove this row?
Editable
Total423.00
Per Page
Delete Row?
Do you really want to remove this row?
Selectable
Ada LovelaceEngineer36.00
Grace HopperAdmiral85.00
Alan TuringMathematician41.00
Margaret HamiltonEngineer88.00
Katherine JohnsonMathematician101.00
Edsger DijkstraProfessor72.00
Selected: 00.00
Per Page
Delete Row?
Do you really want to remove this row?
Built with PigUI · themed by Tailwind CSS V4 semantic tokens · source on GitHub