@ucdavis/gunrock-tailwind 2.1.0 → 2.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +11 -0
  2. package/imports.css +13 -56
  3. package/package.json +6 -3
package/README.md CHANGED
@@ -7,3 +7,14 @@ global.css should look like
7
7
  @import 'tailwindcss';
8
8
  @plugin "daisyui";
9
9
  @import './gunrocktailwind.css';
10
+
11
+ you can overide both daisy and tailwind like below
12
+
13
+ @plugin "daisyui/theme" {
14
+ name: 'gunrock';
15
+ --color-primary: var(--color-ucd-doubledecker);
16
+ }
17
+
18
+ @theme inline {
19
+ --color-primary-color: var(--color-ucd-recpool);
20
+ }
package/imports.css CHANGED
@@ -31,56 +31,6 @@
31
31
  font-display: fallback;
32
32
  }
33
33
 
34
- body {
35
- font-family: "proxima-nova-r", sans-serif;
36
- }
37
- h1 {
38
- font-size: 2.25rem; /* 36px */
39
- font-weight: 700; /* bold */
40
- line-height: 2.5rem; /* 40px */
41
- letter-spacing: -0.01562em;
42
- }
43
-
44
- h2 {
45
- font-size: 1.5rem; /* 24px */
46
- font-weight: 700; /* bold */
47
- line-height: 2rem; /* 32px */
48
- letter-spacing: -0.01562em;
49
- }
50
-
51
- h3 {
52
- font-size: 1.25rem; /* 20px */
53
- font-weight: 600; /* semi-bold */
54
- line-height: 1.75rem; /* 28px */
55
- letter-spacing: 0em;
56
- }
57
-
58
- h4 {
59
- font-size: 0.875rem; /* 14px */
60
- text-transform: uppercase;
61
- line-height: 1.5rem; /* 24px */
62
- }
63
-
64
- h5 {
65
- font-size: 1.25rem; /* 20px */
66
- font-weight: 500; /* medium */
67
- }
68
-
69
- h6 {
70
- font-size: 1.125rem; /* 18px */
71
- font-weight: 500; /* medium */
72
- }
73
-
74
- p {
75
- font-size: 1rem; /* 16px */
76
- }
77
-
78
- .lede {
79
- font-size: 1.125rem; /* 18px */
80
- font-weight: 600; /* semi-bold */
81
- line-height: 1.75rem; /* 28px */
82
- }
83
-
84
34
  @theme {
85
35
  /* standard colors */
86
36
  --color-primary-font: oklch(0.3132 0 0); /* dark gray */
@@ -90,9 +40,9 @@ p {
90
40
  --color-light-bg-100: oklch(100% 0 0); /* white */
91
41
  --color-light-bg-200: oklch(98% 0 0); /* off-white */
92
42
  --color-light-bg-300: oklch(95% 0 0); /* light gray */
93
- --color-dark-bg-100: oklch(10% 0.003 285.823); /* darkest gray */
94
- --color-dark-bg-200: oklch(12% 0.004 285.823); /* darker gray */
95
- --color-dark-bg-300: oklch(14% 0.005 285.823); /* dark gray */
43
+ --color-dark-bg-100: oklch(10% 0.003 285.823); /* darkest */
44
+ --color-dark-bg-200: oklch(0.1831 0.004 285.99); /* darker */
45
+ --color-dark-bg-300: oklch(0.2195 0.0077 285.74); /* dark */
96
46
 
97
47
  /* UC Davis colors */
98
48
  --color-ucd-recpool: oklch(0.8061 0.0988 219.14);
@@ -120,9 +70,6 @@ p {
120
70
  --color-ucd-pinot: oklch(0.4134 0.1448 333.08);
121
71
  --color-ucd-cabernet: oklch(0.3221 0.1406 308.84);
122
72
  }
123
- .btn {
124
- border-radius: 4px;
125
- }
126
73
  @plugin "daisyui/theme" {
127
74
  name: "gunrock";
128
75
  --color-base-100: var(--color-light-bg-100);
@@ -154,3 +101,13 @@ p {
154
101
  --depth: 1;
155
102
  --noise: 1;
156
103
  }
104
+
105
+ html {
106
+ background-color: var(--color-light-bg-100);
107
+ }
108
+ body {
109
+ font-family: "proxima-nova-r", sans-serif;
110
+ }
111
+ .btn {
112
+ border-radius: 4px;
113
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ucdavis/gunrock-tailwind",
3
- "version": "2.1.0",
3
+ "version": "2.3.0",
4
4
  "description": "Tailwind + DaisyUI preset for UC Davis branding",
5
5
  "main": "imports.css",
6
6
  "files": [
@@ -12,12 +12,15 @@
12
12
  "theme"
13
13
  ],
14
14
  "peerDependencies": {
15
- "tailwindcss": "^4.0.0",
16
- "daisyui": "^5.0.0"
15
+ "daisyui": "^5.0.0",
16
+ "tailwindcss": "^4.0.0"
17
17
  },
18
18
  "license": "MIT",
19
19
  "repository": {
20
20
  "type": "git",
21
21
  "url": "https://github.com/ucdavis/gunrock-tailwind"
22
+ },
23
+ "dependencies": {
24
+ "@ucdavis/gunrock-tailwind": "^2.2.0"
22
25
  }
23
26
  }