srcdev-nuxt-forms 3.0.0 → 4.0.0
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.
- package/assets/styles/ally/_utils.css +20 -0
- package/assets/styles/ally/_variables.css +8 -0
- package/assets/styles/ally/index.css +2 -0
- package/assets/styles/forms/index.css +2 -0
- package/assets/styles/forms/themes/_error.css +85 -0
- package/assets/styles/forms/themes/_ghost.css +85 -0
- package/assets/styles/forms/themes/_input-action-underlined.css +20 -0
- package/assets/styles/forms/themes/_input-action.css +20 -0
- package/assets/styles/forms/themes/_primary.css +92 -0
- package/assets/styles/forms/themes/_secondary.css +85 -0
- package/assets/styles/forms/themes/_success.css +85 -0
- package/assets/styles/forms/themes/_tertiary.css +85 -0
- package/assets/styles/forms/themes/_warning.css +85 -0
- package/assets/styles/forms/themes/index.css +9 -0
- package/assets/styles/forms/variables/_sizes.css +71 -0
- package/assets/styles/forms/variables/_theme.css +11 -0
- package/assets/styles/forms/variables/index.css +2 -0
- package/assets/styles/main.css +5 -0
- package/assets/styles/typography/index.css +2 -0
- package/assets/styles/typography/utils/_font-classes.css +190 -0
- package/assets/styles/typography/utils/_weights.css +69 -0
- package/assets/styles/typography/utils/index.css +2 -0
- package/assets/styles/typography/variables/_colors.css +14 -0
- package/assets/styles/typography/variables/_reponsive-font-size.css +10 -0
- package/assets/styles/typography/variables/index.css +2 -0
- package/assets/styles/utils/_margin-helpers.css +334 -0
- package/assets/styles/utils/_padding-helpers.css +308 -0
- package/assets/styles/utils/_page.css +49 -0
- package/assets/styles/utils/index.css +3 -0
- package/assets/styles/variables/colors/_blue.css +15 -0
- package/assets/styles/variables/colors/_gray.css +16 -0
- package/assets/styles/variables/colors/_green.css +15 -0
- package/assets/styles/variables/colors/_orange.css +15 -0
- package/assets/styles/variables/colors/_red.css +15 -0
- package/assets/styles/variables/colors/_yellow.css +15 -0
- package/assets/styles/variables/colors/colors.css +6 -0
- package/assets/styles/variables/index.css +1 -0
- package/components/forms/c12/prop-validators/index.ts +38 -0
- package/components/forms/c12/utils.ts +14 -0
- package/components/forms/form-errors/InputError.vue +172 -0
- package/components/forms/form-errors/tests/InputError.spec.ts +67 -0
- package/components/forms/input-button/InputButtonCore.vue +191 -0
- package/components/forms/input-button/variants/InputButtonConfirm.vue +66 -0
- package/components/forms/input-button/variants/InputButtonSubmit.vue +62 -0
- package/components/forms/input-checkbox/MultipleCheckboxes.vue +203 -0
- package/components/forms/input-checkbox/SingleCheckbox.vue +169 -0
- package/components/forms/input-checkbox/tests/MultipleCheckboxes.spec.ts +98 -0
- package/components/forms/input-checkbox/tests/data/tags.json +67 -0
- package/components/forms/input-checkbox-radio/InputCheckboxRadioButton.vue +214 -0
- package/components/forms/input-checkbox-radio/InputCheckboxRadioCore.vue +191 -0
- package/components/forms/input-checkbox-radio/InputCheckboxRadioWithLabel.vue +111 -0
- package/components/forms/input-number/InputNumberCore.vue +203 -0
- package/components/forms/input-number/variants/InputNumberDefault.vue +154 -0
- package/components/forms/input-radio/MultipleRadiobuttons.vue +201 -0
- package/components/forms/input-radio/tests/MultipleRadioButtons.spec.ts +89 -0
- package/components/forms/input-radio/tests/data/tags.json +67 -0
- package/components/forms/input-range/InputRangeCore.vue +274 -0
- package/components/forms/input-range/variants/InputRangeDefault.vue +156 -0
- package/components/forms/input-range-fancy/InputRangeFancyCore.vue +450 -0
- package/components/forms/input-range-fancy/InputRangeFancyWithLabel.vue +124 -0
- package/components/forms/input-text/InputTextCore.vue +331 -0
- package/components/forms/input-text/variants/InputPasswordWithLabel.vue +130 -0
- package/components/forms/input-text/variants/InputTextAsNumberWithLabel.vue +187 -0
- package/components/forms/input-text/variants/InputTextWithLabel.vue +298 -0
- package/components/forms/input-textarea/InputTextareaCore.vue +234 -0
- package/components/forms/input-textarea/variants/InputTextareaWithLabel.vue +267 -0
- package/components/forms/toggle-switch/ToggleSwitchCore.vue +198 -0
- package/components/forms/toggle-switch/ToggleSwitchCoreOld.vue +216 -0
- package/components/forms/toggle-switch/variants/ToggleSwitchWithLabel.vue +105 -0
- package/components/forms/toggle-switch/variants/ToggleSwitchWithLabelInline.vue +102 -0
- package/components/forms/ui/FormField.vue +78 -0
- package/components/forms/ui/FormWrapper.vue +35 -0
- package/components/utils/colour-scheme-select/ColourSchemeSelect.vue +270 -0
- package/components/utils/colour-scheme-select/ColourSchemeSelectOld.vue +225 -0
- package/components/utils/dark-mode-switcher/DarkModeSwitcher.vue +47 -0
- package/composables/useApiRequest.ts +25 -0
- package/composables/useColourScheme.ts +25 -0
- package/composables/useErrorMessages.ts +59 -0
- package/composables/useFormControl.ts +248 -0
- package/composables/useSleep.ts +5 -0
- package/composables/useStyleClassPassthrough.ts +30 -0
- package/composables/useZodValidation.ts +148 -0
- package/nuxt.config.ts +0 -3
- package/package.json +1 -1
- package/types/types.forms.ts +216 -0
- package/types/types.zodFormControl.ts +21 -0
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
[data-form-theme='warning'] {
|
|
3
|
+
--theme-form-input-bg-normal: light-dark(var(--gray-1), var(--gray-4));
|
|
4
|
+
--theme-form-input-bg-outlined: light-dark(var(--gray-1), var(--gray-4));
|
|
5
|
+
--theme-form-input-bg-underlined: light-dark(var(--gray-1), var(--gray-4));
|
|
6
|
+
--theme-form-input-border: var(--orange-8);
|
|
7
|
+
--theme-form-input-border-active: var(--orange-2);
|
|
8
|
+
--theme-form-input-border-focus: var(--orange-2);
|
|
9
|
+
--theme-form-input-outline: white;
|
|
10
|
+
--theme-form-input-outline-active: var(--orange-6);
|
|
11
|
+
--theme-form-input-outline-focus: var(--orange-6);
|
|
12
|
+
--theme-form-input-text-color-normal: light-dark(var(--gray-10), var(--gray-11));
|
|
13
|
+
--theme-form-input-text-color-outlined: light-dark(var(--gray-10), var(--gray-1));
|
|
14
|
+
--theme-form-input-text-color-underlined: light-dark(var(--gray-11), var(--gray-1));
|
|
15
|
+
|
|
16
|
+
--theme-form-input-text-label-color-normal: light-dark(var(--gray-11), var(--gray-1));
|
|
17
|
+
--theme-form-input-text-label-color-outlined: light-dark(var(--gray-10), var(--gray-11));
|
|
18
|
+
--theme-form-input-text-label-color-underlined: light-dark(var(--gray-11), var(--gray-1));
|
|
19
|
+
|
|
20
|
+
--theme-form-focus-box-shadow: light-dark(var(--orange-12), var(--orange-2));
|
|
21
|
+
|
|
22
|
+
--theme-form-checkbox-bg: light-dark(var(--gray-1), var(--gray-4));
|
|
23
|
+
--theme-form-checkbox-border: light-dark(var(--orange-12), var(--orange-12));
|
|
24
|
+
--theme-form-checkbox-outline: light-dark(var(--orange-1), var(--orange-1));
|
|
25
|
+
--theme-form-checkbox-shadow: transparent;
|
|
26
|
+
--theme-form-checkbox-shadow-focus: var(--orange-6);
|
|
27
|
+
--theme-form-checkbox-symbol: var(--orange-12);
|
|
28
|
+
|
|
29
|
+
--theme-form-radio-bg: light-dark(var(--gray-1), var(--gray-4));
|
|
30
|
+
--theme-form-radio-border: light-dark(var(--orange-12), var(--orange-12));
|
|
31
|
+
--theme-form-radio-outline: light-dark(var(--orange-1), var(--orange-1));
|
|
32
|
+
--theme-form-radio-shadow: transparent;
|
|
33
|
+
--theme-form-radio-shadow-focus: var(--orange-6);
|
|
34
|
+
--theme-form-radio-symbol: var(--orange-12);
|
|
35
|
+
|
|
36
|
+
--theme-form-range-accent-color: light-dark(var(--orange-12), var(--orange-3));
|
|
37
|
+
|
|
38
|
+
/*
|
|
39
|
+
* ToggleSwitch
|
|
40
|
+
**/
|
|
41
|
+
--theme-form-toggle-bg-off: light-dark(var(--gray-1), var(--gray-4));
|
|
42
|
+
--theme-form-toggle-bg-on: light-dark(var(--gray-1), var(--gray-6));
|
|
43
|
+
|
|
44
|
+
--theme-form-toggle-border: var(--form-element-border-width) solid light-dark(var(--orange-12), var(--orange-1));
|
|
45
|
+
|
|
46
|
+
--theme-form-toggle-outline: var(--form-element-outline-width) solid light-dark(var(--orange-12), var(--orange-12));
|
|
47
|
+
--theme-form-toggle-symbol-off: var(--orange-12);
|
|
48
|
+
--theme-form-toggle-symbol-on: var(--gray-12);
|
|
49
|
+
--theme-form-toggle-icon-stroke-colour-off: var(--gray-1);
|
|
50
|
+
--theme-form-toggle-icon-stroke-colour-on: var(--gray-1);
|
|
51
|
+
|
|
52
|
+
/*
|
|
53
|
+
* Checkbox as button
|
|
54
|
+
**/
|
|
55
|
+
|
|
56
|
+
--theme-checkbox-radio-button-bg-default: light-dark(var(--gray-1), var(--gray-4));
|
|
57
|
+
|
|
58
|
+
--theme-checkbox-radio-button-border-default: light-dark(var(--orange-12), var(--orange-12));
|
|
59
|
+
--theme-checkbox-radio-button-border-width: 0.1rem;
|
|
60
|
+
|
|
61
|
+
--theme-checkbox-radio-button-outline-default: light-dark(var(--orange-5), var(--orange-5));
|
|
62
|
+
--theme-checkbox-radio-button-outline-width: 0.1rem;
|
|
63
|
+
|
|
64
|
+
--theme-checkbox-radio-button-label-default: light-dark(var(--orange-12), var(--orange-12));
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
[data-btn-theme='warning'] {
|
|
68
|
+
--theme-btn-bg: var(--orange-12);
|
|
69
|
+
--theme-btn-border: var(--orange-0);
|
|
70
|
+
--theme-btn-outline: var(--orange-12);
|
|
71
|
+
--theme-btn-text: var(--orange-0);
|
|
72
|
+
|
|
73
|
+
--theme-btn-bg-hover: var(--orange-0);
|
|
74
|
+
--theme-btn-border-hover: var(--orange-12);
|
|
75
|
+
--theme-btn-outline-hover: var(--orange-0);
|
|
76
|
+
--theme-btn-text-hover: var(--orange-12);
|
|
77
|
+
|
|
78
|
+
--theme-btn-bg-focus: var(--orange-0);
|
|
79
|
+
--theme-btn-border-focus: var(--orange-12);
|
|
80
|
+
--theme-btn-outline-focus: var(--orange-0);
|
|
81
|
+
--theme-btn-text-focus: var(--orange-12);
|
|
82
|
+
|
|
83
|
+
--theme-form-focus-box-shadow: light-dark(var(--orange-12), var(--orange-2));
|
|
84
|
+
}
|
|
85
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--form-element-padding-block-start: 0.4lh;
|
|
3
|
+
--form-element-padding-block-end: 0.4lh;
|
|
4
|
+
--form-element-border-width: 0.2rem;
|
|
5
|
+
--form-element-border-width-underlined: 0.4rem;
|
|
6
|
+
--form-element-outline-width: 0.1rem;
|
|
7
|
+
|
|
8
|
+
--form-text-padding-inline: 0.5em;
|
|
9
|
+
--form-button-padding-inline: 1.25em;
|
|
10
|
+
--form-button-icon-gap: 1em;
|
|
11
|
+
|
|
12
|
+
[data-size='x-small'] {
|
|
13
|
+
--form-element-font-size: var(--step-0);
|
|
14
|
+
--form-placeholder-font-size: calc(var(--step-0) * 0.65);
|
|
15
|
+
--form-element-line-height: var(--step-0);
|
|
16
|
+
--form-input-border-radius: 0.4rem;
|
|
17
|
+
--form-icon-only-button-size: calc(var(--step-1) * 2 + 1px);
|
|
18
|
+
--form-toggle-symbol-size: calc(var(--step-0) * 1.55);
|
|
19
|
+
--form-toggle-switch-width-adjustment: 0.5rem;
|
|
20
|
+
|
|
21
|
+
--form-input-checkbox-radio-button-size: var(--step-0);
|
|
22
|
+
}
|
|
23
|
+
[data-size='small'] {
|
|
24
|
+
--form-element-font-size: var(--step-1);
|
|
25
|
+
--form-placeholder-font-size: calc(var(--step-1) * 0.65);
|
|
26
|
+
--form-element-line-height: var(--step-1);
|
|
27
|
+
--form-icon-size: var(--step-1);
|
|
28
|
+
--form-input-border-radius: 0.4rem;
|
|
29
|
+
--form-icon-only-button-size: calc(var(--step-1) * 2.25 + 1px);
|
|
30
|
+
--form-toggle-symbol-size: calc(var(--step-1) * 1.635);
|
|
31
|
+
--form-toggle-switch-width-adjustment: 0.3rem;
|
|
32
|
+
|
|
33
|
+
--form-input-checkbox-radio-button-size: var(--step-1);
|
|
34
|
+
}
|
|
35
|
+
[data-size='normal'] {
|
|
36
|
+
--form-element-font-size: var(--step-2);
|
|
37
|
+
--form-placeholder-font-size: calc(var(--step-2) * 0.65);
|
|
38
|
+
--form-element-line-height: var(--step-2);
|
|
39
|
+
--form-icon-size: var(--step-2);
|
|
40
|
+
--form-input-border-radius: 0.4rem;
|
|
41
|
+
--form-icon-only-button-size: calc(var(--step-1) * 2.5 + 1px);
|
|
42
|
+
--form-toggle-symbol-size: calc(var(--step-2) * 1.72);
|
|
43
|
+
--form-toggle-switch-width-adjustment: 0.2rem;
|
|
44
|
+
|
|
45
|
+
--form-input-checkbox-radio-button-size: var(--step-2);
|
|
46
|
+
}
|
|
47
|
+
[data-size='medium'] {
|
|
48
|
+
--form-element-font-size: var(--step-3);
|
|
49
|
+
--form-placeholder-font-size: calc(var(--step-3) * 0.65);
|
|
50
|
+
--form-element-line-height: var(--step-3);
|
|
51
|
+
--form-icon-size: var(--step-3);
|
|
52
|
+
--form-input-border-radius: 0.4rem;
|
|
53
|
+
--form-icon-only-button-size: calc(var(--step-1) * 2.75 + 1px);
|
|
54
|
+
--form-toggle-symbol-size: calc(var(--step-3) * 1.78);
|
|
55
|
+
--form-toggle-switch-width-adjustment: 0rem;
|
|
56
|
+
|
|
57
|
+
--form-input-checkbox-radio-button-size: var(--step-3);
|
|
58
|
+
}
|
|
59
|
+
[data-size='large'] {
|
|
60
|
+
--form-element-font-size: var(--step-4);
|
|
61
|
+
--form-placeholder-font-size: calc(var(--step-4) * 0.65);
|
|
62
|
+
--form-element-line-height: var(--step-4);
|
|
63
|
+
--form-icon-size: var(--step-4);
|
|
64
|
+
--form-input-border-radius: 0.4rem;
|
|
65
|
+
--form-icon-only-button-size: calc(var(--step-1) * 3 + 1px);
|
|
66
|
+
--form-toggle-symbol-size: calc(var(--step-4) * 1.816);
|
|
67
|
+
--form-toggle-switch-width-adjustment: -0.2rem;
|
|
68
|
+
|
|
69
|
+
--form-input-checkbox-radio-button-size: var(--step-4);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--font-size: 1.6rem;
|
|
3
|
+
--line-height: calc((var(--font-size) * 2) - 1rem);
|
|
4
|
+
|
|
5
|
+
--font-family: futura-pt, Seravek, 'Gill Sans Nova', Ubuntu, Calibri, 'DejaVu Sans', source-sans-pro, sans-serif;
|
|
6
|
+
|
|
7
|
+
--theme-error-surface: var(--red-12);
|
|
8
|
+
--theme-error-text: var(--red-0);
|
|
9
|
+
|
|
10
|
+
--theme-form-button-font-size-normal: var(--form-element-font-size);
|
|
11
|
+
}
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
.heading-1 {
|
|
2
|
+
font-size: var(--step-5);
|
|
3
|
+
font-weight: bold;
|
|
4
|
+
line-height: 1.3;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.heading-2 {
|
|
8
|
+
font-size: var(--step-4);
|
|
9
|
+
font-weight: bold;
|
|
10
|
+
line-height: 1.3;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.heading-3 {
|
|
14
|
+
font-size: var(--step-3);
|
|
15
|
+
font-weight: bold;
|
|
16
|
+
line-height: 1.3;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.heading-4 {
|
|
20
|
+
font-size: var(--step-2);
|
|
21
|
+
font-weight: bold;
|
|
22
|
+
line-height: 1.3;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.heading-5 {
|
|
26
|
+
font-size: var(--step-1);
|
|
27
|
+
font-weight: bold;
|
|
28
|
+
line-height: 1.3;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.heading-6 {
|
|
32
|
+
font-size: var(--step-0);
|
|
33
|
+
font-weight: bold;
|
|
34
|
+
line-height: 1.3;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/* Body text */
|
|
38
|
+
|
|
39
|
+
.body-large {
|
|
40
|
+
font-size: var(--step-3);
|
|
41
|
+
font-weight: normal;
|
|
42
|
+
line-height: 1.5;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.body-medium {
|
|
46
|
+
font-size: var(--step-2);
|
|
47
|
+
font-weight: normal;
|
|
48
|
+
line-height: 1.5;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.body-normal {
|
|
52
|
+
font-size: var(--step-1);
|
|
53
|
+
font-weight: normal;
|
|
54
|
+
line-height: 1.5;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.body-small {
|
|
58
|
+
font-size: var(--step--0);
|
|
59
|
+
font-weight: normal;
|
|
60
|
+
line-height: 1.5;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.body-xsmall {
|
|
64
|
+
font-size: var(--step--1);
|
|
65
|
+
font-weight: normal;
|
|
66
|
+
line-height: 1.5;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.body-large-semibold {
|
|
70
|
+
font-size: var(--step-3);
|
|
71
|
+
font-weight: 500;
|
|
72
|
+
line-height: 1.5;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.body-medium-semibold {
|
|
76
|
+
font-size: var(--step-2);
|
|
77
|
+
font-weight: 500;
|
|
78
|
+
line-height: 1.5;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.body-normal-semibold {
|
|
82
|
+
font-size: var(--step-1);
|
|
83
|
+
font-weight: 500;
|
|
84
|
+
line-height: 1.5;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.body-small-semibold {
|
|
88
|
+
font-size: var(--step-0);
|
|
89
|
+
font-weight: 500;
|
|
90
|
+
line-height: 1.5;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.body-xsmall-semibold {
|
|
94
|
+
font-size: var(--step--1);
|
|
95
|
+
font-weight: 500;
|
|
96
|
+
line-height: 1.5;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.body-large-bold {
|
|
100
|
+
font-size: var(--step-3);
|
|
101
|
+
font-weight: bold;
|
|
102
|
+
line-height: 1.5;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.body-medium-bold {
|
|
106
|
+
font-size: var(--step-2);
|
|
107
|
+
font-weight: bold;
|
|
108
|
+
line-height: 1.5;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.body-normal-bold {
|
|
112
|
+
font-size: var(--step-1);
|
|
113
|
+
font-weight: bold;
|
|
114
|
+
line-height: 1.5;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.body-small-bold {
|
|
118
|
+
font-size: var(--step-0);
|
|
119
|
+
font-weight: bold;
|
|
120
|
+
line-height: 1.5;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.body-xsmall-bold {
|
|
124
|
+
font-size: var(--step--1);
|
|
125
|
+
font-weight: bold;
|
|
126
|
+
line-height: 1.5;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
/* Links */
|
|
130
|
+
|
|
131
|
+
.link-large {
|
|
132
|
+
color: var(--theme-link-default);
|
|
133
|
+
font-size: var(--step-3);
|
|
134
|
+
font-weight: 600;
|
|
135
|
+
line-height: 1.5;
|
|
136
|
+
text-decoration: underline;
|
|
137
|
+
|
|
138
|
+
&:visited {
|
|
139
|
+
color: var(--theme-link-default);
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.link-medium {
|
|
144
|
+
color: var(--theme-link-default);
|
|
145
|
+
font-size: var(--step-2);
|
|
146
|
+
font-weight: 600;
|
|
147
|
+
line-height: 1.5;
|
|
148
|
+
text-decoration: underline;
|
|
149
|
+
|
|
150
|
+
&:visited {
|
|
151
|
+
color: var(--theme-link-default);
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.link-normal {
|
|
156
|
+
color: var(--theme-link-default);
|
|
157
|
+
font-size: var(--step-1);
|
|
158
|
+
font-weight: 600;
|
|
159
|
+
line-height: 1.5;
|
|
160
|
+
text-decoration: underline;
|
|
161
|
+
|
|
162
|
+
&:visited,
|
|
163
|
+
&:active {
|
|
164
|
+
color: var(--theme-link-default);
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.link-small {
|
|
169
|
+
color: var(--theme-link-default);
|
|
170
|
+
font-size: var(--step-0);
|
|
171
|
+
font-weight: 600;
|
|
172
|
+
line-height: 1.5;
|
|
173
|
+
text-decoration: underline;
|
|
174
|
+
|
|
175
|
+
&:visited {
|
|
176
|
+
color: var(--theme-link-default);
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
.link-xsmall {
|
|
181
|
+
color: var(--theme-link-default);
|
|
182
|
+
font-size: var(--step--1);
|
|
183
|
+
font-weight: 600;
|
|
184
|
+
line-height: 1.5;
|
|
185
|
+
text-decoration: underline;
|
|
186
|
+
|
|
187
|
+
&:visited {
|
|
188
|
+
color: var(--theme-link-default);
|
|
189
|
+
}
|
|
190
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/* By numeric step */
|
|
2
|
+
.wght-100 {
|
|
3
|
+
font-weight: 100;
|
|
4
|
+
}
|
|
5
|
+
.wght-200 {
|
|
6
|
+
font-weight: 200;
|
|
7
|
+
}
|
|
8
|
+
.wght-300 {
|
|
9
|
+
font-weight: 300;
|
|
10
|
+
}
|
|
11
|
+
.wght-400 {
|
|
12
|
+
font-weight: 400;
|
|
13
|
+
}
|
|
14
|
+
.wght-500 {
|
|
15
|
+
font-weight: 500;
|
|
16
|
+
}
|
|
17
|
+
.wght-600 {
|
|
18
|
+
font-weight: 600;
|
|
19
|
+
}
|
|
20
|
+
.wght-700 {
|
|
21
|
+
font-weight: 700;
|
|
22
|
+
}
|
|
23
|
+
.wght-800 {
|
|
24
|
+
font-weight: 800;
|
|
25
|
+
}
|
|
26
|
+
.wght-900 {
|
|
27
|
+
font-weight: 900;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/* By named weight */
|
|
31
|
+
.light {
|
|
32
|
+
font-weight: light;
|
|
33
|
+
}
|
|
34
|
+
.normal {
|
|
35
|
+
font-weight: normal;
|
|
36
|
+
}
|
|
37
|
+
.bold {
|
|
38
|
+
font-weight: bold;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/* Using the font-variation-settings property. */
|
|
42
|
+
|
|
43
|
+
.fvs-wght-100 {
|
|
44
|
+
font-variation-settings: 'wght' 100;
|
|
45
|
+
}
|
|
46
|
+
.fvs-wght-200 {
|
|
47
|
+
font-variation-settings: 'wght' 200;
|
|
48
|
+
}
|
|
49
|
+
.fvs-wght-300 {
|
|
50
|
+
font-variation-settings: 'wght' 300;
|
|
51
|
+
}
|
|
52
|
+
.fvs-wght-400 {
|
|
53
|
+
font-variation-settings: 'wght' 400;
|
|
54
|
+
}
|
|
55
|
+
.fvs-wght-500 {
|
|
56
|
+
font-variation-settings: 'wght' 500;
|
|
57
|
+
}
|
|
58
|
+
.fvs-wght-600 {
|
|
59
|
+
font-variation-settings: 'wght' 600;
|
|
60
|
+
}
|
|
61
|
+
.fvs-wght-700 {
|
|
62
|
+
font-variation-settings: 'wght' 700;
|
|
63
|
+
}
|
|
64
|
+
.fvs-wght-800 {
|
|
65
|
+
font-variation-settings: 'wght' 800;
|
|
66
|
+
}
|
|
67
|
+
.fvs-wght-900 {
|
|
68
|
+
font-variation-settings: 'wght' 900;
|
|
69
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--theme-link-default: light-dark(var(--blue-12), var(--blue-4));
|
|
3
|
+
|
|
4
|
+
--page-bg: light-dark(var(--gray-0), var(--gray-9));
|
|
5
|
+
|
|
6
|
+
--surface-subtle: light-dark(var(--gray-1), var(--gray-8));
|
|
7
|
+
|
|
8
|
+
--grayscale-text-title: light-dark(var(--gray-12), var(--gray-2));
|
|
9
|
+
--grayscale-text-body: light-dark(var(--gray-12), var(--gray-3));
|
|
10
|
+
--grayscale-text-subtitle: light-dark(var(--gray-12), var(--gray-2));
|
|
11
|
+
--grayscale-text-caption: light-dark(var(--gray-12), var(--gray-2));
|
|
12
|
+
--grayscale-text-negative: light-dark(var(--gray-12), var(--gray-2));
|
|
13
|
+
--grayscale-text-disabled: light-dark(var(--gray-12), var(--gray-2));
|
|
14
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--step-5: clamp(2.7994rem, 2.4462rem + 1.7658vw, 3.8147rem);
|
|
3
|
+
--step-4: clamp(2.3328rem, 2.0827rem + 1.2504vw, 3.0518rem);
|
|
4
|
+
--step-3: clamp(1.944rem, 1.771rem + 0.8651vw, 2.4414rem);
|
|
5
|
+
--step-2: clamp(1.62rem, 1.5041rem + 0.5793vw, 1.9531rem);
|
|
6
|
+
--step-1: clamp(1.35rem, 1.2761rem + 0.3696vw, 1.5625rem);
|
|
7
|
+
--step-0: clamp(1.125rem, 1.0815rem + 0.2174vw, 1.25rem);
|
|
8
|
+
--step--1: clamp(0.9375rem, 0.9158rem + 0.1087vw, 1rem);
|
|
9
|
+
--step--2: clamp(0.7813rem, 0.7747rem + 0.0326vw, 0.8rem);
|
|
10
|
+
}
|