Reflex
  • Blocks
    • Header
    • Hero
    • Features
    • Call to action
    • Forms
    • Pricing
    • Team
    • Testimonials
    • Cards
    • Footer
    • Posts
    • Videos
  • Examples
  • Learn
  • Videos
  • Docs
  • Theme

    Theme reference

    • Colors
    • Font family
    • Font size
    • Font weight
    • Line height
    • Box shadow
    Create a theme Extend base
arshadcnv0.5.3
Reflex
Reflex

Styling

Styling components using style props.

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11

Styling components.

Styling components is done using style props and is as easy as using HTML attributes.

Add a background-color and color to a Button.

<Button bg="tomato" color="#fff">
Button
</Button>

We have added support for every CSS properties such as fontSize, fontFamily, textDecoration, flexDirection and much more.

A hero

<Section py="20px" textAlign="center" color="#000" bg="#f7f7f7">
<H1 my="0" color="#000">
Hero Heading
</H1>
<P fontSize="20px">This is some text</P>
<Button bg="#08f" color="#fff" borderWidth="0" hoverBg="#000">
Get Started
</Button>
</Section>
A hero

Hero Heading

This is some text

ComponentsTheming

© 2020 Reflex

  • Blocks
  • Examples
  • Learn
  • Docs
  • Github