New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

siteation/magento2-theme-tokens

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

siteation/magento2-theme-tokens

Customize your theme with ease with Design Tokens (CSS props)

magento2-module
Source
Packagist
Version
1.0.1
Version published
Total downloads
6.4K
Maintainers
1
Created
Source

Siteation - Magento 2 module Theme Tokens

Packagist Version Supported Magento Versions Hyvä Themes Supported License

This Magento 2 module makes it easy to manage Design Tokens from the Magento backend.

Once you have set your tokens, they will be output as CSS variables to the frontend, making it easy to style your website with consistent and reusable code.

Installation

Install the package via;

composer require siteation/magento2-theme-tokens
bin/magento setup:upgrade

Note This Module requires Magento 2.4 or higher! For more requirements see the composer.json.

How to use

Once the module is installed, you can manage your Design Tokens from the Magento backend.

First make sure your styles support CSS variables

Sample config with Hyva Tailwind Config

After this you can configure your tokens, Go to Stores > Configuration > Siteation > Design Tokens. Enter your the tokens in the desired format.

Sample config with Hyva Tailwind Config

Once you have set your tokens, they will be output as CSS variables to the frontend.

BeforeAfter
preview-1preview-2

Keywords

magento2

FAQs

Package last updated on 16 Jan 2024

Related posts