0.0.1 • Published 2 years ago

passlang v0.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

passlang

Usage

  1. Write your CSS(eg:- example.pass.ts)

    import { css } from '@passlang/core'
    export default css`
    nav {
      width: ${10 + 10}px; /* operators */
    }
    
    ul {
      font: 100% ${font_stack}; /* using variables */
    }
    
    li {
      ${theme()} /* using functions / mixins */
    }
    
    a {
      ${equal_heights}/* extending styles */
    }
    `
  2. Convert it to css

    npx passlang example.pass.ts

    Take a look at the newly created example.pass.css file.

Contact me via discussions for help.