decantr 0.9.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 +868 -0
- package/CHANGELOG.md +255 -0
- package/CLAUDE.md +178 -0
- package/LICENSE +21 -0
- package/README.md +229 -0
- package/cli/art.js +127 -0
- package/cli/commands/a11y.js +61 -0
- package/cli/commands/audit.js +225 -0
- package/cli/commands/build.js +38 -0
- package/cli/commands/dev.js +18 -0
- package/cli/commands/doctor.js +197 -0
- package/cli/commands/figma-sync.js +48 -0
- package/cli/commands/figma-tokens.js +55 -0
- package/cli/commands/generate.js +26 -0
- package/cli/commands/init.js +116 -0
- package/cli/commands/lint.js +209 -0
- package/cli/commands/mcp.js +530 -0
- package/cli/commands/migrate.js +175 -0
- package/cli/commands/test.js +38 -0
- package/cli/commands/validate.js +354 -0
- package/cli/index.js +113 -0
- package/package.json +95 -0
- package/reference/atoms.md +517 -0
- package/reference/behaviors.md +384 -0
- package/reference/build-tooling.md +275 -0
- package/reference/color-guidelines.md +965 -0
- package/reference/component-lifecycle.md +137 -0
- package/reference/compound-spacing.md +95 -0
- package/reference/decantation-process.md +499 -0
- package/reference/dev-server-routes.md +93 -0
- package/reference/form-system.md +253 -0
- package/reference/i18n.md +336 -0
- package/reference/icons.md +576 -0
- package/reference/llm-primer.md +953 -0
- package/reference/plugins.md +252 -0
- package/reference/registry-consumption.md +76 -0
- package/reference/router.md +217 -0
- package/reference/shells.md +116 -0
- package/reference/spatial-guidelines.md +541 -0
- package/reference/ssr.md +234 -0
- package/reference/state-data.md +215 -0
- package/reference/state-patterns.md +166 -0
- package/reference/state.md +194 -0
- package/reference/style-system.md +110 -0
- package/reference/tokens.md +460 -0
- package/src/app.js +19 -0
- package/src/chart/_animate.js +266 -0
- package/src/chart/_base.js +109 -0
- package/src/chart/_data.js +209 -0
- package/src/chart/_format.js +106 -0
- package/src/chart/_interact.js +364 -0
- package/src/chart/_palette.js +105 -0
- package/src/chart/_renderer.js +52 -0
- package/src/chart/_scene.js +262 -0
- package/src/chart/_shared.js +371 -0
- package/src/chart/index.js +637 -0
- package/src/chart/layouts/_layout-base.js +328 -0
- package/src/chart/layouts/cartesian.js +148 -0
- package/src/chart/layouts/hierarchy.js +562 -0
- package/src/chart/layouts/polar.js +101 -0
- package/src/chart/renderers/canvas.js +179 -0
- package/src/chart/renderers/svg.js +256 -0
- package/src/chart/renderers/webgpu.js +715 -0
- package/src/chart/types/_type-base.js +26 -0
- package/src/chart/types/area.js +134 -0
- package/src/chart/types/bar.js +173 -0
- package/src/chart/types/box-plot.js +125 -0
- package/src/chart/types/bubble.js +63 -0
- package/src/chart/types/candlestick.js +115 -0
- package/src/chart/types/chord.js +85 -0
- package/src/chart/types/combination.js +108 -0
- package/src/chart/types/funnel.js +68 -0
- package/src/chart/types/gauge.js +163 -0
- package/src/chart/types/heatmap.js +98 -0
- package/src/chart/types/histogram.js +71 -0
- package/src/chart/types/line.js +111 -0
- package/src/chart/types/org-chart.js +93 -0
- package/src/chart/types/pie.js +81 -0
- package/src/chart/types/radar.js +96 -0
- package/src/chart/types/radial.js +68 -0
- package/src/chart/types/range-area.js +55 -0
- package/src/chart/types/range-bar.js +61 -0
- package/src/chart/types/sankey.js +73 -0
- package/src/chart/types/scatter.js +66 -0
- package/src/chart/types/sparkline.js +81 -0
- package/src/chart/types/sunburst.js +69 -0
- package/src/chart/types/swimlane.js +88 -0
- package/src/chart/types/treemap.js +62 -0
- package/src/chart/types/waterfall.js +100 -0
- package/src/components/_base.js +1658 -0
- package/src/components/_behaviors.js +1140 -0
- package/src/components/_primitives.js +534 -0
- package/src/components/_qr-encoder.js +539 -0
- package/src/components/accordion.js +207 -0
- package/src/components/affix.js +62 -0
- package/src/components/alert-dialog.js +75 -0
- package/src/components/alert.js +47 -0
- package/src/components/aspect-ratio.js +24 -0
- package/src/components/avatar-group.js +55 -0
- package/src/components/avatar.js +38 -0
- package/src/components/back-top.js +75 -0
- package/src/components/badge.js +74 -0
- package/src/components/banner.js +68 -0
- package/src/components/breadcrumb.js +162 -0
- package/src/components/button.js +115 -0
- package/src/components/calendar.js +131 -0
- package/src/components/card.js +192 -0
- package/src/components/carousel.js +98 -0
- package/src/components/cascader.js +261 -0
- package/src/components/checkbox.js +80 -0
- package/src/components/chip.js +81 -0
- package/src/components/code-block.js +82 -0
- package/src/components/collapsible.js +50 -0
- package/src/components/color-palette.js +438 -0
- package/src/components/color-picker.js +314 -0
- package/src/components/combobox.js +181 -0
- package/src/components/command.js +174 -0
- package/src/components/comment.js +206 -0
- package/src/components/context-menu.js +76 -0
- package/src/components/data-table.js +724 -0
- package/src/components/date-picker.js +217 -0
- package/src/components/date-range-picker.js +244 -0
- package/src/components/datetime-picker.js +271 -0
- package/src/components/descriptions.js +68 -0
- package/src/components/drawer.js +179 -0
- package/src/components/dropdown.js +88 -0
- package/src/components/empty.js +41 -0
- package/src/components/float-button.js +90 -0
- package/src/components/form.js +106 -0
- package/src/components/hover-card.js +49 -0
- package/src/components/icon.js +87 -0
- package/src/components/image.js +97 -0
- package/src/components/index.js +117 -0
- package/src/components/input-group.js +75 -0
- package/src/components/input-number.js +155 -0
- package/src/components/input-otp.js +178 -0
- package/src/components/input.js +91 -0
- package/src/components/kbd.js +36 -0
- package/src/components/label.js +25 -0
- package/src/components/list.js +118 -0
- package/src/components/masked-input.js +236 -0
- package/src/components/mentions.js +165 -0
- package/src/components/menu.js +259 -0
- package/src/components/message.js +80 -0
- package/src/components/modal.js +147 -0
- package/src/components/navigation-menu.js +166 -0
- package/src/components/notification.js +84 -0
- package/src/components/pagination.js +104 -0
- package/src/components/placeholder.js +132 -0
- package/src/components/popconfirm.js +70 -0
- package/src/components/popover.js +58 -0
- package/src/components/progress.js +61 -0
- package/src/components/qrcode.js +251 -0
- package/src/components/radiogroup.js +120 -0
- package/src/components/range-slider.js +176 -0
- package/src/components/rate.js +186 -0
- package/src/components/resizable.js +83 -0
- package/src/components/result.js +57 -0
- package/src/components/scroll-area.js +43 -0
- package/src/components/segmented.js +97 -0
- package/src/components/select.js +165 -0
- package/src/components/separator.js +31 -0
- package/src/components/shell.js +407 -0
- package/src/components/skeleton.js +39 -0
- package/src/components/slider.js +141 -0
- package/src/components/sortable-list.js +176 -0
- package/src/components/space.js +42 -0
- package/src/components/spinner.js +112 -0
- package/src/components/splitter.js +147 -0
- package/src/components/statistic.js +136 -0
- package/src/components/steps.js +99 -0
- package/src/components/switch.js +95 -0
- package/src/components/table.js +44 -0
- package/src/components/tabs.js +216 -0
- package/src/components/tag.js +115 -0
- package/src/components/textarea.js +82 -0
- package/src/components/time-picker.js +153 -0
- package/src/components/time-range-picker.js +170 -0
- package/src/components/timeline.js +226 -0
- package/src/components/toast.js +71 -0
- package/src/components/toggle.js +213 -0
- package/src/components/tooltip.js +57 -0
- package/src/components/tour.js +159 -0
- package/src/components/transfer.js +163 -0
- package/src/components/tree-select.js +274 -0
- package/src/components/tree.js +141 -0
- package/src/components/typography.js +136 -0
- package/src/components/upload.js +118 -0
- package/src/components/visually-hidden.js +20 -0
- package/src/components/watermark.js +124 -0
- package/src/core/index.js +539 -0
- package/src/core/lifecycle.js +69 -0
- package/src/css/atoms.js +651 -0
- package/src/css/components.js +940 -0
- package/src/css/derive.js +1296 -0
- package/src/css/index.js +265 -0
- package/src/css/runtime.js +268 -0
- package/src/css/styles/addons/bioluminescent.js +93 -0
- package/src/css/styles/addons/clay.js +70 -0
- package/src/css/styles/addons/clean.js +57 -0
- package/src/css/styles/addons/command-center.js +143 -0
- package/src/css/styles/addons/dopamine.js +83 -0
- package/src/css/styles/addons/editorial.js +80 -0
- package/src/css/styles/addons/glassmorphism.js +99 -0
- package/src/css/styles/addons/liquid-glass.js +105 -0
- package/src/css/styles/addons/prismatic.js +100 -0
- package/src/css/styles/addons/retro.js +63 -0
- package/src/css/styles/auradecantism.js +96 -0
- package/src/css/theme-registry.js +444 -0
- package/src/data/entity.js +281 -0
- package/src/data/index.js +13 -0
- package/src/data/persist.js +225 -0
- package/src/data/query.js +839 -0
- package/src/data/realtime.js +299 -0
- package/src/data/url.js +177 -0
- package/src/data/worker.js +134 -0
- package/src/explorer/archetypes.js +243 -0
- package/src/explorer/atoms.js +228 -0
- package/src/explorer/charts.js +497 -0
- package/src/explorer/components.js +129 -0
- package/src/explorer/foundations.js +949 -0
- package/src/explorer/icons.js +178 -0
- package/src/explorer/patterns.js +247 -0
- package/src/explorer/recipes.js +194 -0
- package/src/explorer/shared/pattern-examples.js +1337 -0
- package/src/explorer/shared/showcase-renderer.js +958 -0
- package/src/explorer/shared/spec-table.js +41 -0
- package/src/explorer/shared/usage-links.js +87 -0
- package/src/explorer/shell-config.js +10 -0
- package/src/explorer/shells.js +551 -0
- package/src/explorer/styles.js +161 -0
- package/src/explorer/tokens.js +262 -0
- package/src/explorer/tools.js +525 -0
- package/src/form/index.js +804 -0
- package/src/i18n/index.js +251 -0
- package/src/icons/essential.js +479 -0
- package/src/icons/index.js +53 -0
- package/src/plugins/index.js +282 -0
- package/src/registry/archetypes/content-site.json +71 -0
- package/src/registry/archetypes/docs-explorer.json +23 -0
- package/src/registry/archetypes/ecommerce.json +104 -0
- package/src/registry/archetypes/financial-dashboard.json +77 -0
- package/src/registry/archetypes/index.json +41 -0
- package/src/registry/archetypes/portfolio.json +82 -0
- package/src/registry/archetypes/recipe-community.json +159 -0
- package/src/registry/archetypes/saas-dashboard.json +86 -0
- package/src/registry/architect/cross-cutting.json +45 -0
- package/src/registry/architect/domains/ecommerce.json +294 -0
- package/src/registry/architect/domains/financial-services.json +302 -0
- package/src/registry/architect/index.json +26 -0
- package/src/registry/architect/traits.json +379 -0
- package/src/registry/atoms.json +16 -0
- package/src/registry/chart-showcase.json +160 -0
- package/src/registry/chart.json +136 -0
- package/src/registry/components.json +8616 -0
- package/src/registry/core.json +216 -0
- package/src/registry/css.json +319 -0
- package/src/registry/data.json +135 -0
- package/src/registry/foundations.json +11 -0
- package/src/registry/icons.json +463 -0
- package/src/registry/index.json +101 -0
- package/src/registry/patterns/activity-feed.json +37 -0
- package/src/registry/patterns/article-content.json +27 -0
- package/src/registry/patterns/auth-form.json +37 -0
- package/src/registry/patterns/author-card.json +20 -0
- package/src/registry/patterns/card-grid.json +127 -0
- package/src/registry/patterns/category-nav.json +26 -0
- package/src/registry/patterns/chart-grid.json +36 -0
- package/src/registry/patterns/chat-interface.json +37 -0
- package/src/registry/patterns/checklist-card.json +55 -0
- package/src/registry/patterns/comparison-panel.json +27 -0
- package/src/registry/patterns/component-showcase.json +24 -0
- package/src/registry/patterns/contact-form.json +31 -0
- package/src/registry/patterns/cta-section.json +20 -0
- package/src/registry/patterns/data-table.json +37 -0
- package/src/registry/patterns/detail-header.json +83 -0
- package/src/registry/patterns/detail-panel.json +27 -0
- package/src/registry/patterns/explorer-shell.json +22 -0
- package/src/registry/patterns/filter-bar.json +33 -0
- package/src/registry/patterns/filter-sidebar.json +27 -0
- package/src/registry/patterns/form-sections.json +110 -0
- package/src/registry/patterns/goal-tracker.json +27 -0
- package/src/registry/patterns/hero.json +107 -0
- package/src/registry/patterns/index.json +47 -0
- package/src/registry/patterns/kpi-grid.json +36 -0
- package/src/registry/patterns/media-gallery.json +20 -0
- package/src/registry/patterns/order-history.json +20 -0
- package/src/registry/patterns/pagination.json +19 -0
- package/src/registry/patterns/photo-to-recipe.json +36 -0
- package/src/registry/patterns/pipeline-tracker.json +28 -0
- package/src/registry/patterns/post-list.json +27 -0
- package/src/registry/patterns/pricing-table.json +32 -0
- package/src/registry/patterns/scorecard.json +28 -0
- package/src/registry/patterns/search-bar.json +20 -0
- package/src/registry/patterns/specimen-grid.json +19 -0
- package/src/registry/patterns/stat-card.json +55 -0
- package/src/registry/patterns/stats-bar.json +55 -0
- package/src/registry/patterns/steps-card.json +55 -0
- package/src/registry/patterns/table-of-contents.json +19 -0
- package/src/registry/patterns/testimonials.json +21 -0
- package/src/registry/patterns/timeline.json +27 -0
- package/src/registry/patterns/token-inspector.json +21 -0
- package/src/registry/patterns/wizard.json +27 -0
- package/src/registry/recipe-auradecantism.json +69 -0
- package/src/registry/recipe-clean.json +65 -0
- package/src/registry/recipe-command-center.json +78 -0
- package/src/registry/router.json +73 -0
- package/src/registry/schema/README.md +197 -0
- package/src/registry/skeletons.json +259 -0
- package/src/registry/state.json +137 -0
- package/src/registry/tokens.json +40 -0
- package/src/router/hash.js +17 -0
- package/src/router/history.js +18 -0
- package/src/router/index.js +598 -0
- package/src/ssr/index.js +922 -0
- package/src/state/arrays.js +181 -0
- package/src/state/devtools.js +647 -0
- package/src/state/index.js +498 -0
- package/src/state/middleware.js +288 -0
- package/src/state/scheduler.js +206 -0
- package/src/state/store.js +300 -0
- package/src/tags/index.js +19 -0
- package/src/tannins/auth.js +396 -0
- package/src/test/dom.js +352 -0
- package/src/test/index.js +62 -0
- package/src/test/state.js +306 -0
- package/tools/a11y-audit.js +487 -0
- package/tools/analyzer.js +315 -0
- package/tools/audit.js +706 -0
- package/tools/builder.js +1422 -0
- package/tools/css-extract.js +188 -0
- package/tools/dev-server.js +316 -0
- package/tools/dts-gen.js +1260 -0
- package/tools/figma-components.js +329 -0
- package/tools/figma-patterns.js +516 -0
- package/tools/figma-plugin/code.js +453 -0
- package/tools/figma-plugin/manifest.json +14 -0
- package/tools/figma-plugin/ui.html +268 -0
- package/tools/figma-render.js +293 -0
- package/tools/figma-tokens.js +712 -0
- package/tools/figma-upload.js +318 -0
- package/tools/generate.js +738 -0
- package/tools/icons.js +133 -0
- package/tools/init-templates.js +265 -0
- package/tools/install-hooks.sh +5 -0
- package/tools/migrations/0.5.0.js +53 -0
- package/tools/migrations/0.6.0.js +95 -0
- package/tools/minify.js +170 -0
- package/tools/pre-commit +4 -0
- package/tools/registry.js +662 -0
- package/tools/reset-playground.js +61 -0
- package/tools/starter-templates/content-site/app.js +49 -0
- package/tools/starter-templates/content-site/essence.js +19 -0
- package/tools/starter-templates/content-site/pages.js +31 -0
- package/tools/starter-templates/ecommerce/app.js +50 -0
- package/tools/starter-templates/ecommerce/essence.js +19 -0
- package/tools/starter-templates/ecommerce/pages.js +31 -0
- package/tools/starter-templates/landing-page/app.js +38 -0
- package/tools/starter-templates/landing-page/essence.js +18 -0
- package/tools/starter-templates/landing-page/pages.js +21 -0
- package/tools/starter-templates/portfolio/app.js +45 -0
- package/tools/starter-templates/portfolio/essence.js +19 -0
- package/tools/starter-templates/portfolio/pages.js +33 -0
- package/tools/starter-templates/saas-dashboard/app.js +70 -0
- package/tools/starter-templates/saas-dashboard/essence.js +19 -0
- package/tools/starter-templates/saas-dashboard/pages.js +31 -0
- package/tools/verify-pack.js +203 -0
- package/types/chart.d.ts +77 -0
- package/types/components.d.ts +587 -0
- package/types/core.d.ts +89 -0
- package/types/css.d.ts +149 -0
- package/types/data.d.ts +238 -0
- package/types/form.d.ts +164 -0
- package/types/i18n.d.ts +51 -0
- package/types/icons.d.ts +27 -0
- package/types/index.d.ts +13 -0
- package/types/router.d.ts +116 -0
- package/types/ssr.d.ts +102 -0
- package/types/state.d.ts +83 -0
- package/types/tags.d.ts +62 -0
- package/types/tannins.d.ts +63 -0
- package/types/test.d.ts +48 -0
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Prismatic — Chromatic depth shifting. Iridescent, futuristic.
|
|
3
|
+
* Surfaces change hue as they layer deeper, creating a rainbow-depth effect.
|
|
4
|
+
* Each elevation level has a different hue tint.
|
|
5
|
+
*/
|
|
6
|
+
export const prismatic = {
|
|
7
|
+
id: 'prismatic',
|
|
8
|
+
name: 'Prismatic',
|
|
9
|
+
seed: {
|
|
10
|
+
primary: '#6366f1',
|
|
11
|
+
accent: '#ec4899',
|
|
12
|
+
tertiary: '#14b8a6',
|
|
13
|
+
neutral: '#71717a',
|
|
14
|
+
success: '#22c55e',
|
|
15
|
+
warning: '#f59e0b',
|
|
16
|
+
error: '#ef4444',
|
|
17
|
+
info: '#3b82f6',
|
|
18
|
+
bg: '#fafafa',
|
|
19
|
+
bgDark: '#0a0a0f',
|
|
20
|
+
},
|
|
21
|
+
personality: {
|
|
22
|
+
radius: 'rounded',
|
|
23
|
+
elevation: 'raised',
|
|
24
|
+
motion: 'smooth',
|
|
25
|
+
borders: 'thin',
|
|
26
|
+
density: 'comfortable',
|
|
27
|
+
gradient: 'vivid',
|
|
28
|
+
},
|
|
29
|
+
typography: {
|
|
30
|
+
'--d-fw-heading': '700',
|
|
31
|
+
'--d-fw-title': '600',
|
|
32
|
+
'--d-ls-heading': '0',
|
|
33
|
+
},
|
|
34
|
+
overrides: {
|
|
35
|
+
light: {
|
|
36
|
+
// Hue-shifted surfaces — each depth has a different tint
|
|
37
|
+
'--d-surface-0': '#fafafa',
|
|
38
|
+
'--d-surface-1': 'rgba(99,102,241,0.04)',
|
|
39
|
+
'--d-surface-1-fg': '#1a1a2e',
|
|
40
|
+
'--d-surface-2': 'rgba(236,72,153,0.05)',
|
|
41
|
+
'--d-surface-2-fg': '#1a1a2e',
|
|
42
|
+
'--d-surface-3': 'rgba(20,184,166,0.06)',
|
|
43
|
+
'--d-surface-3-fg': '#1a1a2e',
|
|
44
|
+
'--d-field-bg': 'rgba(255,255,255,0.8)',
|
|
45
|
+
'--d-field-border': 'rgba(99,102,241,0.15)',
|
|
46
|
+
'--d-field-border-hover': 'rgba(99,102,241,0.3)',
|
|
47
|
+
'--d-item-hover-bg': 'rgba(99,102,241,0.05)',
|
|
48
|
+
},
|
|
49
|
+
dark: {
|
|
50
|
+
// Hue-shifted surfaces — dark mode
|
|
51
|
+
'--d-surface-0': '#0a0a0f',
|
|
52
|
+
'--d-surface-1': 'rgba(99,102,241,0.08)',
|
|
53
|
+
'--d-surface-1-fg': '#e8e8f0',
|
|
54
|
+
'--d-surface-2': 'rgba(236,72,153,0.08)',
|
|
55
|
+
'--d-surface-2-fg': '#e8e8f0',
|
|
56
|
+
'--d-surface-3': 'rgba(20,184,166,0.08)',
|
|
57
|
+
'--d-surface-3-fg': '#e8e8f0',
|
|
58
|
+
'--d-border': 'rgba(99,102,241,0.12)',
|
|
59
|
+
'--d-border-strong': 'rgba(99,102,241,0.22)',
|
|
60
|
+
'--d-field-bg': 'rgba(255,255,255,0.04)',
|
|
61
|
+
'--d-field-border': 'rgba(99,102,241,0.15)',
|
|
62
|
+
'--d-field-border-hover': 'rgba(99,102,241,0.3)',
|
|
63
|
+
'--d-item-hover-bg': 'rgba(255,255,255,0.05)',
|
|
64
|
+
'--d-chart-0': '#6366f1',
|
|
65
|
+
'--d-chart-1': '#ec4899',
|
|
66
|
+
'--d-chart-2': '#14b8a6',
|
|
67
|
+
'--d-chart-3': '#f59e0b',
|
|
68
|
+
'--d-chart-4': '#ef4444',
|
|
69
|
+
'--d-chart-5': '#8b5cf6',
|
|
70
|
+
'--d-chart-6': '#06b6d4',
|
|
71
|
+
'--d-chart-7': '#f97316',
|
|
72
|
+
},
|
|
73
|
+
},
|
|
74
|
+
components: [
|
|
75
|
+
'body{font-family:var(--d-font);background:var(--d-bg);color:var(--d-fg);line-height:var(--d-lh-normal);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizeLegibility}',
|
|
76
|
+
'::selection{background:var(--d-selection-bg);color:var(--d-selection-fg)}',
|
|
77
|
+
// Scrollbar — iridescent gradient thumb
|
|
78
|
+
'::-webkit-scrollbar{width:6px;height:6px}',
|
|
79
|
+
'::-webkit-scrollbar-track{background:transparent}',
|
|
80
|
+
'::-webkit-scrollbar-thumb{background:linear-gradient(180deg,var(--d-primary),var(--d-accent),var(--d-tertiary));border-radius:var(--d-radius-full)}',
|
|
81
|
+
'::-webkit-scrollbar-thumb:hover{background:linear-gradient(180deg,var(--d-accent),var(--d-tertiary),var(--d-primary))}',
|
|
82
|
+
// Card — chromatic border based on depth
|
|
83
|
+
'.d-card{border:var(--d-border-width) solid rgba(99,102,241,0.15);box-shadow:var(--d-elevation-1)}',
|
|
84
|
+
'.d-card-inner{border:var(--d-border-width) solid rgba(99,102,241,0.08);box-shadow:none}',
|
|
85
|
+
// Modal — gradient border
|
|
86
|
+
'.d-modal-content{border:var(--d-border-width) solid rgba(236,72,153,0.15);box-shadow:var(--d-elevation-3)}',
|
|
87
|
+
// Button — indigo glow
|
|
88
|
+
'.d-btn-primary{box-shadow:0 0 12px rgba(99,102,241,0.2)}',
|
|
89
|
+
'.d-btn-primary:hover{box-shadow:0 0 20px rgba(99,102,241,0.35)}',
|
|
90
|
+
// Prismatic utilities
|
|
91
|
+
'.d-prismatic-shift{transition:filter var(--d-tr-normal) var(--d-ease-standard)}',
|
|
92
|
+
'.d-prismatic-shift:hover{filter:hue-rotate(30deg)}',
|
|
93
|
+
'.d-prismatic-border{border-image:linear-gradient(135deg,var(--d-primary),var(--d-accent),var(--d-tertiary)) 1}',
|
|
94
|
+
// Gradient text
|
|
95
|
+
'.d-gradient-text{background:linear-gradient(135deg,var(--d-primary),var(--d-accent),var(--d-tertiary));-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}',
|
|
96
|
+
'.d-gradient-text-alt{background:linear-gradient(135deg,var(--d-accent),var(--d-tertiary));-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}',
|
|
97
|
+
// Mesh — iridescent
|
|
98
|
+
'.d-mesh{background:radial-gradient(ellipse at 20% 50%,rgba(99,102,241,0.1) 0%,transparent 50%),radial-gradient(ellipse at 80% 20%,rgba(236,72,153,0.08) 0%,transparent 50%),radial-gradient(ellipse at 50% 80%,rgba(20,184,166,0.06) 0%,transparent 50%),var(--d-bg)}',
|
|
99
|
+
].join(''),
|
|
100
|
+
};
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Retro Style — Neobrutalism. Bold borders, offset shadows, sharp corners, snappy motion.
|
|
3
|
+
* Opinionated and distinctive. Everything feels physical and tactile.
|
|
4
|
+
*
|
|
5
|
+
* Personality: sharp + brutalist elevation + snappy motion + bold borders + no gradients
|
|
6
|
+
* Works in both light and dark mode from the same definition.
|
|
7
|
+
*/
|
|
8
|
+
export const retro = {
|
|
9
|
+
id: 'retro',
|
|
10
|
+
name: 'Retro',
|
|
11
|
+
seed: {
|
|
12
|
+
primary: '#e63946',
|
|
13
|
+
accent: '#457b9d',
|
|
14
|
+
tertiary: '#2a9d8f',
|
|
15
|
+
neutral: '#6b7280',
|
|
16
|
+
success: '#1a7a42',
|
|
17
|
+
warning: '#e06600',
|
|
18
|
+
error: '#c41e1e',
|
|
19
|
+
info: '#2e6b8a',
|
|
20
|
+
bg: '#fffef5',
|
|
21
|
+
bgDark: '#1a1a1a',
|
|
22
|
+
},
|
|
23
|
+
personality: {
|
|
24
|
+
radius: 'sharp',
|
|
25
|
+
elevation: 'brutalist',
|
|
26
|
+
motion: 'snappy',
|
|
27
|
+
borders: 'bold',
|
|
28
|
+
density: 'comfortable',
|
|
29
|
+
gradient: 'none',
|
|
30
|
+
},
|
|
31
|
+
/** Typography overrides — retro uses heavier weights and wider letter spacing */
|
|
32
|
+
typography: {
|
|
33
|
+
'--d-fw-heading': '800',
|
|
34
|
+
'--d-fw-title': '800',
|
|
35
|
+
'--d-fw-medium': '700',
|
|
36
|
+
'--d-ls-heading': '0.05em',
|
|
37
|
+
},
|
|
38
|
+
overrides: {
|
|
39
|
+
light: {
|
|
40
|
+
'--d-field-border-width': 'var(--d-border-width-strong)',
|
|
41
|
+
},
|
|
42
|
+
dark: {
|
|
43
|
+
'--d-bg': '#1a1a1a',
|
|
44
|
+
'--d-field-border-width': 'var(--d-border-width-strong)',
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
/** Component CSS — only for effects that tokens alone can't express */
|
|
48
|
+
components: [
|
|
49
|
+
// Global
|
|
50
|
+
'body{font-family:var(--d-font);background:var(--d-bg);color:var(--d-fg);line-height:var(--d-lh-normal);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizeLegibility}',
|
|
51
|
+
'::selection{background:var(--d-primary);color:var(--d-primary-fg)}',
|
|
52
|
+
// Neobrutalist uppercase accents
|
|
53
|
+
'.d-btn{text-transform:uppercase;letter-spacing:0.05em}',
|
|
54
|
+
'.d-badge,.d-badge-sup{text-transform:uppercase;letter-spacing:0.05em}',
|
|
55
|
+
'.d-chip{text-transform:uppercase;letter-spacing:0.03em}',
|
|
56
|
+
// Retro-specific keyframes
|
|
57
|
+
'@keyframes d-drop-in{from{opacity:0;transform:translateY(-20px)}to{opacity:1;transform:translateY(0)}}',
|
|
58
|
+
// Bold scrollbar
|
|
59
|
+
'::-webkit-scrollbar{width:10px;height:10px}',
|
|
60
|
+
'::-webkit-scrollbar-track{background:var(--d-surface-0);border:var(--d-border-width) var(--d-border-style) var(--d-border)}',
|
|
61
|
+
'::-webkit-scrollbar-thumb{background:var(--d-fg);border:var(--d-border-width) var(--d-border-style) var(--d-border)}',
|
|
62
|
+
].join(''),
|
|
63
|
+
};
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Auradecantism — Decantr's signature design style.
|
|
3
|
+
* Dark glass aesthetic with vibrant purple/cyan/pink palette,
|
|
4
|
+
* mesh gradient backgrounds, and luminous glow effects.
|
|
5
|
+
* Default style for all Decantr implementations.
|
|
6
|
+
*/
|
|
7
|
+
export const auradecantism = {
|
|
8
|
+
id: 'auradecantism',
|
|
9
|
+
name: 'Auradecantism',
|
|
10
|
+
seed: {
|
|
11
|
+
primary: '#FE4474',
|
|
12
|
+
accent: '#0AF3EB',
|
|
13
|
+
tertiary: '#6500C6',
|
|
14
|
+
neutral: '#8892a4',
|
|
15
|
+
success: '#00C388',
|
|
16
|
+
warning: '#FDA303',
|
|
17
|
+
error: '#EF233C',
|
|
18
|
+
info: '#0AF3EB',
|
|
19
|
+
bg: '#f0f4ff',
|
|
20
|
+
bgDark: '#060918',
|
|
21
|
+
},
|
|
22
|
+
personality: {
|
|
23
|
+
radius: 'pill',
|
|
24
|
+
elevation: 'glass',
|
|
25
|
+
motion: 'bouncy',
|
|
26
|
+
borders: 'thin',
|
|
27
|
+
density: 'comfortable',
|
|
28
|
+
gradient: 'vivid',
|
|
29
|
+
},
|
|
30
|
+
typography: {
|
|
31
|
+
'--d-fw-heading': '800',
|
|
32
|
+
'--d-fw-title': '700',
|
|
33
|
+
'--d-ls-heading': '-0.03em',
|
|
34
|
+
},
|
|
35
|
+
overrides: {
|
|
36
|
+
light: {
|
|
37
|
+
'--d-surface-1-filter': 'blur(16px) saturate(1.6)',
|
|
38
|
+
'--d-surface-2-filter': 'blur(20px) saturate(1.8)',
|
|
39
|
+
'--d-surface-3-filter': 'blur(24px) saturate(2)',
|
|
40
|
+
'--d-field-bg': 'rgba(255,255,255,0.5)',
|
|
41
|
+
'--d-field-border': 'rgba(0,0,0,0.12)',
|
|
42
|
+
'--d-field-border-hover': 'rgba(0,0,0,0.22)',
|
|
43
|
+
'--d-item-hover-bg': 'rgba(0,0,0,0.06)',
|
|
44
|
+
},
|
|
45
|
+
dark: {
|
|
46
|
+
'--d-surface-1': 'rgba(12,15,40,0.55)',
|
|
47
|
+
'--d-surface-2': 'rgba(12,15,40,0.7)',
|
|
48
|
+
'--d-surface-3': 'rgba(12,15,40,0.8)',
|
|
49
|
+
'--d-surface-1-filter': 'blur(16px) saturate(1.6)',
|
|
50
|
+
'--d-surface-2-filter': 'blur(20px) saturate(1.8)',
|
|
51
|
+
'--d-surface-3-filter': 'blur(24px) saturate(2)',
|
|
52
|
+
'--d-border': 'rgba(255,255,255,0.08)',
|
|
53
|
+
'--d-border-strong': 'rgba(255,255,255,0.15)',
|
|
54
|
+
'--d-field-bg': 'rgba(255,255,255,0.04)',
|
|
55
|
+
'--d-field-border': 'rgba(255,255,255,0.08)',
|
|
56
|
+
'--d-field-border-hover': 'rgba(255,255,255,0.15)',
|
|
57
|
+
'--d-item-hover-bg': 'rgba(255,255,255,0.06)',
|
|
58
|
+
'--d-chart-0': '#FE4474',
|
|
59
|
+
'--d-chart-1': '#0AF3EB',
|
|
60
|
+
'--d-chart-2': '#6500C6',
|
|
61
|
+
'--d-chart-3': '#00C388',
|
|
62
|
+
'--d-chart-4': '#FDA303',
|
|
63
|
+
'--d-chart-5': '#EF233C',
|
|
64
|
+
'--d-chart-6': '#8B5CF6',
|
|
65
|
+
'--d-chart-7': '#38BDF8',
|
|
66
|
+
},
|
|
67
|
+
},
|
|
68
|
+
components: [
|
|
69
|
+
// Body + selection + font smoothing
|
|
70
|
+
'body{font-family:var(--d-font);background:var(--d-bg);color:var(--d-fg);line-height:var(--d-lh-normal);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizeLegibility}',
|
|
71
|
+
'::selection{background:var(--d-selection-bg);color:var(--d-selection-fg)}',
|
|
72
|
+
// Scrollbar
|
|
73
|
+
'::-webkit-scrollbar{width:6px;height:6px}',
|
|
74
|
+
'::-webkit-scrollbar-track{background:transparent}',
|
|
75
|
+
'::-webkit-scrollbar-thumb{background:var(--d-primary-border);border-radius:var(--d-radius-full)}',
|
|
76
|
+
'::-webkit-scrollbar-thumb:hover{background:var(--d-primary-hover)}',
|
|
77
|
+
// Glass card enhancements
|
|
78
|
+
'.d-card{border:var(--d-border-width) solid rgba(255,255,255,0.1);box-shadow:var(--d-elevation-1),inset 0 1px 0 rgba(255,255,255,0.06)}',
|
|
79
|
+
'.d-card-inner{border:var(--d-border-width) solid rgba(255,255,255,0.06);box-shadow:none}',
|
|
80
|
+
'.d-modal-panel{border:var(--d-border-width) solid rgba(255,255,255,0.12);box-shadow:var(--d-elevation-3),inset 0 1px 0 rgba(255,255,255,0.08)}',
|
|
81
|
+
// Button glow
|
|
82
|
+
'.d-btn-primary{box-shadow:0 0 12px rgba(254,68,116,0.25)}',
|
|
83
|
+
'.d-btn-primary:hover{box-shadow:0 0 20px rgba(254,68,116,0.4)}',
|
|
84
|
+
// Mesh gradient background utility
|
|
85
|
+
'.d-mesh{background:radial-gradient(ellipse at 20% 50%,rgba(254,68,116,0.15) 0%,transparent 50%),radial-gradient(ellipse at 80% 20%,rgba(10,243,235,0.1) 0%,transparent 50%),radial-gradient(ellipse at 60% 80%,rgba(101,0,198,0.08) 0%,transparent 50%),var(--d-bg)}',
|
|
86
|
+
// Gradient text utilities
|
|
87
|
+
'.d-gradient-text{background:linear-gradient(135deg,var(--d-primary),var(--d-accent),var(--d-tertiary));-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}',
|
|
88
|
+
'.d-gradient-text-alt{background:linear-gradient(135deg,var(--d-accent),var(--d-primary));-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}',
|
|
89
|
+
// Glass panel utilities
|
|
90
|
+
'.d-glass-subtle{background:var(--d-surface-1);backdrop-filter:var(--d-surface-1-filter);-webkit-backdrop-filter:var(--d-surface-1-filter);border:var(--d-border-width) solid rgba(255,255,255,0.05);border-radius:var(--d-radius-lg);box-shadow:var(--d-elevation-0)}',
|
|
91
|
+
'.d-glass{background:var(--d-surface-1);backdrop-filter:var(--d-surface-1-filter);-webkit-backdrop-filter:var(--d-surface-1-filter);border:var(--d-border-width) solid rgba(255,255,255,0.1);border-radius:var(--d-radius-lg);box-shadow:var(--d-elevation-1),inset 0 1px 0 rgba(255,255,255,0.06)}',
|
|
92
|
+
'.d-glass-strong{background:var(--d-surface-2);backdrop-filter:var(--d-surface-2-filter);-webkit-backdrop-filter:var(--d-surface-2-filter);border:var(--d-border-width) solid rgba(255,255,255,0.12);border-radius:var(--d-radius-lg);box-shadow:var(--d-elevation-2),inset 0 1px 0 rgba(255,255,255,0.08)}',
|
|
93
|
+
// Frosted-glass dialog backdrops
|
|
94
|
+
'dialog::backdrop{background:rgba(6,9,24,0.45);backdrop-filter:blur(16px) saturate(1.6);-webkit-backdrop-filter:blur(16px) saturate(1.6)}',
|
|
95
|
+
].join(''),
|
|
96
|
+
};
|