effcss
Языки
- TypeScript99,7%
- JavaScript0,3%
3 дня назад
3 дня назад
месяц назад
месяц назад
9 месяцев назад
месяц назад
3 дня назад
5 месяцев назад
4 месяца назад
год назад
README.md
EffCSS
EffCSS is a self-confident CSS-in-JS library based only on the browser APIs. Use the full power of JS and TS to create styles.
Some features
- zero-dependency,
- framework agnostic,
- selectors isolation and minification out of the box,
- flexible stylesheets types that can suggest available selectors (BEM and Atomic CSS compatible),
- compatible with any rendering (CSR, SSR, SSG).
Links
Devtools
- Mozilla Firefox
- zip for Chromium based browsers, that can be installed using chrome://extensions
Examples
Installation
Type in your terminal:
Quick start
Just call in your code:useStyleProvider
main.js
Each CSS stylesheet corresponds to a single . Stylesheet maker is a JS function that should return object or string with style rules:Stylesheet maker
maker.ts
To use just pass it to Stylesheet maker (creates classnames string) or cx (creates data attributes object) methods of dx:Style provider
App.tsx
That's all. Enjoy simplicity.