Open In App

Primer CSS Typography List Styles

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 Typography List Styles. Primer CSS Typography List Styles remove bullets from an unordered list or numbers from an ordered list.

Typography List Style Class:

  • list-style-none:  This class is used to remove bullets from an unordered list or numbers from an ordered list.

Syntax:

<list-type class="list-style-none">
 <li>List-Item</li>
</list-type>
  • List-type can be ordered or unordered.

We will learn more about this using examples.

Example 1: In this example, we will learn about list styling in an ordered list.

HTML




<!DOCTYPE html>
<html>
<head>
    <title>Flash</title>
    <meta name="viewport" 
        content="width = device-width, initial-scale = 1">
    <link rel="stylesheet" href=
</head>
<body>
    <h1 style="color:green">GeeksforGeeks</h1>
    <h3>Primer CSS Typography List Styles</h3>
    <ol class="list-style-none">
        <li>Geeks</li>
        <li>For</li>
        <li>Geeks</li>
    </ol>
</body>
</html>


Output:

 

Example 2: In this example, we will learn about list styling in an un-ordered list.

HTML




<!DOCTYPE html>
<html>
<head>
    <title>Flash</title>
    <meta name="viewport" 
        content="width = device-width, initial-scale = 1">
    <link rel="stylesheet" href=
</head>
<body>
    <h1 style="color:green">GeeksforGeeks</h1>
    <h3>Primer CSS Typography List Styles</h3>
    <ul class="list-style-none">
        <li>Geeks</li>
        <li>For</li>
        <li>Geeks</li>
    </ul>
</body>
</html>


Output:

 

Reference: https://primer.style/css/utilities/typography#list-styles



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