Socket
Socket
Sign inDemoInstall

@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.


Version published
Weekly downloads
30
increased by900%
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
Border Radiustheme.radii
Margintheme.spacem
mb
ml
mr
mt
mx
my
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
pb
pl
pr
pt
px
py
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
Positiontheme.spacebottom
left
position
right
top
z
inset-block-end / bottom
inset-inline-start / left
position
inset-inline-end / right
inset-block-start / top
z-index
Spacetheme.spaceSee 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