npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

cssroot-2-liquid

v1.0.5

Published

A tool to convert CSS variables to Shopify Liquid section settings

Downloads

10

Readme

CSSRoot to Liquid

CSSRoot to Liquid is a powerful command-line tool that converts CSS variables to Shopify Liquid section settings. With this utility, you can easily make your CSS styles customizable through the Shopify Theme Editor.

This tool is designed to save time and effort for developers who work with Shopify themes, allowing them to focus on other important aspects of the project.

Features

  • Automatically generates Shopify Liquid section settings based on CSS variables
  • Supports color and text type settings
  • Handles nested CSS variables and inherit values
  • Converts RGB values to HEX format for color settings

Installation

To install the tool, you need to have Node.js installed on your computer. Once Node.js is installed, you can easily install CSSRoot to Liquid from npmjs using the following command:

npm i cssroot-2-liquid -g

How to Use

  1. Place your CSS file with variables in the project directory.
  2. Open a terminal/command prompt and navigate to the project directory.
  3. Run the following command: cssroot-2-liquid your-file-name.css
  4. The tool will generate a new .liquid file in the same directory with the corresponding section settings. For a visual demonstration, please refer to these videos:

Basic usage:

![How to Use cssroot-2-liquid]

Usage with Shopify:

![How to Use cssroot-2-liquid with Shopify]

Future Features and Optimizations

We are constantly working to improve CSSRoot to Liquid and expand its capabilities. Some of the features and optimizations we plan to add in future releases include:

  1. Support for more setting types, such as images, selectors, and range sliders.
  2. A graphical user interface (GUI) to facilitate easier interaction with the tool.
  3. Integration with popular code editors like Visual Studio Code and Atom, as well as Shopify CLI.
  4. The ability to generate Liquid code snippets for individual CSS variables, instead of generating an entire section file.
  5. Improved error handling and reporting to provide more informative messages and suggestions.
  6. Performance optimizations to ensure faster and more efficient code generation.

Your feedback and suggestions are always welcome, as they help us to enhance the tool and make it more useful for the developer community.