procode-vs-theme 2.1.0 → 2.4.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.
Files changed (68) hide show
  1. package/CHANGELOG.md +214 -45
  2. package/dist/components.esm.js +28 -4
  3. package/dist/components.esm.js.map +1 -1
  4. package/dist/components.js +35 -3
  5. package/dist/components.js.map +1 -1
  6. package/dist/index.esm.js +41 -5
  7. package/dist/index.esm.js.map +1 -1
  8. package/dist/index.js +41 -5
  9. package/dist/index.js.map +1 -1
  10. package/dist/src/base/_border.scss +21 -12
  11. package/dist/src/base/_color.scss +106 -47
  12. package/dist/src/base/_custom-properties.scss +166 -111
  13. package/dist/src/base/_font.scss +61 -37
  14. package/dist/src/base/_size.scss +30 -17
  15. package/dist/src/base/_space.scss +53 -33
  16. package/dist/src/base/_variants.scss +128 -0
  17. package/dist/src/components/_alert.scss +83 -0
  18. package/dist/src/components/_badge.scss +100 -0
  19. package/dist/src/components/_buttons.scss +189 -420
  20. package/dist/src/components/_cards.scss +130 -0
  21. package/dist/src/components/_input.scss +186 -32
  22. package/dist/src/components/_link.scss +34 -0
  23. package/dist/src/components/_page.scss +87 -0
  24. package/dist/src/components/_pagination.scss +71 -0
  25. package/dist/src/components/_table.scss +171 -0
  26. package/dist/src/components/_tabs.scss +77 -0
  27. package/dist/src/components.ts +47 -23
  28. package/dist/src/index.scss +82 -71
  29. package/dist/src/utilities/_interaction.scss +72 -0
  30. package/dist/src/utilities/background-color/index.scss +13 -0
  31. package/dist/src/utilities/border/_border-color.scss +2 -0
  32. package/dist/src/utilities/box-shadow/index.scss +8 -8
  33. package/dist/src/utilities/spaces/_gap.scss +21 -2
  34. package/dist/src/utilities/typography/_color.scss +38 -34
  35. package/dist/src/variables.ts +38 -35
  36. package/dist/types/components.d.ts +18 -2
  37. package/dist/types/variables.d.ts +2 -0
  38. package/dist/variables.esm.js +4 -1
  39. package/dist/variables.esm.js.map +1 -1
  40. package/dist/variables.js +4 -0
  41. package/dist/variables.js.map +1 -1
  42. package/package.json +84 -84
  43. package/src/base/_border.scss +21 -12
  44. package/src/base/_color.scss +106 -47
  45. package/src/base/_custom-properties.scss +166 -111
  46. package/src/base/_font.scss +61 -37
  47. package/src/base/_size.scss +30 -17
  48. package/src/base/_space.scss +53 -33
  49. package/src/base/_variants.scss +128 -0
  50. package/src/components/_alert.scss +83 -0
  51. package/src/components/_badge.scss +100 -0
  52. package/src/components/_buttons.scss +189 -420
  53. package/src/components/_cards.scss +130 -0
  54. package/src/components/_input.scss +186 -32
  55. package/src/components/_link.scss +34 -0
  56. package/src/components/_page.scss +87 -0
  57. package/src/components/_pagination.scss +71 -0
  58. package/src/components/_table.scss +171 -0
  59. package/src/components/_tabs.scss +77 -0
  60. package/src/components.ts +47 -23
  61. package/src/index.scss +82 -71
  62. package/src/utilities/_interaction.scss +72 -0
  63. package/src/utilities/background-color/index.scss +13 -0
  64. package/src/utilities/border/_border-color.scss +2 -0
  65. package/src/utilities/box-shadow/index.scss +8 -8
  66. package/src/utilities/spaces/_gap.scss +21 -2
  67. package/src/utilities/typography/_color.scss +38 -34
  68. package/src/variables.ts +38 -35
@@ -1,47 +1,106 @@
1
- @use "sass:color";
2
-
3
- $text-primary: #2666e3 !default;
4
- $text-secondary: #595959 !default;
5
- $text-success: #5ca224 !default;
6
- $text-warning: #f39c12 !default;
7
- $text-danger: #f90b0b !default;
8
- $text-info: #17baff !default;
9
- $text-default: #808080 !default;
10
- $text-dark: #464646 !default;
11
- // One step below $text-dark, for dialog and section headings.
12
- $text-darker: #333333 !default;
13
- $text-light: #ffffff !default;
14
- $text-tertiary: #ed5085 !default;
15
- $text-placeholder: #808080 !default;
16
-
17
- $text-primary-hover: #1c428d !default;
18
- $text-danger-hover: #af251c !default;
19
-
20
- $background-primary: #2666e3 !default;
21
- $background-secondary: #f4f4f4 !default;
22
- $background-success: #67b926 !default;
23
- $background-warning: #f97d0b !default;
24
- $background-danger: #e74c3c !default;
25
- $background-info: #17baff !default;
26
- $background-default: #ffffff !default;
27
- $background-medium: #29466e !default;
28
- $background-dark: #0f233d !default;
29
- $background-dark-a: #0f233d33 !default;
30
- $background-light: #f7f7f7 !default;
31
- $background-tertiary: #ed5085 !default;
32
- $background-lime: #f3de1d !default;
33
- $background-transparent: color.change(#000000, $alpha: 0.1) !default;
34
-
35
- $background-disabled: #d9d9d9 !default;
36
-
37
- $border-primary: #2666e3 !default;
38
- $border-secondary: #c6c6c6 !default;
39
- $border-success: #67b926 !default;
40
- $border-warning: #f97d0b !default;
41
- $border-danger: #e74c3c !default;
42
- $border-info: #17baff !default;
43
- $border-light: #e3e3e3 !default;
44
- $border-dark: #0f233d !default;
45
- $border-default: #d9d9d9 !default;
46
-
47
- $boxshadow-primary: #ababab40 !default;
1
+ @use "sass:color";
2
+
3
+ // Colour
4
+ //
5
+ // Values are the VARStreet listing-page specification. Names and the
6
+ // $text- / $background- / $border- pattern are unchanged.
7
+ //
8
+ // The spec's neutral ramp is cool (blue-tinted) where the previous one was
9
+ // flat grey, so the greys are restructured as a set rather than individually —
10
+ // mixing the two ramps is what makes a half-rebranded screen look dirty:
11
+ //
12
+ // #f7f7f7 #f7f9fc #f4f4f4 → #f8fafc #e3e3e3 → #e9edf2
13
+ // #d9d9d9 #d9e0e7 #808080 → #7b8492 #595959 → #667085
14
+ // #464646 #273142 #333333 → #111827
15
+ //
16
+ // A value marked (derived) has no literal in the spec and is interpolated to
17
+ // keep its group complete; everything else is taken from the spec verbatim.
18
+
19
+ // ---------- Text ----------
20
+ $text-primary: #1261e8 !default;
21
+ $text-secondary: #667085 !default;
22
+ $text-success: #49a51a !default;
23
+ $text-warning: #ef8a00 !default;
24
+ $text-danger: #ef4444 !default;
25
+ $text-info: #164ea3 !default;
26
+ $text-default: #7b8492 !default;
27
+ $text-dark: #273142 !default;
28
+ // One step below $text-dark, for dialog and section headings.
29
+ $text-darker: #111827 !default;
30
+ $text-light: #ffffff !default;
31
+ $text-tertiary: #ed5085 !default;
32
+ $text-placeholder: #8a94a6 !default;
33
+
34
+ // Badge / status text. The spec's listing page distinguishes a user tier
35
+ // (lite) and a role origin (system, custom); each pairs with the matching
36
+ // -soft background below.
37
+ $text-lite: #3f8f18 !default;
38
+ $text-system: #7a35d8 !default;
39
+ $text-custom: #0867c9 !default;
40
+
41
+ $text-primary-hover: #0d4fc4 !default;
42
+ $text-danger-hover: #dc2626 !default; // (derived) darker step of $text-danger
43
+
44
+ // ---------- Background ----------
45
+ $background-primary: #1261e8 !default;
46
+ $background-secondary: #f8fafc !default;
47
+ $background-success: #49a51a !default;
48
+ $background-warning: #ef8a00 !default;
49
+ $background-danger: #ef4444 !default;
50
+ $background-info: #164ea3 !default;
51
+ $background-default: #ffffff !default;
52
+ $background-medium: #29466e !default;
53
+ $background-dark: #0f233d !default;
54
+ $background-dark-a: #0f233d33 !default;
55
+ $background-light: #f7f9fc !default;
56
+ $background-tertiary: #ed5085 !default;
57
+ $background-lime: #f3de1d !default;
58
+ $background-transparent: color.change(#000000, $alpha: 0.1) !default;
59
+
60
+ $background-disabled: #d9e0e7 !default;
61
+
62
+ // Interaction surfaces
63
+ $background-hover: #f8fbff !default; // table row hover
64
+ $background-header: #fbfcfe !default; // grid header row
65
+
66
+ // ---------- Soft / tint backgrounds ----------
67
+ // Pale fills for badges, banners and icon chips. Each is the low-saturation
68
+ // partner of the solid of the same name.
69
+ $background-primary-soft: #e8f0ff !default;
70
+ $background-success-soft: #ddf2cf !default;
71
+ $background-warning-soft: #fff2df !default;
72
+ $background-danger-soft: #fdecec !default; // (derived) tint of $background-danger
73
+ $background-info-soft: #edf4ff !default;
74
+ $background-lite-soft: #e6f6da !default;
75
+ $background-system-soft: #f0e5ff !default;
76
+ $background-custom-soft: #e3f2ff !default;
77
+
78
+ // ---------- Border ----------
79
+ $border-primary: #1261e8 !default;
80
+ $border-secondary: #c3ccd6 !default; // (derived) cool equivalent of #c6c6c6
81
+ $border-success: #49a51a !default;
82
+ $border-warning: #ef8a00 !default;
83
+ $border-danger: #ef4444 !default;
84
+ $border-info: #164ea3 !default;
85
+ $border-light: #e9edf2 !default;
86
+ $border-dark: #0f233d !default;
87
+ $border-default: #d9e0e7 !default;
88
+ $border-primary-soft: #d8e5ff !default;
89
+
90
+ // ---------- Elevation & focus ----------
91
+ // The spec's shadow is a single cool-neutral hue at low alpha. `sm` is the
92
+ // spec value verbatim; the heavier steps are (derived) on the same hue, with
93
+ // alpha and blur rising together so the set reads as one light source.
94
+ $shadow-color: #101828 !default;
95
+ $shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05) !default;
96
+ $shadow-md: 0 4px 8px rgba(16, 24, 40, 0.08) !default;
97
+ $shadow-lg: 0 8px 16px rgba(16, 24, 40, 0.1) !default;
98
+ $shadow-xl: 0 12px 24px rgba(16, 24, 40, 0.12) !default;
99
+
100
+ // Retained as the shadow *colour* token the box-shadow utilities were built
101
+ // on, so anything referencing it keeps working.
102
+ $boxshadow-primary: rgba(16, 24, 40, 0.05) !default;
103
+
104
+ // Focus ring — 3px halo in $background-primary at 16%. The stack had no focus
105
+ // token at all before; several screens hand-rolled one.
106
+ $focus-ring: 0 0 0 3px rgba(18, 97, 232, 0.16) !default;
@@ -1,111 +1,166 @@
1
- @use "color" as cl;
2
- @use "font" as ft;
3
- @use "space" as sp;
4
- @use "border" as bo;
5
- @use "size" as sz;
6
-
7
- :root {
8
- // Text colors
9
- --qo-text-primary: #{cl.$text-primary};
10
- --qo-text-secondary: #{cl.$text-secondary};
11
- --qo-text-success: #{cl.$text-success};
12
- --qo-text-warning: #{cl.$text-warning};
13
- --qo-text-danger: #{cl.$text-danger};
14
- --qo-text-info: #{cl.$text-info};
15
- --qo-text-default: #{cl.$text-default};
16
- --qo-text-dark: #{cl.$text-dark};
17
- --qo-text-darker: #{cl.$text-darker};
18
- --qo-text-light: #{cl.$text-light};
19
- --qo-text-tertiary: #{cl.$text-tertiary};
20
- --qo-text-placeholder: #{cl.$text-placeholder};
21
-
22
- // Background colors
23
- --qo-bg-primary: #{cl.$background-primary};
24
- --qo-bg-secondary: #{cl.$background-secondary};
25
- --qo-bg-success: #{cl.$background-success};
26
- --qo-bg-warning: #{cl.$background-warning};
27
- --qo-bg-danger: #{cl.$background-danger};
28
- --qo-bg-info: #{cl.$background-info};
29
- --qo-bg-default: #{cl.$background-default};
30
- --qo-bg-dark: #{cl.$background-dark};
31
- --qo-bg-dark-a: #{cl.$background-dark-a};
32
- --qo-bg-medium: #{cl.$background-medium};
33
- --qo-bg-light: #{cl.$background-light};
34
- --qo-bg-tertiary: #{cl.$background-tertiary};
35
- --qo-bg-disabled: #{cl.$background-disabled};
36
-
37
- // Border colors
38
- --qo-border-primary: #{cl.$border-primary};
39
- --qo-border-secondary: #{cl.$border-secondary};
40
- --qo-border-success: #{cl.$border-success};
41
- --qo-border-warning: #{cl.$border-warning};
42
- --qo-border-danger: #{cl.$border-danger};
43
- --qo-border-info: #{cl.$border-info};
44
- --qo-border-light: #{cl.$border-light};
45
- --qo-border-dark: #{cl.$border-dark};
46
- --qo-border-default: #{cl.$border-default};
47
-
48
- // Font families
49
- --qo-font-family-primary: #{ft.$font-family-primary};
50
- --qo-font-family-secondary: #{ft.$font-family-secondary};
51
-
52
- // Font sizes
53
- --qo-font-size-xxs: #{ft.$font-size-xxs};
54
- --qo-font-size-xs: #{ft.$font-size-xs};
55
- --qo-font-size-sm: #{ft.$font-size-sm};
56
- --qo-font-size-md: #{ft.$font-size-md};
57
- --qo-font-size-lg: #{ft.$font-size-lg};
58
- --qo-font-size-xl: #{ft.$font-size-xl};
59
- --qo-font-size-xxl: #{ft.$font-size-xxl};
60
- --qo-font-size-h1: #{ft.$font-size-h1};
61
- --qo-font-size-h2: #{ft.$font-size-h2};
62
- --qo-font-size-h3: #{ft.$font-size-h3};
63
- --qo-font-size-h4: #{ft.$font-size-h4};
64
- --qo-font-size-h5: #{ft.$font-size-h5};
65
- --qo-font-size-h6: #{ft.$font-size-h6};
66
-
67
- // Font weights
68
- --qo-font-weight-light: #{ft.$font-weight-light};
69
- --qo-font-weight-regular: #{ft.$font-weight-regular};
70
- --qo-font-weight-medium: #{ft.$font-weight-medium};
71
- --qo-font-weight-semibold: #{ft.$font-weight-semibold};
72
- --qo-font-weight-bold: #{ft.$font-weight-bold};
73
- --qo-font-weight-extrabold: #{ft.$font-weight-extrabold};
74
-
75
- // Spacing
76
- --qo-space-0: #{sp.$space-0};
77
- --qo-space-1: #{sp.$space-1};
78
- --qo-space-2: #{sp.$space-2};
79
- --qo-space-3: #{sp.$space-3};
80
- --qo-space-4: #{sp.$space-4};
81
- --qo-space-5: #{sp.$space-5};
82
- --qo-space-sm: #{sp.$space-sm};
83
- --qo-space-md: #{sp.$space-md};
84
- --qo-space-lg: #{sp.$space-lg};
85
- --qo-space-xl: #{sp.$space-xl};
86
- --qo-space-xxl: #{sp.$space-xxl};
87
- --qo-space-xxxl: #{sp.$space-xxxl};
88
-
89
- // Border radius
90
- --qo-border-radius-0: #{bo.$border-radius-0};
91
- --qo-border-radius-sm: #{bo.$border-radius-sm};
92
- --qo-border-radius-md: #{bo.$border-radius-md};
93
- --qo-border-radius-lg: #{bo.$border-radius-lg};
94
- --qo-border-radius-xl: #{bo.$border-radius-xl};
95
- --qo-border-radius-pill: #{bo.$border-radius-pill};
96
- --qo-border-radius-full: #{bo.$border-radius-full};
97
-
98
- // Border widths
99
- --qo-border-width-none: #{bo.$border-width-none};
100
- --qo-border-width-sm: #{bo.$border-width-sm};
101
- --qo-border-width-md: #{bo.$border-width-md};
102
- --qo-border-width-lg: #{bo.$border-width-lg};
103
-
104
- // Sizes
105
- --qo-size-xs: #{sz.$size-xs};
106
- --qo-size-sm: #{sz.$size-sm};
107
- --qo-size-md: #{sz.$size-md};
108
- --qo-size-lg: #{sz.$size-lg};
109
- --qo-size-xl: #{sz.$size-xl};
110
- --qo-size-xxl: #{sz.$size-xxl};
111
- }
1
+ @use "color" as cl;
2
+ @use "font" as ft;
3
+ @use "space" as sp;
4
+ @use "border" as bo;
5
+ @use "size" as sz;
6
+
7
+ :root {
8
+ // Text colors
9
+ --qo-text-primary: #{cl.$text-primary};
10
+ --qo-text-primary-hover: #{cl.$text-primary-hover};
11
+ --qo-text-secondary: #{cl.$text-secondary};
12
+ --qo-text-success: #{cl.$text-success};
13
+ --qo-text-warning: #{cl.$text-warning};
14
+ --qo-text-danger: #{cl.$text-danger};
15
+ --qo-text-danger-hover: #{cl.$text-danger-hover};
16
+ --qo-text-info: #{cl.$text-info};
17
+ --qo-text-default: #{cl.$text-default};
18
+ --qo-text-dark: #{cl.$text-dark};
19
+ --qo-text-darker: #{cl.$text-darker};
20
+ --qo-text-light: #{cl.$text-light};
21
+ --qo-text-tertiary: #{cl.$text-tertiary};
22
+ --qo-text-placeholder: #{cl.$text-placeholder};
23
+ --qo-text-lite: #{cl.$text-lite};
24
+ --qo-text-system: #{cl.$text-system};
25
+ --qo-text-custom: #{cl.$text-custom};
26
+ // Alias of --qo-text-secondary. The spec calls this colour "text-muted" and
27
+ // the consuming app already references that name in 6 places; without the
28
+ // alias those declarations resolve to nothing and fall back silently.
29
+ --qo-text-muted: #{cl.$text-secondary};
30
+
31
+ // Background colors
32
+ --qo-bg-primary: #{cl.$background-primary};
33
+ --qo-bg-secondary: #{cl.$background-secondary};
34
+ --qo-bg-success: #{cl.$background-success};
35
+ --qo-bg-warning: #{cl.$background-warning};
36
+ --qo-bg-danger: #{cl.$background-danger};
37
+ --qo-bg-info: #{cl.$background-info};
38
+ --qo-bg-default: #{cl.$background-default};
39
+ --qo-bg-dark: #{cl.$background-dark};
40
+ --qo-bg-dark-a: #{cl.$background-dark-a};
41
+ --qo-bg-medium: #{cl.$background-medium};
42
+ --qo-bg-light: #{cl.$background-light};
43
+ --qo-bg-tertiary: #{cl.$background-tertiary};
44
+ --qo-bg-lime: #{cl.$background-lime};
45
+ --qo-bg-transparent: #{cl.$background-transparent};
46
+ --qo-bg-disabled: #{cl.$background-disabled};
47
+ --qo-bg-hover: #{cl.$background-hover};
48
+ --qo-bg-header: #{cl.$background-header};
49
+
50
+ // Soft / tint backgrounds
51
+ --qo-bg-primary-soft: #{cl.$background-primary-soft};
52
+ --qo-bg-success-soft: #{cl.$background-success-soft};
53
+ --qo-bg-warning-soft: #{cl.$background-warning-soft};
54
+ --qo-bg-danger-soft: #{cl.$background-danger-soft};
55
+ --qo-bg-info-soft: #{cl.$background-info-soft};
56
+ --qo-bg-lite-soft: #{cl.$background-lite-soft};
57
+ --qo-bg-system-soft: #{cl.$background-system-soft};
58
+ --qo-bg-custom-soft: #{cl.$background-custom-soft};
59
+
60
+ // Border colors
61
+ --qo-border-primary: #{cl.$border-primary};
62
+ --qo-border-primary-soft: #{cl.$border-primary-soft};
63
+ --qo-border-secondary: #{cl.$border-secondary};
64
+ --qo-border-success: #{cl.$border-success};
65
+ --qo-border-warning: #{cl.$border-warning};
66
+ --qo-border-danger: #{cl.$border-danger};
67
+ --qo-border-info: #{cl.$border-info};
68
+ --qo-border-light: #{cl.$border-light};
69
+ --qo-border-dark: #{cl.$border-dark};
70
+ --qo-border-default: #{cl.$border-default};
71
+
72
+ // Elevation & focus
73
+ --qo-shadow-sm: #{cl.$shadow-sm};
74
+ --qo-shadow-md: #{cl.$shadow-md};
75
+ --qo-shadow-lg: #{cl.$shadow-lg};
76
+ --qo-shadow-xl: #{cl.$shadow-xl};
77
+ --qo-shadow-color: #{cl.$shadow-color};
78
+ --qo-focus-ring: #{cl.$focus-ring};
79
+
80
+ // Font families
81
+ --qo-font-family-primary: #{ft.$font-family-primary};
82
+ --qo-font-family-secondary: #{ft.$font-family-secondary};
83
+
84
+ // Font sizes
85
+ --qo-font-size-xxs: #{ft.$font-size-xxs};
86
+ --qo-font-size-xs: #{ft.$font-size-xs};
87
+ --qo-font-size-sm: #{ft.$font-size-sm};
88
+ --qo-font-size-md: #{ft.$font-size-md};
89
+ --qo-font-size-lg: #{ft.$font-size-lg};
90
+ --qo-font-size-xl: #{ft.$font-size-xl};
91
+ --qo-font-size-xxl: #{ft.$font-size-xxl};
92
+ --qo-font-size-base: #{ft.$font-size-base};
93
+ --qo-font-size-h1: #{ft.$font-size-h1};
94
+ --qo-font-size-h2: #{ft.$font-size-h2};
95
+ --qo-font-size-h3: #{ft.$font-size-h3};
96
+ --qo-font-size-h4: #{ft.$font-size-h4};
97
+ --qo-font-size-h5: #{ft.$font-size-h5};
98
+ --qo-font-size-h6: #{ft.$font-size-h6};
99
+
100
+ // Line heights
101
+ --qo-line-height-xxs: #{ft.$line-height-xxs};
102
+ --qo-line-height-xs: #{ft.$line-height-xs};
103
+ --qo-line-height-sm: #{ft.$line-height-sm};
104
+ --qo-line-height-md: #{ft.$line-height-md};
105
+ --qo-line-height-lg: #{ft.$line-height-lg};
106
+ --qo-line-height-xl: #{ft.$line-height-xl};
107
+ --qo-line-height-xxl: #{ft.$line-height-xxl};
108
+ --qo-line-height-base: #{ft.$line-height-base};
109
+
110
+ // Font weights
111
+ --qo-font-weight-light: #{ft.$font-weight-light};
112
+ --qo-font-weight-regular: #{ft.$font-weight-regular};
113
+ --qo-font-weight-medium: #{ft.$font-weight-medium};
114
+ --qo-font-weight-semibold: #{ft.$font-weight-semibold};
115
+ --qo-font-weight-bold: #{ft.$font-weight-bold};
116
+ --qo-font-weight-extrabold: #{ft.$font-weight-extrabold};
117
+
118
+ // Spacing
119
+ --qo-space-0: #{sp.$space-0};
120
+ --qo-space-1: #{sp.$space-1};
121
+ --qo-space-2: #{sp.$space-2};
122
+ --qo-space-3: #{sp.$space-3};
123
+ --qo-space-4: #{sp.$space-4};
124
+ --qo-space-5: #{sp.$space-5};
125
+ --qo-space-6: #{sp.$space-6};
126
+ --qo-space-8: #{sp.$space-8};
127
+ --qo-space-xs: #{sp.$space-xs};
128
+ --qo-space-sm: #{sp.$space-sm};
129
+ --qo-space-md: #{sp.$space-md};
130
+ --qo-space-lg: #{sp.$space-lg};
131
+ --qo-space-xl: #{sp.$space-xl};
132
+ --qo-space-xxl: #{sp.$space-xxl};
133
+ --qo-space-xxxl: #{sp.$space-xxxl};
134
+
135
+ // Border radius
136
+ --qo-border-radius-0: #{bo.$border-radius-0};
137
+ --qo-border-radius-sm: #{bo.$border-radius-sm};
138
+ --qo-border-radius-md: #{bo.$border-radius-md};
139
+ --qo-border-radius-lg: #{bo.$border-radius-lg};
140
+ --qo-border-radius-xl: #{bo.$border-radius-xl};
141
+ --qo-border-radius-pill: #{bo.$border-radius-pill};
142
+ --qo-border-radius-full: #{bo.$border-radius-full};
143
+
144
+ // Border widths
145
+ --qo-border-width-none: #{bo.$border-width-none};
146
+ --qo-border-width-sm: #{bo.$border-width-sm};
147
+ --qo-border-width-md: #{bo.$border-width-md};
148
+ --qo-border-width-lg: #{bo.$border-width-lg};
149
+
150
+ // Sizes
151
+ --qo-size-xs: #{sz.$size-xs};
152
+ --qo-size-sm: #{sz.$size-sm};
153
+ --qo-size-md: #{sz.$size-md};
154
+ --qo-size-lg: #{sz.$size-lg};
155
+ --qo-size-xl: #{sz.$size-xl};
156
+ --qo-size-xxl: #{sz.$size-xxl};
157
+ --qo-menu-size: #{sz.$menu-size};
158
+
159
+ // Component heights
160
+ --qo-control-height: #{sz.$control-height};
161
+ --qo-control-height-sm: #{sz.$control-height-sm};
162
+ --qo-grid-header-height: #{sz.$grid-header-height};
163
+ --qo-grid-filter-height: #{sz.$grid-filter-height};
164
+ --qo-grid-row-height: #{sz.$grid-row-height};
165
+ --qo-badge-height: #{sz.$badge-height};
166
+ }
@@ -1,37 +1,61 @@
1
- $font-family-primary: "IBM Plex Sans", sans-serif !default;
2
- $font-family-secondary: SFMono-Regular, Menlo, Monaco, Consolas, "Roboto Mono",
3
- "Ubuntu Mono", "Lucida Console", "Courier New", monospace !default;
4
-
5
- // Base font sizes
6
- $font-size-xxs: 8px !default;
7
- $font-size-xs: 10px !default;
8
- $font-size-sm: 11px !default;
9
- $font-size-md: 12px !default;
10
- $font-size-lg: 14px !default;
11
- $font-size-xl: 16px !default;
12
- $font-size-xxl: 18px !default;
13
-
14
- // Heading font sizes
15
- $font-size-h6: 1rem !default;
16
- $font-size-h5: 1.25rem !default;
17
- $font-size-h4: 1.5rem !default;
18
- $font-size-h3: 1.75rem !default;
19
- $font-size-h2: 2rem !default;
20
- $font-size-h1: 2.5rem !default;
21
-
22
- // Line heights
23
- $line-height-xxs: 1.25 !default;
24
- $line-height-xs: 1.3 !default;
25
- $line-height-sm: 1.27 !default;
26
- $line-height-md: 1.33 !default;
27
- $line-height-lg: 1.29 !default;
28
- $line-height-xl: 1.31 !default;
29
- $line-height-xxl: 1.28 !default;
30
-
31
- // Font weights
32
- $font-weight-light: 300 !default;
33
- $font-weight-regular: 400 !default;
34
- $font-weight-medium: 500 !default;
35
- $font-weight-semibold: 600 !default;
36
- $font-weight-bold: 700 !default;
37
- $font-weight-extrabold: 800 !default;
1
+ $font-family-primary: "IBM Plex Sans", sans-serif !default;
2
+ $font-family-secondary: SFMono-Regular, Menlo, Monaco, Consolas, "Roboto Mono",
3
+ "Ubuntu Mono", "Lucida Console", "Courier New", monospace !default;
4
+
5
+ // Base font sizes
6
+ //
7
+ // Restructured to the VARStreet listing-page scale. The spec supplies six
8
+ // steps (11/12/13/14/18/22) and the ladder has six slots above `xxs`, so each
9
+ // spec value lands on exactly one existing name and the scale stays monotonic:
10
+ //
11
+ // xxs 10px — was 8px; raised so the 1px cadence holds at the bottom
12
+ // xs 11px — was 10px (--vs-font-size-xs) badges, helper text
13
+ // sm 12px — was 11px (--vs-font-size-sm) labels, column headers
14
+ // md 13px — was 12px (--vs-font-size-md) grid body, controls
15
+ // lg 14px — unchanged (--vs-font-size-base) page/body default
16
+ // xl 18px — was 16px (--vs-font-size-lg) section headings
17
+ // xxl 22px — was 18px (--vs-font-size-xl) page title
18
+ //
19
+ // `lg` keeping its 14px is what makes this safe: it is the most-used step in
20
+ // the consuming app, and it is also the spec's body size.
21
+ $font-size-xxs: 10px !default;
22
+ $font-size-xs: 11px !default;
23
+ $font-size-sm: 12px !default;
24
+ $font-size-md: 13px !default;
25
+ $font-size-lg: 14px !default;
26
+ $font-size-xl: 18px !default;
27
+ $font-size-xxl: 22px !default;
28
+
29
+ // The spec's `--vs-font-size-base`: the page default, which is `lg` on this
30
+ // ladder. Declared as an alias rather than a new step so there is one 14px.
31
+ $font-size-base: $font-size-lg !default;
32
+
33
+ // Heading font sizes
34
+ $font-size-h6: 1rem !default;
35
+ $font-size-h5: 1.25rem !default;
36
+ $font-size-h4: 1.5rem !default;
37
+ $font-size-h3: 1.75rem !default;
38
+ $font-size-h2: 2rem !default;
39
+ $font-size-h1: 2.5rem !default;
40
+
41
+ // Line heights
42
+ //
43
+ // Paired with the size of the same name. Values are unchanged — the spec does
44
+ // not declare line height as a variable — with `base` added from the listing
45
+ // page's body rule (line-height: 1.4).
46
+ $line-height-xxs: 1.25 !default;
47
+ $line-height-xs: 1.3 !default;
48
+ $line-height-sm: 1.27 !default;
49
+ $line-height-md: 1.33 !default;
50
+ $line-height-lg: 1.29 !default;
51
+ $line-height-xl: 1.31 !default;
52
+ $line-height-xxl: 1.28 !default;
53
+ $line-height-base: 1.4 !default;
54
+
55
+ // Font weights
56
+ $font-weight-light: 300 !default;
57
+ $font-weight-regular: 400 !default;
58
+ $font-weight-medium: 500 !default;
59
+ $font-weight-semibold: 600 !default;
60
+ $font-weight-bold: 700 !default;
61
+ $font-weight-extrabold: 800 !default;
@@ -1,17 +1,30 @@
1
- $menu-size: 32px !default;
2
-
3
- $size-xs: 8px !default;
4
- $size-sm: 16px !default;
5
- $size-md: 20px !default;
6
- $size-lg: 32px !default;
7
- $size-xl: 48px !default;
8
- $size-xxl: 64px !default;
9
-
10
- $sizing-values: (
11
- xs: $size-xs,
12
- sm: $size-sm,
13
- md: $size-md,
14
- lg: $size-lg,
15
- xl: $size-xl,
16
- xxl: $size-xxl,
17
- ) !default;
1
+ $menu-size: 32px !default;
2
+
3
+ // Generic size scale. The spec declares no equivalent, so these are unchanged.
4
+ $size-xs: 8px !default;
5
+ $size-sm: 16px !default;
6
+ $size-md: 20px !default;
7
+ $size-lg: 32px !default;
8
+ $size-xl: 48px !default;
9
+ $size-xxl: 64px !default;
10
+
11
+ $sizing-values: (
12
+ xs: $size-xs,
13
+ sm: $size-sm,
14
+ md: $size-md,
15
+ lg: $size-lg,
16
+ xl: $size-xl,
17
+ xxl: $size-xxl,
18
+ ) !default;
19
+
20
+ // Component heights
21
+ //
22
+ // From the spec's "Component sizing" block. These fix the height of an
23
+ // interactive row or control so a toolbar, a filter row and a grid line up
24
+ // without each screen re-deciding.
25
+ $control-height: 40px !default; // inputs, selects, buttons
26
+ $control-height-sm: $menu-size !default; // 32px — compact filter controls, pager buttons
27
+ $grid-header-height: 44px !default; // column-header row
28
+ $grid-filter-height: 48px !default; // in-grid filter row
29
+ $grid-row-height: 58px !default; // data row
30
+ $badge-height: 24px !default; // status / type pill