Automated summary
A collection of framework-agnostic CSS patterns for typography, color, motion, and spatial composition aimed at giving interfaces a distinctive visual character.
Strengths
- Ships copy-ready CSS variables (clamp-based type scales, palettes, keyframes) that can be dropped in directly
- Suggests font pairings grouped by mood (luxury, brutalist, playful) instead of defaulting to system fonts
- Bridges plain CSS and Tailwind theme extension in one reference
- Gives concrete tactics for breaking the grid: asymmetry, overlap, diagonal flow
Limitations
- These are style guidelines, not full application code or ready-made components
- The named typefaces (Clash Display, Satoshi, etc.) are not freely available by default and must be licensed or loaded separately
- No coverage of accessibility, animation performance, or browser compatibility
Reach for it when an interface needs to escape generic framework styling and adopt a coherent typographic and color art direction.
Skip it on projects bound to an existing brand style guide or strict accessibility and performance constraints.
Security analysis
SafeThe skill contains only static CSS and configuration guidance with no executable instructions, network calls, destructive commands, or data exfiltration. No tools are declared or used.
No concerns found
How this analysis is madeExamples
Restyle this Vite + React landing page hero so it stops looking like a generic Tailwind template — give it a bold typographic scale, a tight 3-color palette with a sharp accent, and a staggered reveal animation on load.Extend my tailwind.config.js with a display font pairing, a brand accent color plus muted variant, and custom clamp-based font sizes for hero, display, heading, and body text.Make my hero image overlap the header and extend past the container edge, and add a subtle gradient overlay plus a glow on the accent element.name: frontend-css-patterns description: Framework-agnostic CSS patterns for typography, color, motion, and spatial composition. allowed-tools: []
Frontend CSS Patterns
Implementation patterns for distinctive visual design.
Typography
/* AVOID: Generic defaults */
font-family: Inter, system-ui, sans-serif;
/* PREFER: Distinctive pairings */
--font-display: 'Clash Display', 'Space Grotesk', sans-serif;
--font-body: 'Satoshi', 'General Sans', sans-serif;
/* Specific moods */
--font-luxury: 'Cormorant Garamond', serif;
--font-brutalist: 'JetBrains Mono', monospace;
--font-playful: 'Fredoka', 'Quicksand', sans-serif;
Typography scale:
:root {
--text-hero: clamp(3rem, 10vw, 8rem);
--text-display: clamp(2rem, 5vw, 4rem);
--text-heading: clamp(1.5rem, 3vw, 2.5rem);
--text-body: clamp(1rem, 1.5vw, 1.125rem);
}
Color & Theme
:root {
/* Dominant + sharp accent */
--color-bg: #0a0a0a;
--color-fg: #fafafa;
--color-accent: #ff3366;
--color-accent-muted: #ff336633;
}
Commit to: high contrast, limited palette (3-4 colors), accent colors that pop.
Motion
Focus on high-impact moments over scattered micro-interactions:
@keyframes fadeInUp {
from { opacity: 0; transform: translateY(20px); }
to { opacity: 1; transform: translateY(0); }
}
.reveal {
animation: fadeInUp 0.6s ease-out forwards;
}
.reveal:nth-child(1) { animation-delay: 0.1s; }
.reveal:nth-child(2) { animation-delay: 0.2s; }
Focus on: page load sequences, scroll-triggered reveals, state transitions.
Spatial Composition
Break the grid:
- Asymmetry: Offset elements intentionally
- Overlap: Layer elements for depth
- Diagonal flow: Guide the eye dynamically
- Whitespace: Let content breathe
.hero-image {
position: relative;
top: -5vh; /* Overlap the header */
right: -2rem; /* Extend past container */
}
Visual Details
/* Gradient overlay */
.card::before {
content: '';
position: absolute;
inset: 0;
background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.05));
pointer-events: none;
}
/* Glow effects */
.accent-element {
box-shadow: 0 0 20px var(--color-accent-muted), 0 0 40px var(--color-accent-muted);
}
Tailwind Customization
Customize the theme—don't use defaults:
// tailwind.config.js
module.exports = {
theme: {
extend: {
fontFamily: { display: ['Clash Display', 'sans-serif'] },
colors: { brand: { DEFAULT: '#ff3366', muted: 'rgba(255, 51, 102, 0.2)' } },
},
},
}
From the file to a first result
The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.
View the source and supporting filesThis download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.
1. Download the file
Download SKILL.mdFrom the root of a test project, save the file as .skill-downloads/frontend-css-patterns-msy76b63/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.
Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.
mkdir -p '.skill-downloads/frontend-css-patterns-msy76b63' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/frontend-css-patterns-msy76b63/download' --output '.skill-downloads/frontend-css-patterns-msy76b63/SKILL.md.part' && mv '.skill-downloads/frontend-css-patterns-msy76b63/SKILL.md.part' '.skill-downloads/frontend-css-patterns-msy76b63/SKILL.md'2. Check prerequisites
Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.
No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.
The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.
3. Load the skill
After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.
Claude Code
test -f '.skill-downloads/frontend-css-patterns-msy76b63/SKILL.md' && test -s '.skill-downloads/frontend-css-patterns-msy76b63/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/frontend-css-patterns' && cp -R '.skill-downloads/frontend-css-patterns-msy76b63' '.claude/skills/frontend-css-patterns'Cursor
test -f '.skill-downloads/frontend-css-patterns-msy76b63/SKILL.md' && test -s '.skill-downloads/frontend-css-patterns-msy76b63/SKILL.md' && mkdir -p '.cursor/skills' && test ! -e '.cursor/skills/frontend-css-patterns' && cp -R '.skill-downloads/frontend-css-patterns-msy76b63' '.cursor/skills/frontend-css-patterns'Codex
test -f '.skill-downloads/frontend-css-patterns-msy76b63/SKILL.md' && test -s '.skill-downloads/frontend-css-patterns-msy76b63/SKILL.md' && mkdir -p '.agents/skills' && test ! -e '.agents/skills/frontend-css-patterns' && cp -R '.skill-downloads/frontend-css-patterns-msy76b63' '.agents/skills/frontend-css-patterns'OpenSkills
OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.
Official OpenSkills installationopenskills install './.skill-downloads/frontend-css-patterns-msy76b63'openskills read 'frontend-css-patterns-msy76b63'Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.
For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.
openskills syncManual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.
4. Try a first task
Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:
Read .skill-downloads/frontend-css-patterns-msy76b63/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.
React Hook Form Best Practices
Development
Master React Hook Form: avoid anti-patterns, manage subscriptions, and handle reset, dirty state, and controlled inputs correctly.
Emotion to Mantine Migration
Development
Migrate Emotion styled-components to Mantine components with style props and CSS modules. Use when converting .styled.tsx files or removing @emotion imports.
Scope Creep Detector
Development
Analyzes git diffs against a stated intent to detect scope creep, unrelated files, broad PRs, and oversized changes, then suggests keep, split, or justify actions.