Skip to content

Commit

Permalink
Add color variables to gradients where possible
Browse files Browse the repository at this point in the history
  • Loading branch information
corquaid authored and tarnas14 committed May 4, 2022
1 parent 6efd272 commit 269351c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 6 additions & 3 deletions applications/launchpad_v2/src/styles/styles/gradients.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
import colors from './colors'

/**
* Gradient palette
*/

export const gradients = {
tari: 'linear-gradient(239.91deg, #9330FF 0%, #593A9B 131%)',
const gradients = {
tari: `linear-gradient(239.91deg, ${colors.tari.purple} 0%, #593A9B 131%)`,
tariDark: 'linear-gradient(239.91deg, #3D1061 0%, #593A9B 131%)',
monero: 'linear-gradient(239.91deg, #ED695E 0%, #D24F43 131%)',
merged: 'linear-gradient(238.06deg, #6838B4 0%, #DA574B 99.74%)',
baseNodeDark: 'linear-gradient(238.06deg, #55208E 0%, #455E5B 99.74%)',
warning: 'linear-gradient(264.94deg, #D87740 21.86%, #D18A18 80.58%)'
warning: `linear-gradient(264.94deg, #D87740 21.86%, ${colors.secondary.warningText} 80.58%)`
}

export default gradients
2 changes: 1 addition & 1 deletion applications/launchpad_v2/src/styles/styles/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import colors from './colors'
import { gradients } from './gradients'
import gradients from './gradients'

const styles = {
colors,
Expand Down

0 comments on commit 269351c

Please sign in to comment.