@pantheon-systems/pds-design-tokens 0.2.0-dev.0 → 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
@@ -20,9 +20,25 @@ PDS Design Tokens are provided in the following formats:
20
20
  - `build/scss/_pds-design-tokens-dark-mode.scss`
21
21
  - JSON
22
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`
23
25
  - Figma (formatted to sync to Figma styles)
24
26
  - `build/figma/pds-design-tokens-figma.json`
25
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
+
26
42
  ## Color Modes
27
43
 
28
44
  All global color values are found within the default output files which should be loaded at all times.
@@ -12,6 +12,7 @@
12
12
  :root {
13
13
  --pds-color-background-default: #1d1d29;
14
14
  --pds-color-border-default: #504e62;
15
+ --pds-color-foreground-default: #ffffff;
15
16
  --pds-color-input-background-default: #1d1d29;
16
17
  --pds-color-input-background-disabled: #504e62;
17
18
  --pds-color-input-border-default: var(--pds-color-border-default);
@@ -20,7 +21,6 @@
20
21
  --pds-color-link-default: #36a3ff;
21
22
  --pds-color-link-hover: #2776b9;
22
23
  --pds-color-link-visited: #967fff;
23
- --pds-color-text-bodytext: var(--pds-color-text-default);
24
24
  --pds-color-text-default: #ffffff;
25
25
  --pds-color-text-headings: var(--pds-color-text-default);
26
26
  }
@@ -12,6 +12,7 @@
12
12
  :root {
13
13
  --pds-color-background-default: #ffffff;
14
14
  --pds-color-border-default: #71717c;
15
+ --pds-color-foreground-default: #23232d;
15
16
  --pds-color-input-background-default: #ffffff;
16
17
  --pds-color-input-background-disabled: #cfcfd3;
17
18
  --pds-color-input-border-default: var(--pds-color-border-default);
@@ -20,7 +21,6 @@
20
21
  --pds-color-link-default: #0f62fe;
21
22
  --pds-color-link-hover: #003cac;
22
23
  --pds-color-link-visited: #967fff;
23
- --pds-color-text-bodytext: var(--pds-color-text-default);
24
24
  --pds-color-text-default: #23232d;
25
25
  --pds-color-text-headings: var(--pds-color-text-default);
26
26
  }
@@ -10,6 +10,8 @@
10
10
  */
11
11
 
12
12
  :root {
13
+ --pds-border-radius-default: 0.25rem;
14
+ --pds-border-width-default: 1px;
13
15
  --pds-color-global-brand-accent-default: #de0093;
14
16
  --pds-color-global-brand-primary-default: #ffdc28;
15
17
  --pds-color-global-brand-secondary-default: #3017a1;
@@ -17,4 +19,8 @@
17
19
  --pds-color-global-gradient-midnight: linear-gradient(228.64deg, #3017A1 46.34%, #00E0C3 100%);
18
20
  --pds-color-global-gradient-sunrise: linear-gradient(227.79deg, #300068 38.28%, #E65F35 100%);
19
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;
20
26
  }