
Product
Go Support Is Now Generally Available
Socket's Go support is now generally available, bringing automatic scanning and deep code analysis to all users with Go projects.
NOTE: This is not ready for production.
Adjustable is a helper to support Tailwind-style utilities for CSS-in-JS.
yarn add adjustable
import { Adjustable, Adjustment } from "./adjust";
import config from "./config";
const Heading = props => <Adjustment {...props} />;
const H1 = props => <Heading as="h1" css={{ fontSize: 24 }} {...props} />;
const H2 = props => <Heading as="h2" css={{ fontSize: 16 }} {...props} />;
function App() {
return (
<Adjustable config={config}>
<H1 adjust="fg-teal">Teal colored text</H1>
<H2 adjust="ta-center pb-2 pt-2">
Centered text with padding top and bottom
</H2>
</Adjustable>
);
}
const colors = {
...
teal: "#4dc0b5",
};
const spacing = ["0", "0.5rem", "1rem", "1.5rem", "2rem"];
export default {
...
backgroundColors: colors,
borderRadius: [0, "0.125rem", "0.25rem", "0.5rem", "50%"],
fontWeight: [300, 400, 700],
leading: [1, 1.25, 1.5, 2],
margin: spacing,
padding: spacing,
textColors: colors,
tracking: ["-0.05em", "0", "0.05em"],
zIndex: [0, 100, 200, 300, 400, 500]
};
FAQs
A helper to support Tailwind-style utilities for CSS-in-JS
The npm package adjustable receives a total of 1 weekly downloads. As such, adjustable popularity was classified as not popular.
We found that adjustable 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.
Product
Socket's Go support is now generally available, bringing automatic scanning and deep code analysis to all users with Go projects.
Security News
vlt adds real-time security selectors powered by Socket, enabling developers to query and analyze package risks directly in their dependency graph.
Security News
CISA extended MITRE’s CVE contract by 11 months, avoiding a shutdown but leaving long-term governance and coordination issues unresolved.