@pantheon-systems/pds-design-tokens 0.1.0-dev.1 → 0.2.0-dev.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/README.md +22 -5
- package/build/css/pds-design-tokens-dark-mode.css +26 -0
- package/build/css/pds-design-tokens-light-mode.css +26 -0
- package/build/css/pds-design-tokens.css +20 -0
- package/build/figma/pds-design-tokens-figma.json +4213 -0
- package/build/json/pds-design-tokens-dark-mode.json +1198 -0
- package/build/json/pds-design-tokens-light-mode.json +1198 -0
- package/build/json/pds-design-tokens.json +2089 -0
- package/build/scss/_pds-design-tokens-dark-mode.scss +23 -0
- package/build/scss/_pds-design-tokens-light-mode.scss +23 -0
- package/build/scss/_pds-design-tokens.scss +17 -0
- package/package.json +7 -2
- package/build/css/pds-tokens-dark-mode.css +0 -74
- package/build/css/pds-tokens.css +0 -74
- package/build/figma/pds-tokens-figma.json +0 -4450
- package/build/json/pds-tokens-dark-mode.json +0 -1753
- package/build/json/pds-tokens.json +0 -3073
- package/build/scss/_pds-tokens-dark-mode.scss +0 -71
- package/build/scss/_pds-tokens.scss +0 -71
package/README.md
CHANGED
|
@@ -4,10 +4,27 @@ Design Tokens for the Pantheon Design System
|
|
|
4
4
|
|
|
5
5
|
The repository uses [Style Dictionary](https://amzn.github.io/style-dictionary) as its foundational framework.
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
Compiled tokens can be found in the `build` directory.
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
npm run tokens:build
|
|
11
|
-
```
|
|
9
|
+
## Output Types
|
|
12
10
|
|
|
13
|
-
|
|
11
|
+
PDS Design Tokens are provided in the following formats:
|
|
12
|
+
|
|
13
|
+
- CSS Custom Properties
|
|
14
|
+
- `build/css/pds-design-tokens.css`
|
|
15
|
+
- `build/css/pds-design-tokens-light-mode.css`
|
|
16
|
+
- `build/css/pds-design-tokens-dark-mode.css`
|
|
17
|
+
- SASS Variables
|
|
18
|
+
- `build/scss/_pds-design-tokens.scss`
|
|
19
|
+
- `build/scss/_pds-design-tokens-light-mode.scss`
|
|
20
|
+
- `build/scss/_pds-design-tokens-dark-mode.scss`
|
|
21
|
+
- JSON
|
|
22
|
+
- `build/json/pds-design-tokens.json`
|
|
23
|
+
- Figma (formatted to sync to Figma styles)
|
|
24
|
+
- `build/figma/pds-design-tokens-figma.json`
|
|
25
|
+
|
|
26
|
+
## Color Modes
|
|
27
|
+
|
|
28
|
+
All global color values are found within the default output files which should be loaded at all times.
|
|
29
|
+
|
|
30
|
+
Mode-specific (light or dark) color tokens are found within theme-specific CSS and SCSS variable files and are to be used in conjunction with (and loaded after) the default tokens implementation files.
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* Pantheon Systems
|
|
4
|
+
*
|
|
5
|
+
* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
6
|
+
* !! DO NOT EDIT THIS FILE DIRECTLY !!
|
|
7
|
+
* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
8
|
+
*
|
|
9
|
+
* This file has been generated automatically.
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
:root {
|
|
13
|
+
--pds-color-background-default: #1d1d29;
|
|
14
|
+
--pds-color-border-default: #504e62;
|
|
15
|
+
--pds-color-input-background-default: #1d1d29;
|
|
16
|
+
--pds-color-input-background-disabled: #504e62;
|
|
17
|
+
--pds-color-input-border-default: var(--pds-color-border-default);
|
|
18
|
+
--pds-color-input-border-disabled: #858299;
|
|
19
|
+
--pds-color-link-active: #2776b9;
|
|
20
|
+
--pds-color-link-default: #36a3ff;
|
|
21
|
+
--pds-color-link-hover: #2776b9;
|
|
22
|
+
--pds-color-link-visited: #967fff;
|
|
23
|
+
--pds-color-text-bodytext: var(--pds-color-text-default);
|
|
24
|
+
--pds-color-text-default: #ffffff;
|
|
25
|
+
--pds-color-text-headings: var(--pds-color-text-default);
|
|
26
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* Pantheon Systems
|
|
4
|
+
*
|
|
5
|
+
* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
6
|
+
* !! DO NOT EDIT THIS FILE DIRECTLY !!
|
|
7
|
+
* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
8
|
+
*
|
|
9
|
+
* This file has been generated automatically.
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
:root {
|
|
13
|
+
--pds-color-background-default: #ffffff;
|
|
14
|
+
--pds-color-border-default: #71717c;
|
|
15
|
+
--pds-color-input-background-default: #ffffff;
|
|
16
|
+
--pds-color-input-background-disabled: #cfcfd3;
|
|
17
|
+
--pds-color-input-border-default: var(--pds-color-border-default);
|
|
18
|
+
--pds-color-input-border-disabled: #aeaeb6;
|
|
19
|
+
--pds-color-link-active: #003cac;
|
|
20
|
+
--pds-color-link-default: #0f62fe;
|
|
21
|
+
--pds-color-link-hover: #003cac;
|
|
22
|
+
--pds-color-link-visited: #967fff;
|
|
23
|
+
--pds-color-text-bodytext: var(--pds-color-text-default);
|
|
24
|
+
--pds-color-text-default: #23232d;
|
|
25
|
+
--pds-color-text-headings: var(--pds-color-text-default);
|
|
26
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* Pantheon Systems
|
|
4
|
+
*
|
|
5
|
+
* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
6
|
+
* !! DO NOT EDIT THIS FILE DIRECTLY !!
|
|
7
|
+
* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
8
|
+
*
|
|
9
|
+
* This file has been generated automatically.
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
:root {
|
|
13
|
+
--pds-color-global-brand-accent-default: #de0093;
|
|
14
|
+
--pds-color-global-brand-primary-default: #ffdc28;
|
|
15
|
+
--pds-color-global-brand-secondary-default: #3017a1;
|
|
16
|
+
--pds-color-global-gradient-after-hours: linear-gradient(228.64deg, #2B017B 41.87%, #29B2FF 100%);
|
|
17
|
+
--pds-color-global-gradient-midnight: linear-gradient(228.64deg, #3017A1 46.34%, #00E0C3 100%);
|
|
18
|
+
--pds-color-global-gradient-sunrise: linear-gradient(227.79deg, #300068 38.28%, #E65F35 100%);
|
|
19
|
+
--pds-color-global-gradient-sunset: linear-gradient(48.24deg, #EF13AD 0%, #300068 66.25%);
|
|
20
|
+
}
|