用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/ffsshhttiikk/opencode-agents-skills --skill css-frameworks命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | css-frameworks |
| description | CSS frameworks for rapid UI development |
| category | web-development |
| difficulty | intermediate |
| tags | ["css","styling","responsive","ui"] |
| author | OpenCode Community |
| version | 1 |
| last_updated | 2024-01-15T00:00:00.000Z |
I am CSS Frameworks, a collection of pre-written CSS providing ready-to-use components, typography, and layout systems for building modern web interfaces. I represent standardized styling approaches including utility-first frameworks like Tailwind CSS and component-based libraries like Bootstrap. I enable developers to create responsive, accessible, and visually consistent user interfaces without writing custom CSS from scratch. I provide reset/normalize styles to ensure cross-browser consistency, grid and flexbox layouts, pre-designed components (buttons, forms, navigation), and responsive design utilities. Modern CSS frameworks offer customization through configuration files, CSS variables for theming, and modular imports to reduce bundle sizes. I help teams maintain design consistency across projects while significantly accelerating development velocity.
Utility Classes: Small, single-purpose CSS classes (e.g., flex, p-4, text-center) that combine to build designs without custom CSS.
Component Classes: Pre-designed UI elements (buttons, cards, modals) with consistent styling and behavior.
Responsive Breakpoints: Predefined viewport width thresholds for adaptive layouts (mobile, tablet, desktop).
Grid Systems: Column-based layout structures for organizing content systematically.
CSS Custom Properties: CSS variables for theming, dark mode, and dynamic styling.
Prefixing Conventions: BEM, utility prefixes, or component namespaces to prevent style collisions.
Reset/Normalize: Browser consistency styles removing default margins, padding, and inconsistencies.
<!-- Tailwind CSS - Responsive Card Component -->
<div class="min-h-screen bg-gray-100 py-12 px-4 sm:px-6 lg:px-8">
<div class="max-w-3xl mx-auto">
<div class="bg-white rounded-xl shadow-lg overflow-hidden">
<div class="md:flex">
<div class="md:flex-shrink-0">
<img class="h-48 w-full object-cover md:w-48"
src="/api/placeholder/400/400"
alt="Product image">
</div>
<div class="p-8">
<div class="uppercase tracking-wide text-sm text-indigo-500 font-semibold">
Product
</div>
<h3 class="block mt-1 text-lg leading-tight font-medium text-black">
Premium Wireless Headphones
</h3>
<p class="mt-2 text-gray-500">
Experience crystal-clear audio with our latest noise-canceling technology.
</p>
$299
Add to Cart
Card 1
Responsive grid item
<!-- Bootstrap 5 - Responsive Navigation -->
<nav class="navbar navbar-expand-lg navbar-dark bg-primary">
<div class="container">
<a class="navbar-brand" href="#">
<i class="bi bi-cpu me-2"></i>TechApp
</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse"
data-bs-target="#navbarNav">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav me-auto">
<li class="nav-item">
<a class="nav-link active" href=>Home
Products
Software
Hardware
Services
Pricing
Search
Card Title
Content here
Learn More
Confirm Action
Are you sure you want to proceed?
Cancel
Confirm
/* Design Tokens - design-tokens.css */
:root {
/* Colors */
--color-primary: #3b82f6;
--color-primary-dark: #2563eb;
--color-primary-light: #60a5fa;
--color-secondary: #10b981;
--color-accent: #f59e0b;
--color-danger: #ef4444;
--color-warning: #f59e0b;
--color-success: #10b981;
/* Typography */
--font-family-base: 'Inter', system-ui, sans-serif;
--font-size-xs: 0.75rem;
--font-size-sm: 0.875rem;
--font-size-base: 1rem;
--font-size-lg: 1.125rem;
--font-size-xl: 1.25rem;
--font-size-2xl: 1.5rem;
--font-size-3xl: 1.875rem;
/* Spacing */
--spacing-1: 0.25rem;
--spacing-2: 0.5rem;
--spacing-3: 0.75rem;
--spacing-4: 1rem;
--spacing-6: 1.5rem;
--spacing-8: 2rem;
/* Border Radius */
--radius-sm: 0.25rem;
: ;
: ;
: ;
: ;
: ( / );
: - ( / );
: - ( / );
}
{
: ;
: ;
: ;
: ;
: ( / );
: - ( / );
}
(: high) {
{
: ;
: ;
: ;
}
}
/* Grid Layout System - grid.css */
.grid-container {
display: grid;
gap: var(--spacing-4);
padding: var(--spacing-4);
/* Responsive grid columns */
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
grid-auto-rows: minmax(200px, auto);
}
.grid-dashboard {
display: grid;
gap: var(--spacing-4);
grid-template-areas:
"header header"
"sidebar main"
"sidebar stats";
grid-template-columns: 250px 1fr;
grid-template-rows: auto 1fr auto;
min-height: 100vh;
}
@media (max-width: 768px) {
.grid-dashboard {
grid-template-areas:
"header"
"sidebar"
"main"
"stats";
grid-template-columns: 1fr;
}
}
.dashboard-header { grid-area: header; }
.dashboard-sidebar { grid-area: sidebar; }
{ : main; }
{ : stats; }
{
: (--color-bg-primary);
: (--radius-lg);
: (--shadow-md);
: (--spacing-);
}
{
: flex;
: space-between;
: center;
: (--spacing-);
: (--spacing-);
: solid (--color-border);
}
{
: ;
}
{
: (--spacing-);
: (--spacing-);
: solid (--color-border);
}
/* Flex Utilities - flex.css */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.flex-nowrap { flex-wrap: nowrap; }
.justify-start { justify-content: flex-start; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }
.justify-evenly { justify-content: space-evenly; }
.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.items-baseline { align-items: baseline; }
.items-stretch { align-items: stretch; }
.gap-1 { gap: var(--spacing-1); }
.gap-2 { gap: var(--spacing-2); }
.gap-3 { gap: var(--spacing-3); }
.gap-4 { : (--spacing-); }
{ : (--spacing-); }
{ : (--spacing-); }
{ : ; }
{ : auto; }
{ : auto; }
{ : none; }
{ : ; }
{ : ; }
{ : ; }
{ : ; }
{
: ;
: auto;
: (--spacing-);
}
{
: flex;
: center;
: center;
}
{
: flex;
: ;
}
> {
: ;
: ;
}
> {
: ;
: auto;
}