glaze icon indicating copy to clipboard operation
glaze copied to clipboard

Migration from Styled System specification

Open tatchi opened this issue 5 years ago • 0 comments

Motivation

What about creating a fromStyledSystem function similar to the existing fromThemeUI one? I think that could make sense since some libraries seem to use (or at least to be based on) this specification.

That would make it easier in the future to migrate theme to these kinds of libraries. Actually we might even base fromThemeUI from this one since the foundation should be quite similar I guess.

Basic example

import { createTheme, fromStyledSystem } from 'glaze';

export default createTheme(fromStyledSystem({
  // Styled System UI tokens, e.g.:
 
}))

tatchi avatar Apr 26 '20 19:04 tatchi