Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@olets/unocss-preset-css

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@olets/unocss-preset-css

A front-end tool which unlocks writing something very close to vanilla CSS directly in the `class` attribute

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

unocss-preset-css GitHub release (latest by date) GitHub commits since latest release

unocss-preset-css is a front-end tool which unlocks writing something very close to vanilla CSS directly in the class attribute. Style any element from any other element, styling ::before and ::after directly on their originating element, and using CSS at-rules without breaking to a <style> tag, all without learning new syntax.

It's like Tailwind CSS, or Windi CSS, or any other CSS DOM API, but with the minimum of tool-specific idioms.

Want { color: currentColor }? That's class="{color:currentColor}", not class="text-current"".

Want { line-height: 2 }? That's class="{line-height:2}", not class="leading-loose".

Who is unocss-preset-css for?

  • Adventurous fans of writing CSS via a class DOM API interested in trying out patterns other than Tailwind's, in the search for the next evolutionary step.
  • People wondering what UnoCSS is all about.
  • People who like or are at least intrigued by the idea of writing CSS via a class attribute DOM API but are turned off by Tailwind's (and then Windi's) inconsistent and overloaded renaming of CSS properties.
  • People who don't have to try Tailwind to know that they hate it but wouldn't mind something new to casually bad mouth, probably.

 

Documentation

📖 https://unocss-preset-css.olets.dev

Demo

👀 https://stackblitz.com/edit/unocss-preset-css-repl

Or run the REPL locally: clone or download the unocss-preset-css monorepo, and run the repl package's dev script.

 

Changelog

See the CHANGELOG file.

Contributing

Thanks for your interest. Contributions are welcome!

Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.

Check the Issues to see if your topic has been discussed before or if it is being worked on.

Please read CONTRIBUTING.md before opening a pull request.

License

unocss-preset-css by Henry Bley-Vroman is licensed under a license which is the unmodified text of CC BY-NC-SA 4.0 and the unmodified text of a Hippocratic License 3. It is not affiliated with Creative Commons or the Organization for Ethical Source.

Human-readable summary of (and not a substitute for) the LICENSE file:

You are free to

  • Share — copy and redistribute the material in any medium or format
  • Adapt — remix, transform, and build upon the material

Under the following terms

  • Attribution — You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
  • Non-commercial — You may not use the material for commercial purposes.
  • Ethics - You must abide by the ethical standards specified in the Hippocratic License 3 with Ecocide, Extractive Industries, US Tariff Act, Mass Surveillance, Military Activities, and Media modules.
  • Preserve terms — If you remix, transform, or build upon the material, you must distribute your contributions under the same license as the original.
  • No additional restrictions — You may not apply legal terms or technological measures that legally restrict others from doing anything the license permits.

Keywords

FAQs

Package last updated on 15 Sep 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc