Open In App

Tachyons Theming Skins

In this article, we will learn how one can use the skin theme on the website using the Tachyons toolkit. Tachyons is a toolkit used to create a responsive website. Skins are used to set the color of text and the color of the background.

Syntax:



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

Tachyons Theming Skins Classes Used:

Text Color Classes:



Background Color Classes:

Note: There are more colors that you can use to change Tachyons Theming Skins. Check the reference link at the bottom.

Below are examples illustrating the Tachyons Theming Skins:

Example 1: In this example, the light-yellow class is used for the text.




<!DOCTYPE html>
<html>
 
<head>
    <link rel="stylesheet" href=
    <style>
        body {
            text-align: center;
        }
    </style>
</head>
 
<body>
    <h1 class="light-yellow">GeeksforGeeks</h1>
    <h3>A computer science portal for geeks</h3>
</body>
 
</html>

Output:

 

Example 2: In this example, the green class is used for the text and the bg-light-yellow class is used for the background.




<!DOCTYPE html>
<html>
 
<head>
    <link rel="stylesheet" href=
    <style>
        body {
            text-align: center;
        }
    </style>
</head>
 
<body>
    <h1 class="green bg-light-yellow">GeeksforGeeks</h1>
    <h3>A computer science portal for geeks</h3>
</body>
 
</html>

Output:

 

Reference: https://tachyons.io/docs/themes/skins/


Article Tags :