@breadstone/mosaik-themes 0.0.31 → 0.0.32
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/Themes/bootstrap.scss +0 -15
- package/Themes/cosmopolitan.scss +260 -579
- package/Themes/fluent.scss +1 -68
- package/Themes/joy.scss +266 -594
- package/Themes/material.scss +0 -15
- package/Themes/retro.scss +269 -593
- package/_index.scss +24 -0
- package/package.json +10 -2
package/Themes/fluent.scss
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
2
|
@use 'sass:list';
|
|
3
3
|
@use 'sass:meta';
|
|
4
|
-
|
|
5
4
|
@mixin _generate-elevation-vars($map, $prefix, $mode) {
|
|
6
5
|
@each $key, $value in $map {
|
|
7
6
|
@if meta.type-of($value) == 'map' {
|
|
@@ -15,7 +14,6 @@
|
|
|
15
14
|
}
|
|
16
15
|
}
|
|
17
16
|
}
|
|
18
|
-
|
|
19
17
|
@mixin _generate-elevation-composite($map, $prefix, $mode) {
|
|
20
18
|
@each $key, $value in $map {
|
|
21
19
|
@if meta.type-of($value) == 'map' {
|
|
@@ -31,7 +29,6 @@
|
|
|
31
29
|
}
|
|
32
30
|
}
|
|
33
31
|
}
|
|
34
|
-
|
|
35
32
|
@mixin _remap-elevation-vars($map, $prefix, $mode) {
|
|
36
33
|
@each $key, $value in $map {
|
|
37
34
|
@if meta.type-of($value) == 'map' {
|
|
@@ -46,24 +43,18 @@
|
|
|
46
43
|
}
|
|
47
44
|
}
|
|
48
45
|
}
|
|
49
|
-
|
|
50
46
|
@function box-shadow($x: 0px, $y: 0px, $blur: 0px, $spread: 0px, $color: rgba(0, 0, 0, 0.5), $inset: false) {
|
|
51
47
|
$shadow: #{$x} #{$y} #{$blur} #{$spread} #{$color};
|
|
52
|
-
|
|
53
48
|
@if $inset {
|
|
54
49
|
$shadow: inset $shadow;
|
|
55
50
|
}
|
|
56
|
-
|
|
57
51
|
@return $shadow;
|
|
58
52
|
}
|
|
59
|
-
|
|
60
53
|
@function box-shadow-with-color($shadows, $new-color) {
|
|
61
54
|
$output: ();
|
|
62
|
-
|
|
63
55
|
@each $shadow in $shadows {
|
|
64
56
|
$parts: ();
|
|
65
57
|
$color: null;
|
|
66
|
-
|
|
67
58
|
// break apart the shadow into components
|
|
68
59
|
@each $part in $shadow {
|
|
69
60
|
@if type-of($part) == 'color' {
|
|
@@ -72,15 +63,12 @@
|
|
|
72
63
|
$parts: append($parts, $part);
|
|
73
64
|
}
|
|
74
65
|
}
|
|
75
|
-
|
|
76
66
|
// append the new color in place of the original
|
|
77
67
|
$parts: append($parts, $new-color);
|
|
78
68
|
$output: append($output, $parts, comma);
|
|
79
69
|
}
|
|
80
|
-
|
|
81
70
|
@return $output;
|
|
82
71
|
}
|
|
83
|
-
|
|
84
72
|
$name: "fluent";
|
|
85
73
|
$font-family: 'Inter', Roboto, Helvetica, sans-serif;
|
|
86
74
|
$layout-radius: 12px;
|
|
@@ -98,9 +86,6 @@ $duration-duration-gentle: 250ms;
|
|
|
98
86
|
$duration-duration-slow: 300ms;
|
|
99
87
|
$duration-duration-slower: 400ms;
|
|
100
88
|
$duration-duration-ultra-slow: 500ms;
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
89
|
$_light-colors-map: (
|
|
105
90
|
colorNeutralForeground1: var(--fluent-grey-14-color),
|
|
106
91
|
colorNeutralForeground1Hover: var(--fluent-grey-14-color),
|
|
@@ -269,7 +254,6 @@ $_light-colors-map: (
|
|
|
269
254
|
colorBrandShadowAmbient: 'rgba(0,0,0,0.30)',
|
|
270
255
|
colorBrandShadowKey: 'rgba(0,0,0,0.25)'
|
|
271
256
|
);
|
|
272
|
-
|
|
273
257
|
$_dark-colors-map: (
|
|
274
258
|
colorNeutralForeground1: var(--fluent-white-color),
|
|
275
259
|
colorNeutralForeground1Hover: var(--fluent-white-color),
|
|
@@ -438,14 +422,12 @@ $_dark-colors-map: (
|
|
|
438
422
|
colorBrandShadowAmbient: 'rgba(0,0,0,0.30)',
|
|
439
423
|
colorBrandShadowKey: 'rgba(0,0,0,0.25)'
|
|
440
424
|
);
|
|
441
|
-
|
|
442
425
|
@mixin alias-style($prefix) {
|
|
443
426
|
:root,
|
|
444
427
|
:host {
|
|
445
428
|
@each $alias, $value in $_light-colors-map {
|
|
446
429
|
#{'--#{$prefix}-#{$alias}'}: #{$value};
|
|
447
430
|
}
|
|
448
|
-
|
|
449
431
|
// @media (prefers-color-scheme: dark) {
|
|
450
432
|
// @each $alias, $value in $_dark-colors-map {
|
|
451
433
|
// #{'--#{$prefix}-#{$alias}'}: #{$value};
|
|
@@ -453,7 +435,6 @@ $_dark-colors-map: (
|
|
|
453
435
|
// }
|
|
454
436
|
}
|
|
455
437
|
}
|
|
456
|
-
|
|
457
438
|
$_border-radius: (
|
|
458
439
|
borderRadiusNone: '0',
|
|
459
440
|
borderRadiusSmall: '2px',
|
|
@@ -462,7 +443,6 @@ $_border-radius: (
|
|
|
462
443
|
borderRadiusXLarge: '8px',
|
|
463
444
|
borderRadiusCircular: '10000px'
|
|
464
445
|
);
|
|
465
|
-
|
|
466
446
|
@mixin border-radius-style($prefix) {
|
|
467
447
|
:root,
|
|
468
448
|
:host {
|
|
@@ -471,7 +451,6 @@ $_border-radius: (
|
|
|
471
451
|
}
|
|
472
452
|
}
|
|
473
453
|
}
|
|
474
|
-
|
|
475
454
|
$_colors-map: (
|
|
476
455
|
primary: (
|
|
477
456
|
10: #061724,
|
|
@@ -531,7 +510,6 @@ $_colors-map: (
|
|
|
531
510
|
primary: #e06a3f
|
|
532
511
|
)
|
|
533
512
|
);
|
|
534
|
-
|
|
535
513
|
@mixin brand-color-style($prefix) {
|
|
536
514
|
:root,
|
|
537
515
|
:host {
|
|
@@ -542,9 +520,6 @@ $_colors-map: (
|
|
|
542
520
|
}
|
|
543
521
|
}
|
|
544
522
|
}
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
523
|
$_colors: (
|
|
549
524
|
grey: (
|
|
550
525
|
2: #050505,
|
|
@@ -1354,7 +1329,6 @@ $_colors: (
|
|
|
1354
1329
|
tint60: #f7f7f7
|
|
1355
1330
|
)
|
|
1356
1331
|
);
|
|
1357
|
-
|
|
1358
1332
|
@mixin color-style($prefix) {
|
|
1359
1333
|
:root,
|
|
1360
1334
|
:host {
|
|
@@ -1369,7 +1343,6 @@ $_colors: (
|
|
|
1369
1343
|
}
|
|
1370
1344
|
}
|
|
1371
1345
|
}
|
|
1372
|
-
|
|
1373
1346
|
$_curves: (
|
|
1374
1347
|
curveAccelerateMax: 'cubic-bezier(0.9,0.1,1,0.2)',
|
|
1375
1348
|
curveAccelerateMid: 'cubic-bezier(1,0,1,1)',
|
|
@@ -1381,7 +1354,6 @@ $_curves: (
|
|
|
1381
1354
|
curveEasyEase: 'cubic-bezier(0.33,0,0.67,1)',
|
|
1382
1355
|
curveLinear: 'cubic-bezier(0,0,1,1)'
|
|
1383
1356
|
);
|
|
1384
|
-
|
|
1385
1357
|
@mixin curve-style($prefix) {
|
|
1386
1358
|
:root,
|
|
1387
1359
|
:host {
|
|
@@ -1390,7 +1362,6 @@ $_curves: (
|
|
|
1390
1362
|
}
|
|
1391
1363
|
}
|
|
1392
1364
|
}
|
|
1393
|
-
|
|
1394
1365
|
$_durations: (
|
|
1395
1366
|
durationUltraFast: '50ms',
|
|
1396
1367
|
durationFaster: '100ms',
|
|
@@ -1401,7 +1372,6 @@ $_durations: (
|
|
|
1401
1372
|
durationSlower: '400ms',
|
|
1402
1373
|
durationUltraSlow: '500ms'
|
|
1403
1374
|
);
|
|
1404
|
-
|
|
1405
1375
|
@mixin duration-style($prefix) {
|
|
1406
1376
|
:root,
|
|
1407
1377
|
:host {
|
|
@@ -1410,17 +1380,10 @@ $_durations: (
|
|
|
1410
1380
|
}
|
|
1411
1381
|
}
|
|
1412
1382
|
}
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
1383
|
$thickness-factor: $layout-thickness;
|
|
1420
1384
|
$radius-factor: $layout-radius;
|
|
1421
1385
|
$space-factor: $layout-space;
|
|
1422
1386
|
$transition: $duration-duration-normal;
|
|
1423
|
-
|
|
1424
1387
|
@function _layout-palette($prefix, $radius, $thickness, $space, $transition: $transition) {
|
|
1425
1388
|
$layouts: ();
|
|
1426
1389
|
$layouts: map.merge(
|
|
@@ -1455,16 +1418,13 @@ $transition: $duration-duration-normal;
|
|
|
1455
1418
|
'#{$prefix}-layout-transition': $transition
|
|
1456
1419
|
)
|
|
1457
1420
|
);
|
|
1458
|
-
|
|
1459
1421
|
@return $layouts;
|
|
1460
1422
|
}
|
|
1461
|
-
|
|
1462
1423
|
/// @access private
|
|
1463
1424
|
/// @group Layout
|
|
1464
1425
|
/// @requires {function} empty
|
|
1465
1426
|
@mixin _layout-style($prefix, $radius, $thickness, $space) {
|
|
1466
1427
|
$palette: _layout-palette($prefix, $radius, $thickness, $space);
|
|
1467
|
-
|
|
1468
1428
|
@if list.length($palette) {
|
|
1469
1429
|
:root,
|
|
1470
1430
|
:host {
|
|
@@ -1474,16 +1434,12 @@ $transition: $duration-duration-normal;
|
|
|
1474
1434
|
}
|
|
1475
1435
|
}
|
|
1476
1436
|
}
|
|
1477
|
-
|
|
1478
1437
|
/// @access public
|
|
1479
1438
|
/// @group Layout
|
|
1480
1439
|
/// @requires {mixin} _layout-style
|
|
1481
1440
|
@mixin layout-style($prefix, $radius: $radius-factor, $thickness: $thickness-factor, $space: $space-factor) {
|
|
1482
1441
|
@include _layout-style($prefix, $radius, $thickness, $space);
|
|
1483
1442
|
}
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
1443
|
$_spacings-map: (
|
|
1488
1444
|
none: '0',
|
|
1489
1445
|
xxs: '2px',
|
|
@@ -1497,7 +1453,6 @@ $_spacings-map: (
|
|
|
1497
1453
|
xxl: '24px',
|
|
1498
1454
|
xxxl: '32px'
|
|
1499
1455
|
);
|
|
1500
|
-
|
|
1501
1456
|
$_horizontal-spacings: (
|
|
1502
1457
|
spacingHorizontalNone: map.get($_spacings-map, none),
|
|
1503
1458
|
spacingHorizontalXXS: map.get($_spacings-map, xxs),
|
|
@@ -1511,7 +1466,6 @@ $_horizontal-spacings: (
|
|
|
1511
1466
|
spacingHorizontalXXL: map.get($_spacings-map, xxl),
|
|
1512
1467
|
spacingHorizontalXXXL: map.get($_spacings-map, xxxl)
|
|
1513
1468
|
);
|
|
1514
|
-
|
|
1515
1469
|
$_vertical-spacings: (
|
|
1516
1470
|
spacingVerticalNone: map.get($_spacings-map, none),
|
|
1517
1471
|
spacingVerticalXXS: map.get($_spacings-map, xxs),
|
|
@@ -1525,10 +1479,8 @@ $_vertical-spacings: (
|
|
|
1525
1479
|
spacingVerticalXXL: map.get($_spacings-map, xxl),
|
|
1526
1480
|
spacingVerticalXXXL: map.get($_spacings-map, xxxl)
|
|
1527
1481
|
);
|
|
1528
|
-
|
|
1529
1482
|
@mixin spacing-style($prefix) {
|
|
1530
1483
|
$spacings: map.merge($_horizontal-spacings, $_vertical-spacings);
|
|
1531
|
-
|
|
1532
1484
|
:root,
|
|
1533
1485
|
:host {
|
|
1534
1486
|
@each $spacing, $value in $spacings {
|
|
@@ -1536,14 +1488,12 @@ $_vertical-spacings: (
|
|
|
1536
1488
|
}
|
|
1537
1489
|
}
|
|
1538
1490
|
}
|
|
1539
|
-
|
|
1540
1491
|
$_stroke-widths: (
|
|
1541
1492
|
strokeWidthThin: '1px',
|
|
1542
1493
|
strokeWidthThick: '2px',
|
|
1543
1494
|
strokeWidthThicker: '3px',
|
|
1544
1495
|
strokeWidthThickest: '4px'
|
|
1545
1496
|
);
|
|
1546
|
-
|
|
1547
1497
|
@mixin stroke-width-style($prefix) {
|
|
1548
1498
|
:root,
|
|
1549
1499
|
:host {
|
|
@@ -1552,21 +1502,8 @@ $_stroke-widths: (
|
|
|
1552
1502
|
}
|
|
1553
1503
|
}
|
|
1554
1504
|
}
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
1505
|
@mixin fluent-style($radius: $layout-radius, $thickness: $layout-thickness, $space: $layout-space) {
|
|
1568
1506
|
$theme: 'fluent';
|
|
1569
|
-
|
|
1570
1507
|
// @include layout-style($radius, $thickness, $space);
|
|
1571
1508
|
@include color-style($theme);
|
|
1572
1509
|
@include spacing-style($theme);
|
|
@@ -1576,14 +1513,11 @@ $_stroke-widths: (
|
|
|
1576
1513
|
@include brand-color-style($theme);
|
|
1577
1514
|
@include duration-style($theme);
|
|
1578
1515
|
@include curve-style($theme);
|
|
1579
|
-
|
|
1580
1516
|
:root,
|
|
1581
1517
|
:host {
|
|
1582
1518
|
@content;
|
|
1583
1519
|
}
|
|
1584
1520
|
}
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
1521
|
$button-props: (
|
|
1588
1522
|
'font-family': var(--unknown),
|
|
1589
1523
|
'font-size': var(--unknown),
|
|
@@ -1610,8 +1544,7 @@ $button-props: (
|
|
|
1610
1544
|
'width': var(--unknown),
|
|
1611
1545
|
'height': var(--unknown),
|
|
1612
1546
|
'progress-thickness': var(--unknown)
|
|
1613
|
-
);
|
|
1614
|
-
|
|
1547
|
+
);
|
|
1615
1548
|
$text-box-props: (
|
|
1616
1549
|
'font-family': var(--theme-typography),
|
|
1617
1550
|
'font-size': 16px,
|