Skip to content

Migration from Styled System specification #35

@tatchi

Description

@tatchi

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.:
 
}))

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions