rafters 0.0.63 → 0.0.64
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/dist/index.js +304 -275
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -24290,16 +24290,16 @@ var DEFAULT_SEMANTIC_COLOR_MAPPINGS = {
|
|
|
24290
24290
|
// CORE SURFACE TOKENS (shadcn compatible)
|
|
24291
24291
|
// ============================================================================
|
|
24292
24292
|
background: {
|
|
24293
|
-
light: { family: "
|
|
24294
|
-
dark: { family: "
|
|
24293
|
+
light: { family: "neutral", position: "50" },
|
|
24294
|
+
dark: { family: "neutral", position: "950" },
|
|
24295
24295
|
meaning: "Primary page background color",
|
|
24296
24296
|
contexts: ["page-bg", "app-background"],
|
|
24297
24297
|
do: ["Use for main page background"],
|
|
24298
24298
|
never: ["Use for interactive elements"]
|
|
24299
24299
|
},
|
|
24300
24300
|
foreground: {
|
|
24301
|
-
light: { family: "
|
|
24302
|
-
dark: { family: "
|
|
24301
|
+
light: { family: "neutral", position: "950" },
|
|
24302
|
+
dark: { family: "neutral", position: "50" },
|
|
24303
24303
|
meaning: "Primary text color",
|
|
24304
24304
|
contexts: ["body-text", "headings", "primary-content"],
|
|
24305
24305
|
do: ["Use for main text content", "Use for headings"],
|
|
@@ -24307,32 +24307,32 @@ var DEFAULT_SEMANTIC_COLOR_MAPPINGS = {
|
|
|
24307
24307
|
},
|
|
24308
24308
|
// Card surfaces
|
|
24309
24309
|
card: {
|
|
24310
|
-
light: { family: "
|
|
24311
|
-
dark: { family: "
|
|
24310
|
+
light: { family: "neutral", position: "50" },
|
|
24311
|
+
dark: { family: "neutral", position: "950" },
|
|
24312
24312
|
meaning: "Card and contained surface background",
|
|
24313
24313
|
contexts: ["cards", "modals", "dialogs", "panels"],
|
|
24314
24314
|
do: ["Use for elevated surfaces"],
|
|
24315
24315
|
never: ["Use for page-level backgrounds"]
|
|
24316
24316
|
},
|
|
24317
24317
|
"card-foreground": {
|
|
24318
|
-
light: { family: "
|
|
24319
|
-
dark: { family: "
|
|
24318
|
+
light: { family: "neutral", position: "950" },
|
|
24319
|
+
dark: { family: "neutral", position: "50" },
|
|
24320
24320
|
meaning: "Text on card surfaces",
|
|
24321
24321
|
contexts: ["card-text", "modal-text"],
|
|
24322
24322
|
do: ["Use for text within cards"],
|
|
24323
24323
|
never: ["Use without card background"]
|
|
24324
24324
|
},
|
|
24325
24325
|
"card-hover": {
|
|
24326
|
-
light: { family: "
|
|
24327
|
-
dark: { family: "
|
|
24326
|
+
light: { family: "neutral", position: "100" },
|
|
24327
|
+
dark: { family: "neutral", position: "900" },
|
|
24328
24328
|
meaning: "Card hover state background",
|
|
24329
24329
|
contexts: ["card-hover"],
|
|
24330
24330
|
do: ["Use for card hover states"],
|
|
24331
24331
|
never: ["Use as default card background"]
|
|
24332
24332
|
},
|
|
24333
24333
|
"card-border": {
|
|
24334
|
-
light: { family: "
|
|
24335
|
-
dark: { family: "
|
|
24334
|
+
light: { family: "neutral", position: "200" },
|
|
24335
|
+
dark: { family: "neutral", position: "800" },
|
|
24336
24336
|
meaning: "Card border color",
|
|
24337
24337
|
contexts: ["card-borders"],
|
|
24338
24338
|
do: ["Use for card borders"],
|
|
@@ -24340,24 +24340,24 @@ var DEFAULT_SEMANTIC_COLOR_MAPPINGS = {
|
|
|
24340
24340
|
},
|
|
24341
24341
|
// Popover surfaces
|
|
24342
24342
|
popover: {
|
|
24343
|
-
light: { family: "
|
|
24344
|
-
dark: { family: "
|
|
24343
|
+
light: { family: "neutral", position: "50" },
|
|
24344
|
+
dark: { family: "neutral", position: "950" },
|
|
24345
24345
|
meaning: "Popover and dropdown background",
|
|
24346
24346
|
contexts: ["dropdowns", "tooltips", "menus"],
|
|
24347
24347
|
do: ["Use for floating elements"],
|
|
24348
24348
|
never: ["Use for static content"]
|
|
24349
24349
|
},
|
|
24350
24350
|
"popover-foreground": {
|
|
24351
|
-
light: { family: "
|
|
24352
|
-
dark: { family: "
|
|
24351
|
+
light: { family: "neutral", position: "950" },
|
|
24352
|
+
dark: { family: "neutral", position: "50" },
|
|
24353
24353
|
meaning: "Text in popovers",
|
|
24354
24354
|
contexts: ["dropdown-text", "menu-text"],
|
|
24355
24355
|
do: ["Use for popover content"],
|
|
24356
24356
|
never: ["Use outside floating elements"]
|
|
24357
24357
|
},
|
|
24358
24358
|
"popover-border": {
|
|
24359
|
-
light: { family: "
|
|
24360
|
-
dark: { family: "
|
|
24359
|
+
light: { family: "neutral", position: "200" },
|
|
24360
|
+
dark: { family: "neutral", position: "800" },
|
|
24361
24361
|
meaning: "Popover border color",
|
|
24362
24362
|
contexts: ["popover-borders"],
|
|
24363
24363
|
do: ["Use for popover borders"],
|
|
@@ -24365,40 +24365,40 @@ var DEFAULT_SEMANTIC_COLOR_MAPPINGS = {
|
|
|
24365
24365
|
},
|
|
24366
24366
|
// Generic surface
|
|
24367
24367
|
surface: {
|
|
24368
|
-
light: { family: "
|
|
24369
|
-
dark: { family: "
|
|
24368
|
+
light: { family: "neutral", position: "50" },
|
|
24369
|
+
dark: { family: "neutral", position: "900" },
|
|
24370
24370
|
meaning: "Elevated surface background",
|
|
24371
24371
|
contexts: ["elevated-elements"],
|
|
24372
24372
|
do: ["Use for elevated surfaces"],
|
|
24373
24373
|
never: ["Use for page background"]
|
|
24374
24374
|
},
|
|
24375
24375
|
"surface-foreground": {
|
|
24376
|
-
light: { family: "
|
|
24377
|
-
dark: { family: "
|
|
24376
|
+
light: { family: "neutral", position: "950" },
|
|
24377
|
+
dark: { family: "neutral", position: "50" },
|
|
24378
24378
|
meaning: "Text on surface backgrounds",
|
|
24379
24379
|
contexts: ["surface-text"],
|
|
24380
24380
|
do: ["Use for text on surfaces"],
|
|
24381
24381
|
never: ["Use without surface background"]
|
|
24382
24382
|
},
|
|
24383
24383
|
"surface-hover": {
|
|
24384
|
-
light: { family: "
|
|
24385
|
-
dark: { family: "
|
|
24384
|
+
light: { family: "neutral", position: "100" },
|
|
24385
|
+
dark: { family: "neutral", position: "800" },
|
|
24386
24386
|
meaning: "Surface hover state",
|
|
24387
24387
|
contexts: ["surface-hover"],
|
|
24388
24388
|
do: ["Use for surface hover states"],
|
|
24389
24389
|
never: ["Use as default surface"]
|
|
24390
24390
|
},
|
|
24391
24391
|
"surface-active": {
|
|
24392
|
-
light: { family: "
|
|
24393
|
-
dark: { family: "
|
|
24392
|
+
light: { family: "neutral", position: "200" },
|
|
24393
|
+
dark: { family: "neutral", position: "700" },
|
|
24394
24394
|
meaning: "Surface active/pressed state",
|
|
24395
24395
|
contexts: ["surface-active"],
|
|
24396
24396
|
do: ["Use for active surface states"],
|
|
24397
24397
|
never: ["Use for hover states"]
|
|
24398
24398
|
},
|
|
24399
24399
|
"surface-border": {
|
|
24400
|
-
light: { family: "
|
|
24401
|
-
dark: { family: "
|
|
24400
|
+
light: { family: "neutral", position: "200" },
|
|
24401
|
+
dark: { family: "neutral", position: "800" },
|
|
24402
24402
|
meaning: "Surface border color",
|
|
24403
24403
|
contexts: ["surface-borders"],
|
|
24404
24404
|
do: ["Use for surface borders"],
|
|
@@ -24408,8 +24408,8 @@ var DEFAULT_SEMANTIC_COLOR_MAPPINGS = {
|
|
|
24408
24408
|
// PRIMARY - Main brand/action color (shadcn compatible + extended)
|
|
24409
24409
|
// ============================================================================
|
|
24410
24410
|
primary: {
|
|
24411
|
-
light: { family: "
|
|
24412
|
-
dark: { family: "
|
|
24411
|
+
light: { family: "neutral", position: "900" },
|
|
24412
|
+
dark: { family: "neutral", position: "50" },
|
|
24413
24413
|
meaning: "Primary interactive elements - buttons, links, focus states",
|
|
24414
24414
|
contexts: ["primary-buttons", "links", "active-states"],
|
|
24415
24415
|
do: ["Use for main CTA buttons", "Use for primary links"],
|
|
@@ -24418,80 +24418,80 @@ var DEFAULT_SEMANTIC_COLOR_MAPPINGS = {
|
|
|
24418
24418
|
consequence: "reversible"
|
|
24419
24419
|
},
|
|
24420
24420
|
"primary-foreground": {
|
|
24421
|
-
light: { family: "
|
|
24422
|
-
dark: { family: "
|
|
24421
|
+
light: { family: "neutral", position: "50" },
|
|
24422
|
+
dark: { family: "neutral", position: "900" },
|
|
24423
24423
|
meaning: "Text on primary color backgrounds",
|
|
24424
24424
|
contexts: ["button-text", "primary-action-text"],
|
|
24425
24425
|
do: ["Use for text on primary buttons"],
|
|
24426
24426
|
never: ["Use without primary background"]
|
|
24427
24427
|
},
|
|
24428
24428
|
"primary-hover": {
|
|
24429
|
-
light: { family: "
|
|
24430
|
-
dark: { family: "
|
|
24429
|
+
light: { family: "neutral", position: "800" },
|
|
24430
|
+
dark: { family: "neutral", position: "200" },
|
|
24431
24431
|
meaning: "Primary hover state",
|
|
24432
24432
|
contexts: ["primary-hover"],
|
|
24433
24433
|
do: ["Use for primary button hover"],
|
|
24434
24434
|
never: ["Use as default primary"]
|
|
24435
24435
|
},
|
|
24436
24436
|
"primary-hover-foreground": {
|
|
24437
|
-
light: { family: "
|
|
24438
|
-
dark: { family: "
|
|
24437
|
+
light: { family: "neutral", position: "50" },
|
|
24438
|
+
dark: { family: "neutral", position: "900" },
|
|
24439
24439
|
meaning: "Text on primary hover",
|
|
24440
24440
|
contexts: ["primary-hover-text"],
|
|
24441
24441
|
do: ["Use for text on primary hover"],
|
|
24442
24442
|
never: ["Use without primary-hover background"]
|
|
24443
24443
|
},
|
|
24444
24444
|
"primary-active": {
|
|
24445
|
-
light: { family: "
|
|
24446
|
-
dark: { family: "
|
|
24445
|
+
light: { family: "neutral", position: "700" },
|
|
24446
|
+
dark: { family: "neutral", position: "300" },
|
|
24447
24447
|
meaning: "Primary active/pressed state",
|
|
24448
24448
|
contexts: ["primary-active"],
|
|
24449
24449
|
do: ["Use for primary button active state"],
|
|
24450
24450
|
never: ["Use for hover states"]
|
|
24451
24451
|
},
|
|
24452
24452
|
"primary-active-foreground": {
|
|
24453
|
-
light: { family: "
|
|
24454
|
-
dark: { family: "
|
|
24453
|
+
light: { family: "neutral", position: "50" },
|
|
24454
|
+
dark: { family: "neutral", position: "900" },
|
|
24455
24455
|
meaning: "Text on primary active",
|
|
24456
24456
|
contexts: ["primary-active-text"],
|
|
24457
24457
|
do: ["Use for text on primary active"],
|
|
24458
24458
|
never: ["Use without primary-active background"]
|
|
24459
24459
|
},
|
|
24460
24460
|
"primary-focus": {
|
|
24461
|
-
light: { family: "
|
|
24462
|
-
dark: { family: "
|
|
24461
|
+
light: { family: "neutral", position: "900" },
|
|
24462
|
+
dark: { family: "neutral", position: "50" },
|
|
24463
24463
|
meaning: "Primary focus state",
|
|
24464
24464
|
contexts: ["primary-focus"],
|
|
24465
24465
|
do: ["Use for primary focus states"],
|
|
24466
24466
|
never: ["Use for non-focused elements"]
|
|
24467
24467
|
},
|
|
24468
24468
|
"primary-border": {
|
|
24469
|
-
light: { family: "
|
|
24470
|
-
dark: { family: "
|
|
24469
|
+
light: { family: "neutral", position: "900" },
|
|
24470
|
+
dark: { family: "neutral", position: "50" },
|
|
24471
24471
|
meaning: "Primary border color",
|
|
24472
24472
|
contexts: ["primary-borders"],
|
|
24473
24473
|
do: ["Use for primary element borders"],
|
|
24474
24474
|
never: ["Use for neutral borders"]
|
|
24475
24475
|
},
|
|
24476
24476
|
"primary-ring": {
|
|
24477
|
-
light: { family: "
|
|
24478
|
-
dark: { family: "
|
|
24477
|
+
light: { family: "neutral", position: "900" },
|
|
24478
|
+
dark: { family: "neutral", position: "50" },
|
|
24479
24479
|
meaning: "Primary focus ring color",
|
|
24480
24480
|
contexts: ["primary-focus-ring"],
|
|
24481
24481
|
do: ["Use for primary element focus rings"],
|
|
24482
24482
|
never: ["Use for decorative rings"]
|
|
24483
24483
|
},
|
|
24484
24484
|
"primary-subtle": {
|
|
24485
|
-
light: { family: "
|
|
24486
|
-
dark: { family: "
|
|
24485
|
+
light: { family: "neutral", position: "100" },
|
|
24486
|
+
dark: { family: "neutral", position: "900" },
|
|
24487
24487
|
meaning: "Subtle primary background for badges/alerts",
|
|
24488
24488
|
contexts: ["primary-badges", "primary-alerts"],
|
|
24489
24489
|
do: ["Use for subtle primary backgrounds"],
|
|
24490
24490
|
never: ["Use for primary buttons"]
|
|
24491
24491
|
},
|
|
24492
24492
|
"primary-subtle-foreground": {
|
|
24493
|
-
light: { family: "
|
|
24494
|
-
dark: { family: "
|
|
24493
|
+
light: { family: "neutral", position: "900" },
|
|
24494
|
+
dark: { family: "neutral", position: "100" },
|
|
24495
24495
|
meaning: "Text on subtle primary backgrounds",
|
|
24496
24496
|
contexts: ["primary-subtle-text"],
|
|
24497
24497
|
do: ["Use for text on subtle primary"],
|
|
@@ -24501,8 +24501,8 @@ var DEFAULT_SEMANTIC_COLOR_MAPPINGS = {
|
|
|
24501
24501
|
// SECONDARY - Alternative action color (shadcn compatible + extended)
|
|
24502
24502
|
// ============================================================================
|
|
24503
24503
|
secondary: {
|
|
24504
|
-
light: { family: "
|
|
24505
|
-
dark: { family: "
|
|
24504
|
+
light: { family: "neutral", position: "100" },
|
|
24505
|
+
dark: { family: "neutral", position: "800" },
|
|
24506
24506
|
meaning: "Secondary interactive elements - less prominent actions",
|
|
24507
24507
|
contexts: ["secondary-buttons", "alternative-actions"],
|
|
24508
24508
|
do: ["Use for secondary actions", "Use when primary is too strong"],
|
|
@@ -24511,64 +24511,64 @@ var DEFAULT_SEMANTIC_COLOR_MAPPINGS = {
|
|
|
24511
24511
|
consequence: "reversible"
|
|
24512
24512
|
},
|
|
24513
24513
|
"secondary-foreground": {
|
|
24514
|
-
light: { family: "
|
|
24515
|
-
dark: { family: "
|
|
24514
|
+
light: { family: "neutral", position: "900" },
|
|
24515
|
+
dark: { family: "neutral", position: "50" },
|
|
24516
24516
|
meaning: "Text on secondary color backgrounds",
|
|
24517
24517
|
contexts: ["secondary-button-text"],
|
|
24518
24518
|
do: ["Use for text on secondary buttons"],
|
|
24519
24519
|
never: ["Use without secondary background"]
|
|
24520
24520
|
},
|
|
24521
24521
|
"secondary-hover": {
|
|
24522
|
-
light: { family: "
|
|
24523
|
-
dark: { family: "
|
|
24522
|
+
light: { family: "neutral", position: "200" },
|
|
24523
|
+
dark: { family: "neutral", position: "700" },
|
|
24524
24524
|
meaning: "Secondary hover state",
|
|
24525
24525
|
contexts: ["secondary-hover"],
|
|
24526
24526
|
do: ["Use for secondary hover"],
|
|
24527
24527
|
never: ["Use as default secondary"]
|
|
24528
24528
|
},
|
|
24529
24529
|
"secondary-hover-foreground": {
|
|
24530
|
-
light: { family: "
|
|
24531
|
-
dark: { family: "
|
|
24530
|
+
light: { family: "neutral", position: "900" },
|
|
24531
|
+
dark: { family: "neutral", position: "50" },
|
|
24532
24532
|
meaning: "Text on secondary hover",
|
|
24533
24533
|
contexts: ["secondary-hover-text"],
|
|
24534
24534
|
do: ["Use for text on secondary hover"],
|
|
24535
24535
|
never: ["Use without secondary-hover background"]
|
|
24536
24536
|
},
|
|
24537
24537
|
"secondary-active": {
|
|
24538
|
-
light: { family: "
|
|
24539
|
-
dark: { family: "
|
|
24538
|
+
light: { family: "neutral", position: "300" },
|
|
24539
|
+
dark: { family: "neutral", position: "600" },
|
|
24540
24540
|
meaning: "Secondary active/pressed state",
|
|
24541
24541
|
contexts: ["secondary-active"],
|
|
24542
24542
|
do: ["Use for secondary active state"],
|
|
24543
24543
|
never: ["Use for hover states"]
|
|
24544
24544
|
},
|
|
24545
24545
|
"secondary-active-foreground": {
|
|
24546
|
-
light: { family: "
|
|
24547
|
-
dark: { family: "
|
|
24546
|
+
light: { family: "neutral", position: "900" },
|
|
24547
|
+
dark: { family: "neutral", position: "50" },
|
|
24548
24548
|
meaning: "Text on secondary active",
|
|
24549
24549
|
contexts: ["secondary-active-text"],
|
|
24550
24550
|
do: ["Use for text on secondary active"],
|
|
24551
24551
|
never: ["Use without secondary-active background"]
|
|
24552
24552
|
},
|
|
24553
24553
|
"secondary-focus": {
|
|
24554
|
-
light: { family: "
|
|
24555
|
-
dark: { family: "
|
|
24554
|
+
light: { family: "neutral", position: "100" },
|
|
24555
|
+
dark: { family: "neutral", position: "800" },
|
|
24556
24556
|
meaning: "Secondary focus state",
|
|
24557
24557
|
contexts: ["secondary-focus"],
|
|
24558
24558
|
do: ["Use for secondary focus states"],
|
|
24559
24559
|
never: ["Use for non-focused elements"]
|
|
24560
24560
|
},
|
|
24561
24561
|
"secondary-border": {
|
|
24562
|
-
light: { family: "
|
|
24563
|
-
dark: { family: "
|
|
24562
|
+
light: { family: "neutral", position: "300" },
|
|
24563
|
+
dark: { family: "neutral", position: "700" },
|
|
24564
24564
|
meaning: "Secondary border color",
|
|
24565
24565
|
contexts: ["secondary-borders"],
|
|
24566
24566
|
do: ["Use for secondary element borders"],
|
|
24567
24567
|
never: ["Use for primary borders"]
|
|
24568
24568
|
},
|
|
24569
24569
|
"secondary-ring": {
|
|
24570
|
-
light: { family: "
|
|
24571
|
-
dark: { family: "
|
|
24570
|
+
light: { family: "neutral", position: "400" },
|
|
24571
|
+
dark: { family: "neutral", position: "500" },
|
|
24572
24572
|
meaning: "Secondary focus ring color",
|
|
24573
24573
|
contexts: ["secondary-focus-ring"],
|
|
24574
24574
|
do: ["Use for secondary element focus rings"],
|
|
@@ -24578,48 +24578,48 @@ var DEFAULT_SEMANTIC_COLOR_MAPPINGS = {
|
|
|
24578
24578
|
// MUTED - Subdued elements (shadcn compatible + extended)
|
|
24579
24579
|
// ============================================================================
|
|
24580
24580
|
muted: {
|
|
24581
|
-
light: { family: "
|
|
24582
|
-
dark: { family: "
|
|
24581
|
+
light: { family: "neutral", position: "100" },
|
|
24582
|
+
dark: { family: "neutral", position: "800" },
|
|
24583
24583
|
meaning: "Muted backgrounds for subtle emphasis",
|
|
24584
24584
|
contexts: ["subtle-backgrounds", "inactive-tabs", "disabled-areas"],
|
|
24585
24585
|
do: ["Use for subtle background differentiation"],
|
|
24586
24586
|
never: ["Use for interactive elements needing visibility"]
|
|
24587
24587
|
},
|
|
24588
24588
|
"muted-foreground": {
|
|
24589
|
-
light: { family: "
|
|
24590
|
-
dark: { family: "
|
|
24589
|
+
light: { family: "neutral", position: "500" },
|
|
24590
|
+
dark: { family: "neutral", position: "400" },
|
|
24591
24591
|
meaning: "Muted text for secondary information",
|
|
24592
24592
|
contexts: ["helper-text", "placeholders", "metadata"],
|
|
24593
24593
|
do: ["Use for secondary text", "Use for placeholders"],
|
|
24594
24594
|
never: ["Use for primary content", "Use for important information"]
|
|
24595
24595
|
},
|
|
24596
24596
|
"muted-hover": {
|
|
24597
|
-
light: { family: "
|
|
24598
|
-
dark: { family: "
|
|
24597
|
+
light: { family: "neutral", position: "200" },
|
|
24598
|
+
dark: { family: "neutral", position: "700" },
|
|
24599
24599
|
meaning: "Muted hover state",
|
|
24600
24600
|
contexts: ["muted-hover"],
|
|
24601
24601
|
do: ["Use for muted hover states"],
|
|
24602
24602
|
never: ["Use as default muted"]
|
|
24603
24603
|
},
|
|
24604
24604
|
"muted-hover-foreground": {
|
|
24605
|
-
light: { family: "
|
|
24606
|
-
dark: { family: "
|
|
24605
|
+
light: { family: "neutral", position: "600" },
|
|
24606
|
+
dark: { family: "neutral", position: "300" },
|
|
24607
24607
|
meaning: "Text on muted hover",
|
|
24608
24608
|
contexts: ["muted-hover-text"],
|
|
24609
24609
|
do: ["Use for text on muted hover"],
|
|
24610
24610
|
never: ["Use without muted-hover background"]
|
|
24611
24611
|
},
|
|
24612
24612
|
"muted-active": {
|
|
24613
|
-
light: { family: "
|
|
24614
|
-
dark: { family: "
|
|
24613
|
+
light: { family: "neutral", position: "300" },
|
|
24614
|
+
dark: { family: "neutral", position: "600" },
|
|
24615
24615
|
meaning: "Muted active state",
|
|
24616
24616
|
contexts: ["muted-active"],
|
|
24617
24617
|
do: ["Use for muted active states"],
|
|
24618
24618
|
never: ["Use for hover states"]
|
|
24619
24619
|
},
|
|
24620
24620
|
"muted-border": {
|
|
24621
|
-
light: { family: "
|
|
24622
|
-
dark: { family: "
|
|
24621
|
+
light: { family: "neutral", position: "200" },
|
|
24622
|
+
dark: { family: "neutral", position: "700" },
|
|
24623
24623
|
meaning: "Muted border color",
|
|
24624
24624
|
contexts: ["muted-borders"],
|
|
24625
24625
|
do: ["Use for muted element borders"],
|
|
@@ -24629,64 +24629,64 @@ var DEFAULT_SEMANTIC_COLOR_MAPPINGS = {
|
|
|
24629
24629
|
// ACCENT - Highlight/emphasis color (shadcn compatible + extended)
|
|
24630
24630
|
// ============================================================================
|
|
24631
24631
|
accent: {
|
|
24632
|
-
light: { family: "
|
|
24633
|
-
dark: { family: "
|
|
24632
|
+
light: { family: "neutral", position: "100" },
|
|
24633
|
+
dark: { family: "neutral", position: "800" },
|
|
24634
24634
|
meaning: "Accent for hover states and highlights",
|
|
24635
24635
|
contexts: ["hover-states", "selected-items", "focus-backgrounds"],
|
|
24636
24636
|
do: ["Use for hover backgrounds", "Use for selected states"],
|
|
24637
24637
|
never: ["Use for primary actions"]
|
|
24638
24638
|
},
|
|
24639
24639
|
"accent-foreground": {
|
|
24640
|
-
light: { family: "
|
|
24641
|
-
dark: { family: "
|
|
24640
|
+
light: { family: "neutral", position: "900" },
|
|
24641
|
+
dark: { family: "neutral", position: "50" },
|
|
24642
24642
|
meaning: "Text on accent backgrounds",
|
|
24643
24643
|
contexts: ["hover-text", "selected-text"],
|
|
24644
24644
|
do: ["Use for text on accent backgrounds"],
|
|
24645
24645
|
never: ["Use without accent background"]
|
|
24646
24646
|
},
|
|
24647
24647
|
"accent-hover": {
|
|
24648
|
-
light: { family: "
|
|
24649
|
-
dark: { family: "
|
|
24648
|
+
light: { family: "neutral", position: "200" },
|
|
24649
|
+
dark: { family: "neutral", position: "700" },
|
|
24650
24650
|
meaning: "Accent hover state",
|
|
24651
24651
|
contexts: ["accent-hover"],
|
|
24652
24652
|
do: ["Use for accent hover states"],
|
|
24653
24653
|
never: ["Use as default accent"]
|
|
24654
24654
|
},
|
|
24655
24655
|
"accent-hover-foreground": {
|
|
24656
|
-
light: { family: "
|
|
24657
|
-
dark: { family: "
|
|
24656
|
+
light: { family: "neutral", position: "900" },
|
|
24657
|
+
dark: { family: "neutral", position: "50" },
|
|
24658
24658
|
meaning: "Text on accent hover",
|
|
24659
24659
|
contexts: ["accent-hover-text"],
|
|
24660
24660
|
do: ["Use for text on accent hover"],
|
|
24661
24661
|
never: ["Use without accent-hover background"]
|
|
24662
24662
|
},
|
|
24663
24663
|
"accent-active": {
|
|
24664
|
-
light: { family: "
|
|
24665
|
-
dark: { family: "
|
|
24664
|
+
light: { family: "neutral", position: "300" },
|
|
24665
|
+
dark: { family: "neutral", position: "600" },
|
|
24666
24666
|
meaning: "Accent active state",
|
|
24667
24667
|
contexts: ["accent-active"],
|
|
24668
24668
|
do: ["Use for accent active states"],
|
|
24669
24669
|
never: ["Use for hover states"]
|
|
24670
24670
|
},
|
|
24671
24671
|
"accent-active-foreground": {
|
|
24672
|
-
light: { family: "
|
|
24673
|
-
dark: { family: "
|
|
24672
|
+
light: { family: "neutral", position: "900" },
|
|
24673
|
+
dark: { family: "neutral", position: "50" },
|
|
24674
24674
|
meaning: "Text on accent active",
|
|
24675
24675
|
contexts: ["accent-active-text"],
|
|
24676
24676
|
do: ["Use for text on accent active"],
|
|
24677
24677
|
never: ["Use without accent-active background"]
|
|
24678
24678
|
},
|
|
24679
24679
|
"accent-border": {
|
|
24680
|
-
light: { family: "
|
|
24681
|
-
dark: { family: "
|
|
24680
|
+
light: { family: "neutral", position: "300" },
|
|
24681
|
+
dark: { family: "neutral", position: "700" },
|
|
24682
24682
|
meaning: "Accent border color",
|
|
24683
24683
|
contexts: ["accent-borders"],
|
|
24684
24684
|
do: ["Use for accent element borders"],
|
|
24685
24685
|
never: ["Use for neutral borders"]
|
|
24686
24686
|
},
|
|
24687
24687
|
"accent-ring": {
|
|
24688
|
-
light: { family: "
|
|
24689
|
-
dark: { family: "
|
|
24688
|
+
light: { family: "neutral", position: "400" },
|
|
24689
|
+
dark: { family: "neutral", position: "500" },
|
|
24690
24690
|
meaning: "Accent focus ring color",
|
|
24691
24691
|
contexts: ["accent-focus-ring"],
|
|
24692
24692
|
do: ["Use for accent element focus rings"],
|
|
@@ -24707,8 +24707,8 @@ var DEFAULT_SEMANTIC_COLOR_MAPPINGS = {
|
|
|
24707
24707
|
consequence: "destructive"
|
|
24708
24708
|
},
|
|
24709
24709
|
"destructive-foreground": {
|
|
24710
|
-
light: { family: "
|
|
24711
|
-
dark: { family: "
|
|
24710
|
+
light: { family: "neutral", position: "50" },
|
|
24711
|
+
dark: { family: "neutral", position: "50" },
|
|
24712
24712
|
meaning: "Text on destructive backgrounds",
|
|
24713
24713
|
contexts: ["delete-button-text", "error-message-text"],
|
|
24714
24714
|
do: ["Use for text on destructive buttons"],
|
|
@@ -24723,8 +24723,8 @@ var DEFAULT_SEMANTIC_COLOR_MAPPINGS = {
|
|
|
24723
24723
|
never: ["Use as default destructive"]
|
|
24724
24724
|
},
|
|
24725
24725
|
"destructive-hover-foreground": {
|
|
24726
|
-
light: { family: "
|
|
24727
|
-
dark: { family: "
|
|
24726
|
+
light: { family: "neutral", position: "50" },
|
|
24727
|
+
dark: { family: "neutral", position: "950" },
|
|
24728
24728
|
meaning: "Text on destructive hover",
|
|
24729
24729
|
contexts: ["destructive-hover-text"],
|
|
24730
24730
|
do: ["Use for text on destructive hover"],
|
|
@@ -24739,8 +24739,8 @@ var DEFAULT_SEMANTIC_COLOR_MAPPINGS = {
|
|
|
24739
24739
|
never: ["Use for hover states"]
|
|
24740
24740
|
},
|
|
24741
24741
|
"destructive-active-foreground": {
|
|
24742
|
-
light: { family: "
|
|
24743
|
-
dark: { family: "
|
|
24742
|
+
light: { family: "neutral", position: "50" },
|
|
24743
|
+
dark: { family: "neutral", position: "950" },
|
|
24744
24744
|
meaning: "Text on destructive active",
|
|
24745
24745
|
contexts: ["destructive-active-text"],
|
|
24746
24746
|
do: ["Use for text on destructive active"],
|
|
@@ -24801,8 +24801,8 @@ var DEFAULT_SEMANTIC_COLOR_MAPPINGS = {
|
|
|
24801
24801
|
consequence: "reversible"
|
|
24802
24802
|
},
|
|
24803
24803
|
"success-foreground": {
|
|
24804
|
-
light: { family: "
|
|
24805
|
-
dark: { family: "
|
|
24804
|
+
light: { family: "neutral", position: "50" },
|
|
24805
|
+
dark: { family: "neutral", position: "950" },
|
|
24806
24806
|
meaning: "Text on success backgrounds",
|
|
24807
24807
|
contexts: ["success-message-text"],
|
|
24808
24808
|
do: ["Use for text on success backgrounds"],
|
|
@@ -24817,8 +24817,8 @@ var DEFAULT_SEMANTIC_COLOR_MAPPINGS = {
|
|
|
24817
24817
|
never: ["Use as default success"]
|
|
24818
24818
|
},
|
|
24819
24819
|
"success-hover-foreground": {
|
|
24820
|
-
light: { family: "
|
|
24821
|
-
dark: { family: "
|
|
24820
|
+
light: { family: "neutral", position: "50" },
|
|
24821
|
+
dark: { family: "neutral", position: "950" },
|
|
24822
24822
|
meaning: "Text on success hover",
|
|
24823
24823
|
contexts: ["success-hover-text"],
|
|
24824
24824
|
do: ["Use for text on success hover"],
|
|
@@ -24833,8 +24833,8 @@ var DEFAULT_SEMANTIC_COLOR_MAPPINGS = {
|
|
|
24833
24833
|
never: ["Use for hover states"]
|
|
24834
24834
|
},
|
|
24835
24835
|
"success-active-foreground": {
|
|
24836
|
-
light: { family: "
|
|
24837
|
-
dark: { family: "
|
|
24836
|
+
light: { family: "neutral", position: "50" },
|
|
24837
|
+
dark: { family: "neutral", position: "950" },
|
|
24838
24838
|
meaning: "Text on success active",
|
|
24839
24839
|
contexts: ["success-active-text"],
|
|
24840
24840
|
do: ["Use for text on success active"],
|
|
@@ -24895,8 +24895,8 @@ var DEFAULT_SEMANTIC_COLOR_MAPPINGS = {
|
|
|
24895
24895
|
consequence: "significant"
|
|
24896
24896
|
},
|
|
24897
24897
|
"warning-foreground": {
|
|
24898
|
-
light: { family: "
|
|
24899
|
-
dark: { family: "
|
|
24898
|
+
light: { family: "neutral", position: "950" },
|
|
24899
|
+
dark: { family: "neutral", position: "950" },
|
|
24900
24900
|
meaning: "Text on warning backgrounds",
|
|
24901
24901
|
contexts: ["warning-message-text"],
|
|
24902
24902
|
do: ["Use for text on warning backgrounds"],
|
|
@@ -24911,8 +24911,8 @@ var DEFAULT_SEMANTIC_COLOR_MAPPINGS = {
|
|
|
24911
24911
|
never: ["Use as default warning"]
|
|
24912
24912
|
},
|
|
24913
24913
|
"warning-hover-foreground": {
|
|
24914
|
-
light: { family: "
|
|
24915
|
-
dark: { family: "
|
|
24914
|
+
light: { family: "neutral", position: "950" },
|
|
24915
|
+
dark: { family: "neutral", position: "950" },
|
|
24916
24916
|
meaning: "Text on warning hover",
|
|
24917
24917
|
contexts: ["warning-hover-text"],
|
|
24918
24918
|
do: ["Use for text on warning hover"],
|
|
@@ -24927,8 +24927,8 @@ var DEFAULT_SEMANTIC_COLOR_MAPPINGS = {
|
|
|
24927
24927
|
never: ["Use for hover states"]
|
|
24928
24928
|
},
|
|
24929
24929
|
"warning-active-foreground": {
|
|
24930
|
-
light: { family: "
|
|
24931
|
-
dark: { family: "
|
|
24930
|
+
light: { family: "neutral", position: "50" },
|
|
24931
|
+
dark: { family: "neutral", position: "950" },
|
|
24932
24932
|
meaning: "Text on warning active",
|
|
24933
24933
|
contexts: ["warning-active-text"],
|
|
24934
24934
|
do: ["Use for text on warning active"],
|
|
@@ -24989,8 +24989,8 @@ var DEFAULT_SEMANTIC_COLOR_MAPPINGS = {
|
|
|
24989
24989
|
consequence: "reversible"
|
|
24990
24990
|
},
|
|
24991
24991
|
"info-foreground": {
|
|
24992
|
-
light: { family: "
|
|
24993
|
-
dark: { family: "
|
|
24992
|
+
light: { family: "neutral", position: "50" },
|
|
24993
|
+
dark: { family: "neutral", position: "50" },
|
|
24994
24994
|
meaning: "Text on info backgrounds",
|
|
24995
24995
|
contexts: ["info-message-text"],
|
|
24996
24996
|
do: ["Use for text on info backgrounds"],
|
|
@@ -25005,8 +25005,8 @@ var DEFAULT_SEMANTIC_COLOR_MAPPINGS = {
|
|
|
25005
25005
|
never: ["Use as default info"]
|
|
25006
25006
|
},
|
|
25007
25007
|
"info-hover-foreground": {
|
|
25008
|
-
light: { family: "
|
|
25009
|
-
dark: { family: "
|
|
25008
|
+
light: { family: "neutral", position: "50" },
|
|
25009
|
+
dark: { family: "neutral", position: "950" },
|
|
25010
25010
|
meaning: "Text on info hover",
|
|
25011
25011
|
contexts: ["info-hover-text"],
|
|
25012
25012
|
do: ["Use for text on info hover"],
|
|
@@ -25021,8 +25021,8 @@ var DEFAULT_SEMANTIC_COLOR_MAPPINGS = {
|
|
|
25021
25021
|
never: ["Use for hover states"]
|
|
25022
25022
|
},
|
|
25023
25023
|
"info-active-foreground": {
|
|
25024
|
-
light: { family: "
|
|
25025
|
-
dark: { family: "
|
|
25024
|
+
light: { family: "neutral", position: "50" },
|
|
25025
|
+
dark: { family: "neutral", position: "950" },
|
|
25026
25026
|
meaning: "Text on info active",
|
|
25027
25027
|
contexts: ["info-active-text"],
|
|
25028
25028
|
do: ["Use for text on info active"],
|
|
@@ -25082,8 +25082,8 @@ var DEFAULT_SEMANTIC_COLOR_MAPPINGS = {
|
|
|
25082
25082
|
consequence: "significant"
|
|
25083
25083
|
},
|
|
25084
25084
|
"alert-foreground": {
|
|
25085
|
-
light: { family: "
|
|
25086
|
-
dark: { family: "
|
|
25085
|
+
light: { family: "neutral", position: "50" },
|
|
25086
|
+
dark: { family: "neutral", position: "50" },
|
|
25087
25087
|
meaning: "Text on alert backgrounds",
|
|
25088
25088
|
contexts: ["alert-text"],
|
|
25089
25089
|
do: ["Use for text on alert backgrounds"],
|
|
@@ -25098,8 +25098,8 @@ var DEFAULT_SEMANTIC_COLOR_MAPPINGS = {
|
|
|
25098
25098
|
never: ["Use as default alert"]
|
|
25099
25099
|
},
|
|
25100
25100
|
"alert-hover-foreground": {
|
|
25101
|
-
light: { family: "
|
|
25102
|
-
dark: { family: "
|
|
25101
|
+
light: { family: "neutral", position: "50" },
|
|
25102
|
+
dark: { family: "neutral", position: "950" },
|
|
25103
25103
|
meaning: "Text on alert hover",
|
|
25104
25104
|
contexts: ["alert-hover-text"],
|
|
25105
25105
|
do: ["Use for text on alert hover"],
|
|
@@ -25114,8 +25114,8 @@ var DEFAULT_SEMANTIC_COLOR_MAPPINGS = {
|
|
|
25114
25114
|
never: ["Use for hover states"]
|
|
25115
25115
|
},
|
|
25116
25116
|
"alert-active-foreground": {
|
|
25117
|
-
light: { family: "
|
|
25118
|
-
dark: { family: "
|
|
25117
|
+
light: { family: "neutral", position: "50" },
|
|
25118
|
+
dark: { family: "neutral", position: "950" },
|
|
25119
25119
|
meaning: "Text on alert active",
|
|
25120
25120
|
contexts: ["alert-active-text"],
|
|
25121
25121
|
do: ["Use for text on alert active"],
|
|
@@ -25208,32 +25208,32 @@ var DEFAULT_SEMANTIC_COLOR_MAPPINGS = {
|
|
|
25208
25208
|
// BORDER TOKENS (shadcn compatible + extended)
|
|
25209
25209
|
// ============================================================================
|
|
25210
25210
|
border: {
|
|
25211
|
-
light: { family: "
|
|
25212
|
-
dark: { family: "
|
|
25211
|
+
light: { family: "neutral", position: "200" },
|
|
25212
|
+
dark: { family: "neutral", position: "800" },
|
|
25213
25213
|
meaning: "Default border color",
|
|
25214
25214
|
contexts: ["dividers", "separators", "input-borders"],
|
|
25215
25215
|
do: ["Use for subtle borders", "Use for dividers"],
|
|
25216
25216
|
never: ["Use for emphasized borders"]
|
|
25217
25217
|
},
|
|
25218
25218
|
"border-hover": {
|
|
25219
|
-
light: { family: "
|
|
25220
|
-
dark: { family: "
|
|
25219
|
+
light: { family: "neutral", position: "300" },
|
|
25220
|
+
dark: { family: "neutral", position: "700" },
|
|
25221
25221
|
meaning: "Border hover state",
|
|
25222
25222
|
contexts: ["border-hover"],
|
|
25223
25223
|
do: ["Use for border hover states"],
|
|
25224
25224
|
never: ["Use as default border"]
|
|
25225
25225
|
},
|
|
25226
25226
|
"border-focus": {
|
|
25227
|
-
light: { family: "
|
|
25228
|
-
dark: { family: "
|
|
25227
|
+
light: { family: "neutral", position: "400" },
|
|
25228
|
+
dark: { family: "neutral", position: "600" },
|
|
25229
25229
|
meaning: "Border focus state",
|
|
25230
25230
|
contexts: ["border-focus"],
|
|
25231
25231
|
do: ["Use for focused element borders"],
|
|
25232
25232
|
never: ["Use for non-focused elements"]
|
|
25233
25233
|
},
|
|
25234
25234
|
"border-active": {
|
|
25235
|
-
light: { family: "
|
|
25236
|
-
dark: { family: "
|
|
25235
|
+
light: { family: "neutral", position: "500" },
|
|
25236
|
+
dark: { family: "neutral", position: "500" },
|
|
25237
25237
|
meaning: "Border active state",
|
|
25238
25238
|
contexts: ["border-active"],
|
|
25239
25239
|
do: ["Use for active element borders"],
|
|
@@ -25243,56 +25243,56 @@ var DEFAULT_SEMANTIC_COLOR_MAPPINGS = {
|
|
|
25243
25243
|
// INPUT TOKENS (shadcn compatible + extended for form states)
|
|
25244
25244
|
// ============================================================================
|
|
25245
25245
|
input: {
|
|
25246
|
-
light: { family: "
|
|
25247
|
-
dark: { family: "
|
|
25246
|
+
light: { family: "neutral", position: "200" },
|
|
25247
|
+
dark: { family: "neutral", position: "800" },
|
|
25248
25248
|
meaning: "Input field border color",
|
|
25249
25249
|
contexts: ["form-inputs", "text-fields", "selects"],
|
|
25250
25250
|
do: ["Use for form field borders"],
|
|
25251
25251
|
never: ["Use for buttons"]
|
|
25252
25252
|
},
|
|
25253
25253
|
"input-foreground": {
|
|
25254
|
-
light: { family: "
|
|
25255
|
-
dark: { family: "
|
|
25254
|
+
light: { family: "neutral", position: "950" },
|
|
25255
|
+
dark: { family: "neutral", position: "50" },
|
|
25256
25256
|
meaning: "Input text color",
|
|
25257
25257
|
contexts: ["input-text"],
|
|
25258
25258
|
do: ["Use for input text"],
|
|
25259
25259
|
never: ["Use for placeholders"]
|
|
25260
25260
|
},
|
|
25261
25261
|
"input-hover": {
|
|
25262
|
-
light: { family: "
|
|
25263
|
-
dark: { family: "
|
|
25262
|
+
light: { family: "neutral", position: "300" },
|
|
25263
|
+
dark: { family: "neutral", position: "700" },
|
|
25264
25264
|
meaning: "Input hover state",
|
|
25265
25265
|
contexts: ["input-hover"],
|
|
25266
25266
|
do: ["Use for input hover states"],
|
|
25267
25267
|
never: ["Use as default input"]
|
|
25268
25268
|
},
|
|
25269
25269
|
"input-focus": {
|
|
25270
|
-
light: { family: "
|
|
25271
|
-
dark: { family: "
|
|
25270
|
+
light: { family: "neutral", position: "400" },
|
|
25271
|
+
dark: { family: "neutral", position: "600" },
|
|
25272
25272
|
meaning: "Input focus state",
|
|
25273
25273
|
contexts: ["input-focus"],
|
|
25274
25274
|
do: ["Use for input focus states"],
|
|
25275
25275
|
never: ["Use for non-focused inputs"]
|
|
25276
25276
|
},
|
|
25277
25277
|
"input-disabled": {
|
|
25278
|
-
light: { family: "
|
|
25279
|
-
dark: { family: "
|
|
25278
|
+
light: { family: "neutral", position: "100" },
|
|
25279
|
+
dark: { family: "neutral", position: "900" },
|
|
25280
25280
|
meaning: "Disabled input background",
|
|
25281
25281
|
contexts: ["disabled-inputs"],
|
|
25282
25282
|
do: ["Use for disabled input backgrounds"],
|
|
25283
25283
|
never: ["Use for enabled inputs"]
|
|
25284
25284
|
},
|
|
25285
25285
|
"input-disabled-foreground": {
|
|
25286
|
-
light: { family: "
|
|
25287
|
-
dark: { family: "
|
|
25286
|
+
light: { family: "neutral", position: "400" },
|
|
25287
|
+
dark: { family: "neutral", position: "600" },
|
|
25288
25288
|
meaning: "Disabled input text color",
|
|
25289
25289
|
contexts: ["disabled-input-text"],
|
|
25290
25290
|
do: ["Use for disabled input text"],
|
|
25291
25291
|
never: ["Use for enabled input text"]
|
|
25292
25292
|
},
|
|
25293
25293
|
"input-placeholder": {
|
|
25294
|
-
light: { family: "
|
|
25295
|
-
dark: { family: "
|
|
25294
|
+
light: { family: "neutral", position: "500" },
|
|
25295
|
+
dark: { family: "neutral", position: "400" },
|
|
25296
25296
|
meaning: "Placeholder text color",
|
|
25297
25297
|
contexts: ["placeholders"],
|
|
25298
25298
|
do: ["Use for placeholder text"],
|
|
@@ -25334,24 +25334,24 @@ var DEFAULT_SEMANTIC_COLOR_MAPPINGS = {
|
|
|
25334
25334
|
// RING/FOCUS TOKENS (shadcn compatible + extended for a11y)
|
|
25335
25335
|
// ============================================================================
|
|
25336
25336
|
ring: {
|
|
25337
|
-
light: { family: "
|
|
25338
|
-
dark: { family: "
|
|
25337
|
+
light: { family: "neutral", position: "950" },
|
|
25338
|
+
dark: { family: "neutral", position: "300" },
|
|
25339
25339
|
meaning: "Focus ring color",
|
|
25340
25340
|
contexts: ["focus-states", "keyboard-navigation"],
|
|
25341
25341
|
do: ["Use for focus indicators", "Ensure high contrast"],
|
|
25342
25342
|
never: ["Use for decorative elements"]
|
|
25343
25343
|
},
|
|
25344
25344
|
"ring-offset": {
|
|
25345
|
-
light: { family: "
|
|
25346
|
-
dark: { family: "
|
|
25345
|
+
light: { family: "neutral", position: "50" },
|
|
25346
|
+
dark: { family: "neutral", position: "950" },
|
|
25347
25347
|
meaning: "Focus ring offset color",
|
|
25348
25348
|
contexts: ["focus-ring-offset"],
|
|
25349
25349
|
do: ["Use for focus ring offset"],
|
|
25350
25350
|
never: ["Use as primary color"]
|
|
25351
25351
|
},
|
|
25352
25352
|
"ring-primary": {
|
|
25353
|
-
light: { family: "
|
|
25354
|
-
dark: { family: "
|
|
25353
|
+
light: { family: "neutral", position: "900" },
|
|
25354
|
+
dark: { family: "neutral", position: "50" },
|
|
25355
25355
|
meaning: "Primary focus ring",
|
|
25356
25356
|
contexts: ["primary-focus-ring"],
|
|
25357
25357
|
do: ["Use for primary element focus rings"],
|
|
@@ -25444,8 +25444,8 @@ var DEFAULT_SEMANTIC_COLOR_MAPPINGS = {
|
|
|
25444
25444
|
never: ["Use for other highlights"]
|
|
25445
25445
|
},
|
|
25446
25446
|
"selection-foreground": {
|
|
25447
|
-
light: { family: "
|
|
25448
|
-
dark: { family: "
|
|
25447
|
+
light: { family: "neutral", position: "950" },
|
|
25448
|
+
dark: { family: "neutral", position: "50" },
|
|
25449
25449
|
meaning: "Text selection foreground",
|
|
25450
25450
|
contexts: ["text-selection-foreground"],
|
|
25451
25451
|
do: ["Use for ::selection text color"],
|
|
@@ -25455,168 +25455,168 @@ var DEFAULT_SEMANTIC_COLOR_MAPPINGS = {
|
|
|
25455
25455
|
// SIDEBAR TOKENS (shadcn compatible + extended)
|
|
25456
25456
|
// ============================================================================
|
|
25457
25457
|
sidebar: {
|
|
25458
|
-
light: { family: "
|
|
25459
|
-
dark: { family: "
|
|
25458
|
+
light: { family: "neutral", position: "50" },
|
|
25459
|
+
dark: { family: "neutral", position: "950" },
|
|
25460
25460
|
meaning: "Sidebar background",
|
|
25461
25461
|
contexts: ["navigation-sidebar", "side-panels"],
|
|
25462
25462
|
do: ["Use for sidebar backgrounds"],
|
|
25463
25463
|
never: ["Use for main content areas"]
|
|
25464
25464
|
},
|
|
25465
25465
|
"sidebar-foreground": {
|
|
25466
|
-
light: { family: "
|
|
25467
|
-
dark: { family: "
|
|
25466
|
+
light: { family: "neutral", position: "950" },
|
|
25467
|
+
dark: { family: "neutral", position: "50" },
|
|
25468
25468
|
meaning: "Sidebar text color",
|
|
25469
25469
|
contexts: ["sidebar-text", "nav-items"],
|
|
25470
25470
|
do: ["Use for sidebar content"],
|
|
25471
25471
|
never: ["Use outside sidebar context"]
|
|
25472
25472
|
},
|
|
25473
25473
|
"sidebar-muted": {
|
|
25474
|
-
light: { family: "
|
|
25475
|
-
dark: { family: "
|
|
25474
|
+
light: { family: "neutral", position: "500" },
|
|
25475
|
+
dark: { family: "neutral", position: "400" },
|
|
25476
25476
|
meaning: "Sidebar muted text",
|
|
25477
25477
|
contexts: ["sidebar-secondary-text"],
|
|
25478
25478
|
do: ["Use for secondary sidebar text"],
|
|
25479
25479
|
never: ["Use for primary sidebar text"]
|
|
25480
25480
|
},
|
|
25481
25481
|
"sidebar-primary": {
|
|
25482
|
-
light: { family: "
|
|
25483
|
-
dark: { family: "
|
|
25482
|
+
light: { family: "neutral", position: "900" },
|
|
25483
|
+
dark: { family: "neutral", position: "50" },
|
|
25484
25484
|
meaning: "Sidebar primary accent",
|
|
25485
25485
|
contexts: ["active-nav-item", "selected-sidebar-item"],
|
|
25486
25486
|
do: ["Use for active sidebar items"],
|
|
25487
25487
|
never: ["Use for inactive items"]
|
|
25488
25488
|
},
|
|
25489
25489
|
"sidebar-primary-foreground": {
|
|
25490
|
-
light: { family: "
|
|
25491
|
-
dark: { family: "
|
|
25490
|
+
light: { family: "neutral", position: "50" },
|
|
25491
|
+
dark: { family: "neutral", position: "900" },
|
|
25492
25492
|
meaning: "Text on sidebar primary",
|
|
25493
25493
|
contexts: ["active-nav-text"],
|
|
25494
25494
|
do: ["Use for active nav item text"],
|
|
25495
25495
|
never: ["Use without sidebar-primary background"]
|
|
25496
25496
|
},
|
|
25497
25497
|
"sidebar-primary-hover": {
|
|
25498
|
-
light: { family: "
|
|
25499
|
-
dark: { family: "
|
|
25498
|
+
light: { family: "neutral", position: "800" },
|
|
25499
|
+
dark: { family: "neutral", position: "200" },
|
|
25500
25500
|
meaning: "Sidebar primary hover",
|
|
25501
25501
|
contexts: ["sidebar-primary-hover"],
|
|
25502
25502
|
do: ["Use for sidebar primary hover"],
|
|
25503
25503
|
never: ["Use as default sidebar primary"]
|
|
25504
25504
|
},
|
|
25505
25505
|
"sidebar-primary-active": {
|
|
25506
|
-
light: { family: "
|
|
25507
|
-
dark: { family: "
|
|
25506
|
+
light: { family: "neutral", position: "700" },
|
|
25507
|
+
dark: { family: "neutral", position: "300" },
|
|
25508
25508
|
meaning: "Sidebar primary active",
|
|
25509
25509
|
contexts: ["sidebar-primary-active"],
|
|
25510
25510
|
do: ["Use for sidebar primary active state"],
|
|
25511
25511
|
never: ["Use for hover states"]
|
|
25512
25512
|
},
|
|
25513
25513
|
"sidebar-accent": {
|
|
25514
|
-
light: { family: "
|
|
25515
|
-
dark: { family: "
|
|
25514
|
+
light: { family: "neutral", position: "100" },
|
|
25515
|
+
dark: { family: "neutral", position: "800" },
|
|
25516
25516
|
meaning: "Sidebar hover/accent state",
|
|
25517
25517
|
contexts: ["sidebar-hover", "sidebar-selected"],
|
|
25518
25518
|
do: ["Use for sidebar hover states"],
|
|
25519
25519
|
never: ["Use for active state"]
|
|
25520
25520
|
},
|
|
25521
25521
|
"sidebar-accent-foreground": {
|
|
25522
|
-
light: { family: "
|
|
25523
|
-
dark: { family: "
|
|
25522
|
+
light: { family: "neutral", position: "900" },
|
|
25523
|
+
dark: { family: "neutral", position: "50" },
|
|
25524
25524
|
meaning: "Text on sidebar accent",
|
|
25525
25525
|
contexts: ["sidebar-hover-text"],
|
|
25526
25526
|
do: ["Use for hovered sidebar text"],
|
|
25527
25527
|
never: ["Use without sidebar-accent background"]
|
|
25528
25528
|
},
|
|
25529
25529
|
"sidebar-accent-hover": {
|
|
25530
|
-
light: { family: "
|
|
25531
|
-
dark: { family: "
|
|
25530
|
+
light: { family: "neutral", position: "200" },
|
|
25531
|
+
dark: { family: "neutral", position: "700" },
|
|
25532
25532
|
meaning: "Sidebar accent hover",
|
|
25533
25533
|
contexts: ["sidebar-accent-hover"],
|
|
25534
25534
|
do: ["Use for sidebar accent hover"],
|
|
25535
25535
|
never: ["Use as default sidebar accent"]
|
|
25536
25536
|
},
|
|
25537
25537
|
"sidebar-accent-active": {
|
|
25538
|
-
light: { family: "
|
|
25539
|
-
dark: { family: "
|
|
25538
|
+
light: { family: "neutral", position: "300" },
|
|
25539
|
+
dark: { family: "neutral", position: "600" },
|
|
25540
25540
|
meaning: "Sidebar accent active",
|
|
25541
25541
|
contexts: ["sidebar-accent-active"],
|
|
25542
25542
|
do: ["Use for sidebar accent active state"],
|
|
25543
25543
|
never: ["Use for hover states"]
|
|
25544
25544
|
},
|
|
25545
25545
|
"sidebar-item": {
|
|
25546
|
-
light: { family: "
|
|
25547
|
-
dark: { family: "
|
|
25546
|
+
light: { family: "neutral", position: "50" },
|
|
25547
|
+
dark: { family: "neutral", position: "950" },
|
|
25548
25548
|
meaning: "Sidebar item background",
|
|
25549
25549
|
contexts: ["sidebar-items"],
|
|
25550
25550
|
do: ["Use for sidebar item backgrounds"],
|
|
25551
25551
|
never: ["Use for active items"]
|
|
25552
25552
|
},
|
|
25553
25553
|
"sidebar-item-foreground": {
|
|
25554
|
-
light: { family: "
|
|
25555
|
-
dark: { family: "
|
|
25554
|
+
light: { family: "neutral", position: "700" },
|
|
25555
|
+
dark: { family: "neutral", position: "300" },
|
|
25556
25556
|
meaning: "Sidebar item text",
|
|
25557
25557
|
contexts: ["sidebar-item-text"],
|
|
25558
25558
|
do: ["Use for sidebar item text"],
|
|
25559
25559
|
never: ["Use for active item text"]
|
|
25560
25560
|
},
|
|
25561
25561
|
"sidebar-item-hover": {
|
|
25562
|
-
light: { family: "
|
|
25563
|
-
dark: { family: "
|
|
25562
|
+
light: { family: "neutral", position: "100" },
|
|
25563
|
+
dark: { family: "neutral", position: "900" },
|
|
25564
25564
|
meaning: "Sidebar item hover",
|
|
25565
25565
|
contexts: ["sidebar-item-hover"],
|
|
25566
25566
|
do: ["Use for sidebar item hover"],
|
|
25567
25567
|
never: ["Use as default item background"]
|
|
25568
25568
|
},
|
|
25569
25569
|
"sidebar-item-hover-foreground": {
|
|
25570
|
-
light: { family: "
|
|
25571
|
-
dark: { family: "
|
|
25570
|
+
light: { family: "neutral", position: "900" },
|
|
25571
|
+
dark: { family: "neutral", position: "50" },
|
|
25572
25572
|
meaning: "Sidebar item hover text",
|
|
25573
25573
|
contexts: ["sidebar-item-hover-text"],
|
|
25574
25574
|
do: ["Use for sidebar item hover text"],
|
|
25575
25575
|
never: ["Use without hover background"]
|
|
25576
25576
|
},
|
|
25577
25577
|
"sidebar-item-active": {
|
|
25578
|
-
light: { family: "
|
|
25579
|
-
dark: { family: "
|
|
25578
|
+
light: { family: "neutral", position: "200" },
|
|
25579
|
+
dark: { family: "neutral", position: "800" },
|
|
25580
25580
|
meaning: "Sidebar item active",
|
|
25581
25581
|
contexts: ["sidebar-item-active"],
|
|
25582
25582
|
do: ["Use for sidebar item active state"],
|
|
25583
25583
|
never: ["Use for hover states"]
|
|
25584
25584
|
},
|
|
25585
25585
|
"sidebar-item-active-foreground": {
|
|
25586
|
-
light: { family: "
|
|
25587
|
-
dark: { family: "
|
|
25586
|
+
light: { family: "neutral", position: "950" },
|
|
25587
|
+
dark: { family: "neutral", position: "50" },
|
|
25588
25588
|
meaning: "Sidebar item active text",
|
|
25589
25589
|
contexts: ["sidebar-item-active-text"],
|
|
25590
25590
|
do: ["Use for sidebar item active text"],
|
|
25591
25591
|
never: ["Use without active background"]
|
|
25592
25592
|
},
|
|
25593
25593
|
"sidebar-item-selected": {
|
|
25594
|
-
light: { family: "
|
|
25595
|
-
dark: { family: "
|
|
25594
|
+
light: { family: "neutral", position: "100" },
|
|
25595
|
+
dark: { family: "neutral", position: "800" },
|
|
25596
25596
|
meaning: "Sidebar selected item",
|
|
25597
25597
|
contexts: ["sidebar-selected-item"],
|
|
25598
25598
|
do: ["Use for selected sidebar items"],
|
|
25599
25599
|
never: ["Use for unselected items"]
|
|
25600
25600
|
},
|
|
25601
25601
|
"sidebar-item-selected-foreground": {
|
|
25602
|
-
light: { family: "
|
|
25603
|
-
dark: { family: "
|
|
25602
|
+
light: { family: "neutral", position: "950" },
|
|
25603
|
+
dark: { family: "neutral", position: "50" },
|
|
25604
25604
|
meaning: "Sidebar selected item text",
|
|
25605
25605
|
contexts: ["sidebar-selected-item-text"],
|
|
25606
25606
|
do: ["Use for selected item text"],
|
|
25607
25607
|
never: ["Use without selected background"]
|
|
25608
25608
|
},
|
|
25609
25609
|
"sidebar-border": {
|
|
25610
|
-
light: { family: "
|
|
25611
|
-
dark: { family: "
|
|
25610
|
+
light: { family: "neutral", position: "200" },
|
|
25611
|
+
dark: { family: "neutral", position: "800" },
|
|
25612
25612
|
meaning: "Sidebar border/divider color",
|
|
25613
25613
|
contexts: ["sidebar-dividers", "nav-section-borders"],
|
|
25614
25614
|
do: ["Use for sidebar dividers"],
|
|
25615
25615
|
never: ["Use for main content borders"]
|
|
25616
25616
|
},
|
|
25617
25617
|
"sidebar-ring": {
|
|
25618
|
-
light: { family: "
|
|
25619
|
-
dark: { family: "
|
|
25618
|
+
light: { family: "neutral", position: "950" },
|
|
25619
|
+
dark: { family: "neutral", position: "300" },
|
|
25620
25620
|
meaning: "Sidebar focus ring",
|
|
25621
25621
|
contexts: ["sidebar-focus-states"],
|
|
25622
25622
|
do: ["Use for sidebar focus indicators"],
|
|
@@ -25626,80 +25626,80 @@ var DEFAULT_SEMANTIC_COLOR_MAPPINGS = {
|
|
|
25626
25626
|
// NAVIGATION TOKENS
|
|
25627
25627
|
// ============================================================================
|
|
25628
25628
|
nav: {
|
|
25629
|
-
light: { family: "
|
|
25630
|
-
dark: { family: "
|
|
25629
|
+
light: { family: "neutral", position: "50" },
|
|
25630
|
+
dark: { family: "neutral", position: "950" },
|
|
25631
25631
|
meaning: "Navigation background",
|
|
25632
25632
|
contexts: ["navbars", "breadcrumbs", "tabs"],
|
|
25633
25633
|
do: ["Use for navigation backgrounds"],
|
|
25634
25634
|
never: ["Use for content areas"]
|
|
25635
25635
|
},
|
|
25636
25636
|
"nav-foreground": {
|
|
25637
|
-
light: { family: "
|
|
25638
|
-
dark: { family: "
|
|
25637
|
+
light: { family: "neutral", position: "700" },
|
|
25638
|
+
dark: { family: "neutral", position: "300" },
|
|
25639
25639
|
meaning: "Navigation text",
|
|
25640
25640
|
contexts: ["nav-links", "nav-items"],
|
|
25641
25641
|
do: ["Use for navigation text"],
|
|
25642
25642
|
never: ["Use for active nav text"]
|
|
25643
25643
|
},
|
|
25644
25644
|
"nav-hover": {
|
|
25645
|
-
light: { family: "
|
|
25646
|
-
dark: { family: "
|
|
25645
|
+
light: { family: "neutral", position: "100" },
|
|
25646
|
+
dark: { family: "neutral", position: "900" },
|
|
25647
25647
|
meaning: "Navigation hover",
|
|
25648
25648
|
contexts: ["nav-hover"],
|
|
25649
25649
|
do: ["Use for nav hover states"],
|
|
25650
25650
|
never: ["Use as default nav background"]
|
|
25651
25651
|
},
|
|
25652
25652
|
"nav-hover-foreground": {
|
|
25653
|
-
light: { family: "
|
|
25654
|
-
dark: { family: "
|
|
25653
|
+
light: { family: "neutral", position: "900" },
|
|
25654
|
+
dark: { family: "neutral", position: "50" },
|
|
25655
25655
|
meaning: "Navigation hover text",
|
|
25656
25656
|
contexts: ["nav-hover-text"],
|
|
25657
25657
|
do: ["Use for nav hover text"],
|
|
25658
25658
|
never: ["Use without hover background"]
|
|
25659
25659
|
},
|
|
25660
25660
|
"nav-active": {
|
|
25661
|
-
light: { family: "
|
|
25662
|
-
dark: { family: "
|
|
25661
|
+
light: { family: "neutral", position: "200" },
|
|
25662
|
+
dark: { family: "neutral", position: "800" },
|
|
25663
25663
|
meaning: "Navigation active",
|
|
25664
25664
|
contexts: ["nav-active"],
|
|
25665
25665
|
do: ["Use for nav active states"],
|
|
25666
25666
|
never: ["Use for hover states"]
|
|
25667
25667
|
},
|
|
25668
25668
|
"nav-active-foreground": {
|
|
25669
|
-
light: { family: "
|
|
25670
|
-
dark: { family: "
|
|
25669
|
+
light: { family: "neutral", position: "950" },
|
|
25670
|
+
dark: { family: "neutral", position: "50" },
|
|
25671
25671
|
meaning: "Navigation active text",
|
|
25672
25672
|
contexts: ["nav-active-text"],
|
|
25673
25673
|
do: ["Use for nav active text"],
|
|
25674
25674
|
never: ["Use without active background"]
|
|
25675
25675
|
},
|
|
25676
25676
|
"nav-selected": {
|
|
25677
|
-
light: { family: "
|
|
25678
|
-
dark: { family: "
|
|
25677
|
+
light: { family: "neutral", position: "900" },
|
|
25678
|
+
dark: { family: "neutral", position: "50" },
|
|
25679
25679
|
meaning: "Navigation selected",
|
|
25680
25680
|
contexts: ["nav-selected"],
|
|
25681
25681
|
do: ["Use for selected nav items"],
|
|
25682
25682
|
never: ["Use for unselected items"]
|
|
25683
25683
|
},
|
|
25684
25684
|
"nav-selected-foreground": {
|
|
25685
|
-
light: { family: "
|
|
25686
|
-
dark: { family: "
|
|
25685
|
+
light: { family: "neutral", position: "50" },
|
|
25686
|
+
dark: { family: "neutral", position: "900" },
|
|
25687
25687
|
meaning: "Navigation selected text",
|
|
25688
25688
|
contexts: ["nav-selected-text"],
|
|
25689
25689
|
do: ["Use for selected nav text"],
|
|
25690
25690
|
never: ["Use without selected background"]
|
|
25691
25691
|
},
|
|
25692
25692
|
"nav-disabled": {
|
|
25693
|
-
light: { family: "
|
|
25694
|
-
dark: { family: "
|
|
25693
|
+
light: { family: "neutral", position: "200" },
|
|
25694
|
+
dark: { family: "neutral", position: "800" },
|
|
25695
25695
|
meaning: "Navigation disabled",
|
|
25696
25696
|
contexts: ["nav-disabled"],
|
|
25697
25697
|
do: ["Use for disabled nav items"],
|
|
25698
25698
|
never: ["Use for enabled items"]
|
|
25699
25699
|
},
|
|
25700
25700
|
"nav-disabled-foreground": {
|
|
25701
|
-
light: { family: "
|
|
25702
|
-
dark: { family: "
|
|
25701
|
+
light: { family: "neutral", position: "400" },
|
|
25702
|
+
dark: { family: "neutral", position: "600" },
|
|
25703
25703
|
meaning: "Navigation disabled text",
|
|
25704
25704
|
contexts: ["nav-disabled-text"],
|
|
25705
25705
|
do: ["Use for disabled nav text"],
|
|
@@ -25709,64 +25709,64 @@ var DEFAULT_SEMANTIC_COLOR_MAPPINGS = {
|
|
|
25709
25709
|
// TABLE TOKENS
|
|
25710
25710
|
// ============================================================================
|
|
25711
25711
|
table: {
|
|
25712
|
-
light: { family: "
|
|
25713
|
-
dark: { family: "
|
|
25712
|
+
light: { family: "neutral", position: "50" },
|
|
25713
|
+
dark: { family: "neutral", position: "950" },
|
|
25714
25714
|
meaning: "Table background",
|
|
25715
25715
|
contexts: ["data-tables"],
|
|
25716
25716
|
do: ["Use for table backgrounds"],
|
|
25717
25717
|
never: ["Use for content areas"]
|
|
25718
25718
|
},
|
|
25719
25719
|
"table-foreground": {
|
|
25720
|
-
light: { family: "
|
|
25721
|
-
dark: { family: "
|
|
25720
|
+
light: { family: "neutral", position: "950" },
|
|
25721
|
+
dark: { family: "neutral", position: "50" },
|
|
25722
25722
|
meaning: "Table text",
|
|
25723
25723
|
contexts: ["table-text"],
|
|
25724
25724
|
do: ["Use for table text"],
|
|
25725
25725
|
never: ["Use without table background"]
|
|
25726
25726
|
},
|
|
25727
25727
|
"table-header": {
|
|
25728
|
-
light: { family: "
|
|
25729
|
-
dark: { family: "
|
|
25728
|
+
light: { family: "neutral", position: "100" },
|
|
25729
|
+
dark: { family: "neutral", position: "900" },
|
|
25730
25730
|
meaning: "Table header background",
|
|
25731
25731
|
contexts: ["table-headers"],
|
|
25732
25732
|
do: ["Use for table header backgrounds"],
|
|
25733
25733
|
never: ["Use for table body"]
|
|
25734
25734
|
},
|
|
25735
25735
|
"table-header-foreground": {
|
|
25736
|
-
light: { family: "
|
|
25737
|
-
dark: { family: "
|
|
25736
|
+
light: { family: "neutral", position: "950" },
|
|
25737
|
+
dark: { family: "neutral", position: "50" },
|
|
25738
25738
|
meaning: "Table header text",
|
|
25739
25739
|
contexts: ["table-header-text"],
|
|
25740
25740
|
do: ["Use for table header text"],
|
|
25741
25741
|
never: ["Use for body text"]
|
|
25742
25742
|
},
|
|
25743
25743
|
"table-row-hover": {
|
|
25744
|
-
light: { family: "
|
|
25745
|
-
dark: { family: "
|
|
25744
|
+
light: { family: "neutral", position: "50" },
|
|
25745
|
+
dark: { family: "neutral", position: "900" },
|
|
25746
25746
|
meaning: "Table row hover",
|
|
25747
25747
|
contexts: ["table-row-hover"],
|
|
25748
25748
|
do: ["Use for table row hover"],
|
|
25749
25749
|
never: ["Use as default row background"]
|
|
25750
25750
|
},
|
|
25751
25751
|
"table-row-selected": {
|
|
25752
|
-
light: { family: "
|
|
25753
|
-
dark: { family: "
|
|
25752
|
+
light: { family: "neutral", position: "100" },
|
|
25753
|
+
dark: { family: "neutral", position: "800" },
|
|
25754
25754
|
meaning: "Table row selected",
|
|
25755
25755
|
contexts: ["table-row-selected"],
|
|
25756
25756
|
do: ["Use for selected table rows"],
|
|
25757
25757
|
never: ["Use for unselected rows"]
|
|
25758
25758
|
},
|
|
25759
25759
|
"table-row-selected-foreground": {
|
|
25760
|
-
light: { family: "
|
|
25761
|
-
dark: { family: "
|
|
25760
|
+
light: { family: "neutral", position: "950" },
|
|
25761
|
+
dark: { family: "neutral", position: "50" },
|
|
25762
25762
|
meaning: "Table row selected text",
|
|
25763
25763
|
contexts: ["table-row-selected-text"],
|
|
25764
25764
|
do: ["Use for selected row text"],
|
|
25765
25765
|
never: ["Use without selected background"]
|
|
25766
25766
|
},
|
|
25767
25767
|
"table-border": {
|
|
25768
|
-
light: { family: "
|
|
25769
|
-
dark: { family: "
|
|
25768
|
+
light: { family: "neutral", position: "200" },
|
|
25769
|
+
dark: { family: "neutral", position: "800" },
|
|
25770
25770
|
meaning: "Table border",
|
|
25771
25771
|
contexts: ["table-borders"],
|
|
25772
25772
|
do: ["Use for table borders"],
|
|
@@ -25776,16 +25776,16 @@ var DEFAULT_SEMANTIC_COLOR_MAPPINGS = {
|
|
|
25776
25776
|
// TOOLTIP TOKENS
|
|
25777
25777
|
// ============================================================================
|
|
25778
25778
|
tooltip: {
|
|
25779
|
-
light: { family: "
|
|
25780
|
-
dark: { family: "
|
|
25779
|
+
light: { family: "neutral", position: "900" },
|
|
25780
|
+
dark: { family: "neutral", position: "50" },
|
|
25781
25781
|
meaning: "Tooltip background",
|
|
25782
25782
|
contexts: ["tooltips"],
|
|
25783
25783
|
do: ["Use for tooltip backgrounds"],
|
|
25784
25784
|
never: ["Use for content areas"]
|
|
25785
25785
|
},
|
|
25786
25786
|
"tooltip-foreground": {
|
|
25787
|
-
light: { family: "
|
|
25788
|
-
dark: { family: "
|
|
25787
|
+
light: { family: "neutral", position: "50" },
|
|
25788
|
+
dark: { family: "neutral", position: "900" },
|
|
25789
25789
|
meaning: "Tooltip text",
|
|
25790
25790
|
contexts: ["tooltip-text"],
|
|
25791
25791
|
do: ["Use for tooltip text"],
|
|
@@ -25795,16 +25795,16 @@ var DEFAULT_SEMANTIC_COLOR_MAPPINGS = {
|
|
|
25795
25795
|
// OVERLAY TOKENS
|
|
25796
25796
|
// ============================================================================
|
|
25797
25797
|
overlay: {
|
|
25798
|
-
light: { family: "
|
|
25799
|
-
dark: { family: "
|
|
25798
|
+
light: { family: "neutral", position: "950" },
|
|
25799
|
+
dark: { family: "neutral", position: "950" },
|
|
25800
25800
|
meaning: "Overlay background",
|
|
25801
25801
|
contexts: ["modals", "dialogs", "sheets"],
|
|
25802
25802
|
do: ["Use for modal backdrops"],
|
|
25803
25803
|
never: ["Use for content backgrounds"]
|
|
25804
25804
|
},
|
|
25805
25805
|
"overlay-foreground": {
|
|
25806
|
-
light: { family: "
|
|
25807
|
-
dark: { family: "
|
|
25806
|
+
light: { family: "neutral", position: "50" },
|
|
25807
|
+
dark: { family: "neutral", position: "50" },
|
|
25808
25808
|
meaning: "Overlay text",
|
|
25809
25809
|
contexts: ["overlay-text"],
|
|
25810
25810
|
do: ["Use for text on overlays"],
|
|
@@ -25814,16 +25814,16 @@ var DEFAULT_SEMANTIC_COLOR_MAPPINGS = {
|
|
|
25814
25814
|
// SKELETON/LOADING TOKENS
|
|
25815
25815
|
// ============================================================================
|
|
25816
25816
|
skeleton: {
|
|
25817
|
-
light: { family: "
|
|
25818
|
-
dark: { family: "
|
|
25817
|
+
light: { family: "neutral", position: "200" },
|
|
25818
|
+
dark: { family: "neutral", position: "800" },
|
|
25819
25819
|
meaning: "Skeleton loader background",
|
|
25820
25820
|
contexts: ["loading-states", "skeletons"],
|
|
25821
25821
|
do: ["Use for skeleton backgrounds"],
|
|
25822
25822
|
never: ["Use for content backgrounds"]
|
|
25823
25823
|
},
|
|
25824
25824
|
"skeleton-highlight": {
|
|
25825
|
-
light: { family: "
|
|
25826
|
-
dark: { family: "
|
|
25825
|
+
light: { family: "neutral", position: "300" },
|
|
25826
|
+
dark: { family: "neutral", position: "700" },
|
|
25827
25827
|
meaning: "Skeleton loader highlight",
|
|
25828
25828
|
contexts: ["skeleton-animation"],
|
|
25829
25829
|
do: ["Use for skeleton animation highlight"],
|
|
@@ -25876,24 +25876,24 @@ var DEFAULT_SEMANTIC_COLOR_MAPPINGS = {
|
|
|
25876
25876
|
// SCROLLBAR TOKENS
|
|
25877
25877
|
// ============================================================================
|
|
25878
25878
|
scrollbar: {
|
|
25879
|
-
light: { family: "
|
|
25880
|
-
dark: { family: "
|
|
25879
|
+
light: { family: "neutral", position: "300" },
|
|
25880
|
+
dark: { family: "neutral", position: "700" },
|
|
25881
25881
|
meaning: "Scrollbar thumb color",
|
|
25882
25882
|
contexts: ["scrollbars"],
|
|
25883
25883
|
do: ["Use for scrollbar thumbs"],
|
|
25884
25884
|
never: ["Use for content elements"]
|
|
25885
25885
|
},
|
|
25886
25886
|
"scrollbar-hover": {
|
|
25887
|
-
light: { family: "
|
|
25888
|
-
dark: { family: "
|
|
25887
|
+
light: { family: "neutral", position: "400" },
|
|
25888
|
+
dark: { family: "neutral", position: "600" },
|
|
25889
25889
|
meaning: "Scrollbar thumb hover",
|
|
25890
25890
|
contexts: ["scrollbar-hover"],
|
|
25891
25891
|
do: ["Use for scrollbar thumb hover"],
|
|
25892
25892
|
never: ["Use as default scrollbar color"]
|
|
25893
25893
|
},
|
|
25894
25894
|
"scrollbar-track": {
|
|
25895
|
-
light: { family: "
|
|
25896
|
-
dark: { family: "
|
|
25895
|
+
light: { family: "neutral", position: "100" },
|
|
25896
|
+
dark: { family: "neutral", position: "900" },
|
|
25897
25897
|
meaning: "Scrollbar track background",
|
|
25898
25898
|
contexts: ["scrollbar-tracks"],
|
|
25899
25899
|
do: ["Use for scrollbar track backgrounds"],
|
|
@@ -25903,24 +25903,24 @@ var DEFAULT_SEMANTIC_COLOR_MAPPINGS = {
|
|
|
25903
25903
|
// CODE/SYNTAX TOKENS
|
|
25904
25904
|
// ============================================================================
|
|
25905
25905
|
code: {
|
|
25906
|
-
light: { family: "
|
|
25907
|
-
dark: { family: "
|
|
25906
|
+
light: { family: "neutral", position: "100" },
|
|
25907
|
+
dark: { family: "neutral", position: "900" },
|
|
25908
25908
|
meaning: "Code block background",
|
|
25909
25909
|
contexts: ["code-blocks", "inline-code"],
|
|
25910
25910
|
do: ["Use for code backgrounds"],
|
|
25911
25911
|
never: ["Use for regular text"]
|
|
25912
25912
|
},
|
|
25913
25913
|
"code-foreground": {
|
|
25914
|
-
light: { family: "
|
|
25915
|
-
dark: { family: "
|
|
25914
|
+
light: { family: "neutral", position: "900" },
|
|
25915
|
+
dark: { family: "neutral", position: "100" },
|
|
25916
25916
|
meaning: "Code text color",
|
|
25917
25917
|
contexts: ["code-text"],
|
|
25918
25918
|
do: ["Use for code text"],
|
|
25919
25919
|
never: ["Use without code background"]
|
|
25920
25920
|
},
|
|
25921
25921
|
"code-border": {
|
|
25922
|
-
light: { family: "
|
|
25923
|
-
dark: { family: "
|
|
25922
|
+
light: { family: "neutral", position: "200" },
|
|
25923
|
+
dark: { family: "neutral", position: "800" },
|
|
25924
25924
|
meaning: "Code block border",
|
|
25925
25925
|
contexts: ["code-borders"],
|
|
25926
25926
|
do: ["Use for code block borders"],
|
|
@@ -25930,24 +25930,24 @@ var DEFAULT_SEMANTIC_COLOR_MAPPINGS = {
|
|
|
25930
25930
|
// BADGE TOKENS
|
|
25931
25931
|
// ============================================================================
|
|
25932
25932
|
badge: {
|
|
25933
|
-
light: { family: "
|
|
25934
|
-
dark: { family: "
|
|
25933
|
+
light: { family: "neutral", position: "100" },
|
|
25934
|
+
dark: { family: "neutral", position: "800" },
|
|
25935
25935
|
meaning: "Badge background",
|
|
25936
25936
|
contexts: ["badges", "labels"],
|
|
25937
25937
|
do: ["Use for badge backgrounds"],
|
|
25938
25938
|
never: ["Use for buttons"]
|
|
25939
25939
|
},
|
|
25940
25940
|
"badge-foreground": {
|
|
25941
|
-
light: { family: "
|
|
25942
|
-
dark: { family: "
|
|
25941
|
+
light: { family: "neutral", position: "900" },
|
|
25942
|
+
dark: { family: "neutral", position: "100" },
|
|
25943
25943
|
meaning: "Badge text color",
|
|
25944
25944
|
contexts: ["badge-text"],
|
|
25945
25945
|
do: ["Use for badge text"],
|
|
25946
25946
|
never: ["Use without badge background"]
|
|
25947
25947
|
},
|
|
25948
25948
|
"badge-border": {
|
|
25949
|
-
light: { family: "
|
|
25950
|
-
dark: { family: "
|
|
25949
|
+
light: { family: "neutral", position: "200" },
|
|
25950
|
+
dark: { family: "neutral", position: "700" },
|
|
25951
25951
|
meaning: "Badge border",
|
|
25952
25952
|
contexts: ["badge-borders"],
|
|
25953
25953
|
do: ["Use for badge borders"],
|
|
@@ -25957,16 +25957,16 @@ var DEFAULT_SEMANTIC_COLOR_MAPPINGS = {
|
|
|
25957
25957
|
// AVATAR TOKENS
|
|
25958
25958
|
// ============================================================================
|
|
25959
25959
|
avatar: {
|
|
25960
|
-
light: { family: "
|
|
25961
|
-
dark: { family: "
|
|
25960
|
+
light: { family: "neutral", position: "200" },
|
|
25961
|
+
dark: { family: "neutral", position: "800" },
|
|
25962
25962
|
meaning: "Avatar fallback background",
|
|
25963
25963
|
contexts: ["avatars", "fallback-images"],
|
|
25964
25964
|
do: ["Use for avatar fallback backgrounds"],
|
|
25965
25965
|
never: ["Use for content backgrounds"]
|
|
25966
25966
|
},
|
|
25967
25967
|
"avatar-foreground": {
|
|
25968
|
-
light: { family: "
|
|
25969
|
-
dark: { family: "
|
|
25968
|
+
light: { family: "neutral", position: "600" },
|
|
25969
|
+
dark: { family: "neutral", position: "400" },
|
|
25970
25970
|
meaning: "Avatar fallback text/icon color",
|
|
25971
25971
|
contexts: ["avatar-initials", "avatar-icons"],
|
|
25972
25972
|
do: ["Use for avatar initials or icons"],
|
|
@@ -28881,6 +28881,17 @@ function readEnvelopes(dir) {
|
|
|
28881
28881
|
}
|
|
28882
28882
|
|
|
28883
28883
|
// ../design-tokens/src/plugin.ts
|
|
28884
|
+
function resolveFamily(familyName, get3) {
|
|
28885
|
+
let resolved = get3(familyName);
|
|
28886
|
+
let resolvedName = familyName;
|
|
28887
|
+
if (resolved && typeof resolved === "object" && "family" in resolved && "position" in resolved) {
|
|
28888
|
+
resolvedName = resolved.family;
|
|
28889
|
+
resolved = get3(resolvedName);
|
|
28890
|
+
}
|
|
28891
|
+
const family = resolved;
|
|
28892
|
+
if (!family) return null;
|
|
28893
|
+
return { family, resolvedName };
|
|
28894
|
+
}
|
|
28884
28895
|
function definePlugin(spec) {
|
|
28885
28896
|
return {
|
|
28886
28897
|
name: spec.name,
|
|
@@ -29047,18 +29058,18 @@ var invertPlugin = definePlugin({
|
|
|
29047
29058
|
outputSchema: ColorReferenceSchema,
|
|
29048
29059
|
dependsOn: (input2) => [input2.familyName],
|
|
29049
29060
|
transform: (input2, get3) => {
|
|
29050
|
-
const
|
|
29051
|
-
if (!
|
|
29061
|
+
const result = resolveFamily(input2.familyName, get3);
|
|
29062
|
+
if (!result) {
|
|
29052
29063
|
throw new Error(`invert plugin: family "${input2.familyName}" not found in registry`);
|
|
29053
29064
|
}
|
|
29054
|
-
const darkIndex = findDarkCounterpartIndex(input2.basePosition, family);
|
|
29065
|
+
const darkIndex = findDarkCounterpartIndex(input2.basePosition, result.family);
|
|
29055
29066
|
const darkPosition = SCALE_POSITIONS[darkIndex];
|
|
29056
29067
|
if (!darkPosition) {
|
|
29057
29068
|
throw new Error(
|
|
29058
29069
|
`invert plugin: invalid dark index ${darkIndex} for base position ${input2.basePosition}`
|
|
29059
29070
|
);
|
|
29060
29071
|
}
|
|
29061
|
-
return { family:
|
|
29072
|
+
return { family: result.resolvedName, position: darkPosition };
|
|
29062
29073
|
}
|
|
29063
29074
|
});
|
|
29064
29075
|
|
|
@@ -29073,15 +29084,15 @@ var scalePlugin = definePlugin({
|
|
|
29073
29084
|
outputSchema: ColorReferenceSchema,
|
|
29074
29085
|
dependsOn: (input2) => [input2.familyName],
|
|
29075
29086
|
transform: (input2, get3) => {
|
|
29076
|
-
const
|
|
29077
|
-
if (!
|
|
29087
|
+
const result = resolveFamily(input2.familyName, get3);
|
|
29088
|
+
if (!result) {
|
|
29078
29089
|
throw new Error(`scale plugin: family "${input2.familyName}" not found in registry`);
|
|
29079
29090
|
}
|
|
29080
29091
|
const position = SCALE_POSITIONS[input2.scalePosition];
|
|
29081
29092
|
if (position === void 0) {
|
|
29082
29093
|
throw new Error(`scale plugin: invalid position index ${input2.scalePosition}`);
|
|
29083
29094
|
}
|
|
29084
|
-
return { family:
|
|
29095
|
+
return { family: result.resolvedName, position };
|
|
29085
29096
|
}
|
|
29086
29097
|
});
|
|
29087
29098
|
|
|
@@ -29210,6 +29221,15 @@ async function backupCss(cssPath) {
|
|
|
29210
29221
|
await copyFile(cssPath, backupPath);
|
|
29211
29222
|
return backupPath;
|
|
29212
29223
|
}
|
|
29224
|
+
async function stripImportedDeclarations(cwd, cssPath, importedNames) {
|
|
29225
|
+
if (importedNames.length === 0) return;
|
|
29226
|
+
const fullPath = join7(cwd, cssPath);
|
|
29227
|
+
const content = await readFile4(fullPath, "utf-8");
|
|
29228
|
+
const pattern = new RegExp(importedNames.map((n2) => `^\\s*--${n2}[^;]*;\\s*$`).join("|"), "gm");
|
|
29229
|
+
const cleaned = content.replace(pattern, "");
|
|
29230
|
+
const collapsed = cleaned.replace(/\n{3,}/g, "\n\n");
|
|
29231
|
+
await writeFile2(fullPath, collapsed);
|
|
29232
|
+
}
|
|
29213
29233
|
async function updateMainCss(cwd, cssPath, themePath) {
|
|
29214
29234
|
const fullCssPath = join7(cwd, cssPath);
|
|
29215
29235
|
const cssContent = await readFile4(fullCssPath, "utf-8");
|
|
@@ -29771,6 +29791,11 @@ async function init(options) {
|
|
|
29771
29791
|
}
|
|
29772
29792
|
saveRegistryToDir(paths.tokens, registry2);
|
|
29773
29793
|
await generateOutputs(cwd, paths, registry2, exports, shadcn);
|
|
29794
|
+
const importedNames = [
|
|
29795
|
+
...toImportColors.map((c4) => c4.name),
|
|
29796
|
+
...toImportNonColors.map((d2) => d2.name)
|
|
29797
|
+
];
|
|
29798
|
+
await stripImportedDeclarations(cwd, detectedCssPath, importedNames);
|
|
29774
29799
|
log({
|
|
29775
29800
|
event: "init:import_applied",
|
|
29776
29801
|
count: toImportColors.length + toImportNonColors.length - skipped.length,
|
|
@@ -29854,6 +29879,10 @@ async function init(options) {
|
|
|
29854
29879
|
}
|
|
29855
29880
|
saveRegistryToDir(paths.tokens, registry2);
|
|
29856
29881
|
await generateOutputs(cwd, paths, registry2, exports, shadcn);
|
|
29882
|
+
const themeImportedNames = families.flatMap(
|
|
29883
|
+
(f) => SCALE_POSITIONS.map((p2) => `color-${f.name}-${p2}`).concat([`color-${f.name}`])
|
|
29884
|
+
);
|
|
29885
|
+
await stripImportedDeclarations(cwd, detectedCssPath, themeImportedNames);
|
|
29857
29886
|
log({
|
|
29858
29887
|
event: "init:import_palettes_applied",
|
|
29859
29888
|
cssPath: detectedCssPath,
|