Skip to content

Commit 81ccb4e

Browse files
author
Hector Arce De Las Heras
committed
Update styles for kubit
1 parent ce5d6fd commit 81ccb4e

File tree

4 files changed

+24
-31
lines changed

4 files changed

+24
-31
lines changed

src/designSystem/kubit/components/dot/styles.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,14 @@ export const DOT_STYLES: DotStylesType<DotVariantType, DotSizeType> = {
1717
border_width: BORDERS.border_50,
1818
border_color: COLORS.ACCENT.color_accent_default_border_150,
1919
border_style: 'solid',
20+
color: COLORS.ACCENT.color_accent_default_font_150,
2021
},
2122
},
2223
[DotVariantType.WITHOUT_BORDER]: {
2324
container: {
2425
...containerCommonProps,
2526
background_color: COLORS.ACCENT.color_accent_default_bg_100,
27+
color: COLORS.ACCENT.color_accent_default_font_150,
2628
},
2729
},
2830
[DotVariantType.ALTERNATIVE]: {
@@ -54,6 +56,7 @@ export const DOT_STYLES: DotStylesType<DotVariantType, DotSizeType> = {
5456
font_size: PARAGRAPH.CAPTION.DESKTOP.font_size,
5557
line_height: PARAGRAPH.CAPTION.DESKTOP.line_height,
5658
font_weight: FONT_WEIGHT.font_weight_600,
59+
font_style: 'normal',
5760
},
5861
},
5962
[DotSizeType.BIG]: {
@@ -66,6 +69,7 @@ export const DOT_STYLES: DotStylesType<DotVariantType, DotSizeType> = {
6669
font_size: PARAGRAPH.CAPTION.DESKTOP.font_size,
6770
line_height: PARAGRAPH.CAPTION.DESKTOP.line_height,
6871
font_weight: FONT_WEIGHT.font_weight_600,
72+
font_style: 'normal',
6973
},
7074
},
7175
};

src/designSystem/kubit/components/input/styles.ts

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,18 @@ const commonProps = {
5555
font_weight: FONT_WEIGHT.font_weight_400,
5656
color: COLORS.NEUTRAL.color_neutral_font_50,
5757
},
58+
errorAndHelpMessageContainer: {
59+
display: 'flex',
60+
flex_direction: 'column',
61+
gap: SPACINGS.spacing_150,
62+
},
63+
helpMessageContainer: {
64+
padding: SPACINGS.spacing_0,
65+
padding_left: SPACINGS.spacing_0,
66+
display: 'flex',
67+
flex_direction: 'row',
68+
justify_content: 'space-between',
69+
},
5870
helpMessage: {
5971
text_align: TEXT_ALIGN.left,
6072
font_weight: FONT_WEIGHT.font_weight_300,
@@ -67,14 +79,6 @@ const commonProps = {
6779
color: COLORS.SECONDARY.color_secondary_bg_100,
6880
variant: IconHighlightedVariantType.ROUND,
6981
},
70-
helpMessageContainer: {
71-
margin_top: SPACINGS.spacing_100,
72-
padding: SPACINGS.spacing_0,
73-
padding_left: SPACINGS.spacing_0,
74-
display: 'flex',
75-
flex_direction: 'row',
76-
justify_content: 'space-between',
77-
},
7882
inputIcon: {
7983
color: COLORS.ACCENT.color_accent_default_icon_100,
8084
width: SIZES.size_250,
@@ -152,6 +156,10 @@ const errorProps = {
152156
...commonProps.inputContainer,
153157
border_color: COLORS.FEEDBACK.color_feedbackError_border_100,
154158
},
159+
errorAndHelpMessageContainer: {
160+
...commonProps.errorAndHelpMessageContainer,
161+
margin_top: SPACINGS.spacing_150,
162+
},
155163
errorMessage: {
156164
font_variant: TextVariantType.PARAGRAPH_CAPTION_EXPANDED,
157165
font_weight: FONT_WEIGHT.font_weight_300,
@@ -162,8 +170,6 @@ const errorProps = {
162170
display: 'flex',
163171
flex_direction: 'row',
164172
gap: SPACINGS.spacing_100,
165-
margin_top: SPACINGS.spacing_150,
166-
margin_bottom: SPACINGS.spacing_150,
167173
padding_left: SPACINGS.spacing_0,
168174
},
169175
errorMessageIcon: {

src/designSystem/kubit/components/message/styles.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,10 @@ const commonProps = {
6767
width: '100%',
6868
align_items: 'flex-start',
6969
},
70+
linksContainer: {
71+
display: 'flex',
72+
gap: SPACINGS.spacing_150,
73+
},
7074
};
7175

7276
export const MESSAGE_STYLES: MessageStylesType<MessageVariantType> = {

src/designSystem/kubit/globalStyles/fonts.ts

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@ import NunitoExtraLight from '../fonts/NunitoSans_10pt-ExtraLight.ttf';
1313
import NunitoLight from '../fonts/NunitoSans_10pt-Light.ttf';
1414
import NunitoRegular from '../fonts/NunitoSans_10pt-Regular.ttf';
1515
import NunitoSemiBold from '../fonts/NunitoSans_10pt-SemiBold.ttf';
16-
import RobotoMonoBold from '../fonts/RobotoMono-Bold.ttf';
17-
import RobotoMonoLight from '../fonts/RobotoMono-Light.ttf';
18-
import RobotoMonoMedium from '../fonts/RobotoMono-Medium.ttf';
1916

2017
export const FONTS_KUBIT_GLOBAL_STYLES = css`
2118
@font-face {
@@ -54,24 +51,6 @@ export const FONTS_KUBIT_GLOBAL_STYLES = css`
5451
src: url(${GTAmericaExtendedLight}) format('truetype');
5552
}
5653
57-
@font-face {
58-
font-family: 'Roboto-Mono Font';
59-
font-weight: 700;
60-
src: url(${RobotoMonoBold}) format('truetype');
61-
}
62-
63-
@font-face {
64-
font-family: 'Roboto-Mono Font';
65-
font-weight: 300;
66-
src: url(${RobotoMonoLight}) format('truetype');
67-
}
68-
69-
@font-face {
70-
font-family: 'Roboto-Mono Font';
71-
font-weight: 400;
72-
src: url(${RobotoMonoMedium}) format('truetype');
73-
}
74-
7554
@font-face {
7655
font-family: 'Nunito-Sans Font';
7756
font-weight: 200;

0 commit comments

Comments
 (0)