Skip to content

Commit e71278b

Browse files
authored
chore: remove outdated system references (#4239)
1 parent 914199a commit e71278b

File tree

2 files changed

+3
-17
lines changed

2 files changed

+3
-17
lines changed

stylelint.config.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ module.exports = {
7575
],
7676
},
7777
],
78-
"custom-property-pattern": [/^(spectrum|mod|highcontrast|system|_)/, {}],
78+
"custom-property-pattern": [/^(spectrum|mod|highcontrast|_)/, {}],
7979
"declaration-block-no-duplicate-custom-properties": true,
8080
"declaration-property-value-no-unknown": [
8181
true,
@@ -171,7 +171,7 @@ module.exports = {
171171
* -------------------------------------------------------------- */
172172
overrides: [
173173
{
174-
files: ["components/*/index.css", "components/*/themes/spectrum.css"],
174+
files: ["components/*/index.css"],
175175
rules: {
176176
"selector-class-pattern": [
177177
"^(spectrum-|is-|u-)[A-Za-z0-9-]+", {
@@ -184,7 +184,6 @@ module.exports = {
184184
/** @note this is a list of custom properties that are allowed to be unknown */
185185
ignoreList: [
186186
/^--mod-/,
187-
/^--system-/,
188187
/^--spectrum-picked-color$/,
189188
/^--spectrum-downstate-(height|width)$/,
190189
],
@@ -218,7 +217,7 @@ module.exports = {
218217
{
219218
files: ["tokens*/**/*.css(?inline)?", "tokens/**/*.css"],
220219
rules: {
221-
"custom-property-pattern": [/^(spectrum|color|scale|system)/, {}],
220+
"custom-property-pattern": [/^(spectrum|color|scale)/, {}],
222221
}
223222
},
224223
{

tokens/README.md

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,6 @@ This package uses StyleDictionary to build Spectrum core tokens for CSS.
1111
- **Context**: This terms refers to the design language an application wants to use. Contexts previously supported were Spectrum and Express. The current system supports only Spectrum but has committed to offering backward compatibility through at least December 2024.
1212
- **Color**: This term refers to the color mode. The current system supports light and dark only. The lightest and darkest color modes were deprecated in the final version for **14.x**.
1313
- **Scale**: This term refers to the scale of the design system. The current system supports medium and large scales. The large scale is used for mobile applications and the medium scale is used for desktop applications.
14-
- **System variables**: These are randomly generated variable names (prefixed with `--system`) that are used to map the component-level class styles to the core tokens from the desired context. These are generated by the `postcss-add-theming-layer` plugin as part of the build and should not be relied upon for naming consistency across releases. **Do not attempt to overwrite or extend these variables in your application.**
15-
16-
## Backwards compatibility for Spectrum 1 and Express
17-
18-
Though the token data in this package focus on only the current context (Spectrum 2), our team is committed to offering backwards compatibility for Spectrum 1 and Express through at least December of 2024.
19-
20-
To this end, every component that requires backward mapping support will include:
21-
22-
- Spectrum 1: `dist/themes/spectrum.css`
23-
- Express: `dist/themes/express.css`
24-
- Spectrum 2: `dist/themes/spectrum-two.css`
25-
26-
Consumers should load only the mappings for the components they are using in their application. This will ensure that the component-level mappings are aligned with the base CSS for each component. Spectrum 1 and Express component mappings should be loaded with the `global-vars.css` and appropriate color and scale assets from the last version of the tokens package: **v14.x**. Loading the Spectrum 1 or Express component-level mappings with the Spectrum 2 global variables will result in incorrect values being applied to the components and will break the desired design for the component.
2714

2815
## Usage
2916

0 commit comments

Comments
 (0)