Metrics and Grids
The Glass user interface has standard layout and margin guidelines for different types of timeline cards. Cards normally have the following general regions, and we've laid out some guidelines for you to follow for a general set of cards.
Glass defines dimensions for a set of common regions to make it easy to design and display different cards consistently.
The main text content of the card is in Roboto Thin and is bounded by padding.
Glass dynamically resizes the font size based on the amount of content.Full-bleed image
Images work best when full-bleed and do not require the 40px of padding that text requires.Footer
The footer shows supplementary information about the card, such as the source of the card or a timestamp. Footer text is usually 26 pixels, Roboto Light, white (#ffffff) in color, and centered.
The status bar has 3 states. Slider shows the current location in a set of cards. Progress or grace period shows progress or time to cancel an action. Candy cane animates in a loop while processing.Left image or column
Left image or columns require modifications to padding and text content. See the left image and column templates for the complete grid.Padding
Timeline cards have 40 pixels of padding on all sides for the text content. This allows most people to see your content clearly.
The following layouts show you how some common layout grids and cards that implement the layout. See the Mirror API playground for full implementation details.