Open In App

Primer CSS Primary Link

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:

Syntax



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

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




<!DOCTYPE html>
<html>
  
<head>
    <title>Primer CSS Links Primary</title>
    <link rel="stylesheet" href=
</head>
  
<body>
    <h1 style="color:green">GeeksforGeeks</h1>
    <h3>Primer CSS Links Primary</h3>
  
    To go to GeeksforGeeks
    <a href="https://www.geeksforgeeks.org" 
        class="Link--primary">
        Click Me
    </a>
</body>
  
</html>

Output:

 

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




<!DOCTYPE html>
<html>
  
<head>
    <title>Primer CSS Links Primary</title>
    <link rel="stylesheet" href=
</head>
  
<body>
    <h1 style="color:green">GeeksforGeeks</h1>
    <h3>Primer CSS Links Primary</h3>
    <h2>To go to GeeksforGeeks
        <a href="https://www.geeksforgeeks.org" 
            class="Link--primary">
            Click Me
        </a>
    </h2>
</body>
  
</html>

Output:

 

References: https://primer.style/css/components/links#primary-link


Article Tags :