Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@kaakao-ui/styled-mixins

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kaakao-ui/styled-mixins

A framework-agnostic collection of Styled Components mixins for creating logical CSS styles with appropriate fallbacks.

  • 0.0.6
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source
Kaakao-UI

Kaakao-UI Styled Mixins npm version

A framework-agnostic collection of Styled Components mixins for creating logical CSS styles with appropriate fallbacks.

🤖 Installation

npm install @kaakao-ui/styled-mixins

🔧 Usage

Each mixin will check for an active Styled Components theme by using the useTheme() hook.

If a theme is present, the values will be used as theme keys. If no theme exists, the values themselves will be used for the styles.

import styled from 'styled-components';
import { Margin } from '@kaakao-ui/styled-mixins';

const Container = styled.section`
  ${Margin({ m: 1, x: 2 })};
`;

...

📓 Documentation

MixinTheme KeyPropsCSS Map
Margintheme.spacem
b
l
r
t
x
y
margin
margin-block-end / margin-bottom
margin-inline-start / margin-left
margin-inline-end / margin-right
margin-block-start / margin-top
margin-inline-start:end / margin-left:right
margin-block-start:end / margin-top:bottom
Paddingtheme.spacep
b
l
r
t
x
y
padding
padding-block-end / padding-bottom
padding-inline-start / padding-left
padding-inline-end / padding-right
padding-block-start / padding-top
padding-inline-start:end / padding-left:right
padding-block-start:end / padding-top:bottom
Spacetheme.spacem
p
See Margin
See Padding

Keywords

FAQs

Package last updated on 17 Jan 2022

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc