New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

alga-css

Package Overview
Dependencies
Maintainers
1
Versions
173
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

alga-css

Alga CSS is a scoped-first CSS toolkit for quickly compose or share any design between components

  • 1.0.0-development4
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
208
increased by173.68%
Maintainers
1
Weekly downloads
 
Created
Source

Alga CSS logo

Downloads Version License


Alga CSS

Alga CSS is a scope-first CSS toolkit for quickly compose or share any design between components

What I mean by scope-first is, this Alga CSS is specially made for frameworks or libraries that support scoped-css like Vue, Svelte and Astro. Also, my goal in building this is to support all the UI libraries that I have now like vidie or sastra

All the main features:

  1. Created for scoped CSS
  2. As a PostCSS plugin
  3. Composing or mixing CSS components
  4. Provide/inject a large CSS component
  5. Custom CSS utility/helper (preset, define, color, screen, etc.)
  6. Extract classes from HTML (Petite-Vue, Alpine.js), Astro, Vue, Svelte, and JSX as well

Utility and Mixin

For getting CSS utility, I provide a custom property which is ref.

.className {
  ref: flex justifyCenter flex-20 bgPrimary-3;
}

.otherClassName {
  ref: flex;
  ref: justifyCenter;
  ref: flex-20;
  ref: bgPrimary-3;
}

For mixing or composing CSS properties, we can use props custom property.

@set className {
  ref: flex justifyCenter flex-20 bgPrimary-3;
}

.otherClassName {
  props: className;
}

Composable CSS Component (@set, @get)

Advanced CSS Component (@provide, @inject, @prefers, @screen)

Keywords

FAQs

Package last updated on 06 Aug 2021

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