
Research
Security News
Malicious PyPI Package Exploits Deezer API for Coordinated Music Piracy
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
@stianlarsen/react-ui-kit
Advanced tools
A versatile React UI kit focused on delivering ready-to-use, customizable buttons for every use case. Designed to save developers time and streamline UI development, this kit offers a range of button styles and loaders, ensuring immediate integration and
A versatile React UI kit focused on delivering ready-to-use, customizable buttons for every use case. Designed to save developers time and streamline UI development, this kit offers a range of button styles and loaders, ensuring immediate integration and thematic coherence across projects.
Install the package using npm:
npm install @stianlarsen/react-ui-kit
Or using yarn:
yarn add @stianlarsen/react-ui-kit
Import and use the Button component in your React project:
import { Button } from "@stianlarsen/react-ui-kit";
function App() {
return <Button variant="primary">Click Me</Button>;
}
Import and use the Loader component to indicate loading state:
import { Loader } from "@stianlarsen/react-ui-kit";
function App() {
return <Loader />;
}
/* == light mode == **/
:root {
--button-radius: 0.5rem;
--button-border: 240 5.9% 90%;
--button-padding: 0.75rem 1.25rem;
--button-line-height: 1;
--button-background: 0 0% 100%;
--button-foreground: 240 10% 3.9%;
--button-primary: 263.4 70% 50.4%;
--button-primary-hover: var(--button-primary) / 0.75;
--button-primary-foreground: 210 20% 98%;
--button-default: 240 5.9% 10%;
--button-default-hover: var(--button-default) / 0.75;
--button-default-foreground: 0 0% 98%;
--button-destructive: 0 72.22% 50.59%;
--button-destructive-hover: var(--button-destructive) / 0.75;
--button-destructive-foreground: 0 0% 98%;
--button-secondary: 240 4.8% 95.9%;
--button-secondary-hover: var(--button-secondary) / 0.75;
--button-secondary-foreground: 240 5.9% 10%;
--button-accent: 240 4.8% 95.9%;
--button-accent-hover: var(--button-accent) / 0.75;
--button-accent-foreground: 240 5.9% 10%;
}
/* == dark mode == */
@media (prefers-color-scheme: dark) {
:root {
--button-radius: 0.5rem;
--button-border: 240 3.7% 15.9%;
--button-background: 240 10% 3.9%;
--button-foreground: 0 0% 98%;
--button-primary: 263.4 70% 50.4%;
--button-primary-hover: var(--button-primary) / 0.85;
--button-primary-foreground: 210 20% 98%;
--button-default: 0 0% 98%;
--button-default-hover: var(--button-default) / 0.85;
--button-default-foreground: 240 5.9% 10%;
--button-destructive: 0 62.8% 30.6%;
--button-destructive-hover: var(--button-destructive) / 0.75;
--button-destructive-foreground: 0 85.7% 97.3%;
--button-secondary: 240 3.7% 15.9%;
--button-secondary-hover: var(--button-secondary) / 0.8;
--button-secondary-foreground: 0 0% 98%;
--button-accent: 240 3.7% 15.9%;
--button-accent-hover: var(--button-accent) / 0.8;
--button-accent-foreground: 0 0% 98%;
}
}
Our components use HSL color values for easy customization of themes. When overriding the CSS variables for colors, please provide values in HSL format to ensure compatibility.
Example of customizing the primary button color in HSL:
To customize these styles, simply redefine the CSS variables in your project's global.css
or equivalent stylesheet:
:root {
--button-primary: 25 100% 50%;
}
Our button uses these values ( variables ) like this
.button-primary {
background-color: hsl(var(--button-primary));
}
By leveraging CSS variables, the React UI Kit ensures you can easily theme your components to fit the look and feel of your application, all while maintaining the ease of use and flexibility that comes with CSS customization.
The button component is already using the variables mentioned above, so you only need to change the hsl values to your liking.
Contributions are always welcome! Please contact me for further info.
This project is licensed under the MIT License.
For any questions or suggestions, feel free to reach out.
FAQs
A versatile React UI kit focused on delivering ready-to-use, customizable buttons for every use case. Designed to save developers time and streamline UI development, this kit offers a range of button styles and loaders, ensuring immediate integration and
The npm package @stianlarsen/react-ui-kit receives a total of 0 weekly downloads. As such, @stianlarsen/react-ui-kit popularity was classified as not popular.
We found that @stianlarsen/react-ui-kit demonstrated a healthy version release cadence and project activity because the last version was released less than 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.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.
Security News
Newly introduced telemetry in devenv 1.4 sparked a backlash over privacy concerns, leading to the removal of its AI-powered feature after strong community pushback.