Open In App

Primer CSS Muted Link

Improve
Improve
Like Article
Like
Save
Share
Report

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 Muted Links. It is used to remove the underline on the hover.

Primer CSS Muted Links class used:

  • Link–muted: This class is used to remove the underline on hover.

Syntax:

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

Example 1: In this example, we will use Link–muted. Please notice the color of the link before hovering also.

HTML




<!DOCTYPE html>
<html>
  
<head>
    <title>Primer CSS Links Muted</title>
    <link rel="stylesheet" href=
</head>
  
<body>
    <h1 style="color:green">GeeksforGeeks</h1>
    <h3>Primer CSS Links Muted</h3>
    <p style="color:red">
        Please notice Link Color also when not hovering
    </p>
  
  
    <h2>To go to GeeksforGeeks 
       <a href="https://www.geeksforgeeks.org" 
       class="Link--muted">Click Me</a
    </h2>
</body>
  
</html>


Output:

 

Example 2: In this example, we will use a no-underline class with other link classes. This will also remove underlining from links.

HTML




<!DOCTYPE html>
<html>
  
<head>
    <title>Primer CSS Links Muted</title>
    <link rel="stylesheet" href=
</head>
  
<body>
    <h1 style="color:green">GeeksforGeeks</h1>
    <h3>Primer CSS Links Muted</h3>
    <p style="color:red">Using 
      <i>no-underline</i
      with other Link classes
    </p>
  
  
    <h2>I am 
      <a href="#" class="Link--primary no-underline">
        Link Primary
      </a
    </h2>
  
    <h2>I am 
      <a href="#" class="Link--secondary no-underline">
        Link Secondary
      </a
    </h2>
</body>
  
</html>


Output:

 

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



Last Updated : 05 May, 2022
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads