Skip to content

Horizon5

Tags: gradient, color, fade, mask

Usage

Before you begin, make sure that you've installed Ombré in your project. Then use the <OmbreHorizon5 /> component like so:

vue
<script setup>
  import { OmbreHorizon5 } from '@ombre-ui/vue'
</script>

<template>
  <div class="relative h-screen w-screen">
    <OmbreHorizon5 />
  </div>
</template>
tsx
import { OmbreHorizon5 } from '@ombre-ui/react'

function MyComponent() {
    return (
        <div className="relative h-screen w-screen">
            <OmbreHorizon5 />
        </div>
    )
}
svelte
<script>
  import { OmbreHorizon5 } from '@ombre-ui/svelte'
</script>

<div class="relative h-screen w-screen">
    <OmbreHorizon5 />
</div>

Props

You can configure OmbreHorizon5 by passing the following props:

NameTypeDefaultDescription
color1String#42a3d8The first color of the horizon gradient.
color2String#5500ffThe second color of the horizon gradient.
color3String#ff05d5The third color of the horizon gradient.
color4String#6b1ebfThe fourth color of the horizon gradient.
backgroundColorString#0b1229The background color.

Deploying to Production

You must have a valid Ombré license before you deploy to production. You can purchase a lifetime license for unlimited personal & commercial projects for only $36.