Getting started with ZindaCSS
Getting started is simple.
-
Download the package from npm.
npm install zindacss - Open a new terminal and go to the folder you have your html in.
-
Type the command:
Command TODO - Then, you can just add classes to your elements.
-
Copy the html <link> given in the terminal and paste it in your HTML document.
<link rel="stylesheet" href="Your file name and path.css"/>
By default, the output CSS's filename is Your HTML file name.css
To change the name of the output CSS file, add another argument:npx zindacss build Your HTML file path Your output CSS file pathFor example:
Given you have an html file called "test.html" and you want to output CSS to "output_css.css"npx zindacss build test.html output_css.css
Note: If your file names contain spaces, please enclose them in double quotes in the terminal / command line
-
As soon as your save, ZindaCSS compiles a new stylesheet for you.
No need to run everytime you make changes.
-
Once your done styling, just press Ctrl +
C
in the terminal and the program will terminate. And you're done.
A new stylesheet will be created in the same folder.
Your code will now work without ZindaCSS package.
npx zindacss "an html file name.html" "a css output file.css"