@iroco/ui 1.0.0-3 → 1.0.0-5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (56) hide show
  1. package/README.md +9 -14
  2. package/dist/Alert.stories.svelte +32 -0
  3. package/dist/Alert.stories.svelte.d.ts +37 -0
  4. package/dist/Alert.svelte +8 -52
  5. package/dist/Button.stories.svelte +4 -3
  6. package/dist/Button.stories.svelte.d.ts +6 -3
  7. package/dist/Button.svelte +18 -63
  8. package/dist/DataTable.stories.svelte +31 -0
  9. package/dist/DataTable.stories.svelte.d.ts +29 -0
  10. package/dist/DataTable.svelte +3 -47
  11. package/dist/IconBurger.stories.svelte +30 -0
  12. package/dist/IconBurger.stories.svelte.d.ts +48 -0
  13. package/dist/IconClose.stories.svelte +30 -0
  14. package/dist/IconClose.stories.svelte.d.ts +48 -0
  15. package/dist/IconFloppyDisk.stories.svelte +33 -0
  16. package/dist/IconFloppyDisk.stories.svelte.d.ts +55 -0
  17. package/dist/IconInfo.stories.svelte +31 -0
  18. package/dist/IconInfo.stories.svelte.d.ts +50 -0
  19. package/dist/IconIrocoLogo.stories.svelte +34 -0
  20. package/dist/IconIrocoLogo.stories.svelte.d.ts +57 -0
  21. package/dist/IconMoreSign.stories.svelte +31 -0
  22. package/dist/IconMoreSign.stories.svelte.d.ts +50 -0
  23. package/dist/IconTrashCan.stories.svelte +31 -0
  24. package/dist/IconTrashCan.stories.svelte.d.ts +50 -0
  25. package/dist/IrocoLogo.stories.svelte +31 -0
  26. package/dist/IrocoLogo.stories.svelte.d.ts +50 -0
  27. package/dist/Loader.stories.svelte +19 -0
  28. package/dist/Loader.stories.svelte.d.ts +29 -0
  29. package/dist/NavBar.stories.svelte +37 -0
  30. package/dist/NavBar.stories.svelte.d.ts +37 -0
  31. package/dist/NavBar.svelte +27 -199
  32. package/dist/Navigation.stories.svelte +14 -15
  33. package/dist/Navigation.svelte +13 -90
  34. package/dist/NumberInput.stories.svelte +47 -0
  35. package/dist/NumberInput.stories.svelte.d.ts +77 -0
  36. package/dist/NumberInput.svelte +8 -52
  37. package/dist/RadioButton.stories.svelte +39 -0
  38. package/dist/RadioButton.stories.svelte.d.ts +56 -0
  39. package/dist/RadioButton.svelte +5 -50
  40. package/dist/RadioButton.svelte.d.ts +0 -2
  41. package/dist/TextInput.stories.svelte +77 -0
  42. package/dist/TextInput.stories.svelte.d.ts +111 -0
  43. package/dist/TextInput.svelte +9 -53
  44. package/dist/scss/button.scss +18 -18
  45. package/dist/scss/colors.scss +68 -91
  46. package/dist/scss/fields/_checkbox.scss +3 -3
  47. package/dist/scss/fields/_input.scss +11 -12
  48. package/dist/scss/forms.scss +8 -8
  49. package/dist/scss/style.scss +1 -1
  50. package/package.json +4 -2
  51. package/dist/NumberInputSized.svelte +0 -4
  52. package/dist/NumberInputSized.svelte.d.ts +0 -14
  53. package/dist/TopBar.svelte +0 -0
  54. package/dist/TopBar.svelte.d.ts +0 -23
  55. package/dist/scss/check.scss +0 -48
  56. package/dist/scss/iroco.scss +0 -38
@@ -0,0 +1,77 @@
1
+ <script context="module">
2
+ import { TextInput } from './index';
3
+
4
+ export const meta = {
5
+ title: 'Iroco-UI/Form/TextInput',
6
+ component: TextInput,
7
+ argTypes: {
8
+ id: {
9
+ control: { type: 'text' }
10
+ },
11
+ type: {
12
+ control: { type: 'select' },
13
+ options: ['text', 'email', 'password']
14
+ },
15
+ name: {
16
+ control: { type: 'text' }
17
+ },
18
+ label: {
19
+ control: { type: 'text' }
20
+ },
21
+ placeholder: {
22
+ control: { type: 'text' }
23
+ },
24
+ error: {
25
+ control: { type: 'text' }
26
+ },
27
+ htmlError: {
28
+ control: { type: 'text' }
29
+ },
30
+ value: {
31
+ control: { type: 'number' }
32
+ },
33
+ readonly: {
34
+ control: { type: 'boolean' }
35
+ },
36
+ border: {
37
+ control: { type: 'boolean' }
38
+ },
39
+ autocomplete: {
40
+ control: { type: 'text' }
41
+ }
42
+ },
43
+ args: {
44
+ type: 'text'
45
+ }
46
+ };
47
+ </script>
48
+
49
+ <script>
50
+ import { Story, Template } from '@storybook/addon-svelte-csf';
51
+ </script>
52
+
53
+ <Template let:args>
54
+ <form class="iroco-ui-form">
55
+ <TextInput {...args} />
56
+ </form>
57
+ </Template>
58
+
59
+ <Story name="Default" />
60
+ <Story name="Text" args={{ type: 'text' }} />
61
+ <Story name="Email" args={{ type: 'email' }} />
62
+ <Story name="Password" args={{ type: 'password' }} />
63
+ <Story name="Label" args={{ label: 'Label' }} />
64
+ <Story name="Error" args={{ error: 'An error message' }} />
65
+ <Story name="Placeholder" args={{ placeholder: 'A placeholder' }} />
66
+ <Story name="Border" args={{ placeholder: 'A placeholder' }} />
67
+ <Story
68
+ name="Html Error"
69
+ args={{
70
+ error: `<details>
71
+ <summary>HTML error</summary>
72
+ <p>Foo bar</p>
73
+ </details>`,
74
+ htmlError: true
75
+ }}
76
+ />
77
+ <Story name="Autocomplete" args={{ type: 'text', autocomplete: 'name' }} />
@@ -0,0 +1,111 @@
1
+ export namespace meta {
2
+ export let title: string;
3
+ export { TextInput as component };
4
+ export namespace argTypes {
5
+ export namespace id {
6
+ namespace control {
7
+ let type: string;
8
+ }
9
+ }
10
+ export namespace type_1 {
11
+ export namespace control_1 {
12
+ let type_2: string;
13
+ export { type_2 as type };
14
+ }
15
+ export { control_1 as control };
16
+ export let options: string[];
17
+ }
18
+ export { type_1 as type };
19
+ export namespace name {
20
+ export namespace control_2 {
21
+ let type_3: string;
22
+ export { type_3 as type };
23
+ }
24
+ export { control_2 as control };
25
+ }
26
+ export namespace label {
27
+ export namespace control_3 {
28
+ let type_4: string;
29
+ export { type_4 as type };
30
+ }
31
+ export { control_3 as control };
32
+ }
33
+ export namespace placeholder {
34
+ export namespace control_4 {
35
+ let type_5: string;
36
+ export { type_5 as type };
37
+ }
38
+ export { control_4 as control };
39
+ }
40
+ export namespace error {
41
+ export namespace control_5 {
42
+ let type_6: string;
43
+ export { type_6 as type };
44
+ }
45
+ export { control_5 as control };
46
+ }
47
+ export namespace htmlError {
48
+ export namespace control_6 {
49
+ let type_7: string;
50
+ export { type_7 as type };
51
+ }
52
+ export { control_6 as control };
53
+ }
54
+ export namespace value {
55
+ export namespace control_7 {
56
+ let type_8: string;
57
+ export { type_8 as type };
58
+ }
59
+ export { control_7 as control };
60
+ }
61
+ export namespace readonly {
62
+ export namespace control_8 {
63
+ let type_9: string;
64
+ export { type_9 as type };
65
+ }
66
+ export { control_8 as control };
67
+ }
68
+ export namespace border {
69
+ export namespace control_9 {
70
+ let type_10: string;
71
+ export { type_10 as type };
72
+ }
73
+ export { control_9 as control };
74
+ }
75
+ export namespace autocomplete {
76
+ export namespace control_10 {
77
+ let type_11: string;
78
+ export { type_11 as type };
79
+ }
80
+ export { control_10 as control };
81
+ }
82
+ }
83
+ export namespace args {
84
+ let type_12: string;
85
+ export { type_12 as type };
86
+ }
87
+ }
88
+ /** @typedef {typeof __propDef.props} TextInputProps */
89
+ /** @typedef {typeof __propDef.events} TextInputEvents */
90
+ /** @typedef {typeof __propDef.slots} TextInputSlots */
91
+ export default class TextInput extends SvelteComponent<{
92
+ [x: string]: never;
93
+ }, {
94
+ [evt: string]: CustomEvent<any>;
95
+ }, {}> {
96
+ }
97
+ export type TextInputProps = typeof __propDef.props;
98
+ export type TextInputEvents = typeof __propDef.events;
99
+ export type TextInputSlots = typeof __propDef.slots;
100
+ import { TextInput } from './index';
101
+ import { SvelteComponent } from "svelte";
102
+ declare const __propDef: {
103
+ props: {
104
+ [x: string]: never;
105
+ };
106
+ events: {
107
+ [evt: string]: CustomEvent<any>;
108
+ };
109
+ slots: {};
110
+ };
111
+ export {};
@@ -47,51 +47,7 @@ function typeAction(node) {
47
47
  {/if}
48
48
  </div>
49
49
 
50
- <style>.font-color-blue {
51
- color: #00b9ff;
52
- }
53
-
54
- .font-color-darkBlue {
55
- color: #211d28;
56
- }
57
-
58
- .font-color-nightBlue {
59
- color: #18151e;
60
- }
61
-
62
- .font-color-green {
63
- color: #00d692;
64
- }
65
-
66
- .font-color-red {
67
- color: #ff504d;
68
- }
69
-
70
- .font-color-yellow {
71
- color: #ffe032;
72
- }
73
-
74
- .font-color-beige {
75
- color: #f2ebe3;
76
- }
77
-
78
- .font-color-darkBeige {
79
- color: #a9a29e;
80
- }
81
-
82
- .font-color-mediumGrey {
83
- color: #464452;
84
- }
85
-
86
- .font-color-darkGrey {
87
- color: #33323a;
88
- }
89
-
90
- .font-color-lightGrey {
91
- color: #f5f5f5;
92
- }
93
-
94
- input,
50
+ <style>input,
95
51
  textarea {
96
52
  outline: none;
97
53
  text-decoration: none;
@@ -109,9 +65,9 @@ textarea:focus {
109
65
  flex-direction: column;
110
66
  }
111
67
  .iroco-ui-input > input {
112
- color: #f2ebe3;
113
- background: #211d28;
114
- border: 1px solid #464452;
68
+ color: var(--color-text);
69
+ background: var(--color-body);
70
+ border: 1px solid var(--color-border);
115
71
  padding: 1em 1.5em;
116
72
  text-overflow: ellipsis;
117
73
  white-space: nowrap;
@@ -119,23 +75,23 @@ textarea:focus {
119
75
  border-radius: 0.3em;
120
76
  }
121
77
  .iroco-ui-input > input.border {
122
- border: 1px solid #f2ebe3;
78
+ border: 1px solid var(--form-element-border);
123
79
  }
124
80
  .iroco-ui-input > input::placeholder {
125
- color: rgba(242, 235, 227, 0.5);
81
+ color: var(--color-text-op-50);
126
82
  }
127
83
  .iroco-ui-input > input.error {
128
- border-color: #ff504d;
84
+ border-color: var(--color-danger);
129
85
  }
130
86
  .iroco-ui-input > input.readonlyInput {
131
87
  cursor: not-allowed;
132
88
  }
133
89
  .iroco-ui-input .error {
134
- color: #ff504d;
90
+ color: var(--color-danger);
135
91
  }
136
92
 
137
93
  .iroco-ui-label {
138
- color: rgba(242, 235, 227, 0.6);
94
+ color: var(--color-text-op-60);
139
95
  font-weight: bold;
140
96
  padding-bottom: 10px;
141
97
  display: inline-block;
@@ -1,4 +1,4 @@
1
- @use './colors';
1
+ //@use './colors';
2
2
  @use './fonts';
3
3
  @use './containers';
4
4
  @use './constants';
@@ -7,35 +7,34 @@
7
7
  cursor: pointer;
8
8
  -webkit-touch-callout: none;
9
9
  -webkit-user-select: none;
10
- -khtml-user-select: none;
11
10
  -moz-user-select: none;
12
11
  -ms-user-select: none;
13
12
  user-select: none;
14
13
  border: none;
15
14
  flex-shrink: 0;
16
- margin: 1em 0em;
15
+ margin: 1em 0;
17
16
  position: relative;
18
17
  text-transform: uppercase;
19
18
  border-radius: constants.$border-radius;
20
19
 
21
20
  &--basic {
22
- color: colors.$buttonSecondaryLabel;
23
- background: colors.$buttonSecondaryBackground;
24
- border: 1px solid colors.$buttonSecondaryBorder;
21
+ color: var(--btn-basic-label);
22
+ background: var(--btn-basic-bg);
23
+ border: 1px solid var(--btn-basic-border);
25
24
  }
26
25
 
27
26
  &--dark {
28
- background: colors.$buttonPrimaryBackgroundDark;
29
- color: colors.$buttonPrimaryLabelDark;
27
+ background: var(--dark-btn-primary-bg);
28
+ color: var(--dark-btn-primary-label);
30
29
  }
31
30
 
32
31
  &--success {
33
- background: colors.$success;
34
- color: colors.$nightBlue;
32
+ background: var(--color-success);
33
+ color: var(--btn-secondary-label);
35
34
  }
36
35
 
37
36
  &--danger {
38
- background: colors.$danger;
37
+ background: var(--color-danger);
39
38
  }
40
39
 
41
40
  &--regular {
@@ -49,21 +48,22 @@
49
48
  &--basic:hover,
50
49
  &--success:hover,
51
50
  &--danger:hover {
52
- box-shadow: inset 0 0 0 10em rgba(0, 0, 0, 0.2);
51
+ box-shadow: inset 0 0 0 10em var(--color-black-op-20);
53
52
  }
54
53
 
55
54
  &--dark:hover {
56
- box-shadow: inset 0 0 0 10em rgba(255, 255, 255, 0.2);
55
+ box-shadow: inset 0 0 0 10em var(--color-white-op-20);
57
56
  }
58
57
 
59
58
  &:active {
60
59
  box-shadow: none;
61
60
  }
62
61
 
63
- &.disabled {
64
- background-color: colors.$buttonDisabledBackground;
65
- color: colors.$buttonDisabledLabel;
66
- border-color: colors.$buttonDisabledBorder;
62
+ &.disabled,
63
+ &:disabled {
64
+ background-color: var(--btn-disabled-bg);
65
+ color: var(--btn-disabled-label);
66
+ border-color: var(--btn-disabled-border);
67
67
  cursor: default;
68
68
 
69
69
  &:hover {
@@ -76,6 +76,6 @@
76
76
  background: none;
77
77
  border: none;
78
78
  font-family: fonts.$arial;
79
- color: colors.$text;
79
+ color: var(--color-text);
80
80
  cursor: pointer;
81
81
  }
@@ -1,92 +1,69 @@
1
- // Declarative colors
2
-
3
- $blue: #00b9ff;
4
- $darkBlue: #211d28;
5
- $nightBlue: #18151e;
6
- $green: #00d692;
7
- $red: #ff504d;
8
- $yellow: #ffe032;
9
- $white: #ffffff;
10
- $beige: #f2ebe3;
11
- $darkBeige: #a9a29e;
12
- $mediumGrey: #464452;
13
- $darkGrey: #33323a;
14
- $lightGrey: #f5f5f5;
15
-
16
- .font-color-blue {
17
- color: $blue;
18
- }
19
-
20
- .font-color-darkBlue {
21
- color: $darkBlue;
22
- }
23
-
24
- .font-color-nightBlue {
25
- color: $nightBlue;
26
- }
27
-
28
- .font-color-green {
29
- color: $green;
30
- }
31
-
32
- .font-color-red {
33
- color: $red;
34
- }
35
-
36
- .font-color-yellow {
37
- color: $yellow;
38
- }
39
-
40
- .font-color-beige {
41
- color: $beige;
42
- }
43
-
44
- .font-color-darkBeige {
45
- color: $darkBeige;
1
+ // Import this file for Iroco colors
2
+ // Create your own theme by duplicating this one and importing it globally
3
+
4
+ :root {
5
+ --color-white-op-20: rgba(255, 255, 255, 0.2);
6
+ --color-white-op-30: rgba(255, 255, 255, 0.3);
7
+
8
+ --color-black-op-20: rgba(0, 0, 0, 0.2);
9
+ --color-black-op-40: rgba(0, 0, 0, 0.4);
10
+ --color-black-op-60: rgba(0, 0, 0, 0.6);
11
+
12
+ --color-dark-blue-op-30: #211d284d;
13
+
14
+ /* semantic colors */
15
+ --color-primary-light: #82eec7;
16
+ --color-primary: #00d692;
17
+ --color-primary-bg: #00d69280;
18
+ --color-primary-dark: #00a873;
19
+
20
+ --color-secondary-light: #ffffff;
21
+ --color-secondary: #f2ebe3;
22
+ --color-secondary-dark: #a9a29e;
23
+
24
+ /* feedback */
25
+ --color-success: #00d692;
26
+ --color-success-bg: #00d69280;
27
+ --color-danger: #ff504d;
28
+ --color-danger-bg: #ff504d80;
29
+ --color-warning: #ffe032;
30
+ --color-warning-bg: #ffe03280;
31
+
32
+ /* typography */
33
+ --color-text-light: #ffffff;
34
+ --color-text: #f2ebe3;
35
+ --color-text-op-50: #f2ebe380;
36
+ --color-text-op-60: #f2ebe399;
37
+ --color-text-dark: #464452;
38
+
39
+ /* border */
40
+ --color-border: #464452;
41
+
42
+ /* body */
43
+ --color-body: #211d28;
44
+
45
+ /* forms */
46
+ --form-element-border: var(--color-border);
47
+ --form-element-bg: #f2ebe3;
48
+ --form-text-placeholder: #a9a29e;
49
+
50
+ /* buttons */
51
+ --btn-primary-bg: #f2ebe3;
52
+ --btn-primary-border: #18151e;
53
+ --btn-primary-label: #f2ebe3;
54
+
55
+ --dark-btn-primary-label: #f2ebe3;
56
+ --dark-btn-primary-bg: #18151e;
57
+
58
+ --btn-basic-label: #18151e;
59
+ --btn-basic-bg: #f2ebe3;
60
+ --btn-basic-border: #18151e;
61
+
62
+ --btn-disabled-label: var(--color-black-op-60);
63
+ --btn-disabled-bg: #a9a29e;
64
+ --btn-disabled-border: var(--color-black-op-60);
65
+
66
+ /* icons */
67
+ --color-icon-primary: #a9a29e;
68
+ --color-icon-secondary: inherit;
46
69
  }
47
-
48
- .font-color-mediumGrey {
49
- color: $mediumGrey;
50
- }
51
-
52
- .font-color-darkGrey {
53
- color: $darkGrey;
54
- }
55
-
56
- .font-color-lightGrey {
57
- color: $lightGrey;
58
- }
59
-
60
- // Semantic colors
61
-
62
- $primary: $green;
63
-
64
- $success: $green;
65
- $danger: $red;
66
- $warning: $yellow;
67
-
68
- $background: $darkBlue;
69
- $text: $beige;
70
- $textLight: $white;
71
-
72
- $iconPrimary: $darkBeige;
73
- $border: $mediumGrey;
74
-
75
- $formElementBackground: $beige;
76
- $formElementBorder: $beige;
77
- $formTextPlaceholder: $beige;
78
-
79
- $buttonPrimaryLabel: $beige;
80
- $buttonPrimaryBackground: $primary;
81
- $buttonPrimaryBorder: $nightBlue;
82
-
83
- $buttonPrimaryBackgroundDark: $nightBlue;
84
- $buttonPrimaryLabelDark: $beige;
85
-
86
- $buttonSecondaryLabel: $nightBlue;
87
- $buttonSecondaryBackground: $beige;
88
- $buttonSecondaryBorder: $nightBlue;
89
-
90
- $buttonDisabledLabel: $darkGrey;
91
- $buttonDisabledBackground: $darkBeige;
92
- $buttonDisabledBorder: $mediumGrey;
@@ -5,7 +5,7 @@
5
5
  justify-content: flex-start;
6
6
 
7
7
  > label {
8
- @include Arial(0.9em, $blue, bold);
8
+ @include Arial(0.9em, #00b9ff /*$blue*/, bold);
9
9
  letter-spacing: 0.05em;
10
10
  text-transform: uppercase;
11
11
  display: inline-block;
@@ -26,14 +26,14 @@
26
26
  margin-top: 15px;
27
27
 
28
28
  > span {
29
- @include Arial(0.9em, $red);
29
+ @include Arial(0.9em, var(--color-danger) /* red */);
30
30
  margin-left: 10px;
31
31
  }
32
32
  }
33
33
 
34
34
  > .warning {
35
35
  > span {
36
- color: $blue;
36
+ color: #00b9ff /*$blue*/;
37
37
  }
38
38
  }
39
39
  }
@@ -1,4 +1,4 @@
1
- @use './../colors';
1
+ //@use './../colors';
2
2
  .ui-fields-input {
3
3
  width: 100%;
4
4
  transition: width linear 100ms;
@@ -37,7 +37,7 @@
37
37
  left: 0;
38
38
  width: 0;
39
39
  height: 3px;
40
- background: colors.$green;
40
+ background: var(--color-primary);
41
41
  transition: all 400ms cubic-bezier(0.215, 0.61, 0.355, 1);
42
42
  }
43
43
 
@@ -46,7 +46,7 @@
46
46
  }
47
47
 
48
48
  > input {
49
- @include Arial(1em, colors.$darkBlue);
49
+ @include Arial(1em, #211d28); /* $darkBlue */
50
50
  flex: 1;
51
51
  padding: 10px 15px;
52
52
  text-overflow: ellipsis;
@@ -54,7 +54,7 @@
54
54
  overflow: hidden;
55
55
 
56
56
  &::placeholder {
57
- color: rgba(colors.$darkBlue, 0.3);
57
+ color: var(--color-dark-blue-op-30);
58
58
  font-style: italic;
59
59
  }
60
60
  }
@@ -78,12 +78,11 @@
78
78
  cursor: pointer;
79
79
  -webkit-touch-callout: none;
80
80
  -webkit-user-select: none;
81
- -khtml-user-select: none;
82
81
  -moz-user-select: none;
83
82
  -ms-user-select: none;
84
83
  user-select: none;
85
84
  flex-shrink: 0;
86
- border-top: solid colors.$beige 1px;
85
+ border-top: solid #f2ebe3 /*colors.$beige*/ 1px;
87
86
  background: white;
88
87
  transition: background linear 100ms;
89
88
 
@@ -93,14 +92,14 @@
93
92
 
94
93
  &:hover,
95
94
  &.selected {
96
- background: colors.$lightGrey;
95
+ background: #f5f5f5 /*lighGrey*/;
97
96
  }
98
97
  }
99
98
  }
100
99
  }
101
100
 
102
101
  > .instructions {
103
- @include Arial(1em, colors.$darkBeige);
102
+ @include Arial(1em, var(--color-secondary-dark) /*$darkBeige*/);
104
103
  margin-top: 10px;
105
104
  }
106
105
 
@@ -112,14 +111,14 @@
112
111
  margin-top: 15px;
113
112
 
114
113
  > span {
115
- @include Arial(0.9em, colors.$red);
114
+ @include Arial(0.9em, var(--color-danger) /*$red*/);
116
115
  margin-left: 10px;
117
116
  }
118
117
  }
119
118
 
120
119
  > .warning {
121
120
  > span {
122
- color: colors.$blue;
121
+ color: #00b9ff /*$blue*/;
123
122
  }
124
123
  }
125
124
 
@@ -138,13 +137,13 @@
138
137
 
139
138
  &.dark {
140
139
  > .container {
141
- background: colors.$background;
140
+ background: var(--color-body);
142
141
 
143
142
  > input {
144
143
  padding: 15px 20px;
145
144
 
146
145
  &::placeholder {
147
- color: rgba(white, 0.3);
146
+ color: var(--color-white-op-30);
148
147
  }
149
148
  }
150
149
  }
@@ -1,4 +1,4 @@
1
- @use 'colors';
1
+ //@use 'colors';
2
2
 
3
3
  .iroco-ui-form {
4
4
  input,
@@ -12,9 +12,9 @@
12
12
  display: flex;
13
13
  flex-direction: column;
14
14
  > input {
15
- color: colors.$beige;
16
- background: colors.$background;
17
- border: 1px solid colors.$border;
15
+ color: var(--color-text);
16
+ background: var(--color-body);
17
+ border: 1px solid var(--color-border);
18
18
  padding: 1em 1.5em;
19
19
  text-overflow: ellipsis;
20
20
  white-space: nowrap;
@@ -22,10 +22,10 @@
22
22
  border-radius: 0.5em;
23
23
 
24
24
  &::placeholder {
25
- color: rgba(colors.$beige, 0.5);
25
+ color: var(--color-text-op-50);
26
26
  }
27
27
  &.error {
28
- border-color: colors.$red;
28
+ border-color: var(--color-danger);
29
29
  }
30
30
  &.readonlyInput {
31
31
  cursor: not-allowed;
@@ -34,7 +34,7 @@
34
34
  }
35
35
 
36
36
  .iroco-ui-label {
37
- color: rgba(colors.$beige, 0.6);
37
+ color: var(--color-text-op-60);
38
38
  font-weight: bold;
39
39
  padding-bottom: 10px;
40
40
  display: inline-block;
@@ -54,6 +54,6 @@
54
54
 
55
55
  p.error {
56
56
  margin: 0;
57
- color: colors.$red;
57
+ color: var(--color-danger);
58
58
  }
59
59
  }
@@ -1,4 +1,4 @@
1
- @use 'colors';
1
+ //@use 'colors';
2
2
  @use 'containers';
3
3
  @use 'fonts';
4
4
  @use 'forms';