aesthetic-suite / framework

🎨 Aesthetic is an end-to-end multi-platform styling framework that offers a strict design system, robust atomic CSS-in-JS engine, a structural style sheet specification (SSS), a low-runtime solution, and much more!
https://aestheticsuite.dev
MIT License
203 stars 5 forks source link

Migration guide #40

Closed milesj closed 5 years ago

milesj commented 5 years ago

Some points.

// Before
{
  ':first-child': {},
  '::-moz-focus-inner': {}
  ':not([disabled]):hover': {},
}

// After
{
  ':first-child': {},

  '@selectors': {
    '::-moz-focus-inner': {}
    ':not([disabled]):hover': {},
  },
}
// Before
{
  '@keyframes': {
    fade: {
      from: {},
      to: {},
    },
  },

  element: {
    animationName: 'fade',
  },
}

// After
{
  element: {
    animationName: {
      name: 'fade',
      from: {},
      to: {},
    },
  },
}
// Before
// Before
{
  '@font-face': {
    Roboto: {
      src: 'url()',
    },
  },

  element: {
    fontFamily: 'Roboto',
  },
}

// After
{
  element: {
    fontFamily: {
      src: 'url()',
      fontFamily: 'Roboto',
    },
  },
}
milesj commented 5 years ago

Donezo.