@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.
- package/build/css/tokens-dark.scss +3 -3
- package/build/css/tokens-default.scss +4 -5
- package/build/css/{tokens-redhat-dark.scss → tokens-felt-dark.scss} +1 -1
- package/build/css/{tokens-redhat-glass-dark.scss → tokens-felt-glass-dark.scss} +4 -3
- package/build/css/{tokens-redhat-glass.scss → tokens-felt-glass.scss} +4 -2
- package/build/css/{tokens-redhat-highcontrast-dark.scss → tokens-felt-highcontrast-dark.scss} +5 -3
- package/build/css/tokens-felt-highcontrast.scss +121 -0
- package/build/css/{tokens-redhat.scss → tokens-felt.scss} +1 -1
- package/build/css/tokens-glass-dark.scss +2 -2
- package/build/css/tokens-glass.scss +1 -1
- package/build/css/tokens-palette.scss +1 -1
- package/build/css/tokens-redhat-highcontrast.scss +641 -10
- package/build.js +42 -42
- package/{config.redhat-dark.json → config.felt-dark.json} +2 -2
- package/{config.redhat-glass-dark.json → config.felt-glass-dark.json} +2 -2
- package/{config.redhat-glass.json → config.felt-glass.json} +2 -2
- package/{config.redhat-highcontrast-dark.json → config.felt-highcontrast-dark.json} +2 -2
- package/{config.redhat.json → config.felt.json} +2 -2
- package/{config.layers.redhat-dark.json → config.layers.felt-dark.json} +2 -2
- package/{config.layers.redhat-glass-dark.json → config.layers.felt-glass-dark.json} +2 -2
- package/{config.layers.redhat-glass.json → config.layers.felt-glass.json} +2 -2
- package/{config.layers.redhat-highcontrast-dark.json → config.layers.felt-highcontrast-dark.json} +2 -2
- package/package.json +1 -1
- package/patternfly-docs/content/token-layers-felt-dark.json +48543 -0
- package/patternfly-docs/content/token-layers-felt-glass-dark.json +37670 -0
- package/patternfly-docs/content/token-layers-felt-glass.json +52576 -0
- package/patternfly-docs/content/token-layers-felt-highcontrast-dark.json +38323 -0
- package/patternfly-docs/content/token-layers-glass-dark.json +4214 -4247
- package/patternfly-docs/content/token-layers-glass.json +4997 -5049
- package/patternfly-docs/content/token-layers-highcontrast-dark.json +2978 -3005
- package/patternfly-docs/content/token-layers-highcontrast.json +4177 -4229
- package/patternfly-docs/content/token-layers-redhat-dark.json +147 -170
- package/patternfly-docs/content/token-layers-redhat-glass-dark.json +165 -194
- package/patternfly-docs/content/token-layers-redhat-glass.json +298 -346
- package/patternfly-docs/content/token-layers-redhat-highcontrast-dark.json +46 -69
- package/patternfly-docs/content/token-layers-redhat-highcontrast.json +4911 -4641
- package/patternfly-docs/content/token-layers-redhat.json +6147 -5881
- package/patternfly-docs/content/tokensTable.css +178 -0
- package/patternfly-docs/content/tokensTable.js +1078 -180
- package/patternfly-docs/content/tokensToolbar.js +240 -11
- package/patternfly-docs/generated/foundations-and-styles/design-tokens/all-design-tokens/design-tokens.js +37 -3
- package/patternfly-docs/generated/index.js +1 -0
- package/plugins/export-patternfly-tokens/dist/ui.html +344 -334
- package/plugins/export-patternfly-tokens/src/ui.tsx +44 -34
- package/tokens/default/dark/base.dark.json +42 -42
- package/tokens/default/dark/charts.dark.json +32 -32
- package/tokens/default/dark/charts.highcontrast.dark.json +765 -0
- package/tokens/default/dark/palette.color.json +4 -4
- package/tokens/default/dark/semantic.dark.json +115 -115
- package/tokens/default/glass/base.dimension.json +24 -24
- package/tokens/default/glass/palette.color.json +4 -4
- package/tokens/default/glass/semantic.dimension.glass.json +137 -141
- package/tokens/default/glass/semantic.glass.json +114 -114
- package/tokens/default/glass-dark/base.dark.json +42 -42
- package/tokens/default/glass-dark/palette.color.json +4 -4
- package/tokens/default/glass-dark/semantic.glass.dark.json +115 -115
- package/tokens/default/highcontrast/base.dimension.json +24 -24
- package/tokens/default/highcontrast/palette.color.json +4 -4
- package/tokens/default/highcontrast/semantic.dimension.highcontrast.json +136 -140
- package/tokens/default/highcontrast/semantic.highcontrast.json +114 -114
- package/tokens/default/highcontrast-dark/base.dark.json +42 -42
- package/tokens/default/highcontrast-dark/palette.color.json +4 -4
- package/tokens/default/highcontrast-dark/semantic.highcontrast.dark.json +115 -115
- package/tokens/default/light/base.dimension.json +24 -24
- package/tokens/default/light/charts.highcontrast.json +765 -0
- package/tokens/default/light/charts.json +32 -32
- package/tokens/default/light/palette.color.json +4 -4
- package/tokens/default/light/semantic.dimension.json +137 -141
- package/tokens/default/light/semantic.json +114 -114
- package/tokens/default/light/semantic.motion.json +17 -17
- package/tokens/{redhat/dark/redhat.color.dark.json → felt/dark/felt.color.dark.json} +19 -19
- package/tokens/{redhat/light/redhat.color.json → felt/glass/felt.color.glass.json} +10 -10
- package/tokens/{redhat/highcontrast/redhat.dimension.highcontrast.json → felt/glass/felt.dimension.glass.json} +6 -6
- package/tokens/{redhat/glass-dark/redhat.color.glass.dark.json → felt/glass-dark/felt.color.glass.dark.json} +22 -17
- package/tokens/{redhat/highcontrast/redhat.color.highcontrast.json → felt/highcontrast/felt.color.highcontrast.json} +10 -10
- package/tokens/{redhat/light/redhat.dimension.json → felt/highcontrast/felt.dimension.highcontrast.json} +6 -6
- package/tokens/{redhat/highcontrast-dark/redhat.color.highcontrast.dark.json → felt/highcontrast-dark/felt.color.highcontrast.dark.json} +10 -10
- package/tokens/{redhat/glass/redhat.color.glass.json → felt/light/felt.color.json} +10 -10
- package/tokens/felt/light/felt.dimension.json +23 -0
- package/tokens/redhat/glass/redhat.dimension.glass.json +0 -2
- /package/{config.redhat-highcontrast.json → config.felt-highcontrast.json} +0 -0
- /package/{config.layers.redhat-highcontrast.json → config.layers.felt-highcontrast.json} +0 -0
- /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 */
|