Hyperview

Hyperview

  • Guides
  • Examples
  • Reference
  • Blog

›Style Elements

Reference

  • Index

Behaviors

  • Behavior Attributes
  • <behavior>
  • Alert
  • Share

Display Elements

  • <doc>
  • <screen>
  • <header>
  • <body>
  • <view>
  • <text>
  • <image>
  • <list>
  • <section-list>
  • <section>
  • <section-title>
  • <items>
  • <item>
  • <spinner>
  • <web-view>

Input Elements

  • <form>
  • <text-field>
  • <select-single>
  • <select-multiple>
  • <option>
  • <picker-field>
  • <picker-item>
  • <switch>
  • <date-field>

Style Elements

  • <styles>
  • <style>
  • <modifier>

Hyperview Client

  • Hyperview component
  • Custom elements
  • Custom behaviors
  • Loading Screen

Hyperview Navigation

  • <navigator>
  • <nav-route>

<styles>

The <styles> element contains elements defining the visual appearance of elements in a screen.

<doc xmlns="https://hyperview.org/hyperview">
  <screen id="main">
    <styles>
      <style id="Main" flex="1" backgroundColor="red" />
    </styles>
    <body>
      <view style="Main" />
    </body>
  </screen>
</doc>

The <styles> element above contains one <style> with id "Main". The view in the body of the screen uses that style.

Structure

A <styles> element should only appear as a direct child of a <screen> element. There should be only one <styles> child element per screen.

Attributes

The <styles> element accepts no attributes, since its purpose is to group <style> elements.

← <date-field><style> →
  • Structure
  • Attributes
Hyperview
Docs
ExamplesHyperview Reference
More
BlogGitHub
Copyright © 2025 Instawork