Skip to content

class="font-size-14px font-size-1rem font-size-80% font-size-inherit font-size-$my-var"

License

Notifications You must be signed in to change notification settings

idmytro/windicss-plugin-font-size

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

windicss-plugin-font-size

class="font-size-0" -> .font-size-0 { font-size: 0; }

class="font-size-16px" -> .font-size-16px { font-size: 16px; }

class="font-size-80%" -> .font-size-80\% { font-size: 80%; }

class="font-size-1.5rem" -> .font-size-1\.5rem { font-size: 1.5rem; }

class="font-size-$my-var" -> .font-size-\$-my-var { font-size: var(--my-var); }

class="font-size-large" -> .font-size-large { font-size: large; }

class="font-size-inherit" -> .font-size-inherit { font-size: inherit; }

class="font-size-[calc(10vh+5px)]" -> .font-size-\[calc\(10vh\+5px\)\] { font-size: calc(10vh + 5px); }

Usage

npm i windicss-plugin-font-size -D
// windi.config.js

module.exports = {
  plugins: [
    require('windicss-plugin-font-size'),
  ],
};

About

class="font-size-14px font-size-1rem font-size-80% font-size-inherit font-size-$my-var"

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published