larsauswsw / slate-config-example

Example app demonstrating the use of the Slate CSS library.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

slate-config-example

Example app demonstrating the use of the Slate front-end framework to create a good-looking app configuration page.

The page is styled with the Slate library, with classes selected for <div> elements, including many control types such as:

  • Text fields
  • Buttons
  • Color pickers
  • Tab bars
  • Toggles
  • Checkboxes
  • Radio buttons
  • Date and time pickers
  • Sliders
  • Draggable lists

The example implemented here uses two of these components to implement color options into a Pebble app. Using the config page it is possible to choose a background color (with foreground color automatically determined for visibility), or a high-contrast mode that overrides the colors chosen to promote readability.

screenshot2

The result of hitting 'Submit' in the config page when the app is installed results in the following app look and feel:

screensho1

About

Example app demonstrating the use of the Slate CSS library.

License:MIT License


Languages

Language:CSS 50.6%Language:C 19.1%Language:HTML 18.7%Language:JavaScript 5.9%Language:Python 5.6%