@patternfly/design-tokens 1.15.1 → 1.16.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.
Files changed (83) hide show
  1. package/build/css/tokens-dark.scss +3 -3
  2. package/build/css/tokens-default.scss +4 -5
  3. package/build/css/{tokens-redhat-dark.scss → tokens-felt-dark.scss} +1 -1
  4. package/build/css/{tokens-redhat-glass-dark.scss → tokens-felt-glass-dark.scss} +4 -3
  5. package/build/css/{tokens-redhat-glass.scss → tokens-felt-glass.scss} +4 -2
  6. package/build/css/{tokens-redhat-highcontrast-dark.scss → tokens-felt-highcontrast-dark.scss} +5 -3
  7. package/build/css/tokens-felt-highcontrast.scss +121 -0
  8. package/build/css/{tokens-redhat.scss → tokens-felt.scss} +1 -1
  9. package/build/css/tokens-glass-dark.scss +2 -2
  10. package/build/css/tokens-glass.scss +1 -1
  11. package/build/css/tokens-palette.scss +1 -1
  12. package/build/css/tokens-redhat-highcontrast.scss +641 -10
  13. package/build.js +42 -42
  14. package/{config.redhat-dark.json → config.felt-dark.json} +2 -2
  15. package/{config.redhat-glass-dark.json → config.felt-glass-dark.json} +2 -2
  16. package/{config.redhat-glass.json → config.felt-glass.json} +2 -2
  17. package/{config.redhat-highcontrast-dark.json → config.felt-highcontrast-dark.json} +2 -2
  18. package/{config.redhat.json → config.felt.json} +2 -2
  19. package/{config.layers.redhat-dark.json → config.layers.felt-dark.json} +2 -2
  20. package/{config.layers.redhat-glass-dark.json → config.layers.felt-glass-dark.json} +2 -2
  21. package/{config.layers.redhat-glass.json → config.layers.felt-glass.json} +2 -2
  22. package/{config.layers.redhat-highcontrast-dark.json → config.layers.felt-highcontrast-dark.json} +2 -2
  23. package/package.json +1 -1
  24. package/patternfly-docs/content/token-layers-felt-dark.json +48543 -0
  25. package/patternfly-docs/content/token-layers-felt-glass-dark.json +37670 -0
  26. package/patternfly-docs/content/token-layers-felt-glass.json +52576 -0
  27. package/patternfly-docs/content/token-layers-felt-highcontrast-dark.json +38323 -0
  28. package/patternfly-docs/content/token-layers-glass-dark.json +4214 -4247
  29. package/patternfly-docs/content/token-layers-glass.json +4997 -5049
  30. package/patternfly-docs/content/token-layers-highcontrast-dark.json +2978 -3005
  31. package/patternfly-docs/content/token-layers-highcontrast.json +4177 -4229
  32. package/patternfly-docs/content/token-layers-redhat-dark.json +147 -170
  33. package/patternfly-docs/content/token-layers-redhat-glass-dark.json +165 -194
  34. package/patternfly-docs/content/token-layers-redhat-glass.json +298 -346
  35. package/patternfly-docs/content/token-layers-redhat-highcontrast-dark.json +46 -69
  36. package/patternfly-docs/content/token-layers-redhat-highcontrast.json +4911 -4641
  37. package/patternfly-docs/content/token-layers-redhat.json +6147 -5881
  38. package/patternfly-docs/content/tokensTable.css +178 -0
  39. package/patternfly-docs/content/tokensTable.js +1078 -180
  40. package/patternfly-docs/content/tokensToolbar.js +240 -11
  41. package/patternfly-docs/generated/foundations-and-styles/design-tokens/all-design-tokens/design-tokens.js +37 -3
  42. package/patternfly-docs/generated/index.js +1 -0
  43. package/plugins/export-patternfly-tokens/dist/ui.html +344 -334
  44. package/plugins/export-patternfly-tokens/src/ui.tsx +44 -34
  45. package/tokens/default/dark/base.dark.json +42 -42
  46. package/tokens/default/dark/charts.dark.json +32 -32
  47. package/tokens/default/dark/charts.highcontrast.dark.json +765 -0
  48. package/tokens/default/dark/palette.color.json +4 -4
  49. package/tokens/default/dark/semantic.dark.json +115 -115
  50. package/tokens/default/glass/base.dimension.json +24 -24
  51. package/tokens/default/glass/palette.color.json +4 -4
  52. package/tokens/default/glass/semantic.dimension.glass.json +137 -141
  53. package/tokens/default/glass/semantic.glass.json +114 -114
  54. package/tokens/default/glass-dark/base.dark.json +42 -42
  55. package/tokens/default/glass-dark/palette.color.json +4 -4
  56. package/tokens/default/glass-dark/semantic.glass.dark.json +115 -115
  57. package/tokens/default/highcontrast/base.dimension.json +24 -24
  58. package/tokens/default/highcontrast/palette.color.json +4 -4
  59. package/tokens/default/highcontrast/semantic.dimension.highcontrast.json +136 -140
  60. package/tokens/default/highcontrast/semantic.highcontrast.json +114 -114
  61. package/tokens/default/highcontrast-dark/base.dark.json +42 -42
  62. package/tokens/default/highcontrast-dark/palette.color.json +4 -4
  63. package/tokens/default/highcontrast-dark/semantic.highcontrast.dark.json +115 -115
  64. package/tokens/default/light/base.dimension.json +24 -24
  65. package/tokens/default/light/charts.highcontrast.json +765 -0
  66. package/tokens/default/light/charts.json +32 -32
  67. package/tokens/default/light/palette.color.json +4 -4
  68. package/tokens/default/light/semantic.dimension.json +137 -141
  69. package/tokens/default/light/semantic.json +114 -114
  70. package/tokens/default/light/semantic.motion.json +17 -17
  71. package/tokens/{redhat/dark/redhat.color.dark.json → felt/dark/felt.color.dark.json} +19 -19
  72. package/tokens/{redhat/light/redhat.color.json → felt/glass/felt.color.glass.json} +10 -10
  73. package/tokens/{redhat/highcontrast/redhat.dimension.highcontrast.json → felt/glass/felt.dimension.glass.json} +6 -6
  74. package/tokens/{redhat/glass-dark/redhat.color.glass.dark.json → felt/glass-dark/felt.color.glass.dark.json} +22 -17
  75. package/tokens/{redhat/highcontrast/redhat.color.highcontrast.json → felt/highcontrast/felt.color.highcontrast.json} +10 -10
  76. package/tokens/{redhat/light/redhat.dimension.json → felt/highcontrast/felt.dimension.highcontrast.json} +6 -6
  77. package/tokens/{redhat/highcontrast-dark/redhat.color.highcontrast.dark.json → felt/highcontrast-dark/felt.color.highcontrast.dark.json} +10 -10
  78. package/tokens/{redhat/glass/redhat.color.glass.json → felt/light/felt.color.json} +10 -10
  79. package/tokens/felt/light/felt.dimension.json +23 -0
  80. package/tokens/redhat/glass/redhat.dimension.glass.json +0 -2
  81. /package/{config.redhat-highcontrast.json → config.felt-highcontrast.json} +0 -0
  82. /package/{config.layers.redhat-highcontrast.json → config.layers.felt-highcontrast.json} +0 -0
  83. /package/{config.layers.redhat.json → config.layers.felt.json} +0 -0
@@ -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 */