New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@aesthetic/addon-mixins

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aesthetic/addon-mixins

CSS-in-JS mixins for the Aesthetic design system.

0.1.6
Source
npm
Version published
Maintainers
1
Created
Source

Aesthetic - Design System Mixins

Build Status npm version npm deps

CSS-in-JS mixins for the Aesthetic design system.

import mixins from '@aesthetic/addon-mixins';
import { Design } from '@aesthetic/system';

// Configure design system with mixins
const design = new Design(
  'dls',
  {
    /* ... */
  },
  mixins,
);

// Generate CSS properties from theme
const theme = design.createTheme(
  { contrast: 'normal', scheme: 'light' },
  {
    /* ... */
  },
);

const css = theme.mixin('background', { palette: 'success' }, { borderWidth: 1 });

// OR with type safety
const css = theme.mixin.background({ palette: 'success' }, { borderWidth: 1 });

Installation

yarn add @aesthetic/addon-mixins

Documentation

https://aestheticsuite.dev

Keywords

aesthetic

FAQs

Package last updated on 26 Sep 2020

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