procode-vs-theme 2.0.1 → 2.2.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/CHANGELOG.md +21 -0
- package/dist/src/base/_color.scss +2 -0
- package/dist/src/base/_custom-properties.scss +3 -0
- package/dist/src/base/_space.scss +8 -2
- package/dist/src/utilities/spaces/_gap.scss +21 -2
- package/dist/src/utilities/typography/_color.scss +1 -0
- package/package.json +1 -1
- package/src/base/_color.scss +2 -0
- package/src/base/_custom-properties.scss +3 -0
- package/src/base/_space.scss +8 -2
- package/src/utilities/spaces/_gap.scss +21 -2
- package/src/utilities/typography/_color.scss +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,27 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [2.1.0] - 2026-08-18
|
|
9
|
+
|
|
10
|
+
> Minor: both entries are additive — new tokens, no existing value changed.
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
- **Dialog-scale spacing: `$space-xxl` (28px) and `$space-xxxl` (30px).** The
|
|
14
|
+
legacy alias scale topped out at `$space-xl` (21px), which is too tight for
|
|
15
|
+
the outer padding of the larger modals — the column chooser wanted 28/30 and
|
|
16
|
+
had nowhere on the scale to get it. Both are in `$spacers`, so the
|
|
17
|
+
`qo-p-*` / `qo-m-*` / `qo-gap-*` utilities pick them up, and both are exposed
|
|
18
|
+
as `--qo-space-xxl` / `--qo-space-xxxl`.
|
|
19
|
+
- **`$text-darker` (#333333).** `$text-dark` (#464646) was the darkest text
|
|
20
|
+
token, but dialog headings in the design sit a step below it — measured off
|
|
21
|
+
the column-chooser reference screenshot, whose title renders at #333333.
|
|
22
|
+
Exposed as `--qo-text-darker` and the `qo-text-darker` utility.
|
|
23
|
+
|
|
24
|
+
⚠️ **Cross-package coupling:** `procode-vs-template` now references these in
|
|
25
|
+
`GridToolBar/scss/index.scss`. An app pinning an older `procode-vs-theme`
|
|
26
|
+
alongside that vs-template will fail to compile with "Undefined variable".
|
|
27
|
+
Ship the two together.
|
|
28
|
+
|
|
8
29
|
## [1.0.0] - 2025-10-08
|
|
9
30
|
|
|
10
31
|
### Added
|
|
@@ -8,6 +8,8 @@ $text-danger: #f90b0b !default;
|
|
|
8
8
|
$text-info: #17baff !default;
|
|
9
9
|
$text-default: #808080 !default;
|
|
10
10
|
$text-dark: #464646 !default;
|
|
11
|
+
// One step below $text-dark, for dialog and section headings.
|
|
12
|
+
$text-darker: #333333 !default;
|
|
11
13
|
$text-light: #ffffff !default;
|
|
12
14
|
$text-tertiary: #ed5085 !default;
|
|
13
15
|
$text-placeholder: #808080 !default;
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
--qo-text-info: #{cl.$text-info};
|
|
15
15
|
--qo-text-default: #{cl.$text-default};
|
|
16
16
|
--qo-text-dark: #{cl.$text-dark};
|
|
17
|
+
--qo-text-darker: #{cl.$text-darker};
|
|
17
18
|
--qo-text-light: #{cl.$text-light};
|
|
18
19
|
--qo-text-tertiary: #{cl.$text-tertiary};
|
|
19
20
|
--qo-text-placeholder: #{cl.$text-placeholder};
|
|
@@ -82,6 +83,8 @@
|
|
|
82
83
|
--qo-space-md: #{sp.$space-md};
|
|
83
84
|
--qo-space-lg: #{sp.$space-lg};
|
|
84
85
|
--qo-space-xl: #{sp.$space-xl};
|
|
86
|
+
--qo-space-xxl: #{sp.$space-xxl};
|
|
87
|
+
--qo-space-xxxl: #{sp.$space-xxxl};
|
|
85
88
|
|
|
86
89
|
// Border radius
|
|
87
90
|
--qo-border-radius-0: #{bo.$border-radius-0};
|
|
@@ -11,7 +11,11 @@ $space-xs: 2.5px !default;
|
|
|
11
11
|
$space-sm: 5px !default;
|
|
12
12
|
$space-md: 12.5px !default;
|
|
13
13
|
$space-lg: 16.5px !default;
|
|
14
|
-
$space-xl: 21px !default;
|
|
14
|
+
$space-xl: 21px !default;
|
|
15
|
+
// Dialog-scale spacing: the outer padding of the larger modals (the column
|
|
16
|
+
// chooser and its siblings), which the xs-xl steps were all too tight for.
|
|
17
|
+
$space-xxl: 28px !default;
|
|
18
|
+
$space-xxxl: 30px !default;
|
|
15
19
|
|
|
16
20
|
// Spacers map for loop-based utility generation
|
|
17
21
|
$spacers: (
|
|
@@ -25,5 +29,7 @@ $spacers: (
|
|
|
25
29
|
sm: $space-sm,
|
|
26
30
|
md: $space-md,
|
|
27
31
|
lg: $space-lg,
|
|
28
|
-
xl: $space-xl,
|
|
32
|
+
xl: $space-xl,
|
|
33
|
+
xxl: $space-xxl,
|
|
34
|
+
xxxl: $space-xxxl,
|
|
29
35
|
) !default;
|
|
@@ -2,7 +2,26 @@
|
|
|
2
2
|
@use "../../base/mixins/meta-class" as mc;
|
|
3
3
|
|
|
4
4
|
@each $key, $value in sp.$spacers {
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
// `--prc-gap-x` is published next to every column gap this file sets, so the
|
|
6
|
+
// `.prc-cl-N` column system in procode-lowcode-core (>= 2.3.0) can subtract
|
|
7
|
+
// the row's gap from each column's flex-basis. Without it a column is a flat
|
|
8
|
+
// percentage of the row and the gap is added on top, so a full row overflows
|
|
9
|
+
// and shrinks while a partial row does not — and the two rows stop lining up
|
|
10
|
+
// the moment a gap is set. See ContainerRenderer/styles/index.scss for the
|
|
11
|
+
// derivation. Anything that is not a column row ignores the property.
|
|
12
|
+
//
|
|
13
|
+
// A unitless 0 has to become `0px` first: the columns' `calc()` subtracts
|
|
14
|
+
// this from a percentage, and a percentage minus a plain number is invalid,
|
|
15
|
+
// which would drop the declaration and leave the column with no basis.
|
|
16
|
+
$gap-x: $value;
|
|
17
|
+
@if $value == 0 {
|
|
18
|
+
$gap-x: 0px;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
@include mc.meta("qo-gap-#{$key}", (gap: $value, "--prc-gap-x": $gap-x));
|
|
22
|
+
@include mc.meta(
|
|
23
|
+
"qo-gap-x-#{$key}",
|
|
24
|
+
(column-gap: $value, "--prc-gap-x": $gap-x)
|
|
25
|
+
);
|
|
7
26
|
@include mc.meta("qo-gap-y-#{$key}", (row-gap: $value));
|
|
8
27
|
}
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
@include mc.meta("qo-text-info", (color: cl.$text-info));
|
|
11
11
|
@include mc.meta("qo-text-default", (color: cl.$text-default));
|
|
12
12
|
@include mc.meta("qo-text-dark", (color: cl.$text-dark));
|
|
13
|
+
@include mc.meta("qo-text-darker", (color: cl.$text-darker));
|
|
13
14
|
@include mc.meta("qo-text-light", (color: cl.$text-light));
|
|
14
15
|
@include mc.meta("qo-text-tertiary", (color: cl.$text-tertiary));
|
|
15
16
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "procode-vs-theme",
|
|
3
|
-
"version": "2.0
|
|
3
|
+
"version": "2.2.0",
|
|
4
4
|
"description": "VarStreet VS Theme - A comprehensive SCSS theme package for ProCode framework with variables, components, layout, and utilities for flexible design system usage",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
package/src/base/_color.scss
CHANGED
|
@@ -8,6 +8,8 @@ $text-danger: #f90b0b !default;
|
|
|
8
8
|
$text-info: #17baff !default;
|
|
9
9
|
$text-default: #808080 !default;
|
|
10
10
|
$text-dark: #464646 !default;
|
|
11
|
+
// One step below $text-dark, for dialog and section headings.
|
|
12
|
+
$text-darker: #333333 !default;
|
|
11
13
|
$text-light: #ffffff !default;
|
|
12
14
|
$text-tertiary: #ed5085 !default;
|
|
13
15
|
$text-placeholder: #808080 !default;
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
--qo-text-info: #{cl.$text-info};
|
|
15
15
|
--qo-text-default: #{cl.$text-default};
|
|
16
16
|
--qo-text-dark: #{cl.$text-dark};
|
|
17
|
+
--qo-text-darker: #{cl.$text-darker};
|
|
17
18
|
--qo-text-light: #{cl.$text-light};
|
|
18
19
|
--qo-text-tertiary: #{cl.$text-tertiary};
|
|
19
20
|
--qo-text-placeholder: #{cl.$text-placeholder};
|
|
@@ -82,6 +83,8 @@
|
|
|
82
83
|
--qo-space-md: #{sp.$space-md};
|
|
83
84
|
--qo-space-lg: #{sp.$space-lg};
|
|
84
85
|
--qo-space-xl: #{sp.$space-xl};
|
|
86
|
+
--qo-space-xxl: #{sp.$space-xxl};
|
|
87
|
+
--qo-space-xxxl: #{sp.$space-xxxl};
|
|
85
88
|
|
|
86
89
|
// Border radius
|
|
87
90
|
--qo-border-radius-0: #{bo.$border-radius-0};
|
package/src/base/_space.scss
CHANGED
|
@@ -11,7 +11,11 @@ $space-xs: 2.5px !default;
|
|
|
11
11
|
$space-sm: 5px !default;
|
|
12
12
|
$space-md: 12.5px !default;
|
|
13
13
|
$space-lg: 16.5px !default;
|
|
14
|
-
$space-xl: 21px !default;
|
|
14
|
+
$space-xl: 21px !default;
|
|
15
|
+
// Dialog-scale spacing: the outer padding of the larger modals (the column
|
|
16
|
+
// chooser and its siblings), which the xs-xl steps were all too tight for.
|
|
17
|
+
$space-xxl: 28px !default;
|
|
18
|
+
$space-xxxl: 30px !default;
|
|
15
19
|
|
|
16
20
|
// Spacers map for loop-based utility generation
|
|
17
21
|
$spacers: (
|
|
@@ -25,5 +29,7 @@ $spacers: (
|
|
|
25
29
|
sm: $space-sm,
|
|
26
30
|
md: $space-md,
|
|
27
31
|
lg: $space-lg,
|
|
28
|
-
xl: $space-xl,
|
|
32
|
+
xl: $space-xl,
|
|
33
|
+
xxl: $space-xxl,
|
|
34
|
+
xxxl: $space-xxxl,
|
|
29
35
|
) !default;
|
|
@@ -2,7 +2,26 @@
|
|
|
2
2
|
@use "../../base/mixins/meta-class" as mc;
|
|
3
3
|
|
|
4
4
|
@each $key, $value in sp.$spacers {
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
// `--prc-gap-x` is published next to every column gap this file sets, so the
|
|
6
|
+
// `.prc-cl-N` column system in procode-lowcode-core (>= 2.3.0) can subtract
|
|
7
|
+
// the row's gap from each column's flex-basis. Without it a column is a flat
|
|
8
|
+
// percentage of the row and the gap is added on top, so a full row overflows
|
|
9
|
+
// and shrinks while a partial row does not — and the two rows stop lining up
|
|
10
|
+
// the moment a gap is set. See ContainerRenderer/styles/index.scss for the
|
|
11
|
+
// derivation. Anything that is not a column row ignores the property.
|
|
12
|
+
//
|
|
13
|
+
// A unitless 0 has to become `0px` first: the columns' `calc()` subtracts
|
|
14
|
+
// this from a percentage, and a percentage minus a plain number is invalid,
|
|
15
|
+
// which would drop the declaration and leave the column with no basis.
|
|
16
|
+
$gap-x: $value;
|
|
17
|
+
@if $value == 0 {
|
|
18
|
+
$gap-x: 0px;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
@include mc.meta("qo-gap-#{$key}", (gap: $value, "--prc-gap-x": $gap-x));
|
|
22
|
+
@include mc.meta(
|
|
23
|
+
"qo-gap-x-#{$key}",
|
|
24
|
+
(column-gap: $value, "--prc-gap-x": $gap-x)
|
|
25
|
+
);
|
|
7
26
|
@include mc.meta("qo-gap-y-#{$key}", (row-gap: $value));
|
|
8
27
|
}
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
@include mc.meta("qo-text-info", (color: cl.$text-info));
|
|
11
11
|
@include mc.meta("qo-text-default", (color: cl.$text-default));
|
|
12
12
|
@include mc.meta("qo-text-dark", (color: cl.$text-dark));
|
|
13
|
+
@include mc.meta("qo-text-darker", (color: cl.$text-darker));
|
|
13
14
|
@include mc.meta("qo-text-light", (color: cl.$text-light));
|
|
14
15
|
@include mc.meta("qo-text-tertiary", (color: cl.$text-tertiary));
|
|
15
16
|
|