@pantheon-systems/pds-design-tokens 0.1.0-dev.1 → 0.3.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 CHANGED
@@ -4,10 +4,43 @@ 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
- To build the various artifacts/files simply run:
7
+ Compiled tokens can be found in the `build` directory.
8
8
 
9
- ```bash
10
- npm run tokens:build
11
- ```
9
+ ## Output Types
12
10
 
13
- The above command will generate CSS (custom properties), SCSS (Sass), and JSON files.
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
+ - `build/json/pds-design-tokens-light-mode.json`
24
+ - `build/json/pds-design-tokens-dark-mode.json`
25
+ - Figma (formatted to sync to Figma styles)
26
+ - `build/figma/pds-design-tokens-figma.json`
27
+
28
+ ## Technology Agnostic
29
+
30
+ Design tokens are specifically intended for the purpose of design and will be translated into various technical formats as needed.
31
+
32
+ By default, tokens values should be unitless unless that unit is universal (such as percentages). Many PDS design tokens will be assigned a default unit type under the hood, but those unit designations will only be provided for the output formats where appropriate.
33
+
34
+ For example, CSS and SCSS variable tokens will be output with unit-specific values. While JSON output tokens will always be unitless. However, if a default unit is assigned it will be available via the `defaultUnit` key for any token object.
35
+
36
+ ## Public and Private Tokens
37
+
38
+ All tokens are considered private unless specifically designated as public. All tokens may be accessed via JSON token files, but only public tokens will be output to CSS and SCSS stylesheets.
39
+
40
+ We typically only designate tokens as public when they need to be available to override for theming purposes such as switching between light and dark mode or for other custom themes.
41
+
42
+ ## Color Modes
43
+
44
+ All global color values are found within the default output files which should be loaded at all times.
45
+
46
+ 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-foreground-default: #ffffff;
16
+ --pds-color-input-background-default: #1d1d29;
17
+ --pds-color-input-background-disabled: #504e62;
18
+ --pds-color-input-border-default: var(--pds-color-border-default);
19
+ --pds-color-input-border-disabled: #858299;
20
+ --pds-color-link-active: #2776b9;
21
+ --pds-color-link-default: #36a3ff;
22
+ --pds-color-link-hover: #2776b9;
23
+ --pds-color-link-visited: #967fff;
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-foreground-default: #23232d;
16
+ --pds-color-input-background-default: #ffffff;
17
+ --pds-color-input-background-disabled: #cfcfd3;
18
+ --pds-color-input-border-default: var(--pds-color-border-default);
19
+ --pds-color-input-border-disabled: #aeaeb6;
20
+ --pds-color-link-active: #003cac;
21
+ --pds-color-link-default: #0f62fe;
22
+ --pds-color-link-hover: #003cac;
23
+ --pds-color-link-visited: #967fff;
24
+ --pds-color-text-default: #23232d;
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-border-radius-default: 0.25rem;
14
+ --pds-border-width-default: 1px;
15
+ --pds-color-global-brand-accent-default: #de0093;
16
+ --pds-color-global-brand-primary-default: #ffdc28;
17
+ --pds-color-global-brand-secondary-default: #3017a1;
18
+ --pds-color-global-gradient-after-hours: linear-gradient(228.64deg, #2B017B 41.87%, #29B2FF 100%);
19
+ --pds-color-global-gradient-midnight: linear-gradient(228.64deg, #3017A1 46.34%, #00E0C3 100%);
20
+ --pds-color-global-gradient-sunrise: linear-gradient(227.79deg, #300068 38.28%, #E65F35 100%);
21
+ --pds-color-global-gradient-sunset: linear-gradient(48.24deg, #EF13AD 0%, #300068 66.25%);
22
+ --pds-typography-product-font-headings: 'Poppins', sans-serif;
23
+ --pds-typography-product-font-text: 'Open Sans', sans-serif;
24
+ --pds-typography-product-marketing-font-headings: 'Poppins', sans-serif;
25
+ --pds-typography-product-marketing-font-text: 'Aleo', serif;
26
+ }