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.15
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
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, mx: 2 })};
`;

...

📓 Documentation

MixinTheme KeyPropsCSS Map
Backgroundbg
bgAttachment
bgImage
bgPosition
bgRepeat
bgSize
background
background-attachment
background-image
background-position
background-repeat
background-size
Border
Border Radiustheme.radii
Box Shadowtheme.shadowboxShadowbox-shadow
Flex
GradientbgClip
bgGradient
background-clip
background-image
Grid
LayoutboxSize
display
h
maxH
maxW
minH
minW
overflow
overflowX
overflowY
vAlign
w
block:inline-size / height:width
display
block-size / height
max-block-size / max-height
max-inline-size / max-width
min-block-size / min-height
min-inline-size / min-width
overflow
overflow-inline / overflow-x
overflow-block / overflow-y
vertical-align
inline-size / width
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
Other
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
Typographytheme.fontSize
theme.fontWeight
fontFamily
fontSize
fontStyle
fontWeight
letterSpacing
lineHeight
textAlign
textDecoration
textTransform
font-family
font-size
font-style
font-weight
letter-spacing
line-height
text-align
text-decoration
text-transform

Keywords

FAQs

Package last updated on 31 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