Skip to content

[CSS: Colors] Color Keywords, RGB/RGBA, HSL/HSLA & Gradients — Documentation #87

Description

@ajay-dhangar

This sub-issue covers all CSS color-related documentation, including different color notations, color models, transparency formats, and basic-to-advanced gradient usage. Contributors will explain how each color model works, when to use it, and provide practical UI examples.

This issue includes the following files:

colors
├── color-names.mdx
├── rgb.mdx
├── rgba.mdx
├── hsl.mdx
├── hsla.mdx
├── gradients.mdx

Each MDX file should cover:

  • What the format/model is
  • Syntax
  • Examples
  • Pros / Cons
  • Visual comparisons
  • Real-use cases (UI, buttons, backgrounds, borders)
  • Accessibility notes (contrast, readability)

Tasks

Color Formats

  • Document color names (CSS keywords)
  • Document RGB
  • Document RGBA
  • Document HSL
  • Document HSLA

Gradients

  • Document CSS gradients

    • Linear gradients
    • Radial gradients
    • Conic gradients
    • Repeating gradients (optional)

General Tasks

  • Add visual examples showing differences in color formats
  • Provide examples for light/dark themes
  • Add accessibility suggestions (contrast ratios, WCAG notes)
  • Cross-link to Backgrounds, Typography, and Best Practices
  • Ensure MDX works correctly inside Docusaurus

Suggested Structure for Each File

  • Overview
  • Why this color model is used
  • Syntax
  • Examples
  • Common mistakes
  • Best practices
  • UI usage examples
  • Tools for color picking (optional mention)
  • Related links

Expected Outcome

A full-color documentation set that helps learners understand how to style UI elements effectively using CSS color systems, with practical examples and accessible color choices.

Activity

  1. added this to the CSS Docs milestone on Nov 15, 2025
  2. github-actions commented on Nov 15, 2025

    @github-actions

    Hi @ajay-dhangar! Thanks for opening this issue. We appreciate your contribution to this open-source project. Your input is valuable and we aim to respond or assign your issue as soon as possible. Thanks again!

  3. github-actions commented on Nov 15, 2025

    @github-actions

    Thanks for adding the documentation label!


    This issue is now marked as needing content updates for the CodeHarborHub site. Please ensure the description contains all necessary technical details.

  4. linked a pull request that will close this issueDone colors task in css #107on Nov 21, 2025
  5. self-assigned this
    on Nov 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions