@patternfly/design-tokens 1.15.2 → 1.16.1

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.
Files changed (45) hide show
  1. package/build/css/tokens-charts-dark.scss +4 -2
  2. package/build/css/tokens-charts-highcontrast-dark.scss +175 -0
  3. package/build/css/tokens-charts-highcontrast.scss +175 -0
  4. package/build/css/tokens-charts.scss +4 -2
  5. package/build/css/tokens-dark.scss +1 -1
  6. package/build/css/tokens-default.scss +1 -1
  7. package/build/css/tokens-felt-dark.scss +1 -1
  8. package/build/css/tokens-felt-glass-dark.scss +1 -1
  9. package/build/css/tokens-felt-glass.scss +1 -1
  10. package/build/css/tokens-felt-highcontrast-dark.scss +1 -1
  11. package/build/css/tokens-felt-highcontrast.scss +10 -2
  12. package/build/css/tokens-felt.scss +1 -1
  13. package/build/css/tokens-glass-dark.scss +1 -1
  14. package/build/css/tokens-glass.scss +1 -1
  15. package/build/css/tokens-palette.scss +1 -1
  16. package/build/css/tokens-redhat-highcontrast.scss +1 -1
  17. package/build.js +7 -1
  18. package/config.charts.dark.json +1 -1
  19. package/config.charts.highcontrast.dark.json +23 -0
  20. package/config.charts.highcontrast.json +23 -0
  21. package/config.charts.json +1 -1
  22. package/config.felt-highcontrast.json +2 -2
  23. package/config.layers.felt-highcontrast.json +2 -2
  24. package/config.layers.felt.json +2 -2
  25. package/package.json +1 -1
  26. package/patternfly-docs/content/token-layers-felt-dark.json +60 -16
  27. package/patternfly-docs/content/token-layers-felt-highcontrast.json +53027 -0
  28. package/patternfly-docs/content/token-layers-felt.json +65461 -0
  29. package/patternfly-docs/content/tokensTable.css +178 -0
  30. package/patternfly-docs/content/tokensTable.js +1078 -180
  31. package/patternfly-docs/content/tokensToolbar.js +240 -11
  32. package/patternfly-docs/generated/foundations-and-styles/design-tokens/all-design-tokens/design-tokens.js +37 -3
  33. package/patternfly-docs/generated/index.js +1 -0
  34. package/plugins/export-patternfly-tokens/dist/ui.html +9 -9
  35. package/plugins/export-patternfly-tokens/src/ui.tsx +8 -8
  36. package/tokens/default/dark/charts.dark.json +11 -3
  37. package/tokens/default/dark/charts.highcontrast.dark.json +11 -3
  38. package/tokens/default/light/charts.highcontrast.json +11 -3
  39. package/tokens/default/light/charts.json +11 -3
  40. package/tokens/felt/dark/felt.color.dark.json +41 -41
  41. package/tokens/felt/glass/felt.color.glass.json +9 -9
  42. package/tokens/felt/glass-dark/felt.color.glass.dark.json +41 -41
  43. package/tokens/felt/highcontrast/felt.color.highcontrast.json +9 -9
  44. package/tokens/felt/highcontrast-dark/felt.color.highcontrast.dark.json +9 -9
  45. package/tokens/felt/light/felt.color.json +9 -9
@@ -1,3 +1,175 @@
1
+ /* Keep column widths stable when Value cell content changes (theme switch, all vs one theme) */
2
+ .tokens-table-fixed-layout {
3
+ table-layout: fixed;
4
+ width: 100%;
5
+ }
6
+
7
+ .tokens-table-fixed-layout td {
8
+ vertical-align: middle;
9
+ }
10
+
11
+ .tokens-table-fixed-layout td:not(.tokens-table-value-cell) {
12
+ overflow-wrap: anywhere;
13
+ word-break: break-word;
14
+ }
15
+
16
+ /* Value column: one line per theme row; scroll horizontally if needed */
17
+ .tokens-table-fixed-layout td.tokens-table-value-cell {
18
+ overflow-x: auto;
19
+ overflow-y: hidden;
20
+ white-space: nowrap;
21
+ overflow-wrap: normal;
22
+ word-break: normal;
23
+ /**
24
+ * max-width: 0 is a CSS trick that works with table-layout: fixed.
25
+ * It forces the cell to respect percentage widths from <Th width={N}> and enables horizontal scrolling
26
+ * when content exceeds the allocated width, instead of expanding the table.
27
+ */
28
+ max-width: 0;
29
+ }
30
+
31
+ .tokens-table-value-stack {
32
+ min-width: 0;
33
+ }
34
+
35
+ .ws-token-value-line {
36
+ display: block;
37
+ min-width: min-content;
38
+ }
39
+
40
+ .ws-token-value-line-inner {
41
+ flex-wrap: nowrap !important;
42
+ width: max-content;
43
+ max-width: none;
44
+ }
45
+
46
+ .ws-theme-label-inline {
47
+ flex: 0 0 auto;
48
+ }
49
+
50
+ .ws-theme-label-inline .ws-theme-display-label {
51
+ white-space: pre;
52
+ }
53
+
54
+ .ws-token-value-main {
55
+ flex: 1 1 auto;
56
+ min-width: 0;
57
+ }
58
+
59
+ .ws-token-value-main--separated {
60
+ margin-inline-start: var(--pf-t--global--spacer--md);
61
+ padding-inline-start: var(--pf-t--global--spacer--md);
62
+ border-inline-start: var(--pf-t--global--border--width--regular) solid
63
+ var(--pf-t--global--border--color--default);
64
+ }
65
+
66
+ .ws-token-value-hex-wrap {
67
+ flex: 0 1 auto;
68
+ min-width: 0;
69
+ }
70
+
71
+ .ws-token-value-hex {
72
+ display: inline-block;
73
+ white-space: nowrap;
74
+ font-family: var(--pf-t--global--font--family--mono), ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
75
+ }
76
+
77
+ .ws-token-swatch-wrap {
78
+ flex: 0 0 auto;
79
+ }
80
+
81
+ .ws-token-value-plain-inline {
82
+ flex: 1 1 auto;
83
+ min-width: 0;
84
+ white-space: nowrap;
85
+ }
86
+
87
+ .ws-token-value-popover-trigger {
88
+ text-decoration: underline dotted;
89
+ text-decoration-color: var(--pf-t--global--border--color--default);
90
+ text-underline-offset: 0.12em;
91
+ }
92
+
93
+ .ws-token-value-popover-trigger:hover {
94
+ text-decoration-color: var(--pf-t--global--border--color--clicked);
95
+ }
96
+
97
+ .ws-token-derivation-popover__theme {
98
+ margin-block-end: var(--pf-t--global--spacer--md);
99
+ padding-block-end: var(--pf-t--global--spacer--sm);
100
+ border-block-end: var(--pf-t--global--border--width--regular) solid
101
+ var(--pf-t--global--border--color--default);
102
+ }
103
+
104
+ .ws-token-chain-item {
105
+ font-family: var(--pf-t--global--font--family--mono), ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
106
+ }
107
+
108
+ .ws-token-chain-value {
109
+ font-family: var(--pf-t--global--font--family--mono), ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
110
+ }
111
+
112
+ .ws-token-chain-value .pf-v6-c-button.pf-m-link.pf-m-inline {
113
+ text-decoration: underline;
114
+ text-decoration-style: dotted;
115
+ text-underline-offset: 0.15em;
116
+ }
117
+
118
+ .ws-token-chain-value .pf-v6-c-button.pf-m-link.pf-m-inline:hover {
119
+ text-decoration-style: solid;
120
+ }
121
+
122
+ .ws-token-chain-button {
123
+ font-family: inherit;
124
+ font-size: inherit;
125
+ padding: 0;
126
+ vertical-align: baseline;
127
+ }
128
+
129
+ .ws-theme-group-label {
130
+ font-size: var(--pf-t--global--font--size--body--sm, 0.875rem);
131
+ font-weight: var(--pf-t--global--font--weight--body--default);
132
+ color: var(--pf-t--global--text--color--subtle);
133
+ cursor: help;
134
+ border-radius: var(--pf-t--global--border--radius--small);
135
+ padding-inline: var(--pf-t--global--spacer--xs);
136
+ background-color: var(--pf-t--global--background--color--secondary--default);
137
+ display: inline-block;
138
+ }
139
+
140
+ .ws-theme-group-label:hover {
141
+ color: var(--pf-t--global--text--color--subtle);
142
+ background-color: var(--pf-t--global--background--color--secondary--default);
143
+ }
144
+
145
+ .ws-theme-group-label:focus-visible {
146
+ outline: 2px solid var(--pf-t--global--border--color--clicked);
147
+ outline-offset: 2px;
148
+ }
149
+
150
+ .ws-theme-display-label {
151
+ font-family: var(--pf-t--global--font--family--mono), ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
152
+ font-size: var(--pf-t--global--font--size--body--sm, 0.875rem);
153
+ line-height: var(--pf-t--global--font--line-height--body--sm, 1.4);
154
+ white-space: pre;
155
+ }
156
+
157
+ .ws-theme-abbr-trigger {
158
+ cursor: help;
159
+ border-radius: var(--pf-t--global--border--radius--small);
160
+ display: inline;
161
+ padding: 0;
162
+ }
163
+
164
+ .ws-theme-abbr-trigger:hover {
165
+ background-color: transparent;
166
+ }
167
+
168
+ .ws-theme-abbr-trigger:focus-visible {
169
+ outline: 2px solid var(--pf-t--global--border--color--clicked);
170
+ outline-offset: 2px;
171
+ }
172
+
1
173
  .ws-token-swatch {
2
174
  height: 1em;
3
175
  display: inline-block;
@@ -7,6 +179,12 @@
7
179
  box-shadow: var(--pf-t--global--box-shadow--sm);
8
180
  }
9
181
 
182
+ .ws-tokens-title-theme {
183
+ font-size: 0.65em;
184
+ font-weight: var(--pf-t--global--font--weight--body--default);
185
+ color: var(--pf-t--global--text--color--subtle);
186
+ }
187
+
10
188
  @media (min-width: 1200px) {
11
189
  .tokens-table-outer-wrapper {
12
190
  /* Allow table to break out of artificial max-width, fill available space */