@carbon/themes 11.74.0 → 11.75.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/es/index.js +68 -101
- package/lib/component-tokens/button/index.d.ts +7 -0
- package/lib/component-tokens/button/tokens.d.ts +98 -0
- package/{src/component-tokens/content-switcher/index.js → lib/component-tokens/content-switcher/index.d.ts} +1 -1
- package/lib/component-tokens/content-switcher/tokens.d.ts +24 -0
- package/lib/component-tokens/notification/index.d.ts +7 -0
- package/lib/component-tokens/notification/tokens.d.ts +64 -0
- package/lib/component-tokens/status/index.d.ts +7 -0
- package/lib/component-tokens/status/tokens.d.ts +62 -0
- package/lib/component-tokens/tag/index.d.ts +7 -0
- package/lib/component-tokens/tag/tokens.d.ts +246 -0
- package/lib/g10.d.ts +242 -0
- package/lib/g100.d.ts +242 -0
- package/lib/g90.d.ts +242 -0
- package/lib/index.d.ts +26 -0
- package/lib/index.js +68 -101
- package/lib/tokens/Token.d.ts +20 -0
- package/lib/tokens/TokenFormat.d.ts +15 -0
- package/lib/tokens/TokenGroup.d.ts +57 -0
- package/lib/tokens/TokenSet.d.ts +30 -0
- package/lib/tokens/components.d.ts +12 -0
- package/lib/tokens/index.d.ts +21 -0
- package/lib/tokens/layout.d.ts +8 -0
- package/lib/tokens/type.d.ts +8 -0
- package/lib/tokens/types.d.ts +23 -0
- package/lib/tokens/v10.d.ts +10 -0
- package/lib/tokens/v11TokenGroup.d.ts +21 -0
- package/lib/tokens/v11TokenSet.d.ts +8 -0
- package/lib/tools.d.ts +17 -0
- package/lib/v10/g10.d.ts +154 -0
- package/lib/v10/g100.d.ts +154 -0
- package/lib/v10/g90.d.ts +154 -0
- package/lib/v10/index.d.ts +19 -0
- package/lib/v10/tokens.d.ts +18 -0
- package/lib/v10/white.d.ts +155 -0
- package/lib/white.d.ts +243 -0
- package/package.json +10 -5
- package/src/component-tokens/button/{index.js → index.ts} +1 -1
- package/src/component-tokens/button/{tokens.js → tokens.ts} +1 -1
- package/src/component-tokens/content-switcher/index.ts +7 -0
- package/src/component-tokens/content-switcher/{tokens.js → tokens.ts} +1 -1
- package/src/component-tokens/notification/{index.js → index.ts} +1 -1
- package/src/component-tokens/notification/{tokens.js → tokens.ts} +1 -1
- package/src/component-tokens/status/{index.js → index.ts} +1 -1
- package/src/component-tokens/status/{tokens.js → tokens.ts} +1 -1
- package/src/component-tokens/tag/{index.js → index.ts} +1 -1
- package/src/component-tokens/tag/{tokens.js → tokens.ts} +1 -1
- package/src/{g10.js → g10.ts} +1 -1
- package/src/{g100.js → g100.ts} +1 -1
- package/src/{g90.js → g90.ts} +1 -1
- package/src/{index.js → index.ts} +1 -1
- package/src/tokens/{Token.js → Token.ts} +10 -4
- package/src/tokens/{TokenFormat.js → TokenFormat.ts} +12 -7
- package/src/tokens/{TokenGroup.js → TokenGroup.ts} +38 -16
- package/src/tokens/{TokenSet.js → TokenSet.ts} +22 -8
- package/src/tokens/{components.js → components.ts} +1 -1
- package/src/tokens/{index.js → index.ts} +13 -22
- package/src/tokens/{layout.js → layout.ts} +1 -1
- package/src/tokens/{type.js → type.ts} +1 -1
- package/src/tokens/types.ts +28 -0
- package/src/tokens/{v10.js → v10.ts} +1 -1
- package/src/tokens/{v11TokenGroup.js → v11TokenGroup.ts} +1 -1
- package/src/tokens/v11TokenSet.ts +93 -0
- package/src/{tools.js → tools.ts} +7 -15
- package/src/v10/{g10.js → g10.ts} +1 -1
- package/src/v10/{g100.js → g100.ts} +1 -1
- package/src/v10/{g90.js → g90.ts} +1 -1
- package/src/v10/{index.js → index.ts} +1 -1
- package/src/v10/{tokens.js → tokens.ts} +1 -1
- package/src/v10/{white.js → white.ts} +1 -1
- package/src/{white.js → white.ts} +1 -1
- package/tsconfig.json +8 -0
- package/tsconfig.types.json +9 -0
- package/umd/index.js +68 -101
- package/src/tokens/v11TokenSet.js +0 -94
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright IBM Corp. 2018, 2026
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
export declare const interactive01 = "#0f62fe";
|
|
8
|
+
export declare const interactive02 = "#393939";
|
|
9
|
+
export declare const interactive03 = "#0f62fe";
|
|
10
|
+
export declare const interactive04 = "#0f62fe";
|
|
11
|
+
export declare const uiBackground = "#ffffff";
|
|
12
|
+
export declare const ui01 = "#f4f4f4";
|
|
13
|
+
export declare const ui02 = "#ffffff";
|
|
14
|
+
export declare const ui03 = "#e0e0e0";
|
|
15
|
+
export declare const ui04 = "#8d8d8d";
|
|
16
|
+
export declare const ui05 = "#161616";
|
|
17
|
+
export declare const text01 = "#161616";
|
|
18
|
+
export declare const text02 = "#525252";
|
|
19
|
+
export declare const text03 = "#a8a8a8";
|
|
20
|
+
export declare const text04 = "#ffffff";
|
|
21
|
+
export declare const text05 = "#6f6f6f";
|
|
22
|
+
export declare const textError = "#da1e28";
|
|
23
|
+
export declare const icon01 = "#161616";
|
|
24
|
+
export declare const icon02 = "#525252";
|
|
25
|
+
export declare const icon03 = "#ffffff";
|
|
26
|
+
export declare const link01 = "#0f62fe";
|
|
27
|
+
export declare const link02 = "#0043ce";
|
|
28
|
+
export declare const inverseLink = "#78a9ff";
|
|
29
|
+
export declare const field01 = "#f4f4f4";
|
|
30
|
+
export declare const field02 = "#ffffff";
|
|
31
|
+
export declare const inverse01 = "#ffffff";
|
|
32
|
+
export declare const inverse02 = "#393939";
|
|
33
|
+
export declare const support01 = "#da1e28";
|
|
34
|
+
export declare const support02 = "#198038";
|
|
35
|
+
export declare const support03 = "#f1c21b";
|
|
36
|
+
export declare const support04 = "#0043ce";
|
|
37
|
+
export declare const inverseSupport01 = "#fa4d56";
|
|
38
|
+
export declare const inverseSupport02 = "#42be65";
|
|
39
|
+
export declare const inverseSupport03 = "#f1c21b";
|
|
40
|
+
export declare const inverseSupport04 = "#4589ff";
|
|
41
|
+
export declare const overlay01: string;
|
|
42
|
+
export declare const danger01 = "#da1e28";
|
|
43
|
+
export declare const danger02 = "#da1e28";
|
|
44
|
+
export declare const focus = "#0f62fe";
|
|
45
|
+
export declare const inverseFocusUi = "#ffffff";
|
|
46
|
+
export declare const hoverPrimary = "#0353e9";
|
|
47
|
+
export declare const activePrimary = "#002d9c";
|
|
48
|
+
export declare const hoverPrimaryText = "#0043ce";
|
|
49
|
+
export declare const hoverSecondary = "#4c4c4c";
|
|
50
|
+
export declare const activeSecondary = "#6f6f6f";
|
|
51
|
+
export declare const hoverTertiary = "#0353e9";
|
|
52
|
+
export declare const activeTertiary = "#002d9c";
|
|
53
|
+
export declare const hoverUI = "#e5e5e5";
|
|
54
|
+
export declare const hoverLightUI = "#e5e5e5";
|
|
55
|
+
export declare const activeUI = "#c6c6c6";
|
|
56
|
+
export declare const activeLightUI = "#c6c6c6";
|
|
57
|
+
export declare const selectedUI = "#e0e0e0";
|
|
58
|
+
export declare const selectedLightUI = "#e0e0e0";
|
|
59
|
+
export declare const inverseHoverUI = "#4c4c4c";
|
|
60
|
+
export declare const hoverSelectedUI = "#cacaca";
|
|
61
|
+
export declare const hoverDanger: string;
|
|
62
|
+
export declare const activeDanger = "#750e13";
|
|
63
|
+
export declare const hoverRow = "#e5e5e5";
|
|
64
|
+
export declare const visitedLink = "#8a3ffc";
|
|
65
|
+
export declare const disabled01 = "#f4f4f4";
|
|
66
|
+
export declare const disabled02 = "#c6c6c6";
|
|
67
|
+
export declare const disabled03 = "#8d8d8d";
|
|
68
|
+
export declare const highlight = "#d0e2ff";
|
|
69
|
+
export declare const decorative01 = "#e0e0e0";
|
|
70
|
+
export declare const buttonSeparator = "#e0e0e0";
|
|
71
|
+
export declare const skeleton01 = "#e5e5e5";
|
|
72
|
+
export declare const skeleton02 = "#c6c6c6";
|
|
73
|
+
export declare const background = "#ffffff";
|
|
74
|
+
export declare const layer = "#f4f4f4";
|
|
75
|
+
export declare const layerAccent = "#e0e0e0";
|
|
76
|
+
export declare const layerAccentActive = "#a8a8a8";
|
|
77
|
+
export declare const layerAccentHover: string;
|
|
78
|
+
export declare const field = "#f4f4f4";
|
|
79
|
+
export declare const backgroundInverse = "#393939";
|
|
80
|
+
export declare const backgroundBrand = "#0f62fe";
|
|
81
|
+
export declare const interactive = "#0f62fe";
|
|
82
|
+
export declare const borderSubtle = "#e0e0e0";
|
|
83
|
+
export declare const borderStrong = "#8d8d8d";
|
|
84
|
+
export declare const borderInverse = "#161616";
|
|
85
|
+
export declare const borderInteractive = "#0f62fe";
|
|
86
|
+
export declare const textPrimary = "#161616";
|
|
87
|
+
export declare const textSecondary = "#525252";
|
|
88
|
+
export declare const textPlaceholder = "#a8a8a8";
|
|
89
|
+
export declare const textHelper = "#6f6f6f";
|
|
90
|
+
export declare const textOnColor = "#ffffff";
|
|
91
|
+
export declare const textInverse = "#ffffff";
|
|
92
|
+
export declare const linkPrimary = "#0f62fe";
|
|
93
|
+
export declare const linkSecondary = "#0043ce";
|
|
94
|
+
export declare const linkVisited = "#8a3ffc";
|
|
95
|
+
export declare const linkInverse = "#78a9ff";
|
|
96
|
+
export declare const iconPrimary = "#161616";
|
|
97
|
+
export declare const iconSecondary = "#525252";
|
|
98
|
+
export declare const iconOnColor = "#ffffff";
|
|
99
|
+
export declare const iconInverse = "#ffffff";
|
|
100
|
+
export declare const supportError = "#da1e28";
|
|
101
|
+
export declare const supportSuccess = "#198038";
|
|
102
|
+
export declare const supportWarning = "#f1c21b";
|
|
103
|
+
export declare const supportInfo = "#0043ce";
|
|
104
|
+
export declare const supportErrorInverse = "#fa4d56";
|
|
105
|
+
export declare const supportSuccessInverse = "#42be65";
|
|
106
|
+
export declare const supportWarningInverse = "#f1c21b";
|
|
107
|
+
export declare const supportInfoInverse = "#4589ff";
|
|
108
|
+
export declare const overlay: string;
|
|
109
|
+
export declare const toggleOff = "#8d8d8d";
|
|
110
|
+
export declare const shadow: string;
|
|
111
|
+
export declare const buttonPrimary = "#0f62fe";
|
|
112
|
+
export declare const buttonSecondary = "#393939";
|
|
113
|
+
export declare const buttonTertiary = "#0f62fe";
|
|
114
|
+
export declare const buttonDangerPrimary = "#da1e28";
|
|
115
|
+
export declare const buttonDangerSecondary = "#da1e28";
|
|
116
|
+
export declare const backgroundActive = "#c6c6c6";
|
|
117
|
+
export declare const layerActive = "#c6c6c6";
|
|
118
|
+
export declare const buttonDangerActive = "#750e13";
|
|
119
|
+
export declare const buttonPrimaryActive = "#002d9c";
|
|
120
|
+
export declare const buttonSecondaryActive = "#6f6f6f";
|
|
121
|
+
export declare const buttonTertiaryActive = "#002d9c";
|
|
122
|
+
export declare const focusInset = "#ffffff";
|
|
123
|
+
export declare const focusInverse = "#ffffff";
|
|
124
|
+
export declare const backgroundHover = "#e5e5e5";
|
|
125
|
+
export declare const layerHover = "#e5e5e5";
|
|
126
|
+
export declare const fieldHover = "#e5e5e5";
|
|
127
|
+
export declare const backgroundInverseHover = "#4c4c4c";
|
|
128
|
+
export declare const linkPrimaryHover = "#0043ce";
|
|
129
|
+
export declare const buttonDangerHover: string;
|
|
130
|
+
export declare const buttonPrimaryHover = "#0353e9";
|
|
131
|
+
export declare const buttonSecondaryHover = "#4c4c4c";
|
|
132
|
+
export declare const buttonTertiaryHover = "#0353e9";
|
|
133
|
+
export declare const backgroundSelected = "#e0e0e0";
|
|
134
|
+
export declare const backgroundSelectedHover = "#cacaca";
|
|
135
|
+
export declare const layerSelected = "#e0e0e0";
|
|
136
|
+
export declare const layerSelectedHover = "#cacaca";
|
|
137
|
+
export declare const layerSelectedInverse = "#161616";
|
|
138
|
+
export declare const borderSubtleSelected = "#c6c6c6";
|
|
139
|
+
export declare const borderDisabled = "#f4f4f4";
|
|
140
|
+
export declare const textDisabled = "#c6c6c6";
|
|
141
|
+
export declare const buttonDisabled = "#c6c6c6";
|
|
142
|
+
export declare const iconDisabled = "#c6c6c6";
|
|
143
|
+
export declare const textOnColorDisabled = "#8d8d8d";
|
|
144
|
+
export declare const iconOnColorDisabled = "#8d8d8d";
|
|
145
|
+
export declare const layerSelectedDisabled = "#8d8d8d";
|
|
146
|
+
export declare const skeletonBackground = "#e5e5e5";
|
|
147
|
+
export declare const skeletonElement = "#c6c6c6";
|
|
148
|
+
export { caption01, caption02, label01, label02, helperText01, helperText02, bodyShort01, bodyLong01, bodyShort02, bodyLong02, code01, code02, heading01, productiveHeading01, heading02, productiveHeading02, productiveHeading03, productiveHeading04, productiveHeading05, productiveHeading06, productiveHeading07, expressiveHeading01, expressiveHeading02, expressiveHeading03, expressiveHeading04, expressiveHeading05, expressiveHeading06, expressiveParagraph01, quotation01, quotation02, display01, display02, display03, display04, legal01, legal02, bodyCompact01, bodyCompact02, body01, body02, headingCompact01, headingCompact02, heading03, heading04, heading05, heading06, heading07, fluidHeading03, fluidHeading04, fluidHeading05, fluidHeading06, fluidParagraph01, fluidQuotation01, fluidQuotation02, fluidDisplay01, fluidDisplay02, fluidDisplay03, fluidDisplay04, } from '@carbon/type';
|
|
149
|
+
export { spacing01, spacing02, spacing03, spacing04, spacing05, spacing06, spacing07, spacing08, spacing09, spacing10, spacing11, spacing12, spacing13, fluidSpacing01, fluidSpacing02, fluidSpacing03, fluidSpacing04, container01, container02, container03, container04, container05, sizeXSmall, sizeSmall, sizeMedium, sizeLarge, sizeXLarge, size2XLarge, iconSize01, iconSize02, layout01, layout02, layout03, layout04, layout05, layout06, layout07, } from '@carbon/layout';
|
|
150
|
+
export declare const brand01 = "#0f62fe";
|
|
151
|
+
export declare const brand02 = "#393939";
|
|
152
|
+
export declare const brand03 = "#0f62fe";
|
|
153
|
+
export declare const active01 = "#c6c6c6";
|
|
154
|
+
export declare const hoverField = "#e5e5e5";
|
|
155
|
+
export declare const danger = "#da1e28";
|
package/lib/white.d.ts
ADDED
|
@@ -0,0 +1,243 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright IBM Corp. 2018, 2026
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
export declare const colorScheme = "light";
|
|
8
|
+
export declare const background = "#ffffff";
|
|
9
|
+
export declare const backgroundInverse = "#393939";
|
|
10
|
+
export declare const backgroundBrand = "#0f62fe";
|
|
11
|
+
export declare const backgroundActive: string;
|
|
12
|
+
export declare const backgroundHover: string;
|
|
13
|
+
export declare const backgroundInverseHover = "#474747";
|
|
14
|
+
export declare const backgroundSelected: string;
|
|
15
|
+
export declare const backgroundSelectedHover: string;
|
|
16
|
+
export declare const layer01 = "#f4f4f4";
|
|
17
|
+
export declare const layerActive01 = "#c6c6c6";
|
|
18
|
+
export declare const layerBackground01 = "#ffffff";
|
|
19
|
+
export declare const layerHover01 = "#e8e8e8";
|
|
20
|
+
export declare const layerSelected01 = "#e0e0e0";
|
|
21
|
+
export declare const layerSelectedHover01 = "#d1d1d1";
|
|
22
|
+
export declare const layer02 = "#ffffff";
|
|
23
|
+
export declare const layerActive02 = "#c6c6c6";
|
|
24
|
+
export declare const layerBackground02 = "#f4f4f4";
|
|
25
|
+
export declare const layerHover02 = "#e8e8e8";
|
|
26
|
+
export declare const layerSelected02 = "#e0e0e0";
|
|
27
|
+
export declare const layerSelectedHover02 = "#d1d1d1";
|
|
28
|
+
export declare const layer03 = "#f4f4f4";
|
|
29
|
+
export declare const layerActive03 = "#c6c6c6";
|
|
30
|
+
export declare const layerBackground03 = "#ffffff";
|
|
31
|
+
export declare const layerHover03 = "#e8e8e8";
|
|
32
|
+
export declare const layerSelected03 = "#e0e0e0";
|
|
33
|
+
export declare const layerSelectedHover03 = "#d1d1d1";
|
|
34
|
+
export declare const layerSelectedInverse = "#161616";
|
|
35
|
+
export declare const layerSelectedDisabled = "#8d8d8d";
|
|
36
|
+
export declare const layerAccent01 = "#e0e0e0";
|
|
37
|
+
export declare const layerAccentActive01 = "#a8a8a8";
|
|
38
|
+
export declare const layerAccentHover01 = "#d1d1d1";
|
|
39
|
+
export declare const layerAccent02 = "#e0e0e0";
|
|
40
|
+
export declare const layerAccentActive02 = "#a8a8a8";
|
|
41
|
+
export declare const layerAccentHover02 = "#d1d1d1";
|
|
42
|
+
export declare const layerAccent03 = "#e0e0e0";
|
|
43
|
+
export declare const layerAccentActive03 = "#a8a8a8";
|
|
44
|
+
export declare const layerAccentHover03 = "#d1d1d1";
|
|
45
|
+
export declare const field01 = "#f4f4f4";
|
|
46
|
+
export declare const fieldHover01 = "#e8e8e8";
|
|
47
|
+
export declare const field02 = "#ffffff";
|
|
48
|
+
export declare const fieldHover02 = "#e8e8e8";
|
|
49
|
+
export declare const field03 = "#f4f4f4";
|
|
50
|
+
export declare const fieldHover03 = "#e8e8e8";
|
|
51
|
+
export declare const borderSubtle00 = "#e0e0e0";
|
|
52
|
+
export declare const borderSubtle01 = "#c6c6c6";
|
|
53
|
+
export declare const borderSubtleSelected01 = "#c6c6c6";
|
|
54
|
+
export declare const borderSubtle02 = "#e0e0e0";
|
|
55
|
+
export declare const borderSubtleSelected02 = "#c6c6c6";
|
|
56
|
+
export declare const borderSubtle03 = "#c6c6c6";
|
|
57
|
+
export declare const borderSubtleSelected03 = "#c6c6c6";
|
|
58
|
+
export declare const borderStrong01 = "#8d8d8d";
|
|
59
|
+
export declare const borderStrong02 = "#8d8d8d";
|
|
60
|
+
export declare const borderStrong03 = "#8d8d8d";
|
|
61
|
+
export declare const borderTile01 = "#c6c6c6";
|
|
62
|
+
export declare const borderTile02 = "#a8a8a8";
|
|
63
|
+
export declare const borderTile03 = "#c6c6c6";
|
|
64
|
+
export declare const borderInverse = "#161616";
|
|
65
|
+
export declare const borderInteractive = "#0f62fe";
|
|
66
|
+
export declare const borderDisabled = "#c6c6c6";
|
|
67
|
+
export declare const textPrimary = "#161616";
|
|
68
|
+
export declare const textSecondary = "#525252";
|
|
69
|
+
export declare const textPlaceholder: string;
|
|
70
|
+
export declare const textHelper = "#6f6f6f";
|
|
71
|
+
export declare const textError = "#da1e28";
|
|
72
|
+
export declare const textInverse = "#ffffff";
|
|
73
|
+
export declare const textOnColor = "#ffffff";
|
|
74
|
+
export declare const textOnColorDisabled = "#8d8d8d";
|
|
75
|
+
export declare const textDisabled: string;
|
|
76
|
+
export declare const linkPrimary = "#0f62fe";
|
|
77
|
+
export declare const linkPrimaryHover = "#0043ce";
|
|
78
|
+
export declare const linkSecondary = "#0043ce";
|
|
79
|
+
export declare const linkInverse = "#78a9ff";
|
|
80
|
+
export declare const linkVisited = "#8a3ffc";
|
|
81
|
+
export declare const linkInverseVisited = "#be95ff";
|
|
82
|
+
export declare const linkInverseActive = "#f4f4f4";
|
|
83
|
+
export declare const linkInverseHover = "#a6c8ff";
|
|
84
|
+
export declare const iconPrimary = "#161616";
|
|
85
|
+
export declare const iconSecondary = "#525252";
|
|
86
|
+
export declare const iconInverse = "#ffffff";
|
|
87
|
+
export declare const iconOnColor = "#ffffff";
|
|
88
|
+
export declare const iconOnColorDisabled = "#8d8d8d";
|
|
89
|
+
export declare const iconDisabled: string;
|
|
90
|
+
export declare const iconInteractive = "#0f62fe";
|
|
91
|
+
export declare const supportError = "#da1e28";
|
|
92
|
+
export declare const supportSuccess = "#24a148";
|
|
93
|
+
export declare const supportWarning = "#f1c21b";
|
|
94
|
+
export declare const supportInfo = "#0043ce";
|
|
95
|
+
export declare const supportErrorInverse = "#fa4d56";
|
|
96
|
+
export declare const supportSuccessInverse = "#42be65";
|
|
97
|
+
export declare const supportWarningInverse = "#f1c21b";
|
|
98
|
+
export declare const supportInfoInverse = "#4589ff";
|
|
99
|
+
export declare const supportCautionMinor = "#f1c21b";
|
|
100
|
+
export declare const supportCautionMajor = "#ff832b";
|
|
101
|
+
export declare const supportCautionUndefined = "#8a3ffc";
|
|
102
|
+
export declare const focus = "#0f62fe";
|
|
103
|
+
export declare const focusInset = "#ffffff";
|
|
104
|
+
export declare const focusInverse = "#ffffff";
|
|
105
|
+
export declare const skeletonBackground = "#e8e8e8";
|
|
106
|
+
export declare const skeletonElement = "#c6c6c6";
|
|
107
|
+
export declare const interactive = "#0f62fe";
|
|
108
|
+
export declare const highlight = "#d0e2ff";
|
|
109
|
+
export declare const overlay: string;
|
|
110
|
+
export declare const toggleOff = "#8d8d8d";
|
|
111
|
+
export declare const shadow = "rgba(0, 0, 0, 0.3)";
|
|
112
|
+
export declare const syntaxComment = "#198038";
|
|
113
|
+
export declare const syntaxLineComment = "#198038";
|
|
114
|
+
export declare const syntaxBlockComment = "#198038";
|
|
115
|
+
export declare const syntaxDocComment = "#198038";
|
|
116
|
+
export declare const syntaxString = "#161616";
|
|
117
|
+
export declare const syntaxDocString = "#161616";
|
|
118
|
+
export declare const syntaxKeyword = "#0f62fe";
|
|
119
|
+
export declare const syntaxOperatorKeyword = "#0f62fe";
|
|
120
|
+
export declare const syntaxControlKeyword = "#6929c4";
|
|
121
|
+
export declare const syntaxDefinitionKeyword = "#00539a";
|
|
122
|
+
export declare const syntaxModuleKeyword = "#6929c4";
|
|
123
|
+
export declare const syntaxVariable = "#0f62fe";
|
|
124
|
+
export declare const syntaxName = "#0f62fe";
|
|
125
|
+
export declare const syntaxVariableName = "#0f62fe";
|
|
126
|
+
export declare const syntaxLabelName = "#0f62fe";
|
|
127
|
+
export declare const syntaxAttribute = "#00539a";
|
|
128
|
+
export declare const syntaxAttributeName = "#00539a";
|
|
129
|
+
export declare const syntaxPropertyName = "#00539a";
|
|
130
|
+
export declare const syntaxTag = "#007d79";
|
|
131
|
+
export declare const syntaxTagName = "#007d79";
|
|
132
|
+
export declare const syntaxType = "#007d79";
|
|
133
|
+
export declare const syntaxTypeName = "#007d79";
|
|
134
|
+
export declare const syntaxClassName = "#007d79";
|
|
135
|
+
export declare const syntaxNamespace = "#007d79";
|
|
136
|
+
export declare const syntaxMacroName = "#161616";
|
|
137
|
+
export declare const syntaxAtom = "#161616";
|
|
138
|
+
export declare const syntaxLiteral = "#161616";
|
|
139
|
+
export declare const syntaxBool = "#161616";
|
|
140
|
+
export declare const syntaxNull = "#161616";
|
|
141
|
+
export declare const syntaxSelf = "#007d79";
|
|
142
|
+
export declare const syntaxNumber = "#198038";
|
|
143
|
+
export declare const syntaxInteger = "#198038";
|
|
144
|
+
export declare const syntaxFloat = "#198038";
|
|
145
|
+
export declare const syntaxUnit = "#198038";
|
|
146
|
+
export declare const syntaxCharacter = "#161616";
|
|
147
|
+
export declare const syntaxAttributeValue = "#161616";
|
|
148
|
+
export declare const syntaxSpecialString = "#8a3ffc";
|
|
149
|
+
export declare const syntaxRegexp = "#6929c4";
|
|
150
|
+
export declare const syntaxEscape = "#343a3f";
|
|
151
|
+
export declare const syntaxUrl = "#343a3f";
|
|
152
|
+
export declare const syntaxColor = "#161616";
|
|
153
|
+
export declare const syntaxOperator = "#343a3f";
|
|
154
|
+
export declare const syntaxDerefOperator = "#343a3f";
|
|
155
|
+
export declare const syntaxArithmeticOperator = "#343a3f";
|
|
156
|
+
export declare const syntaxLogicOperator = "#343a3f";
|
|
157
|
+
export declare const syntaxBitwiseOperator = "#343a3f";
|
|
158
|
+
export declare const syntaxCompareOperator = "#343a3f";
|
|
159
|
+
export declare const syntaxUpdateOperator = "#343a3f";
|
|
160
|
+
export declare const syntaxDefinitionOperator = "#00539a";
|
|
161
|
+
export declare const syntaxTypeOperator = "#007d79";
|
|
162
|
+
export declare const syntaxControlOperator = "#6929c4";
|
|
163
|
+
export declare const syntaxModifier = "#0f62fe";
|
|
164
|
+
export declare const syntaxPunctuation = "#343a3f";
|
|
165
|
+
export declare const syntaxSeparator = "#343a3f";
|
|
166
|
+
export declare const syntaxBracket = "#343a3f";
|
|
167
|
+
export declare const syntaxAngleBracket = "#697077";
|
|
168
|
+
export declare const syntaxSquareBracket = "#343a3f";
|
|
169
|
+
export declare const syntaxParen = "#343a3f";
|
|
170
|
+
export declare const syntaxBrace = "#343a3f";
|
|
171
|
+
export declare const syntaxContent = "#161616";
|
|
172
|
+
export declare const syntaxList = "#161616";
|
|
173
|
+
export declare const syntaxEmphasis = "#161616";
|
|
174
|
+
export declare const syntaxStrong = "#161616";
|
|
175
|
+
export declare const syntaxMonospace = "#161616";
|
|
176
|
+
export declare const syntaxStrikethrough = "#161616";
|
|
177
|
+
export declare const syntaxHeading = "#00539a";
|
|
178
|
+
export declare const syntaxHeading1 = "#00539a";
|
|
179
|
+
export declare const syntaxHeading2 = "#00539a";
|
|
180
|
+
export declare const syntaxHeading3 = "#00539a";
|
|
181
|
+
export declare const syntaxHeading4 = "#00539a";
|
|
182
|
+
export declare const syntaxHeading5 = "#00539a";
|
|
183
|
+
export declare const syntaxHeading6 = "#00539a";
|
|
184
|
+
export declare const syntaxContentSeparator = "#343a3f";
|
|
185
|
+
export declare const syntaxQuote = "#198038";
|
|
186
|
+
export declare const syntaxLink = "#0f62fe";
|
|
187
|
+
export declare const syntaxInvalid = "#da1e28";
|
|
188
|
+
export declare const syntaxMeta = "#198038";
|
|
189
|
+
export declare const syntaxDocumentMeta = "#198038";
|
|
190
|
+
export declare const syntaxAnnotation = "#007d79";
|
|
191
|
+
export declare const syntaxProcessingInstruction = "#161616";
|
|
192
|
+
export declare const syntaxDefinition = "#00539a";
|
|
193
|
+
export declare const syntaxConstant = "#0f62fe";
|
|
194
|
+
export declare const syntaxFunction = "#8e6a00";
|
|
195
|
+
export declare const syntaxStandard = "#0f62fe";
|
|
196
|
+
export declare const syntaxLocal = "#0f62fe";
|
|
197
|
+
export declare const syntaxSpecial = "#0f62fe";
|
|
198
|
+
export declare const syntaxInserted = "#a7f0ba";
|
|
199
|
+
export declare const syntaxDeleted = "#ffd7d9";
|
|
200
|
+
export declare const aiInnerShadow: string;
|
|
201
|
+
export declare const aiAuraStartSm: string;
|
|
202
|
+
export declare const aiAuraStart: string;
|
|
203
|
+
export declare const aiAuraEnd: string;
|
|
204
|
+
export declare const aiBorderStrong = "#4589ff";
|
|
205
|
+
export declare const aiBorderStart: string;
|
|
206
|
+
export declare const aiBorderEnd = "#78a9ff";
|
|
207
|
+
export declare const aiDropShadow: string;
|
|
208
|
+
export declare const aiAuraHoverBackground = "#edf5ff";
|
|
209
|
+
export declare const aiAuraHoverStart: string;
|
|
210
|
+
export declare const aiAuraHoverEnd: string;
|
|
211
|
+
export declare const aiPopoverBackground = "#ffffff";
|
|
212
|
+
export declare const aiPopoverShadowOuter01: string;
|
|
213
|
+
export declare const aiPopoverShadowOuter02: string;
|
|
214
|
+
export declare const aiSkeletonBackground = "#d0e2ff";
|
|
215
|
+
export declare const aiSkeletonElementBackground = "#4589ff";
|
|
216
|
+
export declare const aiOverlay: string;
|
|
217
|
+
export declare const aiPopoverCaretCenter = "#A0C3FF";
|
|
218
|
+
export declare const aiPopoverCaretBottom = "#78a9ff";
|
|
219
|
+
export declare const aiPopoverCaretBottomBackgroundActions = "#E9EFFA";
|
|
220
|
+
export declare const aiPopoverCaretBottomBackground = "#EAF1FF";
|
|
221
|
+
export declare const chatPromptBackground = "#ffffff";
|
|
222
|
+
export declare const chatPromptBorderStart = "#f4f4f4";
|
|
223
|
+
export declare const chatPromptBorderEnd: string;
|
|
224
|
+
export declare const chatPromptText = "#161616";
|
|
225
|
+
export declare const chatBubbleUser = "#e0e0e0";
|
|
226
|
+
export declare const chatBubbleUserText = "#161616";
|
|
227
|
+
export declare const chatBubbleAgent = "#ffffff";
|
|
228
|
+
export declare const chatBubbleAgentText = "#161616";
|
|
229
|
+
export declare const chatBubbleBorder = "#e0e0e0";
|
|
230
|
+
export declare const chatAvatarBot = "#6f6f6f";
|
|
231
|
+
export declare const chatAvatarAgent = "#393939";
|
|
232
|
+
export declare const chatAvatarUser = "#0f62fe";
|
|
233
|
+
export declare const chatShellBackground = "#ffffff";
|
|
234
|
+
export declare const chatHeaderBackground = "#ffffff";
|
|
235
|
+
export declare const chatHeaderText = "#161616";
|
|
236
|
+
export declare const chatButton = "#0f62fe";
|
|
237
|
+
export declare const chatButtonHover: string;
|
|
238
|
+
export declare const chatButtonTextHover = "#0043ce";
|
|
239
|
+
export declare const chatButtonActive: string;
|
|
240
|
+
export declare const chatButtonSelected: string;
|
|
241
|
+
export declare const chatButtonTextSelected = "#525252";
|
|
242
|
+
export { caption01, caption02, label01, label02, helperText01, helperText02, bodyShort01, bodyLong01, bodyShort02, bodyLong02, code01, code02, heading01, productiveHeading01, heading02, productiveHeading02, productiveHeading03, productiveHeading04, productiveHeading05, productiveHeading06, productiveHeading07, expressiveHeading01, expressiveHeading02, expressiveHeading03, expressiveHeading04, expressiveHeading05, expressiveHeading06, expressiveParagraph01, quotation01, quotation02, display01, display02, display03, display04, } from '@carbon/type';
|
|
243
|
+
export { spacing01, spacing02, spacing03, spacing04, spacing05, spacing06, spacing07, spacing08, spacing09, spacing10, spacing11, spacing12, spacing13, fluidSpacing01, fluidSpacing02, fluidSpacing03, fluidSpacing04, container01, container02, container03, container04, container05, sizeXSmall, sizeSmall, sizeMedium, sizeLarge, sizeXLarge, size2XLarge, iconSize01, iconSize02, layout01, layout02, layout03, layout04, layout05, layout06, layout07, } from '@carbon/layout';
|
package/package.json
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@carbon/themes",
|
|
3
3
|
"description": "Themes for applying color in the Carbon Design System",
|
|
4
|
-
"version": "11.
|
|
4
|
+
"version": "11.75.0",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "lib/index.js",
|
|
7
|
+
"types": "lib/index.d.ts",
|
|
7
8
|
"module": "es/index.js",
|
|
8
9
|
"sass": "index.scss",
|
|
9
10
|
"repository": {
|
|
@@ -28,13 +29,14 @@
|
|
|
28
29
|
"scripts": {
|
|
29
30
|
"ci-check": "carbon-cli check \"scss/**/*.scss\" -i \"**/generated/**\" -i \"**/compat/**\"",
|
|
30
31
|
"clean": "rimraf es lib umd scss/generated scss/compat/generated",
|
|
31
|
-
"build": "
|
|
32
|
+
"build:types": "tsc -p tsconfig.types.json",
|
|
33
|
+
"build": "yarn clean && carbon-cli bundle src/index.ts --name CarbonThemes && babel-node --extensions '.js,.ts' --presets '@babel/preset-env,@babel/preset-typescript' tasks/build.js && yarn build:types && carbon-cli check \"scss/*.scss\"",
|
|
32
34
|
"postinstall": "ibmtelemetry --config=telemetry.yml"
|
|
33
35
|
},
|
|
34
36
|
"dependencies": {
|
|
35
37
|
"@carbon/colors": "^11.52.0",
|
|
36
38
|
"@carbon/layout": "^11.53.0",
|
|
37
|
-
"@carbon/type": "^11.
|
|
39
|
+
"@carbon/type": "^11.61.0",
|
|
38
40
|
"@ibm/telemetry-js": "^1.5.0",
|
|
39
41
|
"color": "^4.0.0"
|
|
40
42
|
},
|
|
@@ -45,12 +47,15 @@
|
|
|
45
47
|
"@carbon/cli-reporter": "^10.8.0",
|
|
46
48
|
"@carbon/scss-generator": "^10.20.0",
|
|
47
49
|
"@carbon/test-utils": "^10.41.0",
|
|
50
|
+
"@types/color": "^4.2.1",
|
|
48
51
|
"change-case-all": "^2.1.0",
|
|
49
52
|
"core-js": "^3.16.0",
|
|
50
53
|
"fs-extra": "^11.0.0",
|
|
51
54
|
"js-yaml": "^4.1.0",
|
|
52
|
-
"rimraf": "^6.0.1"
|
|
55
|
+
"rimraf": "^6.0.1",
|
|
56
|
+
"typescript": "^5.7.3",
|
|
57
|
+
"typescript-config-carbon": "^0.10.0"
|
|
53
58
|
},
|
|
54
59
|
"sideEffects": false,
|
|
55
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "5bb41d341768785b898851fde30731cb31b981c2"
|
|
56
61
|
}
|
package/src/{g10.js → g10.ts}
RENAMED
package/src/{g100.js → g100.ts}
RENAMED
package/src/{g90.js → g90.ts}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright IBM Corp. 2018,
|
|
2
|
+
* Copyright IBM Corp. 2018, 2026
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the Apache-2.0 license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -10,9 +10,15 @@
|
|
|
10
10
|
* that it applies to like border or background, along with a state if the
|
|
11
11
|
* token should only be used for specific states like hover or focus.
|
|
12
12
|
*/
|
|
13
|
-
|
|
13
|
+
import type { TokenDefinition, TokenProperties } from './types';
|
|
14
|
+
|
|
14
15
|
export class Token {
|
|
15
|
-
|
|
16
|
+
kind: 'Token';
|
|
17
|
+
name: string;
|
|
18
|
+
properties?: TokenProperties;
|
|
19
|
+
state?: string;
|
|
20
|
+
|
|
21
|
+
static create(token: string | TokenDefinition) {
|
|
16
22
|
if (typeof token === 'string') {
|
|
17
23
|
return new Token(token);
|
|
18
24
|
}
|
|
@@ -20,7 +26,7 @@ export class Token {
|
|
|
20
26
|
return new Token(token.name, token.properties, token.state);
|
|
21
27
|
}
|
|
22
28
|
|
|
23
|
-
constructor(name, properties, state) {
|
|
29
|
+
constructor(name: string, properties?: TokenProperties, state?: string) {
|
|
24
30
|
this.kind = 'Token';
|
|
25
31
|
this.name = name;
|
|
26
32
|
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright IBM Corp. 2018,
|
|
2
|
+
* Copyright IBM Corp. 2018, 2026
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the Apache-2.0 license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
import type { TokenDefinition } from './types';
|
|
9
|
+
|
|
10
|
+
type TokenFormatName = 'javascript' | 'scss';
|
|
11
|
+
|
|
12
|
+
const formats: Record<'js' | 'scss', TokenFormatName> = {
|
|
9
13
|
js: 'javascript',
|
|
10
14
|
scss: 'scss',
|
|
11
15
|
};
|
|
@@ -13,7 +17,10 @@ const formats = {
|
|
|
13
17
|
export const TokenFormat = {
|
|
14
18
|
formats,
|
|
15
19
|
|
|
16
|
-
convert({
|
|
20
|
+
convert({
|
|
21
|
+
name,
|
|
22
|
+
format,
|
|
23
|
+
}: Pick<TokenDefinition, 'name'> & { format?: TokenFormatName }) {
|
|
17
24
|
if (format === formats.js) {
|
|
18
25
|
const keywords = new Set(['ui']);
|
|
19
26
|
|
|
@@ -45,10 +52,8 @@ const numbers = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9'];
|
|
|
45
52
|
|
|
46
53
|
/**
|
|
47
54
|
* Format a given token into the format expected in CSS/SCSS-based projects.
|
|
48
|
-
* @param {string} token
|
|
49
|
-
* @returns {string}
|
|
50
55
|
*/
|
|
51
|
-
|
|
56
|
+
const formatNameToScss = (token: string) => {
|
|
52
57
|
let string = '';
|
|
53
58
|
|
|
54
59
|
for (let i = 0; i < token.length; i++) {
|
|
@@ -85,4 +90,4 @@ function formatNameToScss(token) {
|
|
|
85
90
|
}
|
|
86
91
|
|
|
87
92
|
return string;
|
|
88
|
-
}
|
|
93
|
+
};
|