Skip to content

Commit a331640

Browse files
Merge pull request #30 from input-output-hk/feat/lw-10641-add-onboarding-icons
feat: add wallet onboarding icons and additional text color [LW-10641]
2 parents e33d550 + b899917 commit a331640

File tree

10 files changed

+95
-0
lines changed

10 files changed

+95
-0
lines changed

src/design-system/text/text.css.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,11 @@ export const typography = recipe({
4545
success: sx({ color: '$data_green' }),
4646
error: sx({ color: '$data_pink' }),
4747
warning: sx({ color: '$data_orange' }),
48+
laceGradient: sx({
49+
backgroundImage: '$text_gradient',
50+
WebkitBackgroundClip: 'text',
51+
WebkitTextFillColor: 'transparent',
52+
}),
4853
},
4954
},
5055
});

src/design-tokens/colors.data.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,7 @@ export const colors = {
172172
$text_secondary: '',
173173
$text_on_gradient: '',
174174
$text_accent: '',
175+
$text_gradient: '',
175176

176177
$metadata_secondary_label_color: '',
177178

src/design-tokens/sx.css.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,8 @@ const colorProperties = defineProperties({
105105
borderImageSource: vars.colors,
106106
backgroundImage: vars.colors,
107107
backgroundColor: vars.colors,
108+
WebkitBackgroundClip: ['text'],
109+
WebkitTextFillColor: ['transparent'],
108110
},
109111
});
110112

src/design-tokens/theme/dark-theme.css.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,7 @@ const colors: Colors = {
244244
$text_secondary: darkColorScheme.$primary_light_grey,
245245
$text_on_gradient: darkColorScheme.$primary_white,
246246
$text_accent: darkColorScheme.$primary_accent_purple,
247+
$text_gradient: laceGradient,
247248

248249
$metadata_secondary_label_color: darkColorScheme.$primary_light_grey,
249250

src/design-tokens/theme/light-theme.css.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,7 @@ const colors: Colors = {
265265
$text_secondary: lightColorScheme.$primary_dark_grey,
266266
$text_on_gradient: lightColorScheme.$primary_white,
267267
$text_accent: lightColorScheme.$primary_accent_purple,
268+
$text_gradient: laceGradient,
268269

269270
$metadata_secondary_label_color: lightColorScheme.$primary_dark_grey,
270271

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
import * as React from 'react';
2+
import type { SVGProps } from 'react';
3+
const SvgLockIconGradientcomponent = (props: SVGProps<SVGSVGElement>) => (
4+
<svg
5+
xmlns="http://www.w3.org/2000/svg"
6+
width={29}
7+
height={32}
8+
fill="none"
9+
{...props}
10+
>
11+
<path
12+
stroke="url(#lock-icon-gradient_component_svg__a)"
13+
strokeLinecap="round"
14+
strokeWidth={2}
15+
d="M7.833 14.333V7.667a6.667 6.667 0 1 1 13.334 0M14.5 21v3.333M4.5 31h20a3.333 3.333 0 0 0 3.333-3.333v-10a3.333 3.333 0 0 0-3.333-3.334h-20a3.333 3.333 0 0 0-3.333 3.334v10A3.333 3.333 0 0 0 4.5 31Z"
16+
/>
17+
<defs>
18+
<linearGradient
19+
id="lock-icon-gradient_component_svg__a"
20+
x1={-3.713}
21+
x2={35.401}
22+
y1={-4.489}
23+
y2={-1.925}
24+
gradientUnits="userSpaceOnUse"
25+
>
26+
<stop stopColor="#FF92DE" />
27+
<stop offset={1} stopColor="#FDC300" />
28+
</linearGradient>
29+
</defs>
30+
</svg>
31+
);
32+
export default SvgLockIconGradientcomponent;
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
import * as React from 'react';
2+
import type { SVGProps } from 'react';
3+
const SvgPlusIconGradientcomponent = (props: SVGProps<SVGSVGElement>) => (
4+
<svg
5+
xmlns="http://www.w3.org/2000/svg"
6+
width={29}
7+
height={30}
8+
fill="none"
9+
{...props}
10+
>
11+
<path
12+
stroke="url(#plus-icon-gradient_component_svg__a)"
13+
strokeLinecap="round"
14+
strokeLinejoin="round"
15+
strokeWidth={2}
16+
d="M14.5 1.667v26.666M27.833 15H1.167"
17+
/>
18+
<defs>
19+
<linearGradient
20+
id="plus-icon-gradient_component_svg__a"
21+
x1={-3.713}
22+
x2={35.357}
23+
y1={-3.213}
24+
y2={-0.331}
25+
gradientUnits="userSpaceOnUse"
26+
>
27+
<stop stopColor="#FF92DE" />
28+
<stop offset={1} stopColor="#FDC300" />
29+
</linearGradient>
30+
</defs>
31+
</svg>
32+
);
33+
export default SvgPlusIconGradientcomponent;

src/icons/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ export { default as LightBulbGradientComponent } from './LightBulbGradientCompon
4141
export { default as LoaderDarkGradientComponent } from './LoaderDarkGradientComponent';
4242
export { default as LoaderLightGradientComponent } from './LoaderLightGradientComponent';
4343
export { default as LoadingComponent } from './LoadingComponent';
44+
export { default as LockIconGradientComponent } from './LockIconGradientComponent';
4445
export { default as MnemonicComponent } from './MnemonicComponent';
4546
export { default as NewspaperGradientComponent } from './NewspaperGradientComponent';
4647
export { default as PaperwalletComponent } from './PaperwalletComponent';
@@ -49,6 +50,7 @@ export { default as PencilOutlineComponent } from './PencilOutlineComponent';
4950
export { default as PlainCircleComponent } from './PlainCircleComponent';
5051
export { default as PlusCircleGradientComponent } from './PlusCircleGradientComponent';
5152
export { default as PlusCircleComponent } from './PlusCircleComponent';
53+
export { default as PlusIconGradientComponent } from './PlusIconGradientComponent';
5254
export { default as PlusSmallComponent } from './PlusSmallComponent';
5355
export { default as PrinterComponent } from './PrinterComponent';
5456
export { default as QrcodeComponent } from './QrcodeComponent';
Lines changed: 9 additions & 0 deletions
Loading
Lines changed: 9 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)