@tectra-ng/themes 0.2.1 → 0.2.2
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.
|
@@ -1212,6 +1212,14 @@ const tagTokens = {
|
|
|
1212
1212
|
contrast: {
|
|
1213
1213
|
color: tokenRef("text-primary"),
|
|
1214
1214
|
background: tokenRef("text-primary")
|
|
1215
|
+
},
|
|
1216
|
+
list: {
|
|
1217
|
+
gap: "4px",
|
|
1218
|
+
popoverGap: "6px",
|
|
1219
|
+
popoverPadding: "0",
|
|
1220
|
+
popoverMaxWidth: "280px",
|
|
1221
|
+
popoverMaxHeight: "280px",
|
|
1222
|
+
emptyColor: tokenRef("text-muted")
|
|
1215
1223
|
}
|
|
1216
1224
|
};
|
|
1217
1225
|
const chipTokens = { root: {
|
|
@@ -1331,6 +1339,22 @@ const avatarTokens = {
|
|
|
1331
1339
|
addColor: tokenRef("primary-base"),
|
|
1332
1340
|
addIconScale: "0.45"
|
|
1333
1341
|
},
|
|
1342
|
+
editor: {
|
|
1343
|
+
size: "112px",
|
|
1344
|
+
gap: "12px",
|
|
1345
|
+
ringWidth: "4px",
|
|
1346
|
+
ringColor: `color-mix(in srgb, ${tokenRef("primary-base")} 14%, transparent)`,
|
|
1347
|
+
badgeRingWidth: "4px",
|
|
1348
|
+
badgeRingColor: tokenRef("surface-card"),
|
|
1349
|
+
badgeSize: "30px",
|
|
1350
|
+
loaderBackground: `color-mix(in srgb, ${tokenRef("surface-card")} 75%, transparent)`,
|
|
1351
|
+
dropRingColor: tokenRef("primary-base"),
|
|
1352
|
+
hintMaxWidth: "240px",
|
|
1353
|
+
hintFontSize: tokenRef("font-size-xs"),
|
|
1354
|
+
hintLineHeight: "1.375",
|
|
1355
|
+
hintColor: tokenRef("text-muted"),
|
|
1356
|
+
transitionDuration: tokenRef("motion-duration")
|
|
1357
|
+
},
|
|
1334
1358
|
list: {
|
|
1335
1359
|
padding: "0",
|
|
1336
1360
|
gap: "8px",
|
|
@@ -3054,6 +3078,122 @@ const editorTokens = {
|
|
|
3054
3078
|
secondaryColor: tokenRef("text-muted")
|
|
3055
3079
|
}
|
|
3056
3080
|
};
|
|
3081
|
+
const codeSyntaxTokens = {
|
|
3082
|
+
comment: lightDark("#008000", "#6a9955"),
|
|
3083
|
+
keyword: lightDark("#0000ff", "#569cd6"),
|
|
3084
|
+
literal: lightDark("#0451a5", "#ce9178"),
|
|
3085
|
+
string: lightDark("#a31515", "#ce9178"),
|
|
3086
|
+
number: lightDark("#098658", "#b5cea8"),
|
|
3087
|
+
regexp: lightDark("#811f3f", "#d16969"),
|
|
3088
|
+
type: lightDark("#008080", "#3dc9b0"),
|
|
3089
|
+
delimiter: lightDark("#000000", "#dcdcdc"),
|
|
3090
|
+
tag: lightDark("#800000", "#569cd6"),
|
|
3091
|
+
tagDelimiter: lightDark("#383838", "#808080"),
|
|
3092
|
+
meta: lightDark("#737373", "#569cd6"),
|
|
3093
|
+
attribute: lightDark("#e50000", "#9cdcfe"),
|
|
3094
|
+
attributeValue: lightDark("#0000ff", "#ce9178"),
|
|
3095
|
+
value: lightDark("#0451a5", "#ce9178"),
|
|
3096
|
+
key: lightDark("#a31515", "#9cdcfe"),
|
|
3097
|
+
heading: lightDark("#0000ff", "#569cd6"),
|
|
3098
|
+
headingWeight: tokenRef("font-weight-bold"),
|
|
3099
|
+
strongWeight: tokenRef("font-weight-bold"),
|
|
3100
|
+
link: lightDark("#a31515", "#ce9178"),
|
|
3101
|
+
code: lightDark("#001188", "#74b0df"),
|
|
3102
|
+
quote: lightDark("#008000", "#6a9955"),
|
|
3103
|
+
indentGuide: lightDark("#d3d3d3", "#404040")
|
|
3104
|
+
};
|
|
3105
|
+
const codeHighlightTokens = {
|
|
3106
|
+
root: {
|
|
3107
|
+
background: lightDark("#fffffe", "#1e1e1e"),
|
|
3108
|
+
color: lightDark("#000000", "#d4d4d4"),
|
|
3109
|
+
borderColor: tokenRef("surface-border"),
|
|
3110
|
+
borderWidth: "1px",
|
|
3111
|
+
borderRadius: tokenRef("radius-md"),
|
|
3112
|
+
fontFamily: "Menlo, Monaco, Consolas, 'Droid Sans Mono', 'Courier New', monospace",
|
|
3113
|
+
fontSize: "14px",
|
|
3114
|
+
lineHeight: "21px",
|
|
3115
|
+
tabSize: "4",
|
|
3116
|
+
paddingBlock: "0",
|
|
3117
|
+
paddingInlineEnd: "14px"
|
|
3118
|
+
},
|
|
3119
|
+
gutter: {
|
|
3120
|
+
background: lightDark("#fffffe", "#1e1e1e"),
|
|
3121
|
+
color: lightDark("#237893", "#858585"),
|
|
3122
|
+
activeColor: lightDark("#0b216f", "#c6c6c6"),
|
|
3123
|
+
minDigits: "5ch",
|
|
3124
|
+
paddingStart: "18px",
|
|
3125
|
+
gap: "26px"
|
|
3126
|
+
}
|
|
3127
|
+
};
|
|
3128
|
+
const codeEditorTokens = {
|
|
3129
|
+
root: {
|
|
3130
|
+
...codeHighlightTokens.root,
|
|
3131
|
+
focusBorderColor: tokenRef("surface-border"),
|
|
3132
|
+
invalidBorderColor: tokenRef("danger-base"),
|
|
3133
|
+
disabledOpacity: "0.6",
|
|
3134
|
+
placeholderColor: tokenRef("form-field-placeholder-color")
|
|
3135
|
+
},
|
|
3136
|
+
gutter: codeHighlightTokens.gutter,
|
|
3137
|
+
cursor: {
|
|
3138
|
+
color: lightDark("#000000", "#aeafad"),
|
|
3139
|
+
width: "2px"
|
|
3140
|
+
},
|
|
3141
|
+
selection: {
|
|
3142
|
+
background: lightDark("#add6ff", "#264f78"),
|
|
3143
|
+
inactiveBackground: lightDark("#e5ebf1", "#3a3d41")
|
|
3144
|
+
},
|
|
3145
|
+
activeLine: {
|
|
3146
|
+
borderColor: lightDark("#eeeeee", "#282828"),
|
|
3147
|
+
borderWidth: "2px"
|
|
3148
|
+
},
|
|
3149
|
+
bracket: {
|
|
3150
|
+
background: "rgb(0 100 0 / 0.1)",
|
|
3151
|
+
borderColor: lightDark("#b9b9b9", "#888888")
|
|
3152
|
+
},
|
|
3153
|
+
search: {
|
|
3154
|
+
matchBackground: "rgb(234 92 0 / 0.33)",
|
|
3155
|
+
currentBackground: lightDark("#a8ac94", "#515c6a"),
|
|
3156
|
+
widgetBackground: lightDark("#f3f3f3", "#252526"),
|
|
3157
|
+
widgetColor: tokenRef("text-primary"),
|
|
3158
|
+
widgetShadow: lightDark("0 0 8px 2px rgb(168 168 168 / 0.6)", "0 0 8px 2px rgb(0 0 0 / 0.36)"),
|
|
3159
|
+
widgetBorderRadius: tokenRef("radius-md"),
|
|
3160
|
+
widgetPadding: "4px",
|
|
3161
|
+
widgetGap: "4px",
|
|
3162
|
+
widgetTop: "0",
|
|
3163
|
+
widgetEnd: "14px",
|
|
3164
|
+
widgetWidth: "420px",
|
|
3165
|
+
countColor: tokenRef("text-muted"),
|
|
3166
|
+
countFontSize: "12px"
|
|
3167
|
+
}
|
|
3168
|
+
};
|
|
3169
|
+
const codeDiffTokens = {
|
|
3170
|
+
root: {
|
|
3171
|
+
...codeHighlightTokens.root,
|
|
3172
|
+
splitGap: "0",
|
|
3173
|
+
splitBorderColor: tokenRef("surface-border")
|
|
3174
|
+
},
|
|
3175
|
+
gutter: {
|
|
3176
|
+
...codeHighlightTokens.gutter,
|
|
3177
|
+
paddingStart: "8px",
|
|
3178
|
+
gap: "14px",
|
|
3179
|
+
markerWidth: "14px"
|
|
3180
|
+
},
|
|
3181
|
+
syntax: {
|
|
3182
|
+
mix: "40%",
|
|
3183
|
+
shade: lightDark("#000000", "#d4d4d4")
|
|
3184
|
+
},
|
|
3185
|
+
inserted: {
|
|
3186
|
+
lineBackground: lightDark("rgb(155 185 85 / 0.2)", "rgb(155 185 85 / 0.12)"),
|
|
3187
|
+
textBackground: lightDark("rgb(156 204 44 / 0.25)", "rgb(156 204 44 / 0.18)"),
|
|
3188
|
+
markerColor: lightDark("#587c0c", "#81b88b")
|
|
3189
|
+
},
|
|
3190
|
+
removed: {
|
|
3191
|
+
lineBackground: "rgb(255 0 0 / 0.2)",
|
|
3192
|
+
textBackground: lightDark("rgb(255 0 0 / 0.2)", "rgb(255 0 0 / 0.2)"),
|
|
3193
|
+
markerColor: lightDark("#ad0707", "#c74e39")
|
|
3194
|
+
},
|
|
3195
|
+
filler: { background: lightDark("rgb(34 34 34 / 0.05)", "rgb(204 204 204 / 0.05)") }
|
|
3196
|
+
};
|
|
3057
3197
|
const accordionTokens = {
|
|
3058
3198
|
root: {
|
|
3059
3199
|
transitionDuration: "0.15s",
|
|
@@ -5281,6 +5421,10 @@ const COMPONENT_TOKENS = {
|
|
|
5281
5421
|
fileUpload: fileUploadTokens,
|
|
5282
5422
|
editor: editorTokens,
|
|
5283
5423
|
editorContent: editorContentTokens,
|
|
5424
|
+
codeSyntax: codeSyntaxTokens,
|
|
5425
|
+
codeEditor: codeEditorTokens,
|
|
5426
|
+
codeHighlight: codeHighlightTokens,
|
|
5427
|
+
codeDiff: codeDiffTokens,
|
|
5284
5428
|
image: imageTokens,
|
|
5285
5429
|
galleria: galleriaTokens,
|
|
5286
5430
|
carousel: carouselTokens,
|
|
@@ -6901,6 +7045,6 @@ function presetToCss(preset) {
|
|
|
6901
7045
|
...preset.css ? [preset.css] : []
|
|
6902
7046
|
].join("\n");
|
|
6903
7047
|
}
|
|
6904
|
-
export { COMPONENT_TOKENS, Edge, Paper, Soft, TECTRA_STYLES, Tectra, accordionTokens, actionTileTokens, actionsMenuTokens, amountTokens, analogClockTokens, appFooterTokens, appLayoutTokens, avatarTokens, badgeTokens, breadcrumbTokens, buttonTokens, cardTokens, carouselTokens, cascadeSelectTokens, chartTokens, checkboxTokens, chipTokens, chipsInputTokens, colorPickerTokens, commandPaletteTokens, confettiTokens, confirmTokens, consoleLayoutTokens, contrastWithWhite, cookieNoticeTokens, countdownTokens, countryTokens, createDarkSemantic, createLightSemantic, createTectraPreset, dataViewTokens, datePickerTokens, deepMerge, definePreset, dialogTokens, dividerTokens, editorContentTokens, editorTokens, emailSuggestionTokens, emptyStateTokens, fade, fieldMessageTokens, fieldTokens, fieldsetTokens, fileUploadTokens, filtersPanelTokens, floatLabelTokens, formFieldTokens, galleriaTokens, highlightTextTokens, hoverEffectTokens, iconLinkTokens, iconTokens, iftaLabelTokens, imageTokens, inputGroupTokens, inputNumberTokens, inputOtpTokens, kanbanTokens, knobTokens, labelTokens, lightDark, linkTokens, listInputTokens, listboxTokens, mascotTokens, mentionTokens, menuTokens, menubarTokens, messageTokens, mix, monthCalendarTokens, networkStatusTokens, noirScale, overlayBadgeTokens, pageHeaderTokens, paginatorTokens, panelMenuTokens, panelTokens, passwordTokens, pillTokens, pinnedTabsTokens, popoverTokens, presetToCss, primaryBaseStep, progressBarTokens, progressSpinnerTokens, publicHeaderTokens, qrCodeTokens, radioButtonTokens, ratingTokens, relativeLuminance, rippleTokens, scrollPanelTokens, selectTokens, skeletonTokens, sliderTokens, sparklineTokens, speedDialTokens, splitButtonTokens, splitterTokens, statTileTokens, statTilesTokens, statusIconTokens, stepperTokens, stepsTokens, switchLanguageTokens, switchThemeTokens, tableTokens, tabsTokens, tagTokens, textareaTokens, timelineTokens, toCssVariables, toStyleObject, toastTokens, toggleButtonTokens, toggleSwitchTokens, tokenRef, toolbarTokens, tooltipTokens, topbarPreferencesTokens, treeTableTokens, treeTokens, truncateTextTokens, virtualScrollerTokens, wizardTokens };
|
|
7048
|
+
export { COMPONENT_TOKENS, Edge, Paper, Soft, TECTRA_STYLES, Tectra, accordionTokens, actionTileTokens, actionsMenuTokens, amountTokens, analogClockTokens, appFooterTokens, appLayoutTokens, avatarTokens, badgeTokens, breadcrumbTokens, buttonTokens, cardTokens, carouselTokens, cascadeSelectTokens, chartTokens, checkboxTokens, chipTokens, chipsInputTokens, codeDiffTokens, codeEditorTokens, codeHighlightTokens, codeSyntaxTokens, colorPickerTokens, commandPaletteTokens, confettiTokens, confirmTokens, consoleLayoutTokens, contrastWithWhite, cookieNoticeTokens, countdownTokens, countryTokens, createDarkSemantic, createLightSemantic, createTectraPreset, dataViewTokens, datePickerTokens, deepMerge, definePreset, dialogTokens, dividerTokens, editorContentTokens, editorTokens, emailSuggestionTokens, emptyStateTokens, fade, fieldMessageTokens, fieldTokens, fieldsetTokens, fileUploadTokens, filtersPanelTokens, floatLabelTokens, formFieldTokens, galleriaTokens, highlightTextTokens, hoverEffectTokens, iconLinkTokens, iconTokens, iftaLabelTokens, imageTokens, inputGroupTokens, inputNumberTokens, inputOtpTokens, kanbanTokens, knobTokens, labelTokens, lightDark, linkTokens, listInputTokens, listboxTokens, mascotTokens, mentionTokens, menuTokens, menubarTokens, messageTokens, mix, monthCalendarTokens, networkStatusTokens, noirScale, overlayBadgeTokens, pageHeaderTokens, paginatorTokens, panelMenuTokens, panelTokens, passwordTokens, pillTokens, pinnedTabsTokens, popoverTokens, presetToCss, primaryBaseStep, progressBarTokens, progressSpinnerTokens, publicHeaderTokens, qrCodeTokens, radioButtonTokens, ratingTokens, relativeLuminance, rippleTokens, scrollPanelTokens, selectTokens, skeletonTokens, sliderTokens, sparklineTokens, speedDialTokens, splitButtonTokens, splitterTokens, statTileTokens, statTilesTokens, statusIconTokens, stepperTokens, stepsTokens, switchLanguageTokens, switchThemeTokens, tableTokens, tabsTokens, tagTokens, textareaTokens, timelineTokens, toCssVariables, toStyleObject, toastTokens, toggleButtonTokens, toggleSwitchTokens, tokenRef, toolbarTokens, tooltipTokens, topbarPreferencesTokens, treeTableTokens, treeTokens, truncateTextTokens, virtualScrollerTokens, wizardTokens };
|
|
6905
7049
|
|
|
6906
7050
|
//# sourceMappingURL=tectra-ng-themes.mjs.map
|