coveragebook_components 0.19.1 → 0.19.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ddda4d2e278e6259a45856fe50f05eefffa161a337489494e12b8198584b7afb
4
- data.tar.gz: e2476d7be98d6c3b35529d498cb3d4c1c88b4eb51ce1cc11b76bbf3fdc927d79
3
+ metadata.gz: 5070cfdd98c6756ccb797a78bd59629c232de7dffef0eb89159160c920a770b4
4
+ data.tar.gz: 26f34b06acd278881a4b3b3c661b746300b014eaf38e2b5d5703bdb4b91dc26c
5
5
  SHA512:
6
- metadata.gz: 6457b878c1d4891014e51a9439fe3e145b0bc55612b79ab594c98c1999929385015d9d37f983e35b48bee973af1409aabd2d08577b8587c9d51f68da2597f178
7
- data.tar.gz: 382ec0a0021eb489bc7901c67f4cac5825cdf115d3b8d3f439b6873092790413be6c8357968b522b4ab32e954a59a5bd3933b024dd73fa83e8ba1d7e4aeb6d28
6
+ metadata.gz: aa8823631eab711945f593fe35a9466ce68cccb1c950c5aef153305acd4b4d86e92633070a24fbd3b7f86cbcfaf59eb1d35cd5c77288075dd21e93be3c1587a2
7
+ data.tar.gz: 9bdfa43e88ccb8ad26b4f29e6138801f98d3af0c5514ede9b5a4b88c3753ec14afbff4b0f711abb96b02430b17ae60320beffa8a0c5868b2be52f77411d8e2ed
@@ -591,10 +591,165 @@ select{
591
591
  outline: 1px solid ButtonText;
592
592
  outline: 1px auto -webkit-focus-ring-color
593
593
  }
594
- :root {
594
+
595
+ :root{
596
+ --coco-colors-transparent: transparent;
597
+ --coco-colors-current: currentColor;
598
+ --coco-colors-black: #000000;
599
+ --coco-colors-white: #FFFFFF;
600
+ --coco-colors-gray-50: #F9FAFB;
601
+ --coco-colors-gray-100: #F3F4F6;
602
+ --coco-colors-gray-200: #E5E7EB;
603
+ --coco-colors-gray-300: #D1D5DB;
604
+ --coco-colors-gray-400: #9CA3AF;
605
+ --coco-colors-gray-500: #6B7280;
606
+ --coco-colors-gray-600: #4B5563;
607
+ --coco-colors-gray-700: #374151;
608
+ --coco-colors-gray-800: #1F2937;
609
+ --coco-colors-gray-900: #111827;
610
+ --coco-colors-green-50: #E8F3F1;
611
+ --coco-colors-green-100: #D1E7E2;
612
+ --coco-colors-green-200: #A3CFC5;
613
+ --coco-colors-green-300: #76B8AA;
614
+ --coco-colors-green-400: #48A08D;
615
+ --coco-colors-green-500: #1A8871;
616
+ --coco-colors-green-600: #137464;
617
+ --coco-colors-green-700: #0D6159;
618
+ --coco-colors-green-800: #084C4E;
619
+ --coco-colors-green-900: #013C43;
620
+ --coco-colors-red-50: #FEF2F2;
621
+ --coco-colors-red-100: #FEE2E2;
622
+ --coco-colors-red-200: #FECACA;
623
+ --coco-colors-red-300: #FCA5A5;
624
+ --coco-colors-red-400: #F87171;
625
+ --coco-colors-red-500: #EF4444;
626
+ --coco-colors-red-600: #DC2626;
627
+ --coco-colors-red-700: #B91C1C;
628
+ --coco-colors-red-800: #991B1B;
629
+ --coco-colors-red-900: #7F1D1D;
630
+ --coco-colors-amber-50: #FFFBEB;
631
+ --coco-colors-amber-100: #FEF3C7;
632
+ --coco-colors-amber-200: #FDE68A;
633
+ --coco-colors-amber-300: #FCD34D;
634
+ --coco-colors-amber-400: #FBBF24;
635
+ --coco-colors-amber-500: #F59E0B;
636
+ --coco-colors-amber-600: #D97706;
637
+ --coco-colors-amber-700: #B45309;
638
+ --coco-colors-amber-800: #92400E;
639
+ --coco-colors-amber-900: #78350F;
640
+ --coco-colors-blue-50: #F0F9FF;
641
+ --coco-colors-blue-100: #E0F2FE;
642
+ --coco-colors-blue-200: #BAE6FD;
643
+ --coco-colors-blue-300: #7DD3FC;
644
+ --coco-colors-blue-400: #38BDF8;
645
+ --coco-colors-blue-500: #0EA5E9;
646
+ --coco-colors-blue-600: #0284C7;
647
+ --coco-colors-blue-700: #0369A1;
648
+ --coco-colors-blue-800: #075985;
649
+ --coco-colors-blue-900: #0C4A6E;
650
+ --coco-colors-teal-50: #F0FDFA;
651
+ --coco-colors-teal-100: #CCFBF1;
652
+ --coco-colors-teal-200: #99F6E4;
653
+ --coco-colors-teal-300: #5EEAD4;
654
+ --coco-colors-teal-400: #2DD4BF;
655
+ --coco-colors-teal-500: #14B8A6;
656
+ --coco-colors-teal-600: #0D9488;
657
+ --coco-colors-teal-700: #0F766E;
658
+ --coco-colors-teal-800: #115E59;
659
+ --coco-colors-teal-900: #134E4A;
660
+ --coco-colors-primary-50: #E8F3F1;
661
+ --coco-colors-primary-100: #D1E7E2;
662
+ --coco-colors-primary-200: #A3CFC5;
663
+ --coco-colors-primary-300: #76B8AA;
664
+ --coco-colors-primary-400: #48A08D;
665
+ --coco-colors-primary-500: #1A8871;
666
+ --coco-colors-primary-600: #137464;
667
+ --coco-colors-primary-700: #0D6159;
668
+ --coco-colors-primary-800: #084C4E;
669
+ --coco-colors-primary-900: #013C43;
670
+ --coco-colors-positive-50: #E8F3F1;
671
+ --coco-colors-positive-100: #D1E7E2;
672
+ --coco-colors-positive-200: #A3CFC5;
673
+ --coco-colors-positive-300: #76B8AA;
674
+ --coco-colors-positive-400: #48A08D;
675
+ --coco-colors-positive-500: #1A8871;
676
+ --coco-colors-positive-600: #137464;
677
+ --coco-colors-positive-700: #0D6159;
678
+ --coco-colors-positive-800: #084C4E;
679
+ --coco-colors-positive-900: #013C43;
680
+ --coco-colors-negative-50: #FEF2F2;
681
+ --coco-colors-negative-100: #FEE2E2;
682
+ --coco-colors-negative-200: #FECACA;
683
+ --coco-colors-negative-300: #FCA5A5;
684
+ --coco-colors-negative-400: #F87171;
685
+ --coco-colors-negative-500: #EF4444;
686
+ --coco-colors-negative-600: #DC2626;
687
+ --coco-colors-negative-700: #B91C1C;
688
+ --coco-colors-negative-800: #991B1B;
689
+ --coco-colors-negative-900: #7F1D1D;
690
+ --coco-colors-warning-50: #FFFBEB;
691
+ --coco-colors-warning-100: #FEF3C7;
692
+ --coco-colors-warning-200: #FDE68A;
693
+ --coco-colors-warning-300: #FCD34D;
694
+ --coco-colors-warning-400: #FBBF24;
695
+ --coco-colors-warning-500: #F59E0B;
696
+ --coco-colors-warning-600: #D97706;
697
+ --coco-colors-warning-700: #B45309;
698
+ --coco-colors-warning-800: #92400E;
699
+ --coco-colors-warning-900: #78350F;
700
+ --coco-colors-info-50: #F0F9FF;
701
+ --coco-colors-info-100: #E0F2FE;
702
+ --coco-colors-info-200: #BAE6FD;
703
+ --coco-colors-info-300: #7DD3FC;
704
+ --coco-colors-info-400: #38BDF8;
705
+ --coco-colors-info-500: #0EA5E9;
706
+ --coco-colors-info-600: #0284C7;
707
+ --coco-colors-info-700: #0369A1;
708
+ --coco-colors-info-800: #075985;
709
+ --coco-colors-info-900: #0C4A6E;
710
+ --coco-colors-background-header: #427484;
711
+ --coco-colors-background-light-1: #FFFFFF;
712
+ --coco-colors-background-light-2: #F9FAFB;
713
+ --coco-colors-background-light-3: #F3F4F6;
714
+ --coco-colors-background-dark-1: #111827;
715
+ --coco-colors-background-dark-2: #1F2937;
716
+ --coco-colors-background-dark-3: #374151;
717
+ --coco-colors-background-primary: #1A8871;
718
+ --coco-colors-background-primary-light: #D1E7E2;
719
+ --coco-colors-background-negative: #DC2626;
720
+ --coco-colors-background-negative-light: #FEE2E2;
721
+ --coco-colors-background-warning: #F59E0B;
722
+ --coco-colors-background-warning-light: #FFFBEB;
723
+ --coco-colors-background-positive: #1A8871;
724
+ --coco-colors-background-positive-light: #D1E7E2;
725
+ --coco-colors-background-info: #0284C7;
726
+ --coco-colors-background-info-light: #E0F2FE;
727
+ --coco-colors-content-dark-1: #111827;
728
+ --coco-colors-content-dark-2: #1F2937;
729
+ --coco-colors-content-dark-3: #4B5563;
730
+ --coco-colors-content-dark-muted: #9CA3AF;
731
+ --coco-colors-content-light-1: #FFFFFF;
732
+ --coco-colors-content-light-2: #E5E7EB;
733
+ --coco-colors-content-light-muted: #9CA3AF;
734
+ --coco-colors-content-primary: #1A8871;
735
+ --coco-colors-content-primary-dark: #137464;
736
+ --coco-colors-content-primary-inverse: #76B8AA;
737
+ --coco-colors-content-primary-inverse-vivid: #009979;
738
+ --coco-colors-content-negative: #DC2626;
739
+ --coco-colors-content-negative-dark: #B91C1C;
740
+ --coco-colors-content-negative-inverse: #FCA5A5;
741
+ --coco-colors-content-warning: #D97706;
742
+ --coco-colors-content-warning-dark: #B45309;
743
+ --coco-colors-content-warning-inverse: #FCD34D;
744
+ --coco-colors-content-positive: #1A8871;
745
+ --coco-colors-content-positive-dark: #137464;
746
+ --coco-colors-content-positive-inverse: #76B8AA;
747
+ --coco-colors-content-info: #0284C7;
748
+ --coco-colors-content-info-dark: #0369A1;
749
+ --coco-colors-content-info-inverse: #7DD3FC;
595
750
  --snackbar-bottom-offset: 2rem;
596
- --app-height: 100%;
597
- }
751
+ --app-height: 100%
752
+ }
598
753
 
599
754
  html{
600
755
  scroll-behavior: smooth;
@@ -11449,6 +11449,8 @@ var require_tokens = __commonJS({
11449
11449
  900: "#134E4A"
11450
11450
  }
11451
11451
  };
11452
+ var { coco, ...colorVariables } = colors;
11453
+ colorVariables.gray = colors.coco.gray;
11452
11454
  var colorAliases = {
11453
11455
  primary: {
11454
11456
  ...colors.green
@@ -11599,6 +11601,16 @@ var require_tokens = __commonJS({
11599
11601
  displaySans: "proxima-nova",
11600
11602
  bodySans: "proxima-nova",
11601
11603
  displaySerif: "merriweather"
11604
+ },
11605
+ variables: {
11606
+ DEFAULT: {
11607
+ coco: {
11608
+ colors: {
11609
+ ...colorVariables,
11610
+ ...colorAliases
11611
+ }
11612
+ }
11613
+ }
11602
11614
  }
11603
11615
  };
11604
11616
  }
@@ -15326,7 +15338,7 @@ var alpine_default = import_alpinejs.default;
15326
15338
  // ../../../package.json
15327
15339
  var package_default = {
15328
15340
  name: "coveragebook-components",
15329
- version: "0.19.1",
15341
+ version: "0.19.2",
15330
15342
  repository: "git@github.com:coveragebook/coco.git",
15331
15343
  license: "NO LICENSE",
15332
15344
  author: "Mark Perkins <mark@coveragebook.com>",
@@ -15421,6 +15433,9 @@ var package_default = {
15421
15433
  "after:version:bump": "bundle exec rake coco:gem:bump_version[${version}] && bundle && cd lookbook && bundle",
15422
15434
  "after:release": "rake coco:gem:release[${version}]"
15423
15435
  }
15436
+ },
15437
+ devDependencies: {
15438
+ "@mertasan/tailwindcss-variables": "^2.7.0"
15424
15439
  }
15425
15440
  };
15426
15441
 
@@ -1,12 +1,19 @@
1
1
  /** @type {import('tailwindcss').Config} */
2
2
 
3
3
  const defaultTheme = require("tailwindcss/defaultTheme");
4
- const { fontSize, fontFamily, colors, screens } = require("./tokens.js");
4
+ const {
5
+ fontSize,
6
+ fontFamily,
7
+ colors,
8
+ variables,
9
+ screens,
10
+ } = require("./tokens.js");
5
11
 
6
12
  module.exports = {
7
13
  theme: {
8
14
  colors,
9
15
  screens,
16
+ variables,
10
17
  fontFamily: {
11
18
  display: [fontFamily.displaySans, ...defaultTheme.fontFamily.sans],
12
19
  body: [fontFamily.bodySans, ...defaultTheme.fontFamily.sans],
@@ -58,6 +65,7 @@ module.exports = {
58
65
  plugins: [
59
66
  require("@tailwindcss/forms"),
60
67
  require("@tailwindcss/container-queries"),
68
+ require("@mertasan/tailwindcss-variables"),
61
69
  require("../app/assets/css/plugins/colors.js"),
62
70
  require("../app/assets/css/plugins/icons.js"),
63
71
  require("../app/assets/css/plugins/layout.js"),
data/config/tokens.js CHANGED
@@ -86,6 +86,9 @@ const colors = {
86
86
  },
87
87
  };
88
88
 
89
+ const { coco, ...colorVariables } = colors;
90
+ colorVariables.gray = colors.coco.gray;
91
+
89
92
  const colorAliases = {
90
93
  primary: {
91
94
  ...colors.green,
@@ -244,4 +247,14 @@ module.exports = {
244
247
  bodySans: "proxima-nova",
245
248
  displaySerif: "merriweather",
246
249
  },
250
+ variables: {
251
+ DEFAULT: {
252
+ coco: {
253
+ colors: {
254
+ ...colorVariables,
255
+ ...colorAliases,
256
+ },
257
+ },
258
+ },
259
+ },
247
260
  };
data/lib/coco.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Coco
2
- VERSION = "0.19.1"
2
+ VERSION = "0.19.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: coveragebook_components
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.19.1
4
+ version: 0.19.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mark Perkins
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-09-10 00:00:00.000000000 Z
11
+ date: 2024-09-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails