
Security News
PodRocket Podcast: Inside the Recent npm Supply Chain Attacks
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
@aceandtate/breakpoints
Advanced tools
Ace & Tate's website breakpoints
$ npm install --save @aceandtate/breakpoints
This package exports various forms of breakpoints for use at Ace & Tate
import { sizes } from "@aceandtate/breakpoints";
/*
sizes = {
"tiny": 540,
"small": 768,
"large": 1000,
"xlarge": 1400,
"xxlarge": null
}
*/
import { rules } from "@aceandtate/breakpoints";
/*
rules = {
"tiny": "(max-width: 540px)",
"tinyMax": "(max-width: 540px)",
"small": "(min-width: 541px) and (max-width: 768px)",
"smallMin": "(min-width: 541px)",
"smallMax": "(max-width: 768px)",
... large, xlarge, xxlarge
}
*/
import { breakpoints } from "@aceandtate/breakpoints";
/*
breakpoints = {
"tiny": {
"min": 0,
"max": 540
},
"small": {
"min": 541,
"max": 768
},
"large": {
"min": 769,
"max": 1000
},
"xlarge": {
"min": 1001,
"max": 1400
},
"xxlarge": {
"min": 1401
}
}
*/
import styled from "styled-components";
import { tiny, smallMin } from "@aceandtate/breakpoints/rules";
const myComponent = styled.div`
@media ${tiny} {
/* Show on mobile devices */
width: 100%;
margin: 10px;
}
@media ${smallMin} {
/* Everything else */
width: 400px;
margin: 0 auto;
}
`;
If you want to update or add breakpoints, you can do so in ./sizes.json
, and then run:
$ npm run generate
This will then update the files in ./build/
file accordingly. Note that this task is run automatically before publishing the package to NPM.
MIT © Ace & Tate
FAQs
Ace and Tate's Breakpoints
We found that @aceandtate/breakpoints demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.