shared_theme 0.0.1 shared_theme: ^0.0.1 copied to clipboard
Easily share a theme between Flutter and the web.
Shared Theme #
Easily share a theme between Flutter and the web.
Theme #
A Theme
is a ColorSet
, FontSet
, and an ElementSet
, which
are abstract containers for defining properties such as border, padding, etc.
ThemeSet #
Themes are typically combined into a single ThemeSet
per application. The
ThemeSet adds support for bundled FontFace
s, and ThemeSet.toString()
returns an SCSS string that fully represents the ThemeSet.
Example #
There is a complete example included, and in particular, see its ThemeSet definition.
Screenshots #
Mobile light | Mobile dark |
---|---|
Web light | Web dark |
---|---|