rm-ui-styling

Enforce Foundation SCSS conventions and WCAG 2.1 AA accessibility in Blazor UI styling.

Updated Nov 11, 2023
One-click install
npx skills add https://github.com/michaelvolz/redmuffin.Blazor.StaticWeb --skill rm-ui-styling
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rm-ui-styling
Source: https://github.com/michaelvolz/redmuffin.Blazor.StaticWeb/tree/main/.opencode/skills/redmuffin-standards/rm-ui-styling
Command: npx skills add https://github.com/michaelvolz/redmuffin.Blazor.StaticWeb --skill rm-ui-styling

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

rm-ui-styling keeps Blazor UI styling aligned with Foundation, SCSS best practices, and WCAG 2.1 AA accessibility so layouts remain consistent and compliant instead of drifting across pages.

Core Features & Use Cases

  • SCSS Enforcement: Author all styles in wwwroot/scss with partials that start with _ and include them in app.scss, compiling with the Debug-Sass configuration to avoid touching CSS or .razor.css files.
  • Foundation Patterns: Apply Zurb Foundation grids, button styles, form controls, and visibility helpers served via CDN for rapid, responsive layouts.
  • Accessibility Guidance: Follow semantic HTML, ARIA attributes, focus management, contrast ratio targets, screen reader testing, and skip navigation links to satisfy WCAG 2.1 AA requirements for interactive components.

Quick Start

Use rm-ui-styling to apply Foundation SCSS patterns and WCAG 2.1 AA accessibility guidelines when building the next Blazor component layout.

Frequently Asked Questions about rm-ui-styling

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

FAQPage Schema
How do I style Blazor apps with Foundation SCSS?

To style Blazor apps with Foundation SCSS, author all styles in wwwroot/scss using partials prefixed with an underscore and include them in app.scss. Use the Debug-Sass build configuration and BuildWebCompiler2022 tooling to compile SCSS instead of touching CSS or .razor.css files.

What WCAG 2.1 AA accessibility practices should I follow for Blazor UI components?

WCAG 2.1 AA accessibility for Blazor UI components requires semantic HTML, ARIA attributes, focus management, contrast ratio targets, screen reader testing, and skip navigation links. Applying these practices ensures interactive components remain compliant for users with assistive technologies.

How do I compile SCSS files in a Blazor project?

Compiling SCSS files in a Blazor project requires the Debug-Sass build configuration and BuildWebCompiler2022 tooling. You must organize styles as partials starting with an underscore in wwwroot/scss and include them in app.scss for proper compilation.

Can I use Zurb Foundation patterns for responsive Blazor layouts?

Yes, you can use Zurb Foundation patterns for responsive Blazor layouts by applying Foundation grids, button styles, form controls, and visibility helpers served via CDN. This approach enables rapid, consistent responsive design across Blazor components.

Do I need to avoid CSS or .razor.css files when using Foundation SCSS in Blazor?

Yes, you must avoid touching CSS or .razor.css files when using Foundation SCSS in Blazor. All styling should be authored exclusively in wwwroot/scss partials and compiled through app.scss using the Debug-Sass configuration.

Why are my Foundation SCSS partials not compiling in Blazor?

Foundation SCSS partials may not compile in Blazor if the Debug-Sass build configuration or BuildWebCompiler2022 tooling is not properly set up. Ensure all partials start with an underscore and are included in app.scss before compilation.