Skip to content

Latest commit

 

History

History
127 lines (101 loc) · 10.3 KB

README.md

File metadata and controls

127 lines (101 loc) · 10.3 KB

Stylify logo


Chat Twitter Follow GitHub Org's stars GitHub
GitHub Workflow Status (branch) GitHub issues GitHub commit activity GitHub release (latest by date) GitHub contributors

💎 Introduction

Stylify is a library that uses CSS-like selectors to generate optimized utility-first CSS dynamically based on what you write.
Don't study framework. Focus on coding.

Stylify preview

⚡ Why Stylify instead of CSS or inline styles?

Because of fewer CSS headaches, faster coding and extremely optimized output.

✨ Features

  • 💎 Define Variables, Components, Custom selectors
  • 💎 Add custom macros like ml:2
  • 💎 Variables can be injected into css as CSS variables
  • 💎 CSS variables can differ for each screen
  • 💎 Simplify coding with helpers like color:lighten(#000,10)
  • 💎 Style any device with dynamic screens
  • 💎 You can mark areas for which CSS should not be
  • 💎 Split bundles for page/layout/component
  • 💎 Selectors are minified from long .color:blue to short .a
  • 💎 No purge needed. CSS is generated only when something is matched
  • 💎 Components & Custom selectors are attached to utilities. No duplicated property:value
  • 💎 Hooks can modify CSS or output for example wrap it in CSS layers
  • 💎 Mangled (hidden/unreadable) HTML classes in production (if mangled)
  • 💎 Try it with frameworks like, Next.js, Astro. SolidJS, Qwik Symfony, Nette, Laravel
  • 💎 Works with bundlers like Webpack, Rollup, Vite.js
  • 💎 Generated CSS can be used within SCSS, Less, Stylus
  • 💎 CSS variables can be exported into external file and reused

🚀 Integrations

Start using Stylify with your favorite tool in a minute.

JavaScript

PHP

🔥 Prepared Copy&Paste Headless Components

📦 Packages

Project Status Description
bundler bundler-status A flexible CSS bundler.
stylify stylify-status Core package. Generates CSS and minifies selectors.

Compatibility

Environment Version Note
Browser ES5-compliant browsers, Intersection Observer support is required. Stylify doesn't need to be included in the browser. All CSS can be pregenerated on server or during a build.
Node >= 18 In case Stylify will be used during an application build or in an SSR application.

💡 Examples, Changelog, Issues

  • Live examples and tutorials: documentation
  • Changelog and release changes: releases
  • Have an idea? Found a bug? Feel free to create an issue

🤟 Stay In Touch

👷 Contributing

Please make sure to read the Contributing Guide before making a pull request.

📝 License

MIT

Copyright (c) 2021-present, Vladimír Macháček