Socket
Socket
Sign inDemoInstall

@windboxes/core

Package Overview
Dependencies
0
Maintainers
1
Versions
55
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @windboxes/core

WindBoxes processor core


Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Install size
16.8 kB
Created
Weekly downloads
 

Readme

Source

Wind Boxes Core

Introduction

Wind Boxes is a tool for parse css module string for styles.

Examples

https://github.com/windboxes/examples

core function - parseStyle

// jsx example

import parseStyle from '@windboxes/core';
// you can import any css module
import tailwindCSSModule from 'tailwind.module.css';


// create a styled function for inject css module class names and parse
const styled = (styles) => {
  return parseStyle(styles, tailwindCSSModule);
}


// ......
const boxClasses = styled('block h-min bg-gray-200 p-3 mt-10 rounded-md');

<div className={boxClasses}></div>

// result, If you can, you can customize the class name to give random string
<div class="jHR Jbf NHo sUK _9Zt rHK"></div>

React

Testing styled components module, This is a weird implementation, have't complete:

You can try @windboxes/react

Keywords

FAQs

Last updated on 10 Jan 2023

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc