Product
Introducing SSO
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
adjustable
Advanced tools
Readme
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
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.