Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
aesthetic-adapter-css-modules
Advanced tools
Provides CSS Modules support for Aesthetic, a React styling library.
This library does not enable CSS modules, it simply applies the class names to the React component. Supporting CSS modules will need to be enabled with Webpack or Babel.
npm install aesthetic aesthetic-adapter-css-modules --save
// Or
yarn add aesthetic aesthetic-adapter-css-modules
More information on how to get started can be found in the official documentation.
import Aesthetic from 'aesthetic';
import CSSModulesAdapter from 'aesthetic-adapter-css-modules';
const aesthetic = new Aesthetic(new CSSModulesAdapter());
CSS modules do not support Aesthetic's unified syntax.
When defining styles for a React component, simply pass the CSS modules object to
the styler function, instead of setting the element className
props directly.
import React from 'react';
import style from '../path/to/styler';
import styles from './styles.css';
function Component() {
// ...
}
export default style(styles)(Component);
FAQs
CSS modules support for Aesthetic.
The npm package aesthetic-adapter-css-modules receives a total of 40 weekly downloads. As such, aesthetic-adapter-css-modules popularity was classified as not popular.
We found that aesthetic-adapter-css-modules demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.