@icen.ai/ui 0.9.0 → 0.11.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/AGENTS.md +82 -254
- package/LICENSE +21 -0
- package/README.md +60 -96
- package/dist/base.css +258 -188
- package/dist/behaviors/accordion.mjs +8 -8
- package/dist/behaviors/ai-branch.d.mts +1 -1
- package/dist/behaviors/ai-branch.mjs +1011 -94
- package/dist/behaviors/ai-chat.d.mts +9 -9
- package/dist/behaviors/ai-chat.mjs +1122 -169
- package/dist/behaviors/ai-composer.d.mts +47 -15
- package/dist/behaviors/ai-composer.mjs +2018 -534
- package/dist/behaviors/ai-core.d.mts +1 -1
- package/dist/behaviors/ai-core.mjs +1017 -107
- package/dist/behaviors/ai-diff.mjs +1020 -127
- package/dist/behaviors/ai-feedback.d.mts +1 -1
- package/dist/behaviors/ai-feedback.mjs +1036 -126
- package/dist/behaviors/ai-panel.d.mts +10 -10
- package/dist/behaviors/ai-panel.mjs +1285 -266
- package/dist/behaviors/ai-provider.d.mts +1 -1
- package/dist/behaviors/ai-provider.mjs +1004 -101
- package/dist/behaviors/ai-threads.d.mts +1 -1
- package/dist/behaviors/ai-threads.mjs +1069 -154
- package/dist/behaviors/ai-tool.d.mts +3 -3
- package/dist/behaviors/ai-tool.mjs +2087 -413
- package/dist/behaviors/ai-tools.d.mts +89 -16
- package/dist/behaviors/ai-tools.mjs +5365 -380
- package/dist/behaviors/autocomplete.d.mts +53 -0
- package/dist/behaviors/autocomplete.mjs +1601 -0
- package/dist/behaviors/back-top.d.mts +1 -1
- package/dist/behaviors/back-top.mjs +952 -14
- package/dist/behaviors/carousel.d.mts +1 -1
- package/dist/behaviors/carousel.mjs +914 -12
- package/dist/behaviors/cascader.d.mts +48 -0
- package/dist/behaviors/cascader.mjs +1867 -0
- package/dist/behaviors/charts.d.mts +72 -8
- package/dist/behaviors/charts.mjs +1953 -272
- package/dist/behaviors/code-block.d.mts +36 -0
- package/dist/behaviors/code-block.mjs +1619 -0
- package/dist/behaviors/command-palette.d.mts +9 -6
- package/dist/behaviors/command-palette.mjs +164 -62
- package/dist/behaviors/context-menu.d.mts +10 -9
- package/dist/behaviors/context-menu.mjs +1113 -44
- package/dist/behaviors/controls.d.mts +21 -21
- package/dist/behaviors/controls.mjs +1024 -134
- package/dist/behaviors/copy.d.mts +21 -2
- package/dist/behaviors/copy.mjs +1207 -42
- package/dist/behaviors/datatable.d.mts +55 -5
- package/dist/behaviors/datatable.mjs +2033 -212
- package/dist/behaviors/date-picker.d.mts +0 -1
- package/dist/behaviors/date-picker.mjs +1341 -293
- package/dist/behaviors/design.d.mts +54 -0
- package/dist/behaviors/design.mjs +109 -0
- package/dist/behaviors/dropdown.d.mts +5 -6
- package/dist/behaviors/dropdown.mjs +262 -110
- package/dist/behaviors/events.d.mts +127 -10
- package/dist/behaviors/events.mjs +58 -3
- package/dist/behaviors/feedback.d.mts +30 -0
- package/dist/behaviors/feedback.mjs +296 -0
- package/dist/behaviors/focus.d.mts +8 -0
- package/dist/behaviors/focus.mjs +24 -0
- package/dist/behaviors/form-validate.d.mts +111 -0
- package/dist/behaviors/form-validate.mjs +1746 -0
- package/dist/behaviors/i18n.d.mts +790 -0
- package/dist/behaviors/i18n.mjs +1713 -0
- package/dist/behaviors/icons.d.mts +93 -0
- package/dist/behaviors/icons.mjs +113 -0
- package/dist/behaviors/input.d.mts +9 -1
- package/dist/behaviors/input.mjs +1059 -60
- package/dist/behaviors/kb-access.d.mts +3 -3
- package/dist/behaviors/kb-access.mjs +2135 -239
- package/dist/behaviors/kb-acl.d.mts +8 -8
- package/dist/behaviors/kb-acl.mjs +1120 -179
- package/dist/behaviors/kb-answer.d.mts +2 -2
- package/dist/behaviors/kb-answer.mjs +2120 -435
- package/dist/behaviors/kb-audit.d.mts +3 -3
- package/dist/behaviors/kb-audit.mjs +1077 -154
- package/dist/behaviors/kb-canvas.d.mts +3 -3
- package/dist/behaviors/kb-canvas.mjs +1101 -177
- package/dist/behaviors/kb-chain.d.mts +2 -2
- package/dist/behaviors/kb-chain.mjs +1023 -100
- package/dist/behaviors/kb-checkpoint.d.mts +3 -3
- package/dist/behaviors/kb-checkpoint.mjs +1320 -169
- package/dist/behaviors/kb-chunks.d.mts +2 -2
- package/dist/behaviors/kb-chunks.mjs +1153 -213
- package/dist/behaviors/kb-citation.d.mts +3 -3
- package/dist/behaviors/kb-citation.mjs +1221 -185
- package/dist/behaviors/kb-clarify.d.mts +2 -2
- package/dist/behaviors/kb-clarify.mjs +1059 -130
- package/dist/behaviors/kb-conflict.d.mts +2 -2
- package/dist/behaviors/kb-conflict.mjs +1042 -119
- package/dist/behaviors/kb-connector.d.mts +2 -2
- package/dist/behaviors/kb-connector.mjs +1105 -176
- package/dist/behaviors/kb-core.d.mts +7 -2
- package/dist/behaviors/kb-core.mjs +1078 -162
- package/dist/behaviors/kb-eval.d.mts +2 -2
- package/dist/behaviors/kb-eval.mjs +1977 -144
- package/dist/behaviors/kb-explain.d.mts +3 -3
- package/dist/behaviors/kb-explain.mjs +1037 -104
- package/dist/behaviors/kb-filter.d.mts +2 -2
- package/dist/behaviors/kb-filter.mjs +2014 -178
- package/dist/behaviors/kb-gap.d.mts +3 -3
- package/dist/behaviors/kb-gap.mjs +1044 -121
- package/dist/behaviors/kb-hittest.d.mts +3 -3
- package/dist/behaviors/kb-hittest.mjs +1095 -151
- package/dist/behaviors/kb-metadata.mjs +1058 -130
- package/dist/behaviors/kb-passage.d.mts +4 -4
- package/dist/behaviors/kb-passage.mjs +1102 -161
- package/dist/behaviors/kb-pipeline.d.mts +4 -4
- package/dist/behaviors/kb-pipeline.mjs +1083 -162
- package/dist/behaviors/kb-qa.mjs +1089 -160
- package/dist/behaviors/kb-rerank.d.mts +2 -2
- package/dist/behaviors/kb-rerank.mjs +1048 -114
- package/dist/behaviors/kb-retrieval.d.mts +2 -2
- package/dist/behaviors/kb-retrieval.mjs +2079 -226
- package/dist/behaviors/kb-review.d.mts +2 -2
- package/dist/behaviors/kb-review.mjs +1996 -159
- package/dist/behaviors/kb-sandbox.d.mts +3 -3
- package/dist/behaviors/kb-sandbox.mjs +1033 -105
- package/dist/behaviors/kb-segment.d.mts +2 -2
- package/dist/behaviors/kb-segment.mjs +1112 -179
- package/dist/behaviors/kb-select.d.mts +24 -0
- package/dist/behaviors/kb-select.mjs +1995 -0
- package/dist/behaviors/kb-sources.d.mts +3 -3
- package/dist/behaviors/kb-sources.mjs +1085 -170
- package/dist/behaviors/kb-sql.d.mts +3 -3
- package/dist/behaviors/kb-sql.mjs +1144 -226
- package/dist/behaviors/kb-trace.d.mts +3 -3
- package/dist/behaviors/kb-trace.mjs +1051 -131
- package/dist/behaviors/kb-visibility.d.mts +2 -2
- package/dist/behaviors/kb-visibility.mjs +1087 -158
- package/dist/behaviors/kb-who-can.d.mts +2 -2
- package/dist/behaviors/kb-who-can.mjs +1980 -137
- package/dist/behaviors/mentions.d.mts +93 -0
- package/dist/behaviors/mentions.mjs +2153 -0
- package/dist/behaviors/modal.d.mts +4 -3
- package/dist/behaviors/modal.mjs +1056 -33
- package/dist/behaviors/nav.d.mts +1 -1
- package/dist/behaviors/nav.mjs +6 -6
- package/dist/behaviors/notification.d.mts +16 -8
- package/dist/behaviors/notification.mjs +1629 -268
- package/dist/behaviors/panel.d.mts +4 -0
- package/dist/behaviors/panel.mjs +995 -0
- package/dist/behaviors/popover.d.mts +28 -5
- package/dist/behaviors/popover.mjs +225 -24
- package/dist/behaviors/scroll-area.d.mts +17 -0
- package/dist/behaviors/scroll-area.mjs +59 -0
- package/dist/behaviors/select.d.mts +5 -2
- package/dist/behaviors/select.mjs +1416 -117
- package/dist/behaviors/sidebar.d.mts +1 -1
- package/dist/behaviors/sidebar.mjs +13 -13
- package/dist/behaviors/slider.d.mts +1 -1
- package/dist/behaviors/slider.mjs +12 -12
- package/dist/behaviors/split-pane.d.mts +1 -1
- package/dist/behaviors/split-pane.mjs +9 -7
- package/dist/behaviors/suggestions.d.mts +27 -0
- package/dist/behaviors/suggestions.mjs +1090 -0
- package/dist/behaviors/svg-parse.d.mts +14 -0
- package/dist/behaviors/svg-parse.mjs +37 -0
- package/dist/behaviors/tabs.d.mts +2 -2
- package/dist/behaviors/tabs.mjs +35 -25
- package/dist/behaviors/tag-input.d.mts +23 -5
- package/dist/behaviors/tag-input.mjs +1360 -104
- package/dist/behaviors/theme-switcher.d.mts +24 -0
- package/dist/behaviors/theme-switcher.mjs +1996 -0
- package/dist/behaviors/theme.d.mts +15 -8
- package/dist/behaviors/theme.mjs +406 -30
- package/dist/behaviors/toast.d.mts +24 -25
- package/dist/behaviors/toast.mjs +1267 -88
- package/dist/behaviors/tooltip.d.mts +4 -0
- package/dist/behaviors/tooltip.mjs +378 -0
- package/dist/behaviors/tree-select.d.mts +69 -0
- package/dist/behaviors/tree-select.mjs +1921 -0
- package/dist/behaviors/tree.d.mts +1 -1
- package/dist/behaviors/tree.mjs +18 -18
- package/dist/behaviors/upload.d.mts +3 -2
- package/dist/behaviors/upload.mjs +1077 -66
- package/dist/behaviors/url-safety.d.mts +8 -0
- package/dist/behaviors/url-safety.mjs +11 -0
- package/dist/cli.mjs +5 -6
- package/dist/components/accordion.d.mts +2 -0
- package/dist/components/ai-branch.d.mts +2 -0
- package/dist/components/ai-chat.css +682 -582
- package/dist/components/ai-chat.d.mts +2 -0
- package/dist/components/ai-composer.d.mts +2 -0
- package/dist/components/ai-context.d.mts +2 -0
- package/dist/components/ai-context.mjs +1 -0
- package/dist/components/ai-diff.css +153 -132
- package/dist/components/ai-diff.d.mts +2 -0
- package/dist/components/ai-feedback.d.mts +2 -0
- package/dist/components/ai-files.d.mts +2 -0
- package/dist/components/ai-message.d.mts +2 -0
- package/dist/components/ai-panel.css +353 -343
- package/dist/components/ai-reasoning.d.mts +2 -0
- package/dist/components/ai-subagent.d.mts +2 -0
- package/dist/components/ai-subagent.mjs +1 -0
- package/dist/components/ai-threads.d.mts +2 -0
- package/dist/components/ai-todo.d.mts +2 -0
- package/dist/components/ai-todo.mjs +1 -0
- package/dist/components/ai-tool-call.d.mts +2 -0
- package/dist/components/ai-tool-call.mjs +1 -0
- package/dist/components/ai-tool.css +397 -242
- package/dist/components/ai-usage.d.mts +2 -0
- package/dist/components/alert.d.mts +2 -0
- package/dist/components/autocomplete.css +61 -0
- package/dist/components/autocomplete.d.mts +2 -0
- package/dist/components/autocomplete.mjs +3 -0
- package/dist/components/avatar.d.mts +2 -0
- package/dist/components/back-top.css +74 -40
- package/dist/components/back-top.d.mts +2 -0
- package/dist/components/badge.css +44 -41
- package/dist/components/badge.d.mts +2 -0
- package/dist/components/breadcrumb.css +85 -46
- package/dist/components/breadcrumb.d.mts +2 -0
- package/dist/components/btn.css +105 -94
- package/dist/components/btn.d.mts +2 -0
- package/dist/components/card.css +124 -113
- package/dist/components/card.d.mts +2 -0
- package/dist/components/carousel.d.mts +2 -0
- package/dist/components/cascader.css +332 -0
- package/dist/components/cascader.d.mts +2 -0
- package/dist/components/cascader.mjs +3 -0
- package/dist/components/chart-area.css +54 -2
- package/dist/components/chart-area.d.mts +2 -0
- package/dist/components/chart-bar.css +147 -38
- package/dist/components/chart-bar.d.mts +2 -0
- package/dist/components/chart-calendar.d.mts +2 -0
- package/dist/components/chart-gauge.css +36 -13
- package/dist/components/chart-gauge.d.mts +2 -0
- package/dist/components/chart-graph.css +35 -20
- package/dist/components/chart-graph.d.mts +2 -0
- package/dist/components/chart-heatmap.css +67 -39
- package/dist/components/chart-heatmap.d.mts +2 -0
- package/dist/components/chart-line.css +62 -3
- package/dist/components/chart-line.d.mts +2 -0
- package/dist/components/chart-map.d.mts +2 -0
- package/dist/components/chart-pie.css +38 -6
- package/dist/components/chart-pie.d.mts +2 -0
- package/dist/components/chart-radar.css +57 -5
- package/dist/components/chart-radar.d.mts +2 -0
- package/dist/components/chart-scatter.css +47 -7
- package/dist/components/chart-scatter.d.mts +2 -0
- package/dist/components/chart-sparkline.css +25 -2
- package/dist/components/chart-sparkline.d.mts +2 -0
- package/dist/components/chart-stack.css +27 -13
- package/dist/components/chart-stack.d.mts +2 -0
- package/dist/components/charts.css +220 -84
- package/dist/components/charts.d.mts +2 -0
- package/dist/components/code-block.css +420 -0
- package/dist/components/code-block.d.mts +2 -0
- package/dist/components/code-block.mjs +4 -0
- package/dist/components/command-palette.css +150 -122
- package/dist/components/command-palette.d.mts +2 -0
- package/dist/components/content.css +274 -263
- package/dist/components/context-menu.d.mts +2 -0
- package/dist/components/copy.css +73 -45
- package/dist/components/copy.d.mts +2 -0
- package/dist/components/datatable.css +457 -202
- package/dist/components/datatable.d.mts +2 -0
- package/dist/components/date-picker.css +136 -105
- package/dist/components/date-picker.d.mts +2 -0
- package/dist/components/desc.d.mts +2 -0
- package/dist/components/dropdown.d.mts +2 -0
- package/dist/components/empty.css +72 -69
- package/dist/components/empty.d.mts +2 -0
- package/dist/components/feedback.css +211 -191
- package/dist/components/form-validate.css +134 -0
- package/dist/components/form-validate.d.mts +2 -0
- package/dist/components/form-validate.mjs +3 -0
- package/dist/components/form.css +157 -131
- package/dist/components/form.d.mts +2 -0
- package/dist/components/icon.css +113 -0
- package/dist/components/icon.d.mts +2 -0
- package/dist/components/icon.mjs +3 -0
- package/dist/components/input.css +163 -108
- package/dist/components/input.d.mts +2 -0
- package/dist/components/kb-access.d.mts +2 -0
- package/dist/components/kb-acl.d.mts +2 -0
- package/dist/components/kb-agent.css +300 -206
- package/dist/components/kb-answer.d.mts +2 -0
- package/dist/components/kb-audit.d.mts +2 -0
- package/dist/components/kb-canvas.d.mts +2 -0
- package/dist/components/kb-chain.d.mts +2 -0
- package/dist/components/kb-checkpoint.d.mts +2 -0
- package/dist/components/kb-chunks.d.mts +2 -0
- package/dist/components/kb-citation.d.mts +2 -0
- package/dist/components/kb-clarify.d.mts +2 -0
- package/dist/components/kb-conflict.d.mts +2 -0
- package/dist/components/kb-connector.d.mts +2 -0
- package/dist/components/kb-data.css +431 -315
- package/dist/components/kb-eval.d.mts +2 -0
- package/dist/components/kb-explain.d.mts +2 -0
- package/dist/components/kb-filter.d.mts +2 -0
- package/dist/components/kb-gap.d.mts +2 -0
- package/dist/components/kb-ground.css +333 -229
- package/dist/components/kb-hittest.d.mts +2 -0
- package/dist/components/kb-ingest.css +613 -434
- package/dist/components/kb-metadata.d.mts +2 -0
- package/dist/components/kb-ops.css +422 -302
- package/dist/components/kb-passage.d.mts +2 -0
- package/dist/components/kb-perm.css +374 -314
- package/dist/components/kb-pipeline.d.mts +2 -0
- package/dist/components/kb-qa.d.mts +2 -0
- package/dist/components/kb-rerank.d.mts +2 -0
- package/dist/components/kb-retrieval.d.mts +2 -0
- package/dist/components/kb-review.d.mts +2 -0
- package/dist/components/kb-sandbox.d.mts +2 -0
- package/dist/components/kb-search.css +653 -459
- package/dist/components/kb-segment.d.mts +2 -0
- package/dist/components/kb-sources.d.mts +2 -0
- package/dist/components/kb-sql.d.mts +2 -0
- package/dist/components/kb-trace.d.mts +2 -0
- package/dist/components/kb-visibility.d.mts +2 -0
- package/dist/components/kb-who-can.d.mts +2 -0
- package/dist/components/kb.css +170 -135
- package/dist/components/kb.d.mts +2 -0
- package/dist/components/kbd.d.mts +2 -0
- package/dist/components/layout.css +86 -83
- package/dist/components/layout.d.mts +2 -0
- package/dist/components/list.d.mts +2 -0
- package/dist/components/material-chinese.css +83 -0
- package/dist/components/material-soviet.css +86 -0
- package/dist/components/material.css +318 -0
- package/dist/components/media-card.d.mts +2 -0
- package/dist/components/media.css +225 -176
- package/dist/components/mentions.css +190 -0
- package/dist/components/mentions.d.mts +2 -0
- package/dist/components/mentions.mjs +3 -0
- package/dist/components/menu.css +121 -109
- package/dist/components/modal.css +116 -118
- package/dist/components/modal.d.mts +2 -0
- package/dist/components/nav.css +136 -129
- package/dist/components/nav.d.mts +2 -0
- package/dist/components/notification.css +247 -177
- package/dist/components/notification.d.mts +2 -0
- package/dist/components/pagination.css +62 -57
- package/dist/components/pagination.d.mts +2 -0
- package/dist/components/panel.css +70 -68
- package/dist/components/panel.d.mts +2 -0
- package/dist/components/panel.mjs +1 -0
- package/dist/components/pill.css +83 -72
- package/dist/components/pill.d.mts +2 -0
- package/dist/components/popover.css +80 -57
- package/dist/components/popover.d.mts +2 -0
- package/dist/components/progress.d.mts +2 -0
- package/dist/components/rating.d.mts +2 -0
- package/dist/components/result.d.mts +2 -0
- package/dist/components/scroll-area.css +29 -54
- package/dist/components/scroll-area.d.mts +2 -0
- package/dist/components/scroll-area.mjs +1 -0
- package/dist/components/segmented.css +167 -146
- package/dist/components/segmented.d.mts +2 -0
- package/dist/components/select.css +250 -191
- package/dist/components/select.d.mts +2 -0
- package/dist/components/sidebar.css +157 -143
- package/dist/components/sidebar.d.mts +2 -0
- package/dist/components/skeleton.d.mts +2 -0
- package/dist/components/slider.css +135 -128
- package/dist/components/slider.d.mts +2 -0
- package/dist/components/spinner.d.mts +2 -0
- package/dist/components/split-pane.css +120 -108
- package/dist/components/split-pane.d.mts +2 -0
- package/dist/components/stat.css +116 -109
- package/dist/components/stat.d.mts +2 -0
- package/dist/components/steps.css +114 -108
- package/dist/components/steps.d.mts +2 -0
- package/dist/components/switch.css +192 -149
- package/dist/components/switch.d.mts +2 -0
- package/dist/components/table.css +158 -112
- package/dist/components/table.d.mts +2 -0
- package/dist/components/tabs.css +143 -116
- package/dist/components/tabs.d.mts +2 -0
- package/dist/components/tag-input.css +52 -133
- package/dist/components/tag-input.d.mts +2 -0
- package/dist/components/tag.css +90 -72
- package/dist/components/tag.d.mts +2 -0
- package/dist/components/theme-switcher.css +105 -0
- package/dist/components/theme-switcher.d.mts +2 -0
- package/dist/components/theme-switcher.mjs +3 -0
- package/dist/components/timeline.d.mts +2 -0
- package/dist/components/toast.css +115 -97
- package/dist/components/toast.d.mts +2 -0
- package/dist/components/toolbar.css +47 -43
- package/dist/components/toolbar.d.mts +2 -0
- package/dist/components/tooltip.css +103 -43
- package/dist/components/tooltip.d.mts +2 -0
- package/dist/components/tooltip.mjs +1 -0
- package/dist/components/tree-select.css +439 -0
- package/dist/components/tree-select.d.mts +2 -0
- package/dist/components/tree-select.mjs +3 -0
- package/dist/components/tree.d.mts +2 -0
- package/dist/components/upload.css +138 -97
- package/dist/components/upload.d.mts +2 -0
- package/dist/fonts/LICENSES/ark-pixel/OFL.txt +96 -0
- package/dist/fonts/LICENSES/cubic-11/OFL.txt +108 -0
- package/dist/fonts/LICENSES/galmuri/LICENSE.txt +93 -0
- package/dist/fonts/OFL.txt +96 -0
- package/dist/fonts/README.md +14 -0
- package/dist/fonts/fusion-pixel-12px-zh-hans.woff2 +0 -0
- package/dist/index.d.mts +85 -70
- package/dist/index.mjs +17330 -5773
- package/dist/react.d.mts +91 -0
- package/dist/react.mjs +8307 -0
- package/dist/registry.json +918 -70
- package/dist/tokens/chinese.css +44 -0
- package/dist/tokens/colors.css +371 -1222
- package/dist/tokens/design.css +209 -0
- package/dist/tokens/dtcg.json +15926 -0
- package/dist/tokens/figma.variables.json +10779 -0
- package/dist/tokens/icon-masks.css +78 -0
- package/dist/tokens/pixel.css +53 -0
- package/dist/tokens/scrollbars.css +40 -0
- package/dist/tokens/soviet.css +44 -0
- package/dist/tokens/style-profiles.css +36 -547
- package/dist/tokens/themes.json +308 -0
- package/dist/tokens/tokens-studio.json +11648 -0
- package/dist/tokens/typography.css +21 -18
- package/dist/tokens.css +1783 -1806
- package/dist/ui.css +14796 -10750
- package/dist/vue.d.mts +344 -0
- package/dist/vue.mjs +7876 -0
- package/docs/spec/ai-input-experience.md +75 -0
- package/docs/spec/ai-native.md +238 -147
- package/docs/spec/design-philosophy.md +189 -0
- package/docs/spec/design-primitives.md +196 -0
- package/docs/spec/kb-family.md +147 -115
- package/docs/spec/scrollbars.md +46 -0
- package/package.json +56 -8
- package/dist/retro-effects.css +0 -255
- package/dist/tokens/retro-effects.css +0 -255
- package/docs/research/2026-10-03-ai-kb-components.md +0 -392
- package/docs/research/2026-10-03-kb-permissions.md +0 -992
|
@@ -0,0 +1,318 @@
|
|
|
1
|
+
@layer icen.components {
|
|
2
|
+
/* Material contract (default 现代 primitive; theme via data-icen-preset):
|
|
3
|
+
* <section data-icen-material="content|chrome|floating">arbitrary content</section>
|
|
4
|
+
* content = opaque reading; chrome = navigation; floating = temporary
|
|
5
|
+
* operations. HTML primitives need no JS. Existing components consume the same
|
|
6
|
+
* recipes automatically. Force opaque via html[data-icen-transparency="reduced"].
|
|
7
|
+
* This file ships with tokens.css as well as ui.css; kit consumers need no extras.
|
|
8
|
+
*
|
|
9
|
+
* 分层登记(guard: tier-direction 文件级白名单):材料适配是横切层——选中态/磨砂
|
|
10
|
+
* 配方覆盖 .icen-ai-composer-popup* 与 .icen-kb-checkpoint-menu-item 等 Beta 类名;
|
|
11
|
+
* Beta 类名变更对本文件仅静默降级,不破坏 Core 用户,故允许 Core 引用 Beta。
|
|
12
|
+
*/
|
|
13
|
+
/* The base layer also defines interaction defaults. Keep the primitive's
|
|
14
|
+
* interaction recipe in the components layer so separately imported base.css
|
|
15
|
+
* cannot quietly restore a different press/focus model. */
|
|
16
|
+
:root:where(:not([data-icen-style]),[data-icen-style="modern"]) {
|
|
17
|
+
--icen-press: scale(.985);
|
|
18
|
+
--icen-press-soft: none;
|
|
19
|
+
--icen-hover-border: var(--icen-token-line);
|
|
20
|
+
--icen-hover-border-strong: var(--icen-token-line-strong);
|
|
21
|
+
--icen-ring: 0 0 0 2px var(--icen-token-surface), 0 0 0 4px var(--icen-token-accent);
|
|
22
|
+
--icen-ring-soft: 0 0 0 3px var(--icen-token-accent-subtle);
|
|
23
|
+
--icen-control-focus-border: var(--icen-token-accent);
|
|
24
|
+
--icen-control-focus-shadow: var(--icen-token-shadow-inset), var(--icen-ring-soft);
|
|
25
|
+
--icen-disabled-opacity: .48;
|
|
26
|
+
}
|
|
27
|
+
/* Selection is a contained surface, never a check glyph. ARIA remains the source
|
|
28
|
+
* of truth for keyboard/assistive technology; focus has its own outer outline. */
|
|
29
|
+
:root :is(.icen-theme-switcher-option[aria-pressed="true"], .icen-select-option.is-selected, .icen-cascader-item.is-selected, .icen-cascader-item.is-active, .icen-tree-select-row.is-selected, .icen-tree-select-row.is-checked, .icen-menu-item[aria-checked="true"], .icen-menu-item--checked:not([aria-checked="false"]), .icen-ai-composer-popup-option[aria-selected="true"], .icen-kb-checkpoint-menu-item.is-checked) {
|
|
30
|
+
background: var(--icen-token-accent-subtle);
|
|
31
|
+
color: var(--icen-token-text);
|
|
32
|
+
box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--icen-token-accent) 65%, var(--icen-token-line-soft));
|
|
33
|
+
}
|
|
34
|
+
:root :is(.icen-select-option.is-focused, .icen-cascader-item.is-focused, .icen-tree-select-row.is-focused) { outline: 1px solid var(--icen-token-outline); outline-offset: -3px; }
|
|
35
|
+
|
|
36
|
+
/* Native selection controls keep native values, keyboard behavior and mixed state,
|
|
37
|
+
* but their selected geometry is an inset core rather than an OS check glyph. */
|
|
38
|
+
:root :is(input.icen-dt-check, input.icen-choice-box, .icen-form input[type="checkbox"], input[data-icen-kb-segment-clean]) {
|
|
39
|
+
appearance: none;
|
|
40
|
+
box-sizing: border-box;
|
|
41
|
+
inline-size: 16px;
|
|
42
|
+
block-size: 16px;
|
|
43
|
+
flex: 0 0 auto;
|
|
44
|
+
border: 1.5px solid var(--icen-token-outline);
|
|
45
|
+
border-radius: var(--icen-radius-xs);
|
|
46
|
+
padding: 3px;
|
|
47
|
+
background: var(--icen-token-surface);
|
|
48
|
+
background-clip: content-box;
|
|
49
|
+
cursor: pointer;
|
|
50
|
+
}
|
|
51
|
+
:root :is(input.icen-dt-check, input.icen-choice-box, .icen-form input[type="checkbox"], input[data-icen-kb-segment-clean]):checked {
|
|
52
|
+
border-color: var(--icen-token-accent);
|
|
53
|
+
background-color: var(--icen-token-accent);
|
|
54
|
+
}
|
|
55
|
+
:root :is(input.icen-dt-check, input.icen-choice-box, .icen-form input[type="checkbox"], input[data-icen-kb-segment-clean]):indeterminate {
|
|
56
|
+
border-color: var(--icen-token-accent);
|
|
57
|
+
background-color: transparent;
|
|
58
|
+
background-image: linear-gradient(var(--icen-token-accent),var(--icen-token-accent));
|
|
59
|
+
background-size: 8px 2px;
|
|
60
|
+
background-position: center;
|
|
61
|
+
background-repeat: no-repeat;
|
|
62
|
+
}
|
|
63
|
+
:root :is(input.icen-dt-check, input.icen-choice-box, .icen-form input[type="checkbox"], input[data-icen-kb-segment-clean]):focus-visible { outline: 2px solid var(--icen-token-accent); outline-offset: 2px; }
|
|
64
|
+
@media (forced-colors: active) {
|
|
65
|
+
:root :is(.icen-theme-switcher-option[aria-pressed="true"], .icen-select-option.is-selected, .icen-cascader-item.is-selected, .icen-tree-select-row.is-selected, .icen-tree-select-row.is-checked, .icen-menu-item[aria-checked="true"], .icen-ai-composer-popup-option[aria-selected="true"], .icen-kb-checkpoint-menu-item.is-checked) { outline: 3px double Highlight; outline-offset: -3px; }
|
|
66
|
+
:root :is(input.icen-dt-check, input.icen-choice-box, .icen-form input[type="checkbox"], input[data-icen-kb-segment-clean]) { forced-color-adjust: none; border-color: CanvasText; background-color: Canvas; }
|
|
67
|
+
:root :is(input.icen-dt-check, input.icen-choice-box, .icen-form input[type="checkbox"], input[data-icen-kb-segment-clean]):checked { background-color: Highlight; }
|
|
68
|
+
:root :is(input.icen-dt-check, input.icen-choice-box, .icen-form input[type="checkbox"], input[data-icen-kb-segment-clean]):indeterminate { background-image: linear-gradient(Highlight,Highlight); }
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/* Component display rules must not override native hidden semantics. Preserve
|
|
72
|
+
* until-found so browser find-in-page can reveal intentionally searchable content. */
|
|
73
|
+
:where([class^="icen-"], [class*=" icen-"])[hidden]:not([hidden="until-found"]) {
|
|
74
|
+
display: none !important; /* guard:allow-important native hidden must win over component display:flex/grid */
|
|
75
|
+
}
|
|
76
|
+
:root[data-icen-design-changing] *,
|
|
77
|
+
:root[data-icen-design-changing] *::before,
|
|
78
|
+
:root[data-icen-design-changing] *::after {
|
|
79
|
+
transition: none !important; /* guard:allow-important palette changes must not pass through unreadable intermediate colors */
|
|
80
|
+
}
|
|
81
|
+
:root body {
|
|
82
|
+
font-family: var(--icen-font-body);
|
|
83
|
+
font-variant-numeric: normal;
|
|
84
|
+
font-size: var(--icen-density-font-size-md);
|
|
85
|
+
line-height: var(--icen-line-height-body);
|
|
86
|
+
letter-spacing: var(--icen-letter-spacing-body);
|
|
87
|
+
background: var(--icen-token-canvas);
|
|
88
|
+
color: var(--icen-token-text);
|
|
89
|
+
}
|
|
90
|
+
:root :is(h1,h2,h3,h4,h5,h6) {
|
|
91
|
+
font-family: var(--icen-font-heading);
|
|
92
|
+
letter-spacing: var(--icen-letter-spacing-heading);
|
|
93
|
+
line-height: var(--icen-line-height-heading);
|
|
94
|
+
text-wrap: balance;
|
|
95
|
+
}
|
|
96
|
+
:root :is(button,input,textarea,select) { font-family: var(--icen-font-body); }
|
|
97
|
+
:root [data-icen-material] {
|
|
98
|
+
background: var(--icen-token-surface);
|
|
99
|
+
color: var(--icen-token-text);
|
|
100
|
+
border: 1px solid var(--icen-token-outline-soft);
|
|
101
|
+
border-radius: var(--icen-radius-lg);
|
|
102
|
+
}
|
|
103
|
+
:root :is([data-icen-material="content"],.icen-card) {
|
|
104
|
+
background: var(--icen-token-surface);
|
|
105
|
+
box-shadow: none;
|
|
106
|
+
}
|
|
107
|
+
/* Opaque fallback is the default. Enable transparency only with browser support. */
|
|
108
|
+
:root :is([data-icen-material="chrome"],[data-icen-material="floating"],.icen-menu,.icen-popover,.icen-select-panel,.icen-date-picker-panel,.icen-autocomplete-panel,.icen-cascader-panel,.icen-tree-select-panel,.icen-mentions-panel,.icen-ai-composer-popup,.icen-command-palette,.icen-card--glass,.icen-nav) {
|
|
109
|
+
background: var(--icen-token-surface);
|
|
110
|
+
border-color: var(--icen-token-material-edge);
|
|
111
|
+
box-shadow: var(--icen-token-material-light), var(--icen-token-shadow-elevated);
|
|
112
|
+
backdrop-filter: none;
|
|
113
|
+
-webkit-backdrop-filter: none;
|
|
114
|
+
}
|
|
115
|
+
:root [data-icen-material="chrome"] { box-shadow: var(--icen-token-material-light); }
|
|
116
|
+
:root .icen-nav[data-icen-scroll-reactive]:not(.is-scrolled) {
|
|
117
|
+
background: var(--icen-token-surface);
|
|
118
|
+
backdrop-filter: none;
|
|
119
|
+
-webkit-backdrop-filter: none;
|
|
120
|
+
}
|
|
121
|
+
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
|
|
122
|
+
:root :is([data-icen-material="chrome"],[data-icen-material="floating"],.icen-menu,.icen-popover,.icen-select-panel,.icen-date-picker-panel,.icen-autocomplete-panel,.icen-cascader-panel,.icen-tree-select-panel,.icen-mentions-panel,.icen-ai-composer-popup,.icen-command-palette,.icen-card--glass,.icen-nav) {
|
|
123
|
+
background: var(--icen-token-surface-glass);
|
|
124
|
+
backdrop-filter: blur(var(--icen-design-glass-blur)) saturate(1.15);
|
|
125
|
+
-webkit-backdrop-filter: blur(var(--icen-design-glass-blur)) saturate(1.15);
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
:root .icen-nav { box-shadow: var(--icen-token-material-light); }
|
|
129
|
+
:root .icen-btn {
|
|
130
|
+
--btn-border-hover: var(--icen-hover-border);
|
|
131
|
+
gap: var(--icen-control-gap);
|
|
132
|
+
border-radius: var(--icen-control-radius);
|
|
133
|
+
letter-spacing: var(--icen-letter-spacing-control);
|
|
134
|
+
}
|
|
135
|
+
:root .icen-btn-primary { --btn-border-hover: var(--icen-token-accent-strong); }
|
|
136
|
+
:root :is(.icen-btn-ghost,.icen-btn-link) { --btn-border-hover: transparent; }
|
|
137
|
+
:root .icen-btn-link { --btn-fg: var(--icen-token-accent-text); }
|
|
138
|
+
:root .icen-btn-danger:hover:not(:disabled) { color: var(--icen-token-error); background: var(--icen-token-error-muted); }
|
|
139
|
+
:root .icen-segmented { padding: 3px; gap: 2px; }
|
|
140
|
+
:root .icen-segmented-item { border-radius: max(0px, calc(var(--icen-radius-md) - 4px)); }
|
|
141
|
+
:root :is(.icen-segmented-item.is-active,.icen-segmented-item[aria-checked="true"],.icen-toggle-group-btn.is-active) {
|
|
142
|
+
background: var(--icen-token-surface);
|
|
143
|
+
color: var(--icen-token-text);
|
|
144
|
+
box-shadow: var(--icen-token-shadow-control);
|
|
145
|
+
}
|
|
146
|
+
:root :is(.icen-menu,.icen-popover,.icen-select-panel) { border-radius: var(--icen-radius-lg); }
|
|
147
|
+
:root .icen-modal {
|
|
148
|
+
border-radius: var(--icen-radius-xl);
|
|
149
|
+
box-shadow: var(--icen-token-material-light), var(--icen-token-shadow-overlay);
|
|
150
|
+
}
|
|
151
|
+
:root :is(.icen-modal-backdrop,.icen-command-palette-backdrop) {
|
|
152
|
+
background: var(--icen-token-scrim);
|
|
153
|
+
backdrop-filter: none;
|
|
154
|
+
-webkit-backdrop-filter: none;
|
|
155
|
+
}
|
|
156
|
+
:root .icen-card--elevated { box-shadow: var(--icen-token-shadow-card); }
|
|
157
|
+
:root .icen-card--interactive:hover { transform: none; border-color: var(--icen-token-control-border-hover); }
|
|
158
|
+
:root .icen-card--interactive:focus-within { box-shadow: var(--icen-ring); }
|
|
159
|
+
/* 现代: small controls have a legible edge and a quiet, tactile surface. Keep
|
|
160
|
+
* these optical refinements local to the default primitive; other primitives
|
|
161
|
+
* supply their own surface physics without fighting a global component rule. */
|
|
162
|
+
:root:where(:not([data-icen-style]),[data-icen-style="modern"]) .icen-btn:not(.icen-btn-ghost):not(.icen-btn-link) {
|
|
163
|
+
background-image: linear-gradient(
|
|
164
|
+
to bottom,
|
|
165
|
+
color-mix(in srgb, var(--icen-token-top-highlight) 32%, transparent),
|
|
166
|
+
transparent 52%
|
|
167
|
+
);
|
|
168
|
+
box-shadow: var(--icen-token-shadow-control);
|
|
169
|
+
}
|
|
170
|
+
:root:where(:not([data-icen-style]),[data-icen-style="modern"]) .icen-btn-primary {
|
|
171
|
+
background-image: linear-gradient(
|
|
172
|
+
to bottom,
|
|
173
|
+
color-mix(in srgb, var(--icen-token-top-highlight) 16%, transparent),
|
|
174
|
+
transparent 58%
|
|
175
|
+
);
|
|
176
|
+
}
|
|
177
|
+
:root:where(:not([data-icen-style]),[data-icen-style="modern"]) .icen-btn:focus-visible {
|
|
178
|
+
box-shadow: var(--icen-ring);
|
|
179
|
+
}
|
|
180
|
+
/* Stable opaque planes keep content readable over any application backdrop. */
|
|
181
|
+
:root:where(:not([data-icen-style]),[data-icen-style="modern"]) :is([data-icen-material],.icen-menu,.icen-popover,.icen-select-panel,.icen-date-picker-panel,.icen-autocomplete-panel,.icen-cascader-panel,.icen-tree-select-panel,.icen-mentions-panel,.icen-ai-composer-popup,.icen-command-palette,.icen-card--glass,.icen-nav,.icen-toast,.icen-notification,.icen-chart-tooltip,.icen-back-top,.icen-carousel-arrow) {
|
|
182
|
+
background: var(--icen-token-surface);
|
|
183
|
+
backdrop-filter: none;
|
|
184
|
+
-webkit-backdrop-filter: none;
|
|
185
|
+
}
|
|
186
|
+
:root:where(:not([data-icen-style]),[data-icen-style="modern"]) [data-icen-material="chrome"] {
|
|
187
|
+
background: var(--icen-token-surface-toolbar);
|
|
188
|
+
}
|
|
189
|
+
:root:where(:not([data-icen-style]),[data-icen-style="modern"]) .icen-nav.is-scrolled {
|
|
190
|
+
background: var(--icen-token-surface-toolbar);
|
|
191
|
+
}
|
|
192
|
+
:root:where(:not([data-icen-style]),[data-icen-style="modern"]) :is(.icen-card-tag,.icen-media-card-overlay,.icen-carousel-dot,.icen-carousel-index,.icen-spinner-overlay) {
|
|
193
|
+
backdrop-filter: none;
|
|
194
|
+
-webkit-backdrop-filter: none;
|
|
195
|
+
}
|
|
196
|
+
:root:where(:not([data-icen-style]),[data-icen-style="modern"]) .icen-btn:active:not(:disabled):not([aria-disabled="true"]):not([data-icen-disabled]):not(.is-loading) {
|
|
197
|
+
background-image: none;
|
|
198
|
+
box-shadow: var(--icen-token-shadow-inset);
|
|
199
|
+
}
|
|
200
|
+
:root:where(:not([data-icen-style]),[data-icen-style="modern"]) .icen-btn:active:focus-visible {
|
|
201
|
+
box-shadow: var(--icen-token-shadow-inset), var(--icen-ring);
|
|
202
|
+
}
|
|
203
|
+
:root:where(:not([data-icen-style]),[data-icen-style="modern"]) :is(.icen-input-wrap,.icen-textarea-wrap) {
|
|
204
|
+
padding-inline: var(--icen-field-padding-inline);
|
|
205
|
+
padding-block: 0;
|
|
206
|
+
}
|
|
207
|
+
:root:where(:not([data-icen-style]),[data-icen-style="modern"]) :is(.icen-input,.icen-textarea)::placeholder {
|
|
208
|
+
color: var(--icen-token-text-faint);
|
|
209
|
+
opacity: 1;
|
|
210
|
+
}
|
|
211
|
+
:root:where(:not([data-icen-style]),[data-icen-style="modern"]) .icen-segmented {
|
|
212
|
+
background: var(--icen-token-surface-raised);
|
|
213
|
+
border-color: var(--icen-token-line-soft);
|
|
214
|
+
box-shadow: none;
|
|
215
|
+
}
|
|
216
|
+
:root:where(:not([data-icen-style]),[data-icen-style="modern"]) .icen-segmented-item.is-active,
|
|
217
|
+
:root:where(:not([data-icen-style]),[data-icen-style="modern"]) .icen-segmented-item[aria-checked="true"] {
|
|
218
|
+
border: 1px solid color-mix(in srgb, var(--icen-token-line) 72%, transparent);
|
|
219
|
+
margin: -1px;
|
|
220
|
+
}
|
|
221
|
+
:root:where(:not([data-icen-style]),[data-icen-style="modern"]) .icen-toggle-group {
|
|
222
|
+
background: var(--icen-token-surface-raised);
|
|
223
|
+
border-color: var(--icen-token-line-soft);
|
|
224
|
+
}
|
|
225
|
+
/* Data readability is explicit, never applied to every numeral in prose. */
|
|
226
|
+
:root :is(.icen-numeric,.icen-table,.icen-datatable,.icen-stat-num) { font-variant-numeric: lining-nums tabular-nums; }
|
|
227
|
+
/* Any translucent material has an opaque alternative, including native controls. */
|
|
228
|
+
:root[data-icen-transparency="reduced"] :is([data-icen-material],.icen-menu,.icen-popover,.icen-select-panel,.icen-date-picker-panel,.icen-autocomplete-panel,.icen-cascader-panel,.icen-tree-select-panel,.icen-mentions-panel,.icen-ai-composer-popup,.icen-command-palette,.icen-card--glass,.icen-nav) {
|
|
229
|
+
background: var(--icen-token-surface);
|
|
230
|
+
backdrop-filter: none;
|
|
231
|
+
-webkit-backdrop-filter: none;
|
|
232
|
+
}
|
|
233
|
+
@media (prefers-reduced-transparency: reduce) {
|
|
234
|
+
:root :is([data-icen-material],.icen-menu,.icen-popover,.icen-select-panel,.icen-date-picker-panel,.icen-autocomplete-panel,.icen-cascader-panel,.icen-tree-select-panel,.icen-mentions-panel,.icen-ai-composer-popup,.icen-command-palette,.icen-card--glass,.icen-nav) {
|
|
235
|
+
background: var(--icen-token-surface);
|
|
236
|
+
backdrop-filter: none;
|
|
237
|
+
-webkit-backdrop-filter: none;
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
@media (prefers-reduced-motion: reduce) {
|
|
241
|
+
:root *, :root *::before, :root *::after {
|
|
242
|
+
animation-duration: .01ms !important; /* guard:allow-important accessibility override must beat component animation */
|
|
243
|
+
transition-duration: .01ms !important; /* guard:allow-important accessibility override must beat component transition */
|
|
244
|
+
scroll-behavior: auto !important; /* guard:allow-important reduced motion includes scrolling */
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
@media (pointer: coarse) {
|
|
248
|
+
:root :is(.icen-btn,.icen-segmented-item,.icen-menu-item,.icen-modal-close) { min-block-size: var(--icen-density-input-height-md); }
|
|
249
|
+
/* Preserve the switch's visual geometry, expand its pointer target instead. */
|
|
250
|
+
:root .icen-switch::before {
|
|
251
|
+
content: '';
|
|
252
|
+
position: absolute;
|
|
253
|
+
inset-block: calc((100% - 44px) / 2);
|
|
254
|
+
inset-inline: 0;
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
@media (forced-colors: active) {
|
|
258
|
+
:root :focus-visible { outline: 2px solid Highlight; outline-offset: 2px; }
|
|
259
|
+
:root :is([data-icen-material],.icen-menu,.icen-popover,.icen-card--glass) {
|
|
260
|
+
background: Canvas;
|
|
261
|
+
color: CanvasText;
|
|
262
|
+
border-color: CanvasText;
|
|
263
|
+
box-shadow: none;
|
|
264
|
+
backdrop-filter: none;
|
|
265
|
+
-webkit-backdrop-filter: none;
|
|
266
|
+
}
|
|
267
|
+
:root .icen-segmented-item[aria-checked="true"] { outline: 2px solid Highlight; }
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
/* Pixel adapters: inherit palette, replace surface physics. */
|
|
271
|
+
:root[data-icen-style="pixel"] :is([data-icen-material],.icen-menu,.icen-popover,.icen-select-panel,.icen-date-picker-panel,.icen-autocomplete-panel,.icen-cascader-panel,.icen-tree-select-panel,.icen-mentions-panel,.icen-ai-composer-popup,.icen-command-palette,.icen-card--glass,.icen-nav) {
|
|
272
|
+
background: var(--icen-token-surface);
|
|
273
|
+
border-color: var(--icen-token-line-strong);
|
|
274
|
+
backdrop-filter: none;
|
|
275
|
+
-webkit-backdrop-filter: none;
|
|
276
|
+
}
|
|
277
|
+
:root[data-icen-style="pixel"] :is(.icen-btn,.icen-input-wrap,.icen-textarea-wrap,.icen-select-trigger,.icen-segmented,[data-icen-material],.icen-card,.icen-modal) {
|
|
278
|
+
border-width: 2px;
|
|
279
|
+
border-radius: var(--icen-radius-md);
|
|
280
|
+
}
|
|
281
|
+
:root[data-icen-style="pixel"] :is(.icen-btn,.icen-input-wrap,.icen-select-trigger) { box-shadow: var(--icen-token-shadow-card); }
|
|
282
|
+
:root[data-icen-style="pixel"] :is(.icen-btn-ghost,.icen-btn-link) { box-shadow: none; }
|
|
283
|
+
:root[data-icen-style="pixel"] .icen-btn:active:not(:disabled):not([aria-disabled="true"]) { box-shadow: none; }
|
|
284
|
+
:root[data-icen-style="pixel"] .icen-btn:focus-visible { box-shadow: var(--icen-ring); }
|
|
285
|
+
:root[data-icen-style="pixel"] .icen-input-wrap:focus-within { box-shadow: var(--icen-control-focus-shadow); }
|
|
286
|
+
:root[data-icen-style="pixel"] :is(h1,h2,h3,h4,h5,h6) { font-weight: 400; letter-spacing: 0; }
|
|
287
|
+
:root[data-icen-style="pixel"] h1 { font-size: 48px; }
|
|
288
|
+
:root[data-icen-style="pixel"] :is(h2,h3) { font-size: 24px; }
|
|
289
|
+
:root[data-icen-style="pixel"] :is(button,input,select,textarea) { font-weight: 400; }
|
|
290
|
+
:root[data-icen-style="pixel"] .icen-segmented-item { border-radius: var(--icen-radius-md); }
|
|
291
|
+
:root[data-icen-style="pixel"] :is(.icen-switch,.icen-switch-thumb) { border-radius: var(--icen-radius-md); }
|
|
292
|
+
:root[data-icen-style="pixel"] :is(.icen-avatar,.icen-stat-icon) { border-radius: var(--icen-radius-md); }
|
|
293
|
+
/* Halftone is reserved for selected/structural surfaces, never under long text. */
|
|
294
|
+
:root[data-icen-style="pixel"] .icen-segmented {
|
|
295
|
+
background-color: var(--icen-token-bg-soft);
|
|
296
|
+
background-image: repeating-linear-gradient(135deg,transparent 0 2px,var(--icen-token-line-soft) 2px 3px,transparent 3px 5px);
|
|
297
|
+
}
|
|
298
|
+
:root[data-icen-style="pixel"] :is(.icen-toast,.icen-notification,.icen-tooltip,.icen-date-picker-panel,.icen-menu,.icen-popover) {
|
|
299
|
+
border: 2px solid var(--icen-token-line-strong);
|
|
300
|
+
box-shadow: var(--icen-token-shadow-elevated);
|
|
301
|
+
}
|
|
302
|
+
:root[data-icen-style="pixel"] :is(.icen-menu-item,.icen-select-option) { border-radius: var(--icen-radius-md); }
|
|
303
|
+
:root[data-icen-style="pixel"] :is(.icen-menu-item,.icen-select-option).is-focused {
|
|
304
|
+
outline: 2px solid var(--icen-token-accent);
|
|
305
|
+
outline-offset: -2px;
|
|
306
|
+
}
|
|
307
|
+
:root[data-icen-style="pixel"] :is(.icen-progress-track,.icen-slider-track) {
|
|
308
|
+
border: 1px solid var(--icen-token-line-strong);
|
|
309
|
+
border-radius: var(--icen-radius-md);
|
|
310
|
+
background-image: repeating-linear-gradient(90deg,transparent 0 3px,var(--icen-token-line-soft) 3px 4px);
|
|
311
|
+
}
|
|
312
|
+
/* Standalone outline, including when shadows disappear in forced colors. */
|
|
313
|
+
:root[data-icen-style="pixel"] :focus-visible { outline: 2px solid var(--icen-token-accent); outline-offset: 3px; }
|
|
314
|
+
@media (max-width: 640px) {
|
|
315
|
+
:root[data-icen-style="pixel"] h1 { font-size: 36px; }
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
}
|