
Product
Introducing Webhook Events for Alert Changes
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.
@pitcher/css
Advanced tools
Pitcher UI Framework - A comprehensive CSS framework with components for building modern web applications
A comprehensive CSS framework with components for building modern web applications, specifically designed for Pitcher embedded apps.
@pitcher/js-api<link
href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;600;700&display=swap"
rel="stylesheet"
/>
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"
/>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@pitcher/css" />
<script src="https://cdn.jsdelivr.net/npm/@pitcher/js-api"></script>
npm install @pitcher/css
<link rel="stylesheet" href="node_modules/@pitcher/css/pitcher-ui.css" />
To develop or debug the CSS locally, change the import from CDN to a local file:
<!-- Production (CDN) -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@pitcher/css" />
<!-- Development (Local File) -->
<link rel="stylesheet" href="pitcher-ui.css" />
This allows you to make changes to pitcher-ui.css and see them reflected immediately without publishing to NPM.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link
href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;600;700&display=swap"
rel="stylesheet"
/>
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"
/>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@pitcher/css" />
<script src="https://cdn.jsdelivr.net/npm/@pitcher/js-api"></script>
</head>
<body>
<div class="p-card">
<div class="p-card-header">Hello Pitcher</div>
<div class="p-card-body">
<p>Your first Pitcher UI component!</p>
<button class="p-btn p-btn-primary">Click Me</button>
</div>
</div>
<script>
// Initialize Pitcher API and apply instance color
const api = window.pitcher?.useApi();
if (api) {
const env = await api.getEnv();
const instanceColor = env.pitcher?.instance?.color;
if (instanceColor) {
document.documentElement.style.setProperty('--p-primary', instanceColor);
}
}
</script>
</body>
</html>
The framework includes the following components:
.p-card, .p-card-header, .p-card-body, .p-card-footer.p-panel.p-breadcrumb.p-input.p-textarea.p-select.p-checkbox.p-radio.p-toggle.p-label, .p-label.required.p-file-upload.p-btn, .p-btn-primary, .p-btn-secondary, .p-btn-success, .p-btn-danger, .p-btn-warning, .p-btn-info, .p-btn-text.p-btn-sm, .p-btn-lg.action-button.p-alert, .p-alert-success, .p-alert-error, .p-alert-warning, .p-alert-info.p-badge, .p-badge-success, .p-badge-error, .p-badge-warning, .p-badge-info.p-tag, .p-tag-success, .p-tag-error, .p-tag-warning, .p-tag-info.p-toast, .p-toast-container.p-progress, .p-progress-bar.p-spinner.p-skeleton, .p-skeleton-text, .p-skeleton-title, .p-skeleton-circle, .p-skeleton-button.p-tabs, .p-tab, .p-tab-content.p-accordion, .p-accordion-item, .p-accordion-header, .p-accordion-body.p-dropdown, .p-dropdown-menu, .p-dropdown-item.p-tooltip, .p-tooltip-text.p-pagination, .p-pagination-item.p-table, .p-table-striped.p-list-group, .p-list-item.p-avatar, .p-avatar-sm, .p-avatar-md, .p-avatar-lg, .p-avatar-xl, .p-avatar-group.p-modal, .p-modal-content, .p-modal-header, .p-modal-body, .p-modal-footer.p-m-*, .p-p-*, .p-mt-*, .p-mb-* (0-4).p-flex, .p-flex-col, .p-flex-wrap, .p-items-center, .p-justify-between, .p-gap-*.p-text-xs, .p-text-sm, .p-text-md, .p-text-lg, .p-text-center, .p-text-uppercase.p-text-primary, .p-text-success, .p-text-error, .p-text-warning, .p-text-gray, .p-text-muted.p-font-normal, .p-font-medium, .p-font-semibold, .p-font-boldThe framework uses CSS variables for easy theming:
:root {
/* Primary Colors */
--p-primary: #29335c;
--p-primary2: #4e5983;
--p-primary3: #7e88b1;
--p-primary4: #bfc5df;
--p-primary5: #e0e2ed;
--p-primary6: #f7f8fb;
/* Status Colors */
--p-success: #57a40f;
--p-error: #bc1637;
--p-warning: #e5c302;
--p-info: #5bbfe3;
/* Spacing */
--spacing-1: 0.25rem;
--spacing-2: 0.5rem;
--spacing-3: 0.75rem;
--spacing-4: 1rem;
/* ... and more */
}
Override these variables to customize the theme:
:root {
--p-primary: #3b82f6; /* Custom blue */
}
The framework automatically applies your Pitcher instance color when embedded:
async function applyInstanceColor() {
const api = window.pitcher?.useApi();
if (!api) return;
const env = await api.getEnv();
const instanceColor = env.pitcher?.instance?.color;
if (instanceColor) {
document.documentElement.style.setProperty("--p-primary", instanceColor);
}
}
See index.html for comprehensive component examples and usage patterns.
MIT
Issues and pull requests are welcome! This framework is specifically designed for Pitcher embedded apps but can be used in any web project.
@pitcher/csshttps://cdn.jsdelivr.net/npm/@pitcher/css@pitcher/js-apiFAQs
Pitcher UI Framework - A comprehensive CSS framework with components for building modern web applications
We found that @pitcher/css demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 7 open source maintainers collaborating on the project.
Did you know?

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.

Product
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.

Security News
ENISA has become a CVE Program Root, giving the EU a central authority for coordinating vulnerability reporting, disclosure, and cross-border response.

Product
Socket now scans OpenVSX extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.