Open In App

Tachyons Theming Border Radius

In this article, we will learn how we can use Border Radius for theming in our website using the Tachyons toolkit. Tachyons is a toolkit used to create a responsive website. This used to define the border-radius style to the element it is applied.

Syntax:



<element-name class="class-name">...</element-name>

Tachyons Theming Border Radius Classes:

Example 1: In this example, we will set the border radius to .25rem.






<!DOCTYPE html>
<html>
  
<head>
    <link rel="stylesheet" href=
    <style>
        body {
            text-align: center;
            margin: 20px;
        }
    </style>
</head>
  
<body>
    <h1 class="ba br3">GeeksforGeeks</h1>
</body>
  
</html>

Output:

 

Example 2: In this example, we will set the border radius to 100%.




<!DOCTYPE html>
<html>
  
<head>
    <link rel="stylesheet" href=
    <style>
        body {
            text-align: center;
            margin: 20px;
        }
    </style>
</head>
  
<body>
    <h1 class="ba br-100">GeeksforGeeks</h1>
</body>
  
</html>

Output:

 

Reference: https://tachyons.io/docs/themes/border-radius/


Article Tags :