@ucdavis/gunrock-tailwind 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +1 -0
- package/index.js +101 -0
- package/package.json +29 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 UC Davis
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tailwind config file for UC D projects
|
package/index.js
ADDED
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
const plugin = require("tailwindcss/plugin");
|
|
2
|
+
|
|
3
|
+
module.exports = plugin(
|
|
4
|
+
function ({ addBase }) {
|
|
5
|
+
addBase({
|
|
6
|
+
// Font-face declarations
|
|
7
|
+
"@font-face": [
|
|
8
|
+
{
|
|
9
|
+
fontFamily: "proxima-nova-r",
|
|
10
|
+
src: 'url("https://ucdcdn.azureedge.net/public/media/fonts/proximanova-regular-webfont.woff") format("woff")',
|
|
11
|
+
fontWeight: "normal",
|
|
12
|
+
fontStyle: "normal",
|
|
13
|
+
fontDisplay: "fallback",
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
fontFamily: "proxima-nova-i",
|
|
17
|
+
src: 'url("https://ucdcdn.azureedge.net/public/media/fonts/proximanova-regularit-webfont.woff") format("woff")',
|
|
18
|
+
fontWeight: "normal",
|
|
19
|
+
fontStyle: "normal",
|
|
20
|
+
fontDisplay: "fallback",
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
fontFamily: "proxima-nova-b",
|
|
24
|
+
src: 'url("https://ucdcdn.azureedge.net/public/media/fonts/proximanova-bold-webfont.woff") format("woff")',
|
|
25
|
+
fontWeight: "normal",
|
|
26
|
+
fontStyle: "normal",
|
|
27
|
+
fontDisplay: "fallback",
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
fontFamily: "ryman",
|
|
31
|
+
src: 'url("https://ucdcdn.azureedge.net/public/media/fonts/ryman-eco-webfont.woff") format("woff")',
|
|
32
|
+
fontWeight: "normal",
|
|
33
|
+
fontStyle: "normal",
|
|
34
|
+
fontDisplay: "fallback",
|
|
35
|
+
},
|
|
36
|
+
],
|
|
37
|
+
// Element styling
|
|
38
|
+
// "h1, h2, h3, h4, h5, h6": { "@apply font-sans": {} },
|
|
39
|
+
// h1: { "@apply text-5xl font-bold": {} },
|
|
40
|
+
// h2: { "@apply text-4xl font-semibold": {} },
|
|
41
|
+
// h3: { "@apply text-3xl font-semibold": {} },
|
|
42
|
+
// h4: { "@apply text-2xl font-medium": {} },
|
|
43
|
+
// h5: { "@apply text-xl font-medium": {} },
|
|
44
|
+
// h6: { "@apply text-lg font-normal": {} },
|
|
45
|
+
// p: { lineHeight: "1.6" },
|
|
46
|
+
});
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
theme: {
|
|
50
|
+
extend: {
|
|
51
|
+
fontFamily: {
|
|
52
|
+
sans: ["proxima-nova-r", "Arial", "sans-serif"],
|
|
53
|
+
"sans-bold": ["proxima-nova-b", "Arial", "sans-serif"],
|
|
54
|
+
"sans-italic": ["proxima-nova-i", "Arial", "sans-serif"],
|
|
55
|
+
ryman: ["ryman", "Georgia", "serif"],
|
|
56
|
+
},
|
|
57
|
+
colors: {
|
|
58
|
+
"primary-font": "rgb(31 31 31 / <alpha-value>)",
|
|
59
|
+
"secondary-font": "rgb(31 31 31 / <alpha-value>)",
|
|
60
|
+
"tertiary-font": "rgb(31 31 31 / <alpha-value>)",
|
|
61
|
+
"primary-white": "rgb(254 254 254 / <alpha-value>)",
|
|
62
|
+
"secondary-white": "rgb(254 254 254 / <alpha-value>)",
|
|
63
|
+
ucd: {
|
|
64
|
+
recpool: "rgb(111 207 235 / <alpha-value>)",
|
|
65
|
+
tahoe: "rgb(0 178 227 / <alpha-value>)",
|
|
66
|
+
gunrock: "rgb(0 71 186 / <alpha-value>)",
|
|
67
|
+
bodega: "rgb(0 58 93 / <alpha-value>)",
|
|
68
|
+
rain: "rgb(3 249 230 / <alpha-value>)",
|
|
69
|
+
arboretum: "rgb(0 196 179 / <alpha-value>)",
|
|
70
|
+
putahcreek: "rgb(0 142 170 / <alpha-value>)",
|
|
71
|
+
delta: "rgb(0 82 76 / <alpha-value>)",
|
|
72
|
+
farmersmarket: "rgb(170 218 145 / <alpha-value>)",
|
|
73
|
+
sage: "rgb(108 202 152 / <alpha-value>)",
|
|
74
|
+
quad: "rgb(61 174 43 / <alpha-value>)",
|
|
75
|
+
redwood: "rgb(38 96 65 / <alpha-value>)",
|
|
76
|
+
goldenstate: "rgb(255 255 59 / <alpha-value>)",
|
|
77
|
+
sunflower: "rgb(255 220 0 / <alpha-value>)",
|
|
78
|
+
poppy: "rgb(241 138 0 / <alpha-value>)",
|
|
79
|
+
california: "rgb(138 83 47 / <alpha-value>)",
|
|
80
|
+
rose: "rgb(255 129 137 / <alpha-value>)",
|
|
81
|
+
strawberry: "rgb(249 53 73 / <alpha-value>)",
|
|
82
|
+
doubledecker: "rgb(193 2 48 / <alpha-value>)",
|
|
83
|
+
merlot: "rgb(121 36 47 / <alpha-value>)",
|
|
84
|
+
thiebauldicing: "rgb(240 149 205 / <alpha-value>)",
|
|
85
|
+
redbud: "rgb(198 0 126 / <alpha-value>)",
|
|
86
|
+
pinot: "rgb(118 35 108 / <alpha-value>)",
|
|
87
|
+
cabernet: "rgb(72 18 104 / <alpha-value>)",
|
|
88
|
+
},
|
|
89
|
+
},
|
|
90
|
+
borderColor: {
|
|
91
|
+
DEFAULT: "#C8C7CC",
|
|
92
|
+
border: "#C8C7CC",
|
|
93
|
+
},
|
|
94
|
+
boxShadow: {
|
|
95
|
+
subtle:
|
|
96
|
+
"0 0 0 1px rgba(49, 49, 93, 0.03), 0 2px 5px 0 rgba(49, 49, 93, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.08)",
|
|
97
|
+
},
|
|
98
|
+
},
|
|
99
|
+
},
|
|
100
|
+
}
|
|
101
|
+
);
|
package/package.json
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@ucdavis/gunrock-tailwind",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Reusable Tailwind CSS theme for UC Davis branding",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"keywords": [
|
|
7
|
+
"tailwind",
|
|
8
|
+
"ucdavis",
|
|
9
|
+
"tailwindcss",
|
|
10
|
+
"plugin",
|
|
11
|
+
"theme"
|
|
12
|
+
],
|
|
13
|
+
"author": "cydoval <cydoval@ucdavis.edu>",
|
|
14
|
+
"license": "MIT",
|
|
15
|
+
"repository": {
|
|
16
|
+
"type": "git",
|
|
17
|
+
"url": "git+https://github.com/ucdavis/gunrock-tailwind.git"
|
|
18
|
+
},
|
|
19
|
+
"bugs": {
|
|
20
|
+
"url": "https://github.com/ucdavis/gunrock-tailwind/issues"
|
|
21
|
+
},
|
|
22
|
+
"homepage": "https://github.com/ucdavis/gunrock-tailwind#readme",
|
|
23
|
+
"peerDependencies": {
|
|
24
|
+
"tailwindcss": "^3.0.0"
|
|
25
|
+
},
|
|
26
|
+
"devDependencies": {
|
|
27
|
+
"tailwindcss": "^3.0.0"
|
|
28
|
+
}
|
|
29
|
+
}
|