VOOZH about

URL: https://www.geeksforgeeks.org/css/primer-css-primary-link/

โ‡ฑ Primer CSS Primary Link - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Primer CSS Primary Link

Last Updated : 23 Jul, 2025

Primer CSS is a free open-source CSS framework that is built upon systems that create the foundation of the basic style elements such as spacing, typography, and color. This systematic method makes sure our patterns are steady and interoperable with every other. Its approach to CSS is influenced by Object-Oriented CSS principles, functional CSS, and BEM architecture. It is highly reusable and flexible. It is created with GitHubโ€™s design system.

In this article, we will learn about Primer CSS Primary Links. Primer CSS Primary Links is used to turn the link color to blue only when you hover on it. 

Primer CSS Primary Link class:

  • Link--primary: This class is used to turn the link color to blue only when you hover on it. 

Syntax

<a class="Link--primary" href="#">
 ...
</a>

Example 1: Below example demonstrates the use of Primer CSS Primary link.

Output:

๐Ÿ‘ Image
 


Example 2: Below example demonstrates the use of Primer CSS Primary link under the heading tag.

Output:

๐Ÿ‘ Image
 

References: https://primer.style/#primary-link

Comment