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.
@gilnoy/tachyons-in-js
Advanced tools
Tachyons for CSS in JS libraries
Examples written in React, but can be used with other libraries.
CSS In JS Libraries tested:
styled-components, Emotion, Glamor, Aphrodite, Glamorous (examples are in Demo.js file)
import styled from 'styled-components';
import { tachyonsToCss as tc } from 'tachyons-in-js';
const Href = styled.a`
${tc('flex tc pa3 bg-purple white h4 w4 f3 bg-red-m yellow-m hover-bg-green')}
`;
<Href>Tachyons and Styled Components</Href>
import glamorous from 'glamorous';
import tc from 'tachyons-in-css';
const Href = glamorous.a(
${tc('flex tc pa3 bg-purple white h4 w4 f3 bg-red-m yellow-m hover-bg-green')}
);
<Href>Tachyons and Glamorous</Href>
import { addSkin } from 'tacyons-in-js';
import tc from 'tachyons-in-css';
addSkin('peach-puff', '#ffdab9');
tc('bg-peach-puff peach-puff b--peach-puff');
import { addMediaQuery } from 'tacyons-in-js/mediaQueries';
addMediaQuery("mobile", '@media only screen and (max-width: 600px)');
tc('bg-red-mobile w-100-mobile ');
Most Css in JS libraries are using the "&" sign before pseudo selectors and media queries. In Aphrodite you need to emit the "&" sign by modifying the config file.
import tachyonsConfig from 'tacyons-in-js/config';
tachyonsConfig({
pseudo: ''
});
IN DEVELOPMENT
FAQs
Tachyons for CSS in JS libraries
The npm package @gilnoy/tachyons-in-js receives a total of 0 weekly downloads. As such, @gilnoy/tachyons-in-js popularity was classified as not popular.
We found that @gilnoy/tachyons-in-js 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.