css

Codify CSS typography and spacing guidelines using rem, calc, and em units.

3|Updated Jul 13, 2020
One-click install
npx skills add https://github.com/nieomylnieja/dotfiles --skill css-nieomylnieja
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: css
Source: https://github.com/nieomylnieja/dotfiles/tree/main/config/agents/skills/css
Command: npx skills add https://github.com/nieomylnieja/dotfiles --skill css-nieomylnieja

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

CSS quality and maintainability can degrade as projects scale. This skill provides concise, actionable guidelines to keep typography and spacing consistent.

Core Features & Use Cases

  • Base font-size defined in rem with calc-based sizing
  • Use em for letter-spacing
  • Avoid px values to improve accessibility and scalability
  • Provide responsive typography guidance for components and layouts

Quick Start

Set the base font-size using rem units, use calc to size text relative to the base, and prefer em for letter-spacing while avoiding pixel values.

Frequently Asked Questions about css

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
Why should I use rem and em units instead of pixels for CSS typography?

Using rem and em units for CSS typography instead of px values improves accessibility and scalability, ensuring text and letter-spacing adapt properly to user browser settings and responsive layouts.

How do I calculate responsive font sizes using rem and calc in CSS?

Define your base font-size using rem units, then apply calc-based sizing to scale text relative to that base, ensuring consistent responsive typography across components and layouts.

What is the best way to maintain CSS spacing and typography quality as a project scales?

To maintain CSS quality and spacing as projects scale, apply a lightweight style-best-practices checklist that codifies typography guidelines, ensuring consistent rem-based sizing and em-based letter-spacing.

When should I use em units for letter-spacing in frontend projects?

Use em units for letter-spacing in frontend projects to maintain scalable and accessible typography, ensuring character spacing remains proportionate to the text size rather than using fixed pixel values.

Can I embed these CSS typography guidelines into AI-assisted workflows?

Yes, these CSS typography and spacing guidelines function as a lightweight style-best-practices checklist designed to be embedded directly into AI-assisted frontend development workflows.