Skip to content
Prompt

callers — Cursor Rules

by andreasalomone

AI Summary

Heuristic scoring (no AI key configured).

Install

Copy this and paste it into Claude Code, Cursor, or any AI assistant:

I want to add the "callers — Cursor Rules" prompt rules to my project.
Repository: https://github.com/andreasalomone/callers

Please read the repo to find the rules/prompt file, then:
1. Download it to the correct location (.cursorrules, .windsurfrules, .github/prompts/, or project root — based on the file type)
2. If there's an existing rules file, merge the new rules in rather than overwriting
3. Confirm what was added

Description

Cursor Rules for callers

CSS Coding Guidelines

• Naming Convention (e.g., BEM, SUIT CSS, or similar): • Principle: Use a consistent and predictable naming convention for classes to avoid conflicts, improve readability, and make CSS more maintainable. • Application: Choose a methodology like BEM (Block, Element, Modifier) (e.g., .block__element--modifier) or another systematic approach. Be consistent throughout the project. Avoid overly generic names and ID selectors for styling. • Modularity and Scalability (e.g., ITCSS, SMACSS): • Principle: Structure CSS in a way that is modular, scalable, and easy to manage, especially in larger projects. • Application: Consider architectural approaches like ITCSS (Inverted Triangle CSS) or SMACSS (Scalable and Modular Architecture for CSS). Break CSS into logical components/modules. Use preprocessors (Sass, Less) to enhance organization with variables, mixins, and nesting (used judiciously). • Readability and Formatting: • Principle: Write CSS that is easy to read and understand. • Application: Be consistent with formatting (e.g., indentation, spacing, one property per line or multi-line). Logically order properties (e.g., positioning, box model, typography, visual). Comment non-obvious sections or complex selectors. • Performance and Selectors: • Principle: Write efficient CSS that doesn't negatively impact page rendering performance. Application: Avoid overly complex or qualified selectors. Minimize the use of the universal selector (`) and descendant selectors where class-based selectors are more efficient. Avoid using !important` unless absolutely necessary for overriding external styles or utility classes. • Responsiveness and Units: • Principle: Design CSS to be responsive and adaptable to different screen sizes and devices. • Application: Use relative units (e.g., em, rem, %, vw, vh) for flexible layouts and typography where appropriate. Employ media queries for responsive adjustments. Consider a mobile-first or desktop-first approach consistently. • Separation of Concerns: • Principle: Keep CSS focused on presentation, separate from HTML structure and JavaScript behavior. • Application: Avoid inline styles in HTML. JavaScript should primarily toggle classes to change styling, rather than directly manipulating CSS properties. • Conciseness (Shorthand Properties): • Principle: Use shorthand properties where appropriate to reduce code verbosity, but ensure readability is maintained. • Application: Use properties like margin, padding, font, background shorthand when setting multiple related values. For example, margin: 10px 15px; instead of margin-top: 10px; margin-right: 15px; margin-bottom: 10px; margin-left: 15px; (if all sides are symmetrical or paired). • Accessibility: • Principle: Ensure CSS choices support accessibility. • Application: Ensure sufficient color contrast. Avoid relying solely on color to convey information. Make sure focus states (:focus) are clearly visible. Use prefers-reduced-motion media query for users sensitive to animations.

Discussion

0/2000
Loading comments...

Health Signals

MaintenanceCommitted 10mo ago
Stale
AdoptionUnder 100 stars
0 ★ · Niche
DocsMissing or thin
Undocumented

GitHub Signals

Issues0
Updated10mo ago
View on GitHub
No License

My Fox Den

Community Rating

Sign in to rate this booster

Works With

Any AI assistant that accepts custom rules or system prompts

Claude
ChatGPT
Cursor
Windsurf
Copilot
+ more