Primer CSS Small Box Shadow
Last Updated :
20 Apr, 2022
Primer CSS is a free open-source CSS framework that is built upon systems that create 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.
Box shadows utility is used to give a shadow-like effect to the container element. The box-shadow styles are used to pay attention to the content. Primer CSS Small Box Shadow styles are mainly used to display the things that need to appear slightly elevated. For example - cards or UI elements that contain important information.
Primer CSS Small Box Shadow Used Class:
- .color-shadow-small: This class is used to display the small box-shadow content.
Syntax:
<div class="color-shadow-small">
...
</div>
Example 1: This example describes how to use Primer CSS Small Box Shadow utility.
HTML
<!DOCTYPE html>
<html>
<head>
<title>Primer CSS Small Box Shadow</title>
<link rel="stylesheet" href=
"https://unpkg.com/@primer/css@^18.0.0/dist/primer.css" />
</head>
<body>
<div class="p-3">
<h1 class="color-fg-success">
GeeksforGeeks
</h1>
<h3>Primer CSS Small Box Shadow</h3>
<div class="color-shadow-small p-5">
A Computer Science portal for geeks. It
contains well written, well thought and
well explained computer science and
programming articles,
</div>
</div>
</body>
</html>
Output:
Primer CSS Small Box Shadow
Example 2: This example describes how to use Primer CSS Small Box Shadow utility.
HTML
<!DOCTYPE html>
<html>
<head>
<title>Primer CSS Small Box Shadow</title>
<link rel="stylesheet" href=
"https://unpkg.com/@primer/css@^18.0.0/dist/primer.css" />
</head>
<body>
<div class="p-3">
<h1 class="color-fg-success">
GeeksforGeeks
</h1>
<h3>Primer CSS Small Box Shadow</h3>
<div class="col-4">
<div class="Box color-shadow-small">
<div class="Box-row d-flex flex-justify-center">
<h1 class="color-fg-success">
GeeksforGeeks
</h1>
</div>
<div class="Box-row">
A Computer Science portal for geeks. It
contains well written, well thought and
well explained computer science and
programming articles
</div>
<div class="Box-row d-flex flex-justify-center">
<img src=
"https://media.geeksforgeeks.org/wp-content/cdn-uploads/20190710102234/download3.png"
class="img-responsive" alt="">
</div>
</div>
</div>
</div>
</body>
</html>
Output:
Primer CSS Small Box Shadow
Reference: https://primer.style/css/utilities/box-shadow#small
Similar Reads
Primer CSS Box shadow 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
4 min read
Primer CSS Large Box Shadow Primer CSS is a free open-source CSS framework that is built upon systems that create 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 CS
2 min read
Primer CSS Box Shadow Remove Primer CSS is a free open-source CSS framework that is built upon systems that create 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 CS
2 min read
Primer CSS Medium Box Shadow Primer CSS is a free open-source CSS framework that is built upon systems that create 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 CS
2 min read
CSS box-shadow Property The CSS box-shadow property is used to add a shadow effect to the edges of an element. You can apply multiple shadows by separating them with commas. The shadow is defined by the X and Y offsets (which position the shadow), a blur radius, a spread radius, and a color. By default, the value is set to
6 min read