New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@windboxes/core

Package Overview
Dependencies
Maintainers
1
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@windboxes/core

WindBoxes processor core

latest
Source
npmnpm
Version
0.0.1-beta.8.48
Version published
Maintainers
1
Created
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

windboxes

FAQs

Package last updated on 10 Jan 2023

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