-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add logo and color pages + updated colors
- Loading branch information
1 parent
a2438e7
commit ed5242d
Showing
35 changed files
with
1,125 additions
and
278 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
components/src/components/molecules/CountdownCircle/utils/getValidatedColor.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
import { BaseColour, validateBaseColour } from '@/src/tokens/color3' | ||
import { PrimaryColor, validatePrimaryColor } from '@/src/tokens/color3' | ||
|
||
export type Color = BaseColour | ||
export type Color = PrimaryColor | ||
|
||
export type WithColor = { color: Color } | ||
|
||
export const getValidatedColor = (color: Color): string => { | ||
const matches = color.match('^(.*?)(Primary|Secondary)?$') | ||
const baseColor = matches?.[1] || 'accent' | ||
const validatedColor = validateBaseColour(baseColor, 'accent') | ||
const validatedColor = validatePrimaryColor(baseColor, 'accent') | ||
return `$${validatedColor}Primary` | ||
} |
6 changes: 3 additions & 3 deletions
6
components/src/components/molecules/CurrencyToggle/utils/getValidatedColor.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
import { BaseColour, validateBaseColour } from '@/src/tokens/color3' | ||
import { PrimaryColor, validatePrimaryColor } from '@/src/tokens/color3' | ||
|
||
export type Color = BaseColour | ||
export type Color = PrimaryColor | ||
|
||
export type WithColor = { color: Color } | ||
|
||
export const getValidatedColor = (color: Color = 'accent'): string => { | ||
const matches = color.match('^(.*?)(Primary|Secondary)?$') | ||
const baseColor = matches?.[1] || 'accent' | ||
const validatedColor = validateBaseColour(baseColor, 'accent') | ||
const validatedColor = validatePrimaryColor(baseColor, 'accent') | ||
return `$${validatedColor}Primary` | ||
} |
6 changes: 3 additions & 3 deletions
6
components/src/components/molecules/RadioButton/utils/getValidatedColor.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
import { BaseColour, validateBaseColour } from '@/src/tokens/color3' | ||
import { PrimaryColor, validatePrimaryColor } from '@/src/tokens/color3' | ||
|
||
export type Color = BaseColour | ||
export type Color = PrimaryColor | ||
|
||
export type WithColor = { color: Color } | ||
|
||
export const getValidatedColor = (color: Color = 'accent'): string => { | ||
const matches = color.match('^(.*?)(Primary|Secondary)?$') | ||
const baseColor = matches?.[1] || 'accent' | ||
const validatedColor = validateBaseColour(baseColor, 'accent') | ||
const validatedColor = validatePrimaryColor(baseColor, 'accent') | ||
return `$${validatedColor}Primary` | ||
} |
6 changes: 3 additions & 3 deletions
6
components/src/components/molecules/ThemeToggle/utils/getValidatedColor.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
import { BaseColour, validateBaseColour } from '@/src/tokens/color3' | ||
import { PrimaryColor, validatePrimaryColor } from '@/src/tokens/color3' | ||
|
||
export type Color = BaseColour | ||
export type Color = PrimaryColor | ||
|
||
export type WithColor = { color: Color } | ||
|
||
export const getValidatedColor = (color: Color = 'accent'): string => { | ||
const matches = color.match('^(.*?)(Primary|Secondary)?$') | ||
const baseColor = matches?.[1] || 'accent' | ||
const validatedColor = validateBaseColour(baseColor, 'accent') | ||
const validatedColor = validatePrimaryColor(baseColor, 'accent') | ||
return `$${validatedColor}Primary` | ||
} |
6 changes: 3 additions & 3 deletions
6
components/src/components/molecules/Toggle/utils/getValidatedColor.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
import { BaseColour, validateBaseColour } from '@/src/tokens/color3' | ||
import { PrimaryColor, validatePrimaryColor } from '@/src/tokens/color3' | ||
|
||
export type Color = BaseColour | ||
export type Color = PrimaryColor | ||
|
||
export type WithColor = { color: Color } | ||
|
||
export const getValidatedColor = (color: Color = 'accent'): string => { | ||
const matches = color.match('^(.*?)(Primary|Secondary)?$') | ||
const baseColor = matches?.[1] || 'accent' | ||
const validatedColor = validateBaseColour(baseColor, 'accent') | ||
const validatedColor = validatePrimaryColor(baseColor, 'accent') | ||
return `$${validatedColor}Primary` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.