themed-styling / core

Quick, modular and responsive styling for styled-components with theme support.
https://www.npmjs.com/package/@themed-styling/core
GNU General Public License v3.0
0 stars 1 forks source link

Ability to specify theme subobject as value #66

Closed apttx closed 4 years ago

apttx commented 4 years ago

If theme.js contains

{  
  breakpoints: {
    mobile: '320px',
    tablet: '768px',
    desktop: '1024px',
  },
  sides: {
    standard: '1rem',
    mobile: '2rem',
    tablet: '4rem',
    desktop: '6rem',
  }
}

we should be able to speficy padding("sides") and have it take the sides object from the theme, for convenience.